| XML parser implementation [message #648757] |
Fri, 14 January 2011 07:45  |
Eva Troels Messages: 17 Registered: December 2010 |
Junior Member |
|
|
I have some legacy code with dependencies to Oracles Xml parser v. 2.
I would like to deploy this as web bundle.
In order to make the code work - i need to add the jar xmlparserv2-1.0.0.jar to my bundles classpath. I have just added the jar to the lib folder in the META-INF of my bundle and added the jar to my bundles Bundle-Classpath in the MANIFEST.
This seems to work -- but now one of my other (Spring) bundles complains with
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider oracle.xml.jaxp.JXDocumentBuilderFactory not found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Documen tBuilderFactory.java:129)
at org.springframework.beans.factory.xml.DefaultDocumentLoader. createDocumentBuilderFactory(DefaultDocumentLoader.java:89)
at org.springframework.beans.factory.xml.DefaultDocumentLoader. loadDocument(DefaultDocumentLoader.java:70)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReade r.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
when parsing the bean definition.
The Oracle parser dependent web bundle is deployed in a PAR containing other bundles as well.
Why does adding the oracle xml parser jar to a bundles (private??) classpath affect the other bundles in my PAR?
Shouldn't they still use the standard XML parser in Java 6?
/Eva
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01921 seconds