camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhushand <bhushan_bde...@yahoo.co.in>
Subject getting error while deploying camel-spring integration in tomcat 6.0
Date Wed, 31 Jul 2013 09:25:45 GMT
Hello All
          I am trying to deploy camel-spring application in tomcat 6.0. We
have camel-spring integration. I am using camel 2.9.2, cxf 2.6.1, spring
3.0.7. When I try to deploy application, it was showing me different errors.
I searched for the errors and saw few post saying to include jars in
classpath of tomcat. I included jars, that solved my few problems but now I
am getting following error.(I tried with camle 2.10.0 also, but same error) 


SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from ServletContext resource
[/WEB-INF/camel-config.xml]; nested exception is
java.lang.NullPointerException
       at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
       at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
       at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
       at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
       at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
       at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
       at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
       at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
       at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
       at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
       at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
       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
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
       at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
       at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
       at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
       at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
       at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
       at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
       at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
       at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
       at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
       at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
       at
org.apache.catalina.core.StandardService.start(StandardService.java:525)
       at
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NullPointerException
       at javax.xml.bind.ContextFinder.find(Unknown Source)
       at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
       at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
       at
org.apache.camel.spring.handler.CamelNamespaceHandler.createJaxbContext(CamelNamespaceHandler.java:187)
       at
org.apache.camel.spring.handler.CamelNamespaceHandler.getJaxbContext(CamelNamespaceHandler.java:174)
       at
org.apache.camel.spring.handler.CamelNamespaceHandler$CamelContextBeanDefinitionParser.doParse(CamelNamespaceHandler.java:302)
       at
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:84)
       at
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:56)
       at
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
       at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
       at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
       at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
       at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
       at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
       at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
       ... 37 more


          I have included following jars in classpath of tomcat under
bootstrap spring.jar,servelet-api, commons-logging, cxf,
slf4j-simple,slf4j-api,jasper,jasper-el,jasper-api,tomcat-juli,camel-core,camel-cxf,camel-cxf-transport,camel-http,camel-spring,activation,stax-api,jaxb-xjc,jaxb-api,jaxb-impl
          Please help me to resolve the error.





Thanks
Bhushan



--
View this message in context: http://camel.465427.n5.nabble.com/getting-error-while-deploying-camel-spring-integration-in-tomcat-6-0-tp5736551.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message