Integrate the ssh framework-NoClassDefFoundError-NoSuchMethodError-Remote Tornado and Remote Tornado

Source: Internet
Author: User

Integrate the ssh framework-NoClassDefFoundError-NoSuchMethodError-Remote Tornado and Remote Tornado
(-1) Preface

Spring2.0, struts1.2, hibernate3.0, myeclipse8.5, and tomcat6.0 have encountered many problems during the integration process. A few days ago, I was busy sorting out the documents of my graduation thesis. Now I have made some time to write something. There are fewer people in the dormitory and fewer choices for mosquitoes.

(0) explain in detail a. Cause of the Error

Java. lang. NoSuchMethodError, java. lang. NoClassDefFoundError. Errors of this type are caused by jar package conflicts between frameworks.

B. Solution

Java. lang. NoSuchMethodError: org. objectweb. asm. ClassVisitor. visit is used as an example because both spring2.0 and hibernate3.0 have the asm jar package.

First: Zone release project tomcat root directory, enter webapps, enter your project, WEN-INF-> lib, find asm. jar delete it. After the project is released for the first time, it will not be associated with the jar package in the new lib

Type 2: Shut down the server and delete your project in webapps under tomcat and directory (otherwise, the jar package in project lib will not be updated even if subsequent behaviors are executed ),

If your jar package is placed under the WEB-INF \ lib in myeclipse, find it and delete it (I use build path, not my own package, may be in spring 2.0 AOP libraries ),

If you reference the jar package in buildpath mode, click myeclipse Windows, click preference, and choose MyEclipse> ProjectCapabilities> Spring on the left,

Select spring 2.0 on the right, select spring AOP libraries (my default is) from the drop-down box, and find asm. jar (here I am the asm-2.2.3.jar), remove it, restart the server, and publish the project. As shown in:

 

(2) restore the removed jar package

Removing the jar package in buildpath poses a risk. The previously removed asm. jar is used as an example. Click "Windows" of myeclipse ", click" preference "on the left, choose" MyEclipse ">" ProjectCapabilities ">" Spring "on the left, select" Spring2.0 "on the right, and click a jar package, click Add JAR/ZIP. If you find a segment like \ data \ 2.0 \ lib \ aopalliance in the address bar, you must have thought that the lib directory contains all the jars of spring2.0, find what you want.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.