I'm trying to get a just developed CXF application running in ServiceMix.
It is running just fine under Tomcat. For some of the methods I get a DVFactoryException from the Xerces processor. The stack trace appears below. There are no embedded jar files
in the bundles, especially not Xerces.  I noticed that trace lists
the bundle for each line in the stack then near the top of the stack there is no bundle
listed.  Is this indicative of a class loading problem?

For example I see:

at com.ge.research.sadl.reasoner.ConfigurationManager.loadConfigurationFile(ConfigurationManager.java:212)[239:reasoner:1.0.0.SNAPSHOT]

followed by:

Caused by: com.hp.hpl.jena.shared.JenaException: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:120)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:220)

See no bundle listed. I would have expected to see: [237: wrap:mvn:com.hp.hpl.jena/jena/2.6.2]. Bundle 237 does in fact export the com.hp.hpl.jena.rdf.model and its other classes. Also, bundle 239
does correctly import those classes from bundle 237.

Now, it turns out that in between these two kinds of stack trace lines that there is a call to static method in bundle 237 from bundle 239 which returns an object defined in the com.hp.hpl.jena.rdf.model package.
Would this cause a problem?

Any other ideas?
Thanks.

Barry Hathaway

----- stack trace ----
org.apache.cxf.interceptor.Fault: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:86)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_25] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_25]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:206)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:218)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:200)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)[169:org.apache.geronimo.specs.geronimo-servlet_3.0_spec:1.0] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)[110:org.eclipse.jetty.servlet:7.4.1.v20110513] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)[110:org.eclipse.jetty.servlet:7.4.1.v20110513] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[162:org.ops4j.pax.web.pax-web-jetty:1.0.3] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)[112:org.eclipse.jetty.security:7.4.1.v20110513] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:116)[162:org.ops4j.pax.web.pax-web-jetty:1.0.3] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)[110:org.eclipse.jetty.servlet:7.4.1.v20110513] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)[162:org.ops4j.pax.web.pax-web-jetty:1.0.3] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.server.Server.handle(Server.java:346)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1065)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:823)[107:org.eclipse.jetty.http:7.4.1.v20110513] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)[107:org.eclipse.jetty.http:7.4.1.v20110513] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)[109:org.eclipse.jetty.server:7.4.1.v20110513] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:531)[111:org.eclipse.jetty.io:7.4.1.v20110513] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)[111:org.eclipse.jetty.io:7.4.1.v20110513] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)[114:org.eclipse.jetty.util:7.4.1.v20110513]
    at java.lang.Thread.run(Thread.java:662)[:1.6.0_25]
Caused by: com.hp.hpl.jena.shared.JenaException: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:120)
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:220)
at com.ge.research.sadl.reasoner.ConfigurationManager.loadConfigurationFile(ConfigurationManager.java:212)[239:reasoner:1.0.0.SNAPSHOT] at com.ge.research.sadl.reasoner.ConfigurationManager.<init>(ConfigurationManager.java:156)[239:reasoner:1.0.0.SNAPSHOT] at com.ge.research.sadl.sadlserver.server.SadlServerImpl.selectServiceModel(SadlServerImpl.java:165)[265:wrap_mvn_SadlServerV2Standalone_SadlServerV2Standalone_1.0-SNAPSHOT:0] at com.ge.research.sadl.sadlserver.server.SadlServerImpl.selectServiceModel(SadlServerImpl.java:157)[265:wrap_mvn_SadlServerV2Standalone_SadlServerV2Standalone_1.0-SNAPSHOT:0] at com.ge.research.sadl.sadlserver.server.SadlServerImpl.selectServiceModel(SadlServerImpl.java:152)[265:wrap_mvn_SadlServerV2Standalone_SadlServerV2Standalone_1.0-SNAPSHOT:0] at com.ge.research.sadl.sadlserver.cxf.provider.SadlServiceProvider.selectServiceModel(SadlServiceProvider.java:344)[268:sadlserver-osgi-service:1.0.0.SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_25]
    at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_25]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43] at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
    ... 42 more
Caused by: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)[:] at org.apache.xerces.impl.dv.DTDDVFactory.getInstance(Unknown Source)[:] at org.apache.xerces.parsers.DTDConfiguration.createDatatypeValidatorFactory(Unknown Source)[:]
    at org.apache.xerces.parsers.DTDConfiguration.<init>(Unknown Source)[:]
at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)[:] at org.apache.xerces.parsers.StandardParserConfiguration.<init>(Unknown Source)[:] at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:82)
    at com.hp.hpl.jena.rdf.arp.JenaReader.<init>(JenaReader.java:62)
at sun.reflect.GeneratedConstructorAccessor269.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_25] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_25]
    at java.lang.Class.newInstance0(Class.java:355)[:1.6.0_25]
    at java.lang.Class.newInstance(Class.java:308)[:1.6.0_25]
at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:113)
    ... 55 more



Reply via email to