[
https://issues.jboss.org/browse/AS7-940?page=com.atlassian.jira.plugin.sy...
]
Thomas Diesler edited comment on AS7-940 at 2/1/12 8:53 AM:
------------------------------------------------------------
Why does the framework need to see com.sun.*? The way it should work is that the framework
can see the API (i.e. javax.xml.xpath) and the module that loads the impl can see the impl
package.
was (Author: thomas.diesler):
Why does the framework need to see com.sun.*? They way it should work is that the
framework can see the API (i.e. javax.xml.xpath) and the module that loads the impl can
see the impl package.
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
Assignee: Thomas Diesler
Priority: Minor
Fix For: 7.1.1.Final
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.
{code}
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
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira