Can you try to set the class loader parent first?
It looks like there are some issue loading the sun jaxp dom module.

On 8/24/11 1:42 AM, jackkirsten wrote:
Hi, I'm using WebSphere 6.1.0.29 on AIX trying to run Camel 2.6 on it.  I'm
getting following exceptions when the app server starts. It seems like I
have some conflicts with xerces ml-apis jars.

[8/23/11 13:29:52:848 EDT] 00000016 WebApp        E   Exception caught while
initializing context
org.apache.camel.RuntimeCamelException:
org.apache.camel.FailedToCreateRouteException: Failed to create route route1
at:>>>  Transacted[ref:null]<<<  in route:
Route[[From[jmsStartCamel:StartCamelProcess]] ->  [OnExceptio... becaus
e of 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
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)
         at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
         at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:237)
         at
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
         at
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
         at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
         at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
         at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
         at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
         at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
         at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
         at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
         at
com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:653)
         at
com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:370)
         at
com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:293)
         at
com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:93)
         at
com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:162)
         at
com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:673)
         at
com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:626)
         at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
         at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
         at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1250)
         at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1140)
         at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
         at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:819)
         at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
         at
com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2100)
         at
com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)


I'm using these versions of jar files in WEB-INF/lib folder.

xercesImpl-2.9.1.jar
xml-apis-1.3.04.jar
jaxb-xercesImpl-1.5.jar

From the class loader stand-point, I have set to PARENT_LAST (i.e.,
application first).

How do I fix this xpathfactory error?  Thanks for your help.

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-No-XPathfactory-Implementation-error-tp4727601p4727601.html
Sent from the Camel - Users mailing list archive at Nabble.com.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to