web123456

Invocation of init method failed; nested exception is : Problem solved

 
MyEclipse develops SSH integration: Solution

This article solves the problem, core tips:

2007-08-08 I found that the following errors were reported during the startup process using MyEclipse 5.5 for Struts 1.2 + Spring 2.0 + Hibernate 3.1 when integrating:


2007-08-08 15:36:17,406 ERROR [] - CGLIB Enhancement failed:
: (IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
 at .begin_class(:77)

Some jar files shared by Spring and Hibernate have version conflicts, delete WEB-INF/lib/asm-2.2. Then restart Tomcat.

asm-2.2.
      
      
      asm-commons-2.2.
      asm-util-2.2.


Original reference:/blog/101575


Here is a complete error message:

2007-10-7 10:44:42 listenerStart
Serious: Exception sending context initialized event to listener instance of class
: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/classes/]: Invocation of init method failed; nested exception is
Caused by:
at (:117)
at (:43)
at (:162)
at .<init>(:135)
at .<init>(:55)
at .<init>(:56)