First of all sorry if there is something like that but i haven´t found it, or at least i haven´t found a solution to my problem
I'm upgrading a project developed in jdk4
using libraries such as xml-apis, xerces or xercesImpl managed by Maven.
Now the new version is developed with jdk7
. Here is when troubles comes.
When I pack the application everything it´s ok.
If I use Tomcat it´s ok as well, but when I access to it by Weblogic the log says:
Class org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy does not implement
the requested interface org.xml.sax.Attributes
I´ve tried most of things but I don´t know how to solve it. Thanks in advance
Everything in xml-apis
has been included in the core Java class library since Java 5, so you should exclude any transitive dependencies on xml-apis
in your pom. The error message you're seeing tends to occur when you have different classloaders in the mix, with the xerces classes binding to interfaces from xml-apis but other code trying to cast them to the same interface as defined by rt.jar.