Well, the app started, but as soon I invoked the function, I got this...
SEVERE: Servlet.service() for servlet NewServlet threw exception
javax.xml.ws.WebServiceException: Could not find wsdl:binding operation info
for web method getMyHelloService
Do I absolutely need to have a local WSDL? I already got the "interface"
classes from the server.
I think that's because I use frontend-simple and I have no WSDL locally. Here
is what I used to just need on the client side for another project.
<bean id="loginServiceAegisDataBinding"
class="org.apache.cxf.aegis.databinding.AegisDatabinding"/>
<bean id="loginService"
class="abc.xyz.services.loginmgmt.LoginService"
factory-bean="loginServiceClientFactory" factory-method="create"/>
<bean id="loginServiceClientFactory"
class="org.apache.cxf.frontend.ClientProxyFactoryBean">
<property name="serviceClass"
value="abc.xyz.services.loginmgmt.LoginService"/>
<property name="address" value="${xyz.loginServiceAdress}"/>
<property name="dataBinding" ref="loginServiceAegisDataBinding"/>
</bean>
Thanks,
--- On Sat, 11/21/09, Coder One <[email protected]> wrote:
> From: Coder One <[email protected]>
> Subject: Re: CXF & Camel & Spring & ActiveMQ Integration Problems
> To: [email protected]
> Date: Saturday, November 21, 2009, 9:19 AM
> You are right. After removing
> <context:annotation-config/>", it works. My webapp
> loaded the wrong spring-context.xml.
>
> Thanks,
>
> --- On Sat, 11/21/09, Christian Schneider <[email protected]>
> wrote:
>
> > From: Christian Schneider <[email protected]>
> > Subject: Re: CXF & Camel & Spring &
> ActiveMQ Integration Problems
> > To: [email protected]
> > Date: Saturday, November 21, 2009, 8:35 AM
> > Hmm,
> >
> > after looking closer at your context there was no
> > annotation config. But the stacktrace still seems to
> point
> > to the CommonAnnotationBeanPostProcessor. Are you sure
> the
> > context you posted is complete?
> > If yes it seems spring is configured in some other way
> to
> > interpret annotations. Are you using junit 4 tests
> > somewhere?
> >
> > Greetings
> >
> > Christian
> >
> >
> > Christian Schneider schrieb:
> > > Hi,
> > >
> > > this is probably a bug in camel cxf that I found
> > recently.
> > >
> > > https://issues.apache.org/activemq/browse/CAMEL-2112
> > >
> > > I guess you are using
> > <context:annotation-config/> somewhere in your
> > application context. If you leave this out it should
> work.
> > The bug is fixed in current trunk in subversion
> already so
> > the next camel version should have this fix. If you
> need a
> > quick solution you can check out the camel source code
> and
> > apply the patch from the issue above by hand. So you
> can
> > make your own version that works.
> > >
> > > Greetings
> > >
> > > Christian
> > >
> > >
> >
> > --
> > Christian Schneider
> > ---
> > http://www.liquid-reality.de
> >
> >
>
>
>
>