You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Michael Moser <mm...@zurich.ibm.com> on 2007/01/09 13:30:03 UTC

javax.xml.stream.FactoryConfigurationError???

I have defined a simple webapp (I am going through a web services 
tutorial) and when I install the app into Geronimo I get the below 
exception.
Since my app isn't nowehere in the stack trace I have to assume, this is 
when loading or initializing my app or starting one of the prequisites.
Could anybody give me a hint, what I might have to do or fix here?

--------------------------------
Booting Geronimo Kernel (in Java 1.6.0)...
Starting Geronimo Application Server v1.1.1
[**********************> ] 93%  45s Starting 
default/wsn-producer/1...13:21:05,124 ERROR [[/wsn-producer]] 
StandardWrapper.Throwable

javax.xml.stream.FactoryConfigurationError: Provider 
javax.xml.stream.XMLInputFactory could not be instantiated: 
java.lang.InstantiationException
        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.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:86)
        at 
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:58)
        at 
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:690)
        at 
org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:129)
        at 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:373)
        at 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:317)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337)
        at 
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)
        at 
org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:313)
        at 
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at 
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
        at 
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at 
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at 
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at 
org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$9460619b.addContext(<generated>)
        at 
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:438)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:981)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379)
        at 
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:374)
        at 
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
        at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:527)
        at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:508)
        at 
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at 
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
        at 
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at 
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at 
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at 
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$abb776dc.startConfiguration(<generated>)
        at 
org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:297)
        at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:74)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:377)
--------------------------------
(This is on WinXP.)

Michael



Re: javax.xml.stream.FactoryConfigurationError??? JRE 1.6!

Posted by Michael Moser <mm...@zurich.ibm.com>.
Just figured this out myself! After appending I reconsidered, that maybe 
I should give this a try with a 1.5 or even 1.4 JRE and - voila!

With a 1.5 (or 5.0) JRE things work fine. Thanks and sorry for the 
bandwidth...

Michael



Re: javax.xml.stream.FactoryConfigurationError???

Posted by Rakesh Midha <mi...@gmail.com>.
I think the problem is related to JDK 1.6 you are trying to use. I am not
sure but looks like JDK is shipped with its own STAX implementation which is
causing conflict.

Thanks
Rakesh

On 1/9/07, Michael Moser <mm...@zurich.ibm.com> wrote:
>
> I have defined a simple webapp (I am going through a web services
> tutorial) and when I install the app into Geronimo I get the below
> exception.
> Since my app isn't nowehere in the stack trace I have to assume, this is
> when loading or initializing my app or starting one of the prequisites.
> Could anybody give me a hint, what I might have to do or fix here?
>
> --------------------------------
> Booting Geronimo Kernel (in Java 1.6.0)...
> Starting Geronimo Application Server v1.1.1
> [**********************> ] 93%  45s Starting
> default/wsn-producer/1...13:21:05,124 ERROR [[/wsn-producer]]
> StandardWrapper.Throwable
>
> javax.xml.stream.FactoryConfigurationError: Provider
> javax.xml.stream.XMLInputFactory could not be instantiated:
> java.lang.InstantiationException
>         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.deployment.DescriptionBuilder.buildOM(
> DescriptionBuilder.java:86)
>         at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(
> AxisConfigBuilder.java:58)
>         at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(
> DeploymentEngine.java:690)
>         at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(
> WarBasedAxisConfigurator.java:129)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:373)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:317)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(
> GeronimoStandardContext.java:67)
>         at
>
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (GeronimoStandardContext.java:337)
>         at
> org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(
> GeronimoBeforeAfterValve.java:31)
>         at
> org.apache.geronimo.tomcat.GeronimoStandardContext.start(
> GeronimoStandardContext.java:192)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java
> :313)
>         at
>
> org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke
> (<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
> FastMethodInvoker.java:38)
>         at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> GBeanOperation.java:122)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java
> :817)
>         at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>         at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
> RawOperationInvoker.java:35)
>         at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
> ProxyMethodInterceptor.java:96)
>         at
>
> org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$9460619b.addContext
> (<generated>)
>         at
> org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(
> TomcatWebAppContext.java:438)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(
> GBeanInstance.java:981)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(
> GBeanInstanceState.java:267)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(
> GBeanInstanceState.java:102)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(
> GBeanInstanceState.java:124)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(
> GBeanInstance.java:540)
>         at
> org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(
> BasicKernel.java:379)
>         at
>
> org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans
> (ConfigurationUtil.java:374)
>         at
> org.apache.geronimo.kernel.config.KernelConfigurationManager.start(
> KernelConfigurationManager.java:187)
>         at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration
> (SimpleConfigurationManager.java:527)
>         at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration
> (SimpleConfigurationManager.java:508)
>         at
>
> org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke
> (<generated>)
>         at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
> FastMethodInvoker.java:38)
>         at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> GBeanOperation.java:122)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java
> :817)
>         at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>         at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
> RawOperationInvoker.java:35)
>         at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
> ProxyMethodInterceptor.java:96)
>         at
>
> org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$abb776dc.startConfiguration
> (<generated>)
>         at
> org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:297)
>         at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:74)
>         at org.apache.geronimo.system.main.Daemon.main(Daemon.java:377)
> --------------------------------
> (This is on WinXP.)
>
> Michael
>
>
>