Christian, 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?
Dan On Dec 31, 2012, at 7:57 AM, Christian Schneider <[email protected]> wrote: > Hi all, > > I just hit an error when trying the dosgi greeter example on karaf 2.3.0. > > 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. This looks > like the error may be in cxf not in cxf-dosgi. > It took me a while till I hit this as my own examples always use jaxb > instead of aegis. > > Any ideas? > > Christian > > ---- > 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 > > ----- > > la -s shows: > karaf@root> la -s > START LEVEL 100 , List Threshold: 0 > ID State Blueprint Level Symbolic name > [ 0] [Active ] [ ] [ 0] org.apache.felix.framework > (4.0.3) > [ 1] [Active ] [ ] [ 5] org.ops4j.pax.url.mvn (1.3.5) > [ 2] [Active ] [ ] [ 5] org.ops4j.pax.url.wrap (1.3.5) > [ 3] [Active ] [ ] [ 8] > org.ops4j.pax.logging.pax-logging-service (1.7.0) > [ 4] [Active ] [ ] [ 8] > org.ops4j.pax.logging.pax-logging-api (1.7.0) > [ 5] [Active ] [ ] [ 10] org.apache.felix.configadmin > (1.4.0) > [ 6] [Active ] [ ] [ 11] org.apache.felix.fileinstall > (3.2.6) > [ 7] [Active ] [Created ] [ 20] > org.apache.aries.blueprint.core (1.0.1) > [ 8] [Active ] [ ] [ 20] org.apache.aries.util (1.0.0) > [ 9] [Active ] [ ] [ 20] org.apache.aries.proxy.api > (1.0.0) > [ 10] [Active ] [ ] [ 20] org.objectweb.asm.all (4.0) > [ 11] [Active ] [ ] [ 20] > org.apache.aries.blueprint.api (1.0.0) > [ 12] [Active ] [ ] [ 20] org.apache.aries.proxy.impl > (1.0.0) > [ 13] [Active ] [Created ] [ 20] > org.apache.aries.blueprint.cm (1.0.0) > [ 14] [Active ] [Created ] [ 25] > org.apache.karaf.shell.console (2.3.0) > [ 15] [Active ] [Created ] [ 28] > org.apache.karaf.deployer.blueprint (2.3.0) > [ 16] [Active ] [Created ] [ 28] > org.apache.karaf.deployer.spring (2.3.0) > [ 17] [Active ] [Created ] [ 30] org.apache.karaf.shell.ssh > (2.3.0) > [ 18] [Active ] [Created ] [ 30] > org.apache.karaf.management.server (2.3.0) > [ 19] [Active ] [Created ] [ 30] > org.apache.karaf.shell.commands (2.3.0) > [ 20] [Active ] [Created ] [ 30] > org.apache.karaf.features.core (2.3.0) > [ 21] [Active ] [Created ] [ 30] org.apache.karaf.shell.log > (2.3.0) > [ 22] [Active ] [Created ] [ 30] > org.apache.karaf.features.command (2.3.0) > [ 23] [Active ] [Created ] [ 30] > org.apache.karaf.diagnostic.management (2.3.0) > [ 24] [Active ] [ ] [ 30] org.apache.sshd.core (0.8.0) > [ 25] [Active ] [Created ] [ 30] > org.apache.karaf.deployer.wrap (2.3.0) > [ 26] [Active ] [ ] [ 30] org.apache.mina.core (2.0.7) > [ 27] [Active ] [Created ] [ 30] > org.apache.karaf.admin.command (2.3.0) > [ 28] [Active ] [Created ] [ 30] > org.apache.karaf.diagnostic.command (2.3.0) > [ 29] [Active ] [ ] [ 30] org.apache.aries.jmx.core > (1.0.1) > [ 30] [Active ] [ ] [ 30] > org.apache.karaf.diagnostic.core (2.3.0) > [ 31] [Active ] [Created ] [ 30] > org.apache.karaf.admin.management (2.3.0) > [ 32] [Active ] [ ] [ 30] org.apache.aries.jmx.api (1.0.0) > [ 33] [Active ] [Created ] [ 30] > org.apache.karaf.diagnostic.common (2.3.0) > [ 34] [Active ] [Created ] [ 30] org.apache.karaf.shell.dev > (2.3.0) > [ 35] [Active ] [Created ] [ 30] > org.apache.karaf.deployer.features (2.3.0) > [ 36] [Active ] [ ] [ 30] > org.apache.aries.jmx.blueprint.api (1.0.0) > [ 37] [Active ] [Created ] [ 30] > org.apache.karaf.jaas.command (2.3.0) > [ 38] [Active ] [Created ] [ 30] > org.apache.karaf.jaas.modules (2.3.0) > [ 39] [Active ] [Created ] [ 30] org.apache.karaf.shell.osgi > (2.3.0) > [ 40] [Active ] [Created ] [ 30] > org.apache.karaf.features.management (2.3.0) > [ 41] [Active ] [Created ] [ 30] > org.apache.karaf.shell.packages (2.3.0) > [ 42] [Active ] [ ] [ 30] > org.apache.aries.jmx.blueprint.core (1.0.1) > [ 43] [Active ] [Created ] [ 30] org.apache.karaf.admin.core > (2.3.0) > [ 44] [Active ] [Created ] [ 30] > org.apache.karaf.deployer.kar (2.3.0) > [ 45] [Active ] [Created ] [ 30] org.apache.karaf.jaas.config > (2.3.0) > [ 46] [Active ] [Created ] [ 30] > org.apache.karaf.shell.config (2.3.0) > [ 47] [Active ] [Created ] [ 30] > org.apache.karaf.management.mbeans.system (2.3.0) > [ 48] [Active ] [Created ] [ 30] > org.apache.karaf.management.mbeans.bundles (2.3.0) > [ 49] [Active ] [Created ] [ 30] > org.apache.karaf.management.mbeans.services (2.3.0) > [ 50] [Active ] [Created ] [ 30] > org.apache.karaf.management.mbeans.config (2.3.0) > [ 51] [Active ] [Created ] [ 30] > org.apache.karaf.management.mbeans.log (2.3.0) > [ 52] [Active ] [Created ] [ 30] > org.apache.karaf.management.mbeans.packages (2.3.0) > [ 53] [Active ] [Created ] [ 30] > org.apache.karaf.management.mbeans.dev (2.3.0) > [ 54] [Active ] [ ] [ 9] > org.apache.geronimo.specs.geronimo-osgi-registry (1.1) > [ 55] [Active ] [ ] [ 10] > org.apache.servicemix.specs.activation-api-1.1 (2.2.0) > [ 56] [Active ] [ ] [ 10] > org.apache.geronimo.specs.geronimo-annotation_1.0_spec (1.1.1) > [ 57] [Active ] [ ] [ 10] > org.apache.geronimo.specs.geronimo-ws-metadata_2.0_spec (1.1.3) > [ 58] [Active ] [ ] [ 10] > org.apache.servicemix.specs.stax-api-1.0 (2.2.0) > [ 59] [Active ] [ ] [ 10] > org.apache.servicemix.specs.jaxb-api-2.2 (2.2.0) > [ 60] [Active ] [ ] [ 10] > org.apache.servicemix.specs.jaxws-api-2.2 (2.2.0) > [ 61] [Active ] [ ] [ 10] > org.apache.servicemix.specs.saaj-api-1.3 (2.2.0) > [ 62] [Active ] [ ] [ 10] > org.apache.servicemix.specs.jsr339-api-m10 (2.2.0) > [ 63] [Active ] [ ] [ 10] javax.mail (1.4.4) > [ 64] [Active ] [ ] [ 20] stax2-api (3.1.1) > [ 65] [Active ] [ ] [ 20] woodstox-core-asl (4.1.4) > [ 66] [Active ] [ ] [ 20] > org.apache.servicemix.bundles.jaxb-impl (2.2.1.1_2) > [ 67] [Active ] [ ] [ 20] > org.apache.servicemix.bundles.jaxb-xjc (2.2.1.1_2) > [ 68] [Active ] [ ] [ 30] org.apache.ws.xmlschema.core > (2.0.3) > [ 69] [Active ] [ ] [ 30] > org.apache.servicemix.bundles.wsdl4j (1.6.2.6) > [ 70] [Active ] [ ] [ 30] > org.apache.servicemix.bundles.xmlresolver (1.2.0.5) > [ 71] [Active ] [ ] [ 30] > org.apache.servicemix.bundles.fastinfoset (1.2.7.4) > [ 72] [Active ] [Created ] [ 40] org.apache.cxf.cxf-api (2.7.1) > [ 73] [Active ] [Created ] [ 40] org.apache.cxf.cxf-rt-core > (2.7.1) > [ 74] [Active ] [ ] [ 40] > org.apache.cxf.cxf-rt-management (2.7.1) > [ 75] [Active ] [Created ] [ 40] > org.apache.cxf.karaf.cxf-karaf-commands (2.7.1) > [ 76] [Active ] [ ] [ 40] > org.apache.cxf.cxf-rt-databinding-jaxb (2.7.1) > [ 77] [Active ] [ ] [ 40] > org.apache.cxf.cxf-rt-bindings-xml (2.7.1) > [ 78] [Active ] [Created ] [ 40] > org.apache.cxf.cxf-rt-bindings-soap (2.7.1) > [ 79] [Active ] [ ] [ 30] > org.apache.servicemix.specs.activation-api-1.1 (2.1.0) > [ 80] [Active ] [ ] [ 30] > org.apache.geronimo.specs.geronimo-servlet_2.5_spec (1.1.2) > [ 81] [Active ] [ ] [ 30] javax.mail (1.4.5) > [ 82] [Active ] [ ] [ 30] > org.apache.geronimo.specs.geronimo-jta_1.1_spec (1.1.1) > [ 83] [Active ] [ ] [ 30] org.eclipse.jetty.util > (7.6.7.v20120910) > [ 84] [Active ] [ ] [ 30] org.eclipse.jetty.io > (7.6.7.v20120910) > [ 85] [Active ] [ ] [ 30] org.eclipse.jetty.http > (7.6.7.v20120910) > [ 86] [Active ] [ ] [ 30] org.eclipse.jetty.client > (7.6.7.v20120910) > [ 87] [Active ] [ ] [ 30] > org.eclipse.jetty.continuation (7.6.7.v20120910) > [ 88] [Active ] [ ] [ 30] org.eclipse.jetty.jmx > (7.6.7.v20120910) > [ 89] [Active ] [ ] [ 30] org.eclipse.jetty.server > (7.6.7.v20120910) > [ 90] [Active ] [ ] [ 30] org.eclipse.jetty.security > (7.6.7.v20120910) > [ 91] [Active ] [ ] [ 30] org.eclipse.jetty.servlet > (7.6.7.v20120910) > [ 92] [Active ] [ ] [ 30] org.eclipse.jetty.servlets > (7.6.7.v20120910) > [ 93] [Active ] [ ] [ 30] org.eclipse.jetty.xml > (7.6.7.v20120910) > [ 94] [Active ] [ ] [ 30] org.eclipse.jetty.webapp > (7.6.7.v20120910) > [ 95] [Active ] [ ] [ 30] org.eclipse.jetty.jndi > (7.6.7.v20120910) > [ 96] [Active ] [ ] [ 30] org.eclipse.jetty.plus > (7.6.7.v20120910) > [ 97] [Active ] [ ] [ 30] org.eclipse.jetty.websocket > (7.6.7.v20120910) > [ 98] [Active ] [ ] [ 30] > org.ops4j.pax.web.pax-web-api (1.1.3) > [ 99] [Active ] [ ] [ 30] > org.ops4j.pax.web.pax-web-spi (1.1.3) > [ 100] [Active ] [ ] [ 30] > org.ops4j.pax.web.pax-web-runtime (1.1.3) > [ 101] [Active ] [ ] [ 30] > org.ops4j.pax.web.pax-web-jetty (1.1.3) > [ 102] [Active ] [ ] [ 30] > org.ops4j.pax.web.pax-web-extender-whiteboard (1.1.3) > [ 103] [Active ] [Created ] [ 40] > org.apache.cxf.cxf-rt-transports-http (2.7.1) > [ 104] [Active ] [Created ] [ 40] > org.apache.cxf.cxf-rt-frontend-simple (2.7.1) > [ 105] [Active ] [Created ] [ 40] > org.apache.cxf.cxf-rt-frontend-jaxws (2.7.1) > [ 106] [Active ] [ ] [ 30] > org.codehaus.jettison.jettison (1.3.2) > [ 107] [Active ] [ ] [ 40] > org.apache.cxf.cxf-rt-rs-extension-providers (2.7.1) > [ 108] [Active ] [ ] [ 40] > org.apache.cxf.cxf-rt-rs-extension-search (2.7.1) > [ 109] [Active ] [Created ] [ 40] > org.apache.cxf.cxf-rt-frontend-jaxrs (2.7.1) > [ 110] [Active ] [ ] [ 40] > org.apache.cxf.cxf-rt-databinding-aegis (2.7.1) > [ 111] [Active ] [Created ] [ 40] > org.apache.cxf.cxf-rt-transports-http-jetty (2.7.1) > [ 112] [Active ] [ ] [ 80] osgi.enterprise > (4.2.0.201003190513) > [ 113] [Active ] [ ] [ 80] > org.apache.servicemix.bundles.jdom (1.1.0.3) > [ 114] [Active ] [ ] [ 80] > cxf-dosgi-ri-topology-manager (1.4.0.SNAPSHOT) > [ 115] [Active ] [ ] [ 80] cxf-dosgi-ri-dsw-cxf > (1.4.0.SNAPSHOT) > [ 116] [Active ] [ ] [ 80] cxf-dosgi-ri-discovery-local > (1.4.0.SNAPSHOT) > [ 117] [Active ] [ ] [ 80] > cxf-dosgi-ri-samples-greeter-interface (1.4.0.SNAPSHOT) > [ 118] [Active ] [ ] [ 80] > cxf-dosgi-ri-samples-greeter-impl (1.4.0.SNAPSHOT) > > -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
