My Axis2/Spring application functions properly on Jetty 7 with Axis2 1.4.1.
When I attempt to upgrade to Axis2 1.5.1, the Jetty context fails to start
with the following exceptions. I have searched and found similar issues on
Weblogic, but nothing for Jetty. I did try switching Jetty to prefer the
parent classloader, but this causes other problems. I am using version
7.0.1.v20091125 of the jetty-maven-plugin. Can someone help?
2010-01-15 11:35:28.406:WARN::FAILED AxisServlet:
javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInputFactory coul
d not be instantiated: java.lang.InstantiationException
2010-01-15 11:35:28.406:WARN::FAILED
jettywebappcont...@823c6d@823c6d/partselect,file:/C:/svn/partselect/partselect-service/target/tmp/webap
p/,C:\svn\partselect\partselect-service\target\partselect-service-0.0.1-SNAPSHOT.war:
javax.xml.stream.FactoryConfigurationError: Provider j
avax.xml.stream.XMLInputFactory could not be instantiated:
java.lang.InstantiationException
2010-01-15 11:35:28.406:WARN::FAILED contexthandlercollect...@1d14d8c:
javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream
.XMLInputFactory could not be instantiated: java.lang.InstantiationException
2010-01-15 11:35:28.421:WARN::FAILED handlercollect...@3a3ada:
javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInpu
tFactory could not be instantiated: java.lang.InstantiationException
2010-01-15 11:35:28.421:WARN::Error starting handlers
javax.xml.stream.FactoryConfigurationError: Provider
javax.xml.stream.XMLInputFactory could not be instantiated:
java.lang.InstantiationExce
ption
at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)
at
org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:40)
at
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:66)
at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596)
at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581)
at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:88)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:703)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:421)
at
org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:245)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:699)
at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:193)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:978)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:349)
at
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:102)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:162)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
at org.eclipse.jetty.server.Server.doStart(Server.java:228)
at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:69)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:433)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
at
org.mortbay.jetty.plugin.JettyRunWarMojo.execute(JettyRunWarMojo.java:68)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
--
View this message in context:
http://old.nabble.com/Axis2-1.5.1-Upgrade-Problem-with-Spring-and-Jetty-7-tp27180100p27180100.html
Sent from the Axis - User mailing list archive at Nabble.com.