- This topic has 15 replies, 7 voices, and was last updated 15 years, 4 months ago by
support-shalini.
-
AuthorPosts
-
davidsosMemberI’m using ME 6.5 with Spring 2.5 and Hibernate 3.2 and have a runtime problem when I start the embedded Tomcat Server. I’ve tried this with JPA as well. I started in a new clean workspace.
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘SessionFactory’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)VJuly 18, 2008 at 3:00 am #287271
Loyal WaterMemberdavidsos,
Can you please make sure this is not the issue that your facing:-
http://forum.hibernate.org/viewtopic.php?p=2362609&sid=47476901ea7a640b87192c54f6c6afabYou can remove your deployment and then make sure all the libs are removed before redeploying the project.
July 18, 2008 at 9:00 am #287275
davidsosMember@support-nipun wrote:
davidsos,
Can you please make sure this is not the issue that your facing:-
http://forum.hibernate.org/viewtopic.php?p=2362609&sid=47476901ea7a640b87192c54f6c6afabYou can remove your deployment and then make sure all the libs are removed before redeploying the project.
At last, I started with a fresh new workspace and am using the embedded ME tomcat server. Please explain how this applies as I’m not using a regularly deployed tomcat server.
July 21, 2008 at 5:05 pm #287364
Loyal WaterMemberPlease explain how this applies as I’m not using a regularly deployed tomcat server.
This applies where? I didn’t get the question. Could you rephrase it for me please.
July 21, 2008 at 9:10 pm #287368
davidsosMember@support-nipun wrote:
Please explain how this applies as I’m not using a regularly deployed tomcat server.
This applies where? I didn’t get the question. Could you rephrase it for me please.
What exactly would need to be deleted or where is the library folder to clean out when using the Tomcat Server embedded in ME?
July 22, 2008 at 8:35 pm #287415
davidsosMemberI figured out where the embedded server is located. Each workspace gets it’s own copy of the server as found below. Each application has a lib directory under its WEB-INF directory as is customary. I cleaned up all the jar files under all the lib directories and am now OK.
C:\workspace\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\……..July 23, 2008 at 2:29 pm #287451
Loyal WaterMemberGlad you got it to work.
September 21, 2008 at 10:55 pm #289224
AlanKruegerVSIMemberUnfortunately, I’m seeing this with a fresh Web project created with Spring 2.0, JPA Hibernate 3.2, and JSF. I’m seeing two copies of the org.objectweb.asm.ClassVisitor class:
– one in asm.jar in the Hibernate 3.2 Core libraries
– one in asm-2.2.3.jar in the Spring 2.0 AOP librariesIs there a way to resolve this apparent conflict between these two MyEclipse library bundles?
September 22, 2008 at 11:46 am #289252
Loyal WaterMemberAlanKruegerVSI,
Im not aware of any workaroud other than the one where one of the conflicting libraries have to be manually removed.You should cross post your query on the Hibernate/Spring forums as well.
November 25, 2008 at 10:22 pm #291390
Batbayar BazarragchaaMemberI got this error too!
I’m using spring and hibernate.
I’ve removed asm.jar and cglib-2.1.3.jar but still got the issue.By the way I’m using myeclipse with all updates.
November 25, 2008 at 10:37 pm #291391
Batbayar BazarragchaaMemberI’ve removed jars from lib folder and redeployed the project.
And it works 🙂workspace\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\tomcat\webapps\[my-project]\lib
November 26, 2008 at 9:26 am #291398
Loyal WaterMemberI’ve removed jars from lib folder and redeployed the project.
And it works 🙂Glad its working 🙂
January 21, 2009 at 9:54 am #293771
johnnycannukMemberSo I am now using ME 7.0 and deleting all of the libs does nothing for me… when I restart my embedded Tomcat, all of the libs, including the conflicting ones reappear. And I continue to get this error…
It would be nice to use Spring 2.5 and Hibernate 3.2 together.
January 21, 2009 at 1:00 pm #293791
Loyal WaterMemberWhich libs did you delete and from what location? The deleted libs should not reappear on their own I guess.
February 20, 2010 at 11:19 pm #306227
amir55Participanthi all
I am using Spring 2.5 and Hibernate 3.2 together. but the error always there
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit
Caused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit
1 – I have nolib jars apart from the mysql driver
2 – sure it is asm jar confliction
3 how to remove either asm as I tried to remove from java classpath andfrom the reference libraies but able.
4 – I do not want to add the jars manually as MyEclipse gets them ready in a bundle3 – I do not want to use older versions of libraries as the new ones are shipped stable with MyEclipse 8.
4 – please give me the URLs related
thanks a lot
Amir
-
AuthorPosts