S
Sadhiesh
Hi,
In our application we were using crimson xml apis, with jre 1.5 and
tomcat 4.1.27.
Now, i am trying to migrate it to Tomcat 5.0+, and 5.0.27 to be
precise. And, For my application to work, i need to have the
crimson.jar in the classpath.
With jre1.5 the tomcat is not starting and throws this exception :
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.adventnet.nms.util.RunJSPModule.startJSPModule(RunJSPModule.java:83)
at com.adventnet.nms.util.RunJSPModule.main(RunJSPModule.java:115)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not
found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source)
at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:130)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java
:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909)
at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:859)
at org.apache.catalina.loader.WebappLoader.init(WebappLoader.java:612)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:644)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4231)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
... 12 more
But using jre 1.4 / tomcat5.0.27 / with Crimson.jar in classpath and
other things remaining the same , there are no issues at all.
But, I need get this combo (jre 1.5/tomcat5.0.27/with Crimson.jar ) up
and running.
Moreover i dont understand the issue very clear myself. Because, i
keep the Crimson.jar in classpath and the class
"org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" is also being
loaded by the system classloader. But, Still i get this peculiar
"class not found" as the cause from the Tomcat classloader.
Where am i missing the point. Some one please enlighten me on this.
Any help is very much appreciated.
thanks and reagrds,
Sadhiesh.
In our application we were using crimson xml apis, with jre 1.5 and
tomcat 4.1.27.
Now, i am trying to migrate it to Tomcat 5.0+, and 5.0.27 to be
precise. And, For my application to work, i need to have the
crimson.jar in the classpath.
With jre1.5 the tomcat is not starting and throws this exception :
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.adventnet.nms.util.RunJSPModule.startJSPModule(RunJSPModule.java:83)
at com.adventnet.nms.util.RunJSPModule.main(RunJSPModule.java:115)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl not
found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown
Source)
at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute(MbeansDescriptorsDOMSource.java:130)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDescriptors(MbeansDescriptorsDOMSource.java
:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909)
at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:992)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:696)
at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1047)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:859)
at org.apache.catalina.loader.WebappLoader.init(WebappLoader.java:612)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:644)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4231)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
... 12 more
But using jre 1.4 / tomcat5.0.27 / with Crimson.jar in classpath and
other things remaining the same , there are no issues at all.
But, I need get this combo (jre 1.5/tomcat5.0.27/with Crimson.jar ) up
and running.
Moreover i dont understand the issue very clear myself. Because, i
keep the Crimson.jar in classpath and the class
"org.apache.crimson.jaxp.DocumentBuilderFactoryImpl" is also being
loaded by the system classloader. But, Still i get this peculiar
"class not found" as the cause from the Tomcat classloader.
Where am i missing the point. Some one please enlighten me on this.
Any help is very much appreciated.
thanks and reagrds,
Sadhiesh.