I am developing a small web application with tomcat,struts and hibernate. At
first,I am working at home useing the Jcreator as IDE,and there were no
problems. Then I want to work at my company using myeclipse as IDE. I
carefully transplant the code,jars and xml files to the eclipse project.
When I deploy it to the tomcat, a big problem happens in the initial stage
of initializing the ActionSerlvet.The problem is as follow:

javax.servlet.ServletException: Servlet.init() for servlet action
threw exception

root case:

java.lang.VerifyError: Cannot inherit from final class
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664)
        at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown
Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentScannerImpl.java:248)
        at 
org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:245)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source)

Through painful work of analyzing the problem with my coworkers, I
find out this problem happens when use both the struts capability and
hibernate capability in the myeclipse.

Can somebody tell me what's the cause,and how to deal with it

Reply via email to