Quantcast

Unexpected exception parsing XML document from class path resource [META-INF/cxf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unexpected exception parsing XML document from class path resource [META-INF/cxf

David Du-2
Hi, all
Since we are using Netscape Enterprise Server (NES) 6.2, I am trying to
deploy the sample webservice hello_word to NES, but I got the following
error, anybody has a clue?

Thanks

David


[23/Jul/2007:03:00:47] info ( 4615): vs(https-dduRHL.pkipro)servlet 'cxf'
class = 'org.apache.cxf.transport.servlet.CXFServlet' loaded in context =
'/hello_world'
[23/Jul/2007:03:00:47] info ( 4615): cxf: init
[23/Jul/2007:03:00:48] warning ( 4615): vs(https-dduRHL.pkipro)Exception
thrown in servlet.init; context = /hello_world, servlet = 'cxf',
servlet-class = 'org.apache.cxf.transport.servlet.CXFServlet', stack tace:
java.lang.RuntimeException:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from class path resource
[META-INF/cxf/cxf.xml]; nested exception is
java.lang.ExceptionInInitializerError
        at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:84)
        at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:66)
        at
org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:143)
        at org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:96)
        at
com.netscape.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEntity.java:98)
        at
com.netscape.server.http.servlet.WebApplication.init(WebApplication.java:356)
        at
com.netscape.server.http.servlet.VirtualServer.init(VirtualServer.java:182)
        at
com.netscape.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:683)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from class path resource
[META-INF/cxf/cxf.xml]; nested exception is
java.lang.ExceptionInInitializerError
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:375)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
        at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
        at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
        at
org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:71)
        at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:81)
        ... 7 more
Caused by: java.lang.ExceptionInInitializerError
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at
com.sun.org.apache.xerces.internal.impl.dv.ObjectFactory.newInstance(ObjectFactory.java:351)
        at
com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:68)
        at
com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:52)
        at
com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar$BuiltinSchemaGrammar.<init>(SchemaGrammar.java:158)
        at
com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar.<clinit>(SchemaGrammar.java:904)
        at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.<init>(XMLSchemaValidator.java:1067)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configurePipeline(XML11Configuration.java:1148)
        at
com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.configurePipeline(XIncludeAwareParserConfiguration.java:151)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
[23/Jul/2007:03:00:48] info ( 4615): vs(https-dduRHL.pkipro)servlet 'snoop'
class = 'SnoopServlet' loaded in context = '/hello'
[23/Jul/2007:03:00:48] info ( 4615): snoop: init
[23/Jul/2007:03:00:48] info ( 4615): Successfully initialized web
application environment (web-apps.xml) for virtual server
(https-dduRHL.pkipro)

_________________________________________________________________
http://liveearth.msn.com

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unexpected exception parsing XML document from class path resource [META-INF/cxf

Willem2
Hi David

It looks like some xml parser work issue, can you list your
environments, such as JDK version, the  hello_world's class path etc.

I guess there may have some inflictions of JAXB between the CXF used  
and the NSE used.

Hope this can help you out :)

Willem.

David Du wrote:

> Hi, all
> Since we are using Netscape Enterprise Server (NES) 6.2, I am trying
> to deploy the sample webservice hello_word to NES, but I got the
> following error, anybody has a clue?
>
> Thanks
>
> David
>
>
> [23/Jul/2007:03:00:47] info ( 4615): vs(https-dduRHL.pkipro)servlet
> 'cxf' class = 'org.apache.cxf.transport.servlet.CXFServlet' loaded in
> context = '/hello_world'
> [23/Jul/2007:03:00:47] info ( 4615): cxf: init
> [23/Jul/2007:03:00:48] warning ( 4615):
> vs(https-dduRHL.pkipro)Exception thrown in servlet.init; context =
> /hello_world, servlet = 'cxf', servlet-class =
> 'org.apache.cxf.transport.servlet.CXFServlet', stack tace:
> java.lang.RuntimeException:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Unexpected exception parsing XML document from class path resource
> [META-INF/cxf/cxf.xml]; nested exception is
> java.lang.ExceptionInInitializerError
>     at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:84)
>
>     at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:66)
>
>     at
> org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:143)
>
>     at
> org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:96)
>     at
> com.netscape.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEntity.java:98)
>
>     at
> com.netscape.server.http.servlet.WebApplication.init(WebApplication.java:356)
>
>     at
> com.netscape.server.http.servlet.VirtualServer.init(VirtualServer.java:182)
>
>     at
> com.netscape.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:683)
>
> Caused by:
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Unexpected exception parsing XML document from class path resource
> [META-INF/cxf/cxf.xml]; nested exception is
> java.lang.ExceptionInInitializerError
>     at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:375)
>
>     at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
>
>     at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
>
>     at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
>
>     at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
>
>     at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
>
>     at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)
>
>     at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
>
>     at
> org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:71)
>
>     at
> org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:81)
>
>     ... 7 more
> Caused by: java.lang.ExceptionInInitializerError
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>     at java.lang.Class.newInstance0(Class.java:355)
>     at java.lang.Class.newInstance(Class.java:308)
>     at
> com.sun.org.apache.xerces.internal.impl.dv.ObjectFactory.newInstance(ObjectFactory.java:351)
>
>     at
> com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:68)
>
>     at
> com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:52)
>
>     at
> com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar$BuiltinSchemaGrammar.<init>(SchemaGrammar.java:158)
>
>     at
> com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar.<clinit>(SchemaGrammar.java:904)
>
>     at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.<init>(XMLSchemaValidator.java:1067)
>
>     at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configurePipeline(XML11Configuration.java:1148)
>
>     at
> com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.configurePipeline(XIncludeAwareParserConfiguration.java:151)
>
>     at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
>
>     at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>
> [23/Jul/2007:03:00:48] info ( 4615): vs(https-dduRHL.pkipro)servlet
> 'snoop' class = 'SnoopServlet' loaded in context = '/hello'
> [23/Jul/2007:03:00:48] info ( 4615): snoop: init
> [23/Jul/2007:03:00:48] info ( 4615): Successfully initialized web
> application environment (web-apps.xml) for virtual server
> (https-dduRHL.pkipro)
>
> _________________________________________________________________
> http://liveearth.msn.com
>
Loading...