/me looks sheepishly at his feet...

I forgot to add to my spring context:

   <import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-jaxrs- binding.xml" />
   <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

Thanks again Sergey!


Regards,
Alan

On Mar 20, 2008, at 11:07 AM, Alan D. Cabrera wrote:


On Mar 20, 2008, at 7:05 AM, Sergey Beryozkin wrote:

Hi

What version of CXF you're using ? This schema is located inside a cxf-rt-frontend-jaxrs jar...
May be that jar is not available on a classpath ?


Thanks Sergey.  That was it.  Now, however, for these POM entries

      <dependency>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-api</artifactId>
      </dependency>

      <dependency>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-common-utilities</artifactId>
      </dependency>

      <dependency>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-rt-frontend-jaxrs</artifactId>
      </dependency>

      <dependency>
          <groupId>org.apache.cxf</groupId>
          <artifactId>cxf-rt-transports-http</artifactId>
      </dependency>

I get this error


[ERROR] ContextLoader - Context initialization failed <org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proTools': Invocation of init method failed; nested exception is org .apache .cxf .service .factory .ServiceConstructionException >org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'proTools': Invocation of init method failed; nested exception is org.apache.cxf.service.factory.ServiceConstructionException
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at org .apache .cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java: 102)
        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:585)
at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at org .springframework .beans .factory .support .AbstractAutowireCapableBeanFactory .createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:251) at org .springframework .beans .factory .support .DefaultSingletonBeanRegistry .getSingleton(DefaultSingletonBeanRegistry.java:156) at org .springframework .beans .factory .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org .springframework .beans .factory .support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org .springframework .beans .factory .support .DefaultListableBeanFactory .preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org .springframework .context .support .AbstractApplicationContext.refresh(AbstractApplicationContext.java: 352) at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:244) at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:187) at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:49) at org .mortbay .jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at org .mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 40) at org .mortbay .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org .mortbay .jetty .handler .ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 40) at org .mortbay .jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 40) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java: 117)
        at org.mortbay.jetty.Server.doStart(Server.java:217)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 40) at org .mortbay .jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) at org .mortbay .jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:345) at org .mortbay .jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:286) at org .mortbay .jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java: 204) at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 447) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 539) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 463) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:278) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: 315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/wsdl/soap/http. at org .apache .cxf .transport .DestinationFactoryManagerImpl .getDestinationFactory(DestinationFactoryManagerImpl.java:106) at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:85)
        at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:69)
at org .apache .cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java: 82)
        ... 54 more




Reply via email to