aspose file tools*
The moose likes XML and Related Technologies and the fly likes Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast" Watch "Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast" New topic
Author

Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast

Marc Heruela
Ranch Hand

Joined: Jul 23, 2009
Posts: 38
Hello guys,

I've get this very wierd problem. Iv got two projects who're running well in my local (VISTA, Java 1.6, Tomcat 5.5). project is spring/struts/hibernate. But when i deployed it in our test server (LINUX Cent, Java 1.5, Tomcat 1.5), I've got the aforementioned error. The complete stacktrace is below:



I've been browsing forums and the net for almost a day and still no avail.. Some forums told me it's about xerces jar file, it's conflicting tomcat's xml parser, so i deleted it in my lib.. but still the error is there.. please note that with or without the jar file, the error DOES NOT appear in my local server. The error ONLY APPEARS in the test server.. Must it have something to do with my Java version.. Also ladies and gentlemen, even though there's error in the stacktrace, the project (i mean the web site itself) is running.. I just want to remove the error in the logs coz it's quite annoying. Can somebody help me please???

Thank you so much.

Best Regards,
-marckun

NOTE: If ever I posted in the wrong forum, please guide me to the correct one.. Im still a newbie here. sorry


-marckun
hong zhong
Greenhorn

Joined: Apr 25, 2011
Posts: 3

I have the same problem
Marc Heruela
Ranch Hand

Joined: Jul 23, 2009
Posts: 38
hong zhong wrote:I have the same problem


hi.. i think you better check your internet connection.. at least that's my problem.. the tld of struts-default.xml is not loaded because the test server is not connected to the internet.... check if it is not restricting the tld url.. try visiting it to test..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast
 
Similar Threads
Struts 2.1.8 + Jfree Chart + tomcat 6 + jdk 1.5.0
Struts2 Filter Start Error in Tomcat
Strtus 2 Configuration issues
Error
web.xml problem in struts2