Hi, Did you run mvn clean install from the camel trunk (camel 2.0-SNAPSHOT) ? >From the stack trace , I can tell the code is very old :(
Willem On Tue, Jan 27, 2009 at 11:35 PM, cmoulliard <[email protected]> wrote: > > If I add to my pom.xml, the following dependency, > > <dependency> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-common-utilities</artifactId> > <version>${cxf-version}</version> > <scope>test</scope> > </dependency> > > I can go one step further but a new error is there : > > > GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé > (context > initialized) à l'instance de classe d'écoute (listener) > org.springframework.web.context.ContextLoaderListener > java.lang.NullPointerException > at > org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:50) > at > > org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:78) > at > > org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62) > at org.apache.camel.Route.getServicesForRoute(Route.java:74) > at > > org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:681) > at > > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:652) > at > > org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:166) > at > > org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:161) > at > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49) > at > > org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:96) > at > > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:115) > 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 > > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4337) > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) > at > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) > at > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) > at > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > > org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) > at > > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) > at > org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1458) > at > org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:641) > at > org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:428) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > > cmoulliard wrote: > > > > I work localy with the last snapshot of Camel. I have updated the pom.xml > > file according to your rermak but I have now a missing jar reference > error > > : > > > > ATTENTION: Failed to create application context. > > org.springframework.beans.factory.BeanCreationException: Error creating > > bean with name 'org.apache.cxf.wsdl.WSDLManager' > > defined in URL > > > [jar:file:/c:/.m2/repository/org/apache/cxf/cxf-rt-core/2.2-SNAPSHOT/cxf-rt-core-2.2-SNAPSHOT.jar!/META- > > INF/cxf/cxf.fixml]: Instantiation of bean failed; nested exception is > > org.springframework.beans.BeanInstantiationExcepti > > on: Could not instantiate bean class > > [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception; > > nested except > > ion is java.lang.NoClassDefFoundError: > org/apache/cxf/common/WSDLConstants > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowire > > CapableBeanFactory.java:883) > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutow > > ireCapableBeanFactory.java:839) > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCap > > ableBeanFactory.java:440) > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBea > > nFactory.java:409) > > at java.security.AccessController.doPrivileged(Native Method) > > at > > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab > > leBeanFactory.java:380) > > at > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) > > at > > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegis > > try.java:222) > > at > > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) > > at > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) > > at > > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) > > at > > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable > > BeanFactory.java:429) > > at > > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplic > > ationContext.java:728) > > at > > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) > > at > > > org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:88) > > at > > > org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:102) > > at > > > org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93) > > at > > > org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86) > > at > > > org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64) > > at > > > org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53) > > at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69) > > at > > org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106) > > at > > org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97) > > at > > org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:56) > > at > > > org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:78) > > at > > > org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62) > > at org.apache.camel.Route.getServicesForRoute(Route.java:74) > > at > > > org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:681) > > at > > > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:652) > > at > > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49) > > at > > > org.apache.camel.example.reportincident.ReportIncidentRoutesTest.startCamel(ReportIncidentRoutesTest.java:22) > > > > at > > > org.apache.camel.example.reportincident.ReportIncidentRoutesTest.testRendportIncident(ReportIncidentRoutesTes > > t.java:35) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at junit.framework.TestCase.runTest(TestCase.java:164) > > at junit.framework.TestCase.runBare(TestCase.java:130) > > at junit.framework.TestResult$1.protect(TestResult.java:106) > > at junit.framework.TestResult.runProtected(TestResult.java:124) > > at junit.framework.TestResult.run(TestResult.java:109) > > at junit.framework.TestCase.run(TestCase.java:120) > > at junit.framework.TestSuite.runTest(TestSuite.java:230) > > at junit.framework.TestSuite.run(TestSuite.java:225) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > > org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) > > at > > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140 > > ) > > at > > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > > at > > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > > > > Here is the pom.xml file > > > > <project xmlns="http://maven.apache.org/POM/4.0.0" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > > http://maven.apache.org/maven-v4_0_0.xsd"> > > > > <modelVersion>4.0.0</modelVersion> > > > > <groupId>com.mycompany.demo</groupId> > > <artifactId>part-five</artifactId> > > <!-- <packaging>war</packaging> --> > > > > <version>1.0-SNAPSHOT</version> > > <name>Camel ReportIncident example - part 5</name> > > > > <properties> > > <cxf-version>2.2-SNAPSHOT</cxf-version> > > <jetty-version>6.1.9</jetty-version> > > <camel-version>2.0-SNAPSHOT</camel-version> > > </properties> > > > > <dependencies> > > > > <!-- camel --> > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-core</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-spring</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-cxf</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-velocity</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-mail</artifactId> > > <version>${camel-version}</version> > > </dependency> > > > > <!-- cxf --> > > <dependency> > > <groupId>org.apache.cxf</groupId> > > <artifactId>cxf-rt-core</artifactId> > > <version>${cxf-version}</version> > > </dependency> > > > > <dependency> > > <groupId>org.apache.cxf</groupId> > > <artifactId>cxf-rt-frontend-jaxws</artifactId> > > <version>${cxf-version}</version> > > </dependency> > > > > <!-- regular http transport --> > > <dependency> > > <groupId>org.apache.cxf</groupId> > > <artifactId>cxf-rt-transports-http</artifactId> > > <version>${cxf-version}</version> > > </dependency> > > > > > > <!-- logging --> > > <dependency> > > <groupId>log4j</groupId> > > <artifactId>log4j</artifactId> > > <version>1.2.14</version> > > </dependency> > > > > <!-- cxf web container for unit testing --> > > <dependency> > > <groupId>org.apache.cxf</groupId> > > <artifactId>cxf-rt-transports-http-jetty</artifactId> > > <version>${cxf-version}</version> > > </dependency> > > > > <dependency> > > <groupId>junit</groupId> > > <artifactId>junit</artifactId> > > <version>3.8.2</version> > > <scope>test</scope> > > </dependency> > > > > <!-- unit testing mail using mock --> > > <dependency> > > <groupId>org.jvnet.mock-javamail</groupId> > > <artifactId>mock-javamail</artifactId> > > <version>1.7</version> > > <scope>test</scope> > > </dependency> > > > > <dependency> > > <groupId>org.apache.camel</groupId> > > <artifactId>camel-core</artifactId> > > <version>${camel-version}</version> > > <scope>test</scope> > > <type>test-jar</type> > > </dependency> > > > > </dependencies> > > > > <build> > > <plugins> > > > > <!-- to compile with 1.5 --> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-compiler-plugin</artifactId> > > <configuration> > > <source>1.5</source> > > <target>1.5</target> > > </configuration> > > </plugin> > > > > <!-- CXF wsdl2java generator, will plugin to the compile goal > > --> > > <plugin> > > <groupId>org.apache.cxf</groupId> > > <artifactId>cxf-codegen-plugin</artifactId> > > <version>${cxf-version}</version> > > <executions> > > <execution> > > <id>generate-sources</id> > > <phase>generate-sources</phase> > > <configuration> > > > > <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> > > <wsdlOptions> > > <wsdlOption> > > > > <wsdl>${basedir}/src/main/resources/report_incident.wsdl</wsdl> > > </wsdlOption> > > </wsdlOptions> > > </configuration> > > <goals> > > <goal>wsdl2java</goal> > > </goals> > > </execution> > > </executions> > > </plugin> > > > > <!-- so we can run mvn jetty:run --> > > <plugin> > > <groupId>org.mortbay.jetty</groupId> > > <artifactId>maven-jetty-plugin</artifactId> > > <version>${jetty-version}</version> > > </plugin> > > > > </plugins> > > > > </build> > > > > </project> > > > > > > Charles > > > > > > willem.jiang wrote: > >> > >> Can you check out the latest camel 2.0's code[1]? > >> I just fixed the issue[2] by removing the test scope from > >> cxf-rt-transports-http-jetty dependency few days ago ;) > >> > >> [1] https://svn.apache.org/repos/asf/camel/trunk/ > >> [2] > >> > http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-reportincident/pom.xml?r1=735995&r2=737352&diff_format=h > >> > >> Willem > >> > >> On Tue, Jan 27, 2009 at 10:24 PM, cmoulliard <[email protected]> > >> wrote: > >> > >>> > >>> I try to deploy the example part 5 of Claus Tutorial : > >>> > >>> > http://cwiki.apache.org/CAMEL/tutorial-example-reportincident-part5.data/part-five.zip > >>> > >>> > >>> willem.jiang wrote: > >>> > > >>> > Can you show me the camel context file ? > >>> > > >>> > Willem > >>> > > >>> > On Tue, Jan 27, 2009 at 10:09 PM, cmoulliard <[email protected]> > >>> wrote: > >>> > > >>> >> > >>> >> Hi, > >>> >> > >>> >> The following error is reported when a CXF/Camel project is deployed > >>> on > >>> >> Tomcat v6. > >>> >> > >>> >> Caused by: org.apache.cxf.BusException: No DestinationFactory was > >>> found > >>> >> for > >>> >> the namespace http://schemas.xmlsoap.org/soap/http. > >>> >> at > >>> >> > >>> >> > >>> > org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:115) > >>> >> at > >>> >> > >>> org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:85) > >>> >> at > >>> org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69) > >>> >> at > >>> >> > >>> >> > >>> > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:118) > >>> >> > >>> >> Someone knows how to solve this issue ? > >>> >> > >>> >> > >>> >> > >>> >> ----- > >>> >> Charles Moulliard > >>> >> SOA Architect > >>> >> > >>> >> My Blog : http://cmoulliard.blogspot.com/ > >>> >> http://cmoulliard.blogspot.com/ > >>> >> -- > >>> >> View this message in context: > >>> >> > >>> > http://www.nabble.com/Error-when-cxf2.1.3-is-deployed-on-Tomcat-v6-%21%21%21-tp21686017p21686017.html > >>> >> Sent from the cxf-user mailing list archive at Nabble.com. > >>> >> > >>> >> > >>> > > >>> > > >>> > >>> > >>> ----- > >>> Charles Moulliard > >>> SOA Architect > >>> > >>> My Blog : http://cmoulliard.blogspot.com/ > >>> http://cmoulliard.blogspot.com/ > >>> -- > >>> View this message in context: > >>> > http://www.nabble.com/Error-when-cxf2.1.3-is-deployed-on-Tomcat-v6-%21%21%21-tp21686017p21686305.html > >>> Sent from the cxf-user mailing list archive at Nabble.com. > >>> > >>> > >> > >> > > > > > > > ----- > Charles Moulliard > SOA Architect > > My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/ > -- > View this message in context: > http://www.nabble.com/Error-when-cxf2.1.3-is-deployed-on-Tomcat-v6-%21%21%21-tp21686017p21687697.html > Sent from the cxf-user mailing list archive at Nabble.com. > >
