[ https://issues.apache.org/jira/browse/DOSGI-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider resolved DOSGI-153. --------------------------------------- Resolution: Fixed Dan hinted to this solution: This might be among the issues we fixed in the 2.2.0 version of the servicemix specs. Can you replace the lib/endorsed/org.apache.servicemix.specs.jaxp-api-1.4-2.1.0.jar file from Karaf 2.3.0 with the 2.2.0 version and see if that helps? --- The new jaxb api version will be included in Karaf 2.3.1. So to use DOSGI with aegis upgrade karaf to version 2.3.1. > Error starting greeter sample in karaf 2.3.0 in aegis setup: > ExceptionInInitializerError ... failed to create an XPathFactory for the > default object model: http://java.sun.com/jaxp/xpath/dom > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DOSGI-153 > URL: https://issues.apache.org/jira/browse/DOSGI-153 > Project: CXF Distributed OSGi > Issue Type: Bug > Components: DSW > Affects Versions: 1.4 > Environment: Apache Karaf 2.3.0 > Reporter: Christian Schneider > Assignee: Christian Schneider > Fix For: 1.4 > > > To reproduce simply start a clean karaf 2.3.0 and run the following > commands: > features:addurl mvn:org.apache.cxf.dosgi/cxf-dosgi/1.4-SNAPSHOT/xml/features > features:install cxf-dosgi-discovery-local > install -s > mvn:org.apache.cxf.dosgi.samples/cxf-dosgi-ri-samples-greeter-interface/1.4-SNAPSHOT > install -s > mvn:org.apache.cxf.dosgi.samples/cxf-dosgi-ri-samples-greeter-impl/1.4-SNAPSHOT > The following exception below shows directly on the console. > ---- > Exception in thread "pool-12-thread-1" java.lang.ExceptionInInitializerError > at > org.apache.cxf.aegis.type.XMLTypeCreator.<init>(XMLTypeCreator.java:138) > at > org.apache.cxf.aegis.AegisContext.createRootTypeCreator(AegisContext.java:122) > at > org.apache.cxf.aegis.AegisContext.createTypeCreator(AegisContext.java:111) > at org.apache.cxf.aegis.AegisContext.initialize(AegisContext.java:153) > at > org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDatabinding.java:232) > at > org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:474) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536) > at > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248) > at > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101) > at > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) > at > org.apache.cxf.dosgi.dsw.handlers.AbstractPojoConfigurationTypeHandler.createServerFromFactory(AbstractPojoConfigurationTypeHandler.java:208) > at > org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler.createServer(PojoConfigurationTypeHandler.java:117) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore.exportService(RemoteServiceAdminCore.java:120) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:71) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance$1.run(RemoteServiceAdminInstance.java:64) > at java.security.AccessController.doPrivileged(Native Method) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:64) > at > org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminInstance.exportService(RemoteServiceAdminInstance.java:37) > at > org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.doExportService(TopologyManagerExport.java:250) > at > org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport.access$200(TopologyManagerExport.java:51) > at > org.apache.cxf.dosgi.topologymanager.exporter.TopologyManagerExport$3.run(TopologyManagerExport.java:214) > 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 XPathFctory > implementation found for the object model: > http://java.sun.com/jaxp/xpath/dom > at javax.xml.xpath.XPathFactory.newInstance(Unknown Source) > at org.apache.cxf.helpers.XPathUtils.<clinit>(XPathUtils.java:39) > ... 25 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira