Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-940

XPathFactory.newInstance() fails in user bundle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.1.0.Final
    • None
    • OSGi
    • None

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

              tdiesler@redhat.com Thomas Diesler
              dhildenb@redhat.com David Hildenbrand
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: