• Community
  • Questions
  • Variation of "Cannot be cast to javax.xml.parsers.SAXParserFactory" error

Variation of "Cannot be cast to javax.xml.parsers.SAXParserFactory" error

My circumstance is a variation of the question & answers posted to https://answers.atlassian.com/questions/104121 and am still looking for an answer - I'm getting the same error (with the exception it says crimson is incompatible instead of xerces) but I added no plugins. I upgraded my machine from Websphere 7.5 to 8.5 and made no explicit changes. I added, removed, or changed NO jars in my environment. Other than updated jars put in place by the IBM installation manager when upgrading to 8.5, nothing was changed. My websphere v7.5 worked just fine w/o any errors prior to this upgrade. Would you have any solution given my circumstance?


1 answer

Ok, I found the solution. With the goal of replacing crimson_1.1.1.jar, I looked for other jars (on my machine) having the class SAXParserFactoryimpl. I found it in several jars, two in particular: xercesimpl-2.8.0 and xercesimpl-2.9.1. I ultimately picked xercesimpl-2.8.0.jar because I needed to include another jar in my app, commons-fileupload-1.2.jar. When I downloaded this commons package to include it into my app, it came with xercesimpl-2.8.0.jar. So with that as the connection, I removed all references to crimson_1.1.1.jar and replaced it with xercesimpl-2.8.0.jar in my application. I also had to set my EAR's deployment descriptor (EAR > deployment descriptor > Deployment tab > Application section) to PARENT_FIRST for Classloader mode and APPLICATION for WAR classloader policy. Once done, my server start occurred w/o errors and no longer got the error of "org.apache.crimson.jaxp.SAXParserFactoryImpl incompatible with javax.xml.parsers.SAXParserFactory".

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published Tuesday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

406 views 6 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot