-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: java.lang.LinkageError: Class org/xml/sax/Parser violates
PostPosted: Tue Sep 25, 2007 1:44 pm 
Newbie

Joined: Wed Aug 01, 2007 6:08 pm
Posts: 13
I am using Spring 2.0 with Hibernate 3.0/JPA and getting following error when tomcat starts up and tries to load spring file:

Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/amazon/otb/dao/hibernate/applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints
Caused by: java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :620)
at java.lang.ClassLoader.defineClass(ClassLoader.java :465)
at org.springframework.instrument.classloading.Abstra ctOverridingClassLoader.loadClass(AbstractOverridi ngClassLoader.java:96)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :620)
at java.lang.ClassLoader.defineClass(ClassLoader.java :465)
at org.springframework.instrument.classloading.Abstra ctOverridingClassLoader.loadClass(AbstractOverridi ngClassLoader.java:96)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :620)
at java.lang.ClassLoader.defineClass(ClassLoader.java :465)
at org.springframework.instrument.classloading.Abstra ctOverridingClassLoader.loadClass(AbstractOverridi ngClassLoader.java:96)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
at org.xml.sax.helpers.NewInstance.newInstance(NewIns tance.java:49)


Can anyone suggest what might be missing. Also, I am not getting this error when I run unit tests, only when I deploy the application in tomcat. I am not sure if there are any conflicts with jar files or some VM options. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.