Problem parsing xml from plugin environment

Hi all,

I'm currently trying to write a simple plugin, and I'm having trouble with parsing xml from my plugin and from any third party class I call from my plugin. I'm always getting a ClassCastException:

java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)

I'm currently running the IDEA7757 sdk under JDK1.6.0_05.

Any ideas as to which is the best way to solve this?

Thanks!

Guy

1 comment
Comment actions Permalink

I've just found the cause; I had two jars in my classpath that contained the javax.xml.* classes.
Removing the extra one solved my problem.

0

Please sign in to leave a comment.