[jboss-jira] [JBoss JIRA] Updated: (AS7-940) javax.xml.xpath.XPathFactory.newInstance() fails when invoked from a user bundle

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Thu Sep 8 05:02:27 EDT 2011


     [ https://issues.jboss.org/browse/AS7-940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated AS7-940:
-------------------------------

    Fix Version/s: 7.1.0.Alpha1


> javax.xml.xpath.XPathFactory.newInstance() fails when invoked from a user bundle
> --------------------------------------------------------------------------------
>
>                 Key: AS7-940
>                 URL: https://issues.jboss.org/browse/AS7-940
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: OSGi
>            Reporter: David Bosschaert
>            Priority: Minor
>             Fix For: 7.1.0.Alpha1
>
>
> When deploying the simple greeter impl bundle (CXF-DOSGi demo) the following exception appears. Note that this does work fine with other OSGi frameworks like Equinox and Felix.
> Creating Service {http://greeter.samples.dosgi.cxf.apache.org/}GreeterService from class org.apache.cxf.dosgi.samples.greeter.GreeterService
> Exception in thread "pool-3-thread-1" java.lang.ExceptionInInitializerError
> 	at org.apache.cxf.aegis.type.XMLTypeCreator.<init>(XMLTypeCreator.java:134)
> 	at org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.java:119)
> 	at org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java:108)
> 	at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:150)
> 	at org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDatabinding.java:262)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:467)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:530)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:278)
> 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:99)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
> 	at org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:125)
> 	at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:244)
> 	at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:78)
> 	at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:71)
> 	at org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:40)
> 	at org.apache.cxf.dosgi.topologymanager.TopologyManager$2.run(TopologyManager.java:254)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.RuntimeException: XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFactory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
> 	at javax.xml.xpath.XPathFactory.newInstance(XPathFactory.java:101)
> 	at org.apache.cxf.helpers.XPathUtils.<clinit>(XPathUtils.java:34)
> 	... 21 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list