camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-5811) Forced stax implementation = ClassNotFoundException when the application shuts down
Date Fri, 30 Nov 2012 09:31:59 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-5811:
-------------------------------

    Issue Type: Improvement  (was: Bug)
    
> Forced stax implementation = ClassNotFoundException when the application shuts down
> -----------------------------------------------------------------------------------
>
>                 Key: CAMEL-5811
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5811
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.10.2
>            Reporter: Maxence Dewil
>            Priority: Minor
>             Fix For: 2.11.0
>
>
> When a Stax implementation is forced for your project (ex: Woodstox), then an exception
is thrown when the application shuts down.
> How to reproduce:
> In your application classpath, create the following files:
> META-INF\services\javax.xml.stream.XMLEventFactory
> META-INF\services\javax.xml.stream.XMLInputFactory
> META-INF\services\javax.xml.stream.XMLOuputFactory
> Then edit each file and set its content:
> in javax.xml.stream.XMLEventFactory set com.ctc.wstx.stax.WstxEventFactory
> in javax.xml.stream.XMLInputFactory set com.ctc.wstx.stax.WstxInputFactory
> in javax.xml.stream.XMLOuputFactory set com.ctc.wstx.stax.WstxOutputFactory
> Exception:
> java.lang.ClassNotFoundException: org.apache.xalan.xsltc.trax.DOM2SAX
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
[catalina.jar:6.0.33]
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
[catalina.jar:6.0.33]
> 	at org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:816) [camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:741) [camel-core-2.10.2.jar:2.10.2]
> 	at org.apache.camel.converter.jaxp.XmlConverter.<clinit>(XmlConverter.java:95)
[camel-core-2.10.2.jar:2.10.2]
> 	at sun.misc.Unsafe.ensureClassInitialized(Native Method) [na:1.6.0_22]
> 	at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
[na:1.6.0_22]
> 	at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) [na:1.6.0_22]
> 	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) [na:1.6.0_22]
> 	at java.lang.reflect.Field.getFieldAccessor(Field.java:899) [na:1.6.0_22]
> 	at java.lang.reflect.Field.get(Field.java:358) [na:1.6.0_22]
> 	at org.apache.catalina.loader.WebappClassLoader.clearReferencesStaticFinal(WebappClassLoader.java:2037)
[catalina.jar:6.0.33]
> 	at org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1929)
[catalina.jar:6.0.33]
> 	at org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1833) [catalina.jar:6.0.33]
> 	at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:740) [catalina.jar:6.0.33]
> 	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4920) [catalina.jar:6.0.33]
> 	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1110) [catalina.jar:6.0.33]
> 	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1110) [catalina.jar:6.0.33]
> 	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:468) [catalina.jar:6.0.33]
> 	at org.apache.catalina.core.StandardService.stop(StandardService.java:604) [catalina.jar:6.0.33]
> 	at org.apache.catalina.core.StandardServer.stop(StandardServer.java:788) [catalina.jar:6.0.33]
> 	at org.apache.catalina.startup.Catalina.stop(Catalina.java:662) [catalina.jar:6.0.33]
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:629) [catalina.jar:6.0.33]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_22]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_22]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_22]
> 	at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_22]
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) [bootstrap.jar:6.0.33]
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) [bootstrap.jar:6.0.33]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message