You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Lars Ivar Igesund <la...@igesund.net> on 2009/01/09 00:53:32 UTC

ServiceConstructionException with camel-cxf

Hi!

With the help of Willem and Claus I was able to create a web service via 
camel-cxf. It works good on my local machine, but when I deployed the 
application to the server I got the following failure:

INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp: 
org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve 
a binding for http://schemas.xmlsoap.org/wsdl/soap/
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:310)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:154)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:178)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:114)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:164)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:77)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.Route.getServicesForRoute(Route.java:73)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:555)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:530)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:384)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at 
java.lang.reflect.Method.invoke(Method.java:597)


I hope you can give me further help on this.

Best,
Lars Ivar Igesund

Re: ServiceConstructionException with camel-cxf

Posted by Lars Ivar Igesund <la...@igesund.net>.
Fredag 9. januar 2009 02:20:41 skreiv Willem Jiang:
> Oh, now you can try to replace
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> with
> <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
>
> If you don't use the Servlet transport :)

Now we are getting somewhere! It works when deployed on my local now, it takes 
some time to upload to main server though so will tell later if it fails there 
:)

Thanks again!

Lars Ivar

>
> Willem
>
> Lars Ivar Igesund wrote:
> > Fredag 9. januar 2009 01:58:35 skreiv Willem Jiang:
> >> Hi Lars,
> >> Did you use Servlet transport for the camel-cxf endpoint? Or did you
> >> deploy camel route into a application server as a war?
> >
> > Neither - there is a main where the spring config is read.
> >
> >> I think you may need to add these lines into the spring configuration
> >> file. <import resource="classpath:META-INF/cxf/cxf.xml"/>
> >>   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> >>   <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> >
> > This helped with the binding exception - the application now seems to
> > start normally. However, I'm not able to connect to the webservice.
> >
> > Lars Ivar
> >
> >> Willem
> >>
> >> Lars Ivar Igesund wrote:
> >>> Yes,
> >>>
> >>> I was able to find out that that was a possible cause, but as far as I
> >>> can tell it is there.
> >>>
> >>> Best,
> >>> Lars Ivar
> >>>
> >>> Fredag 9. januar 2009 01:20:22 skreiv William Tam:
> >>>> Is this artifact in your classpath?
> >>>>
> >>>> <groupId>org.apache.cxf</groupId>
> >>>> <artifactId>cxf-rt-bindings-soap</artifactId>
> >>>>
> >>>> On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund
> >>>> <la...@igesund.net>
> >>>
> >>> wrote:
> >>>>> Hi!
> >>>>>
> >>>>> With the help of Willem and Claus I was able to create a web service
> >>>>> via camel-cxf. It works good on my local machine, but when I deployed
> >>>>> the application to the server I got the following failure:
> >>>>>
> >>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
> >>>>> org.apache.cxf.service.factory.ServiceConstructionException: Could
> >>>>> not resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
> >>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindin
> >>>>>gI nf o(AbstractWSDLBasedEndpointFactory.java:310) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsSe
> >>>>>rv er FactoryBean.java:154) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp:     at
> >>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoi
> >>>>>nt In fo(AbstractWSDLBasedEndpointFactory.java:178) INFO   | jvm 1   
> >>>>> | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoi
> >>>>>nt (A bstractWSDLBasedEndpointFactory.java:102) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.ja
> >>>>>va
> >>>>>
> >>>>> :1 14) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
> >>>>>
> >>>>> at
> >>>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactory
> >>>>>Be an .java:164) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp: at
> >>>>> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:10
> >>>>>9) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint
> >>>>>.j av a:77) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp: at
> >>>>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrive
> >>>>>nC on sumerRoute.java:62) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp:     at
> >>>>> org.apache.camel.Route.getServicesForRoute(Route.java:73)
> >>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelCon
> >>>>>te xt .java:555) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp: at
> >>>>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext
> >>>>>.j av a:530) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp: at
> >>>>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext
> >>>>>.j av a:149) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp: at
> >>>>> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> >>>>> INFO
> >>>>>
> >>>>> | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>>
> >>>>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringC
> >>>>>am el Context.java:103) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp:     at
> >>>>> org.springframework.context.event.SimpleApplicationEventMulticaster$1
> >>>>>.r un (SimpleApplicationEventMulticaster.java:78) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecut
> >>>>>or .j ava:49) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp: at
> >>>>> org.springframework.context.event.SimpleApplicationEventMulticaster.m
> >>>>>ul ti castEvent(SimpleApplicationEventMulticaster.java:76) INFO   |
> >>>>> jvm 1
> >>>>>
> >>>>>  | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>>
> >>>>> org.springframework.context.support.AbstractApplicationContext.publis
> >>>>>hE ve nt(AbstractApplicationContext.java:275) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.springframework.context.support.AbstractApplicationContext.finish
> >>>>>Re fr esh(AbstractApplicationContext.java:737) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.springframework.context.support.AbstractApplicationContext.refres
> >>>>>h( Ab stractApplicationContext.java:384) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26
> >>>>>
> >>>>> | WrapperSimpleApp:     at
> >>>>>
> >>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<i
> >>>>>ni t> (ClassPathXmlApplicationContext.java:139) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<i
> >>>>>ni t> (ClassPathXmlApplicationContext.java:83) INFO   | jvm 1    |
> >>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
> >>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> >>>>>ja va
> >>>>>
> >>>>> :39) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> >>>>> : at
> >>>>>
> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> >>>>>so rI mpl.java:25) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>>>> WrapperSimpleApp: at java.lang.reflect.Method.invoke(Method.java:597)
> >>>>>
> >>>>>
> >>>>> I hope you can give me further help on this.
> >>>>>
> >>>>> Best,
> >>>>> Lars Ivar Igesund


Re: ServiceConstructionException with camel-cxf

Posted by Willem Jiang <wi...@gmail.com>.
Oh, now you can try to replace
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
with
<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>

If you don't use the Servlet transport :)

Willem

Lars Ivar Igesund wrote:
> Fredag 9. januar 2009 01:58:35 skreiv Willem Jiang:
>> Hi Lars,
>> Did you use Servlet transport for the camel-cxf endpoint? Or did you
>> deploy camel route into a application server as a war?
> 
> Neither - there is a main where the spring config is read.
> 
>> I think you may need to add these lines into the spring configuration file.
>>   <import resource="classpath:META-INF/cxf/cxf.xml"/>
>>   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
>>   <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
> 
> This helped with the binding exception - the application now seems to start 
> normally. However, I'm not able to connect to the webservice.
> 
> Lars Ivar
> 
> 
>> Willem
>>
>> Lars Ivar Igesund wrote:
>>> Yes,
>>>
>>> I was able to find out that that was a possible cause, but as far as I
>>> can tell it is there.
>>>
>>> Best,
>>> Lars Ivar
>>>
>>> Fredag 9. januar 2009 01:20:22 skreiv William Tam:
>>>> Is this artifact in your classpath?
>>>>
>>>> <groupId>org.apache.cxf</groupId>
>>>> <artifactId>cxf-rt-bindings-soap</artifactId>
>>>>
>>>> On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net>
>>> wrote:
>>>>> Hi!
>>>>>
>>>>> With the help of Willem and Claus I was able to create a web service
>>>>> via camel-cxf. It works good on my local machine, but when I deployed
>>>>> the application to the server I got the following failure:
>>>>>
>>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
>>>>> org.apache.cxf.service.factory.ServiceConstructionException: Could not
>>>>> resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
>>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingI
>>>>> nf o(AbstractWSDLBasedEndpointFactory.java:310) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServ
>>>>> er FactoryBean.java:154) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>>> WrapperSimpleApp:     at
>>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint
>>>>> In fo(AbstractWSDLBasedEndpointFactory.java:178) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint
>>>>> (A bstractWSDLBasedEndpointFactory.java:102) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java
>>>>> :1 14) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
>>>>> at
>>>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBe
>>>>> an .java:164) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>>> WrapperSimpleApp: at
>>>>> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
>>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.j
>>>>> av a:77) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
>>>>> at
>>>>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenC
>>>>> on sumerRoute.java:62) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>>> WrapperSimpleApp:     at
>>>>> org.apache.camel.Route.getServicesForRoute(Route.java:73)
>>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelConte
>>>>> xt .java:555) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>>> WrapperSimpleApp: at
>>>>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.j
>>>>> av a:530) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:   
>>>>>  at
>>>>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.j
>>>>> av a:149) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:   
>>>>>  at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>>>>> INFO
>>>>>
>>>>> | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>>
>>>>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCam
>>>>> el Context.java:103) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>>> WrapperSimpleApp:     at
>>>>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.r
>>>>> un (SimpleApplicationEventMulticaster.java:78) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor
>>>>> .j ava:49) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
>>>>>   at
>>>>> org.springframework.context.event.SimpleApplicationEventMulticaster.mul
>>>>> ti castEvent(SimpleApplicationEventMulticaster.java:76) INFO   | jvm 1  
>>>>>  | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.springframework.context.support.AbstractApplicationContext.publishE
>>>>> ve nt(AbstractApplicationContext.java:275) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.springframework.context.support.AbstractApplicationContext.finishRe
>>>>> fr esh(AbstractApplicationContext.java:737) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.springframework.context.support.AbstractApplicationContext.refresh(
>>>>> Ab stractApplicationContext.java:384) INFO   | jvm 1    | 2009/01/09
>>>>> 00:18:26
>>>>>
>>>>> | WrapperSimpleApp:     at
>>>>>
>>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<ini
>>>>> t> (ClassPathXmlApplicationContext.java:139) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<ini
>>>>> t> (ClassPathXmlApplicationContext.java:83) INFO   | jvm 1    |
>>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
>>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>>>>> va
>>>>>
>>>>> :39) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>>>
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>>>>> rI mpl.java:25) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>>> WrapperSimpleApp: at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>
>>>>>
>>>>> I hope you can give me further help on this.
>>>>>
>>>>> Best,
>>>>> Lars Ivar Igesund
> 
> 


Re: ServiceConstructionException with camel-cxf

Posted by Lars Ivar Igesund <la...@igesund.net>.
Fredag 9. januar 2009 01:58:35 skreiv Willem Jiang:
> Hi Lars,
> Did you use Servlet transport for the camel-cxf endpoint? Or did you
> deploy camel route into a application server as a war?

Neither - there is a main where the spring config is read.

> I think you may need to add these lines into the spring configuration file.
>   <import resource="classpath:META-INF/cxf/cxf.xml"/>
>   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
>   <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

This helped with the binding exception - the application now seems to start 
normally. However, I'm not able to connect to the webservice.

Lars Ivar


> Willem
>
> Lars Ivar Igesund wrote:
> > Yes,
> >
> > I was able to find out that that was a possible cause, but as far as I
> > can tell it is there.
> >
> > Best,
> > Lars Ivar
> >
> > Fredag 9. januar 2009 01:20:22 skreiv William Tam:
> >> Is this artifact in your classpath?
> >>
> >> <groupId>org.apache.cxf</groupId>
> >> <artifactId>cxf-rt-bindings-soap</artifactId>
> >>
> >> On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net>
> >
> > wrote:
> >>> Hi!
> >>>
> >>> With the help of Willem and Claus I was able to create a web service
> >>> via camel-cxf. It works good on my local machine, but when I deployed
> >>> the application to the server I got the following failure:
> >>>
> >>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
> >>> org.apache.cxf.service.factory.ServiceConstructionException: Could not
> >>> resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
> >>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingI
> >>>nf o(AbstractWSDLBasedEndpointFactory.java:310) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServ
> >>>er FactoryBean.java:154) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>> WrapperSimpleApp:     at
> >>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint
> >>>In fo(AbstractWSDLBasedEndpointFactory.java:178) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint
> >>>(A bstractWSDLBasedEndpointFactory.java:102) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java
> >>>:1 14) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> >>> at
> >>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBe
> >>>an .java:164) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>> WrapperSimpleApp: at
> >>> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
> >>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.j
> >>>av a:77) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> >>> at
> >>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenC
> >>>on sumerRoute.java:62) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>> WrapperSimpleApp:     at
> >>> org.apache.camel.Route.getServicesForRoute(Route.java:73)
> >>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelConte
> >>>xt .java:555) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>> WrapperSimpleApp: at
> >>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.j
> >>>av a:530) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:   
> >>>  at
> >>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.j
> >>>av a:149) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:   
> >>>  at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> >>> INFO
> >>>
> >>> | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>
> >>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCam
> >>>el Context.java:103) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>> WrapperSimpleApp:     at
> >>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.r
> >>>un (SimpleApplicationEventMulticaster.java:78) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor
> >>>.j ava:49) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
> >>>   at
> >>> org.springframework.context.event.SimpleApplicationEventMulticaster.mul
> >>>ti castEvent(SimpleApplicationEventMulticaster.java:76) INFO   | jvm 1  
> >>>  | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.springframework.context.support.AbstractApplicationContext.publishE
> >>>ve nt(AbstractApplicationContext.java:275) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.springframework.context.support.AbstractApplicationContext.finishRe
> >>>fr esh(AbstractApplicationContext.java:737) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.springframework.context.support.AbstractApplicationContext.refresh(
> >>>Ab stractApplicationContext.java:384) INFO   | jvm 1    | 2009/01/09
> >>> 00:18:26
> >>>
> >>> | WrapperSimpleApp:     at
> >>>
> >>> org.springframework.context.support.ClassPathXmlApplicationContext.<ini
> >>>t> (ClassPathXmlApplicationContext.java:139) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> org.springframework.context.support.ClassPathXmlApplicationContext.<ini
> >>>t> (ClassPathXmlApplicationContext.java:83) INFO   | jvm 1    |
> >>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
> >>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> >>>va
> >>>
> >>> :39) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >>>
> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> >>>rI mpl.java:25) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >>> WrapperSimpleApp: at java.lang.reflect.Method.invoke(Method.java:597)
> >>>
> >>>
> >>> I hope you can give me further help on this.
> >>>
> >>> Best,
> >>> Lars Ivar Igesund


Re: ServiceConstructionException with camel-cxf

Posted by Willem Jiang <wi...@gmail.com>.
Hi Lars,
Did you use Servlet transport for the camel-cxf endpoint? Or did you
deploy camel route into a application server as a war?
I think you may need to add these lines into the spring configuration file.
  <import resource="classpath:META-INF/cxf/cxf.xml"/>
  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
  <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

Willem

Lars Ivar Igesund wrote:
> Yes,
> 
> I was able to find out that that was a possible cause, but as far as I can 
> tell it is there.
> 
> Best,
> Lars Ivar
> 
> Fredag 9. januar 2009 01:20:22 skreiv William Tam:
>> Is this artifact in your classpath?
>>
>> <groupId>org.apache.cxf</groupId>
>> <artifactId>cxf-rt-bindings-soap</artifactId>
>>
>> On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net> 
> wrote:
>>> Hi!
>>>
>>> With the help of Willem and Claus I was able to create a web service via
>>> camel-cxf. It works good on my local machine, but when I deployed the
>>> application to the server I got the following failure:
>>>
>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
>>> org.apache.cxf.service.factory.ServiceConstructionException: Could not
>>> resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInf
>>> o(AbstractWSDLBasedEndpointFactory.java:310) INFO   | jvm 1    |
>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServer
>>> FactoryBean.java:154) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>> WrapperSimpleApp:     at
>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointIn
>>> fo(AbstractWSDLBasedEndpointFactory.java:178) INFO   | jvm 1    |
>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(A
>>> bstractWSDLBasedEndpointFactory.java:102) INFO   | jvm 1    | 2009/01/09
>>> 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:1
>>> 14) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean
>>> .java:164) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
>>> at
>>> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.jav
>>> a:77) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenCon
>>> sumerRoute.java:62) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>> WrapperSimpleApp:     at
>>> org.apache.camel.Route.getServicesForRoute(Route.java:73)
>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext
>>> .java:555) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
>>> at
>>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.jav
>>> a:530) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.jav
>>> a:149) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47) INFO  
>>> | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamel
>>> Context.java:103) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>> WrapperSimpleApp:     at
>>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run
>>> (SimpleApplicationEventMulticaster.java:78) INFO   | jvm 1    | 2009/01/09
>>> 00:18:26 | WrapperSimpleApp:     at
>>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.j
>>> ava:49) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.springframework.context.event.SimpleApplicationEventMulticaster.multi
>>> castEvent(SimpleApplicationEventMulticaster.java:76) INFO   | jvm 1    |
>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> org.springframework.context.support.AbstractApplicationContext.publishEve
>>> nt(AbstractApplicationContext.java:275) INFO   | jvm 1    | 2009/01/09
>>> 00:18:26 | WrapperSimpleApp:     at
>>> org.springframework.context.support.AbstractApplicationContext.finishRefr
>>> esh(AbstractApplicationContext.java:737) INFO   | jvm 1    | 2009/01/09
>>> 00:18:26 | WrapperSimpleApp:     at
>>> org.springframework.context.support.AbstractApplicationContext.refresh(Ab
>>> stractApplicationContext.java:384) INFO   | jvm 1    | 2009/01/09 00:18:26
>>> | WrapperSimpleApp:     at
>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>
>>> (ClassPathXmlApplicationContext.java:139) INFO   | jvm 1    | 2009/01/09
>>> 00:18:26 | WrapperSimpleApp:     at
>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>
>>> (ClassPathXmlApplicationContext.java:83) INFO   | jvm 1    | 2009/01/09
>>> 00:18:26 | WrapperSimpleApp:     at
>>> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
>>> :39) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
>>> mpl.java:25) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
>>>   at java.lang.reflect.Method.invoke(Method.java:597)
>>>
>>>
>>> I hope you can give me further help on this.
>>>
>>> Best,
>>> Lars Ivar Igesund
> 
> 


Re: ServiceConstructionException with camel-cxf

Posted by Lars Ivar Igesund <la...@igesund.net>.
Yes,

I was able to find out that that was a possible cause, but as far as I can 
tell it is there.

Best,
Lars Ivar

Fredag 9. januar 2009 01:20:22 skreiv William Tam:
> Is this artifact in your classpath?
>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-bindings-soap</artifactId>
>
> On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net> 
wrote:
> > Hi!
> >
> > With the help of Willem and Claus I was able to create a web service via
> > camel-cxf. It works good on my local machine, but when I deployed the
> > application to the server I got the following failure:
> >
> > INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
> > org.apache.cxf.service.factory.ServiceConstructionException: Could not
> > resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
> > INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInf
> >o(AbstractWSDLBasedEndpointFactory.java:310) INFO   | jvm 1    |
> > 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServer
> >FactoryBean.java:154) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> > WrapperSimpleApp:     at
> > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointIn
> >fo(AbstractWSDLBasedEndpointFactory.java:178) INFO   | jvm 1    |
> > 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(A
> >bstractWSDLBasedEndpointFactory.java:102) INFO   | jvm 1    | 2009/01/09
> > 00:18:26 | WrapperSimpleApp:     at
> > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:1
> >14) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean
> >.java:164) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> > at
> > org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
> > INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.jav
> >a:77) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenCon
> >sumerRoute.java:62) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> > WrapperSimpleApp:     at
> > org.apache.camel.Route.getServicesForRoute(Route.java:73)
> > INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext
> >.java:555) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> > at
> > org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.jav
> >a:530) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.jav
> >a:149) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47) INFO  
> > | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamel
> >Context.java:103) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> > WrapperSimpleApp:     at
> > org.springframework.context.event.SimpleApplicationEventMulticaster$1.run
> >(SimpleApplicationEventMulticaster.java:78) INFO   | jvm 1    | 2009/01/09
> > 00:18:26 | WrapperSimpleApp:     at
> > org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.j
> >ava:49) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.springframework.context.event.SimpleApplicationEventMulticaster.multi
> >castEvent(SimpleApplicationEventMulticaster.java:76) INFO   | jvm 1    |
> > 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > org.springframework.context.support.AbstractApplicationContext.publishEve
> >nt(AbstractApplicationContext.java:275) INFO   | jvm 1    | 2009/01/09
> > 00:18:26 | WrapperSimpleApp:     at
> > org.springframework.context.support.AbstractApplicationContext.finishRefr
> >esh(AbstractApplicationContext.java:737) INFO   | jvm 1    | 2009/01/09
> > 00:18:26 | WrapperSimpleApp:     at
> > org.springframework.context.support.AbstractApplicationContext.refresh(Ab
> >stractApplicationContext.java:384) INFO   | jvm 1    | 2009/01/09 00:18:26
> > | WrapperSimpleApp:     at
> > org.springframework.context.support.ClassPathXmlApplicationContext.<init>
> >(ClassPathXmlApplicationContext.java:139) INFO   | jvm 1    | 2009/01/09
> > 00:18:26 | WrapperSimpleApp:     at
> > org.springframework.context.support.ClassPathXmlApplicationContext.<init>
> >(ClassPathXmlApplicationContext.java:83) INFO   | jvm 1    | 2009/01/09
> > 00:18:26 | WrapperSimpleApp:     at
> > com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
> > INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> >:39) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> >mpl.java:25) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
> >   at java.lang.reflect.Method.invoke(Method.java:597)
> >
> >
> > I hope you can give me further help on this.
> >
> > Best,
> > Lars Ivar Igesund


Re: ServiceConstructionException with camel-cxf

Posted by Willem Jiang <wi...@gmail.com>.
Just as I thought in my last mail (there some Springs).
If that does not work, it could be another issue which caused by the
maven shade plugin.

There are some META-INF files in cxf-* module for auto-discoverying, you
may need to do some addition work to combine this file together.
If so , please use the bundle jar which already does that combining for you.

<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>

You may also need to exclude the other cxf-modules before adding the
cxf-bundle dependency.

Willem
Lars Ivar Igesund wrote:
> Fredag 9. januar 2009 01:47:48 skreiv Willem Jiang:
>> Since CXF has lots pluggable components, you need to make sure cxf-core
>> can load the essential modules for starting up. Please check the
>> cxf-rt-bindings-soap jar in your class path as William suggested.
>>
>> If you are tired to maintain them, you can use the bundle jar (cxf-bundle).
> 
> I have a maven project that depends on camel-cxf, and the cxf deps are 
> transitive through that. Now, it runs fine through eclipse, but not when 
> deployed. Since the application uses some spring (but not for the cxf part), 
> the maven shade plugin is in use. Could this affect anything?
> 
> Lars Ivar
> 
>> Willem
>>
>> William Tam wrote:
>>> Is this artifact in your classpath?
>>>
>>> <groupId>org.apache.cxf</groupId>
>>> <artifactId>cxf-rt-bindings-soap</artifactId>
>>>
>>> On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net> 
> wrote:
>>>> Hi!
>>>>
>>>> With the help of Willem and Claus I was able to create a web service via
>>>> camel-cxf. It works good on my local machine, but when I deployed the
>>>> application to the server I got the following failure:
>>>>
>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
>>>> org.apache.cxf.service.factory.ServiceConstructionException: Could not
>>>> resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingIn
>>>> fo(AbstractWSDLBasedEndpointFactory.java:310) INFO   | jvm 1    |
>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServe
>>>> rFactoryBean.java:154) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>> WrapperSimpleApp:     at
>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointI
>>>> nfo(AbstractWSDLBasedEndpointFactory.java:178) INFO   | jvm 1    |
>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
>>>> AbstractWSDLBasedEndpointFactory.java:102) INFO   | jvm 1    | 2009/01/09
>>>> 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
>>>> 114) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBea
>>>> n.java:164) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
>>>>   at
>>>> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.ja
>>>> va:77) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenCo
>>>> nsumerRoute.java:62) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>> WrapperSimpleApp:     at
>>>> org.apache.camel.Route.getServicesForRoute(Route.java:73)
>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContex
>>>> t.java:555) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
>>>>   at
>>>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.ja
>>>> va:530) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
>>>> at
>>>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.ja
>>>> va:149) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
>>>> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCame
>>>> lContext.java:103) INFO   | jvm 1    | 2009/01/09 00:18:26 |
>>>> WrapperSimpleApp:     at
>>>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.ru
>>>> n(SimpleApplicationEventMulticaster.java:78) INFO   | jvm 1    |
>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.
>>>> java:49) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
>>>> at
>>>> org.springframework.context.event.SimpleApplicationEventMulticaster.mult
>>>> icastEvent(SimpleApplicationEventMulticaster.java:76) INFO   | jvm 1    |
>>>> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> org.springframework.context.support.AbstractApplicationContext.publishEv
>>>> ent(AbstractApplicationContext.java:275) INFO   | jvm 1    | 2009/01/09
>>>> 00:18:26 | WrapperSimpleApp:     at
>>>> org.springframework.context.support.AbstractApplicationContext.finishRef
>>>> resh(AbstractApplicationContext.java:737) INFO   | jvm 1    | 2009/01/09
>>>> 00:18:26 | WrapperSimpleApp:     at
>>>> org.springframework.context.support.AbstractApplicationContext.refresh(A
>>>> bstractApplicationContext.java:384) INFO   | jvm 1    | 2009/01/09
>>>> 00:18:26 | WrapperSimpleApp:     at
>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init
>>>>> (ClassPathXmlApplicationContext.java:139) INFO   | jvm 1    | 2009/01/09
>>>> 00:18:26 | WrapperSimpleApp:     at
>>>> org.springframework.context.support.ClassPathXmlApplicationContext.<init
>>>>> (ClassPathXmlApplicationContext.java:83) INFO   | jvm 1    | 2009/01/09
>>>> 00:18:26 | WrapperSimpleApp:     at
>>>> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
>>>> a:39) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
>>>> Impl.java:25) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
>>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>>
>>>>
>>>> I hope you can give me further help on this.
>>>>
>>>> Best,
>>>> Lars Ivar Igesund
> 
> 


Re: ServiceConstructionException with camel-cxf

Posted by Lars Ivar Igesund <la...@igesund.net>.
Fredag 9. januar 2009 01:47:48 skreiv Willem Jiang:
> Since CXF has lots pluggable components, you need to make sure cxf-core
> can load the essential modules for starting up. Please check the
> cxf-rt-bindings-soap jar in your class path as William suggested.
>
> If you are tired to maintain them, you can use the bundle jar (cxf-bundle).

I have a maven project that depends on camel-cxf, and the cxf deps are 
transitive through that. Now, it runs fine through eclipse, but not when 
deployed. Since the application uses some spring (but not for the cxf part), 
the maven shade plugin is in use. Could this affect anything?

Lars Ivar

>
> Willem
>
> William Tam wrote:
> > Is this artifact in your classpath?
> >
> > <groupId>org.apache.cxf</groupId>
> > <artifactId>cxf-rt-bindings-soap</artifactId>
> >
> > On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net> 
wrote:
> >> Hi!
> >>
> >> With the help of Willem and Claus I was able to create a web service via
> >> camel-cxf. It works good on my local machine, but when I deployed the
> >> application to the server I got the following failure:
> >>
> >> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
> >> org.apache.cxf.service.factory.ServiceConstructionException: Could not
> >> resolve a binding for http://schemas.xmlsoap.org/wsdl/soap/
> >> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingIn
> >>fo(AbstractWSDLBasedEndpointFactory.java:310) INFO   | jvm 1    |
> >> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServe
> >>rFactoryBean.java:154) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >> WrapperSimpleApp:     at
> >> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointI
> >>nfo(AbstractWSDLBasedEndpointFactory.java:178) INFO   | jvm 1    |
> >> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
> >>AbstractWSDLBasedEndpointFactory.java:102) INFO   | jvm 1    | 2009/01/09
> >> 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:
> >>114) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBea
> >>n.java:164) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
> >>   at
> >> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
> >> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.ja
> >>va:77) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenCo
> >>nsumerRoute.java:62) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >> WrapperSimpleApp:     at
> >> org.apache.camel.Route.getServicesForRoute(Route.java:73)
> >> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContex
> >>t.java:555) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:  
> >>   at
> >> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.ja
> >>va:530) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> >> at
> >> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.ja
> >>va:149) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> >> at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> >> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCame
> >>lContext.java:103) INFO   | jvm 1    | 2009/01/09 00:18:26 |
> >> WrapperSimpleApp:     at
> >> org.springframework.context.event.SimpleApplicationEventMulticaster$1.ru
> >>n(SimpleApplicationEventMulticaster.java:78) INFO   | jvm 1    |
> >> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.
> >>java:49) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:    
> >> at
> >> org.springframework.context.event.SimpleApplicationEventMulticaster.mult
> >>icastEvent(SimpleApplicationEventMulticaster.java:76) INFO   | jvm 1    |
> >> 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> org.springframework.context.support.AbstractApplicationContext.publishEv
> >>ent(AbstractApplicationContext.java:275) INFO   | jvm 1    | 2009/01/09
> >> 00:18:26 | WrapperSimpleApp:     at
> >> org.springframework.context.support.AbstractApplicationContext.finishRef
> >>resh(AbstractApplicationContext.java:737) INFO   | jvm 1    | 2009/01/09
> >> 00:18:26 | WrapperSimpleApp:     at
> >> org.springframework.context.support.AbstractApplicationContext.refresh(A
> >>bstractApplicationContext.java:384) INFO   | jvm 1    | 2009/01/09
> >> 00:18:26 | WrapperSimpleApp:     at
> >> org.springframework.context.support.ClassPathXmlApplicationContext.<init
> >>>(ClassPathXmlApplicationContext.java:139) INFO   | jvm 1    | 2009/01/09
> >> 00:18:26 | WrapperSimpleApp:     at
> >> org.springframework.context.support.ClassPathXmlApplicationContext.<init
> >>>(ClassPathXmlApplicationContext.java:83) INFO   | jvm 1    | 2009/01/09
> >> 00:18:26 | WrapperSimpleApp:     at
> >> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
> >> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> >>a:39) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> >>Impl.java:25) INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
> >>     at java.lang.reflect.Method.invoke(Method.java:597)
> >>
> >>
> >> I hope you can give me further help on this.
> >>
> >> Best,
> >> Lars Ivar Igesund


Re: ServiceConstructionException with camel-cxf

Posted by Willem Jiang <wi...@gmail.com>.
Since CXF has lots pluggable components, you need to make sure cxf-core
can load the essential modules for starting up. Please check the
cxf-rt-bindings-soap jar in your class path as William suggested.

If you are tired to maintain them, you can use the bundle jar (cxf-bundle).


Willem

William Tam wrote:
> Is this artifact in your classpath?
> 
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-bindings-soap</artifactId>
> 
> 
> On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net> wrote:
>> Hi!
>>
>> With the help of Willem and Claus I was able to create a web service via
>> camel-cxf. It works good on my local machine, but when I deployed the
>> application to the server I got the following failure:
>>
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
>> org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve
>> a binding for http://schemas.xmlsoap.org/wsdl/soap/
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:310)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:154)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:178)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:114)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:164)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:77)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.Route.getServicesForRoute(Route.java:73)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:555)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:530)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:384)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
>> java.lang.reflect.Method.invoke(Method.java:597)
>>
>>
>> I hope you can give me further help on this.
>>
>> Best,
>> Lars Ivar Igesund
>>
> 


Re: ServiceConstructionException with camel-cxf

Posted by William Tam <em...@gmail.com>.
Is this artifact in your classpath?

<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-bindings-soap</artifactId>


On Thu, Jan 8, 2009 at 6:53 PM, Lars Ivar Igesund <la...@igesund.net> wrote:
> Hi!
>
> With the help of Willem and Claus I was able to create a web service via
> camel-cxf. It works good on my local machine, but when I deployed the
> application to the server I got the following failure:
>
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:
> org.apache.cxf.service.factory.ServiceConstructionException: Could not resolve
> a binding for http://schemas.xmlsoap.org/wsdl/soap/
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createBindingInfo(AbstractWSDLBasedEndpointFactory.java:310)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:154)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpointInfo(AbstractWSDLBasedEndpointFactory.java:178)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:114)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:164)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:109)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:77)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:62)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.Route.getServicesForRoute(Route.java:73)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:555)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:530)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:149)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:384)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> com.bsc.alertmanager.hub.Hub.main(Hub.java:9)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> INFO   | jvm 1    | 2009/01/09 00:18:26 | WrapperSimpleApp:     at
> java.lang.reflect.Method.invoke(Method.java:597)
>
>
> I hope you can give me further help on this.
>
> Best,
> Lars Ivar Igesund
>