Hi Matthias,

you have incompatible versions of Xerces in your classpath. You should be able to simply delete the one in the common/endorsed tomcat dir and then everything should work fine.

Best regards,

Geert

On 29 Sep 2006, at 11:27, Matthias Schmitt wrote:

Hello,

i've got a nasty problem with the xerces xml-parser.

i have 2 web-applications (one is with rife and the other without rife)
in one tomcat with jdk1.5.0.
They share some libraries in shared/lib/ (only rife.jar is in web/ WEB-INF/lib)
and i don't use any xercesImpl.jar.

if the non-rife-webapp starts first, it finds xml-parser in jdk-1.5.0
and starts fine and than the rife-wepapp starts fine too.
Evereything is ok.

if the rife-webapp starts first, i get the following Exception:

INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDOUT]: Warning: Caught exception attempting to use SAX to load a SAX XMLReader INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDOUT]:
Warning: Exception was: java.lang.ClassCastException:
org.apache.xerces.parsers.SAXParser
INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDOUT]: Warning: I will print the stack trace then carry on using the default SAX parser INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]:
java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser
INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]: at org.xml.sax.helpers.XMLReaderFactory.loadClass (XMLReaderFactory.java:199) INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]:
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader (XMLReaderFactory.java:150) INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]:
at org.dom4j.io.SAXHelper.createXMLReader(SAXHelper.java:83)
INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]:
at org.dom4j.io.SAXReader.createXMLReader(SAXReader.java:894)
INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]:
at org.dom4j.io.SAXReader.getXMLReader(SAXReader.java:715)
INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]:
at org.dom4j.io.SAXReader.read(SAXReader.java:435)
INFO 10:59:34,498 com.uwyn.rife.rep.participants.ParticipantSite [STDERR]:
at org.dom4j.io.SAXReader.read(SAXReader.java:291)

Any idea, why this happens?

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to