You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Bruce Edge <br...@lsi.com> on 2009/05/05 23:09:32 UTC
jetty-runner invocation of cxf generated top down POJO app
I had this working at some point late last night and rather than leave
it alone I kept working.
Now when I run my app with jetty-runner, I get this exception:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'dpmcore': Invocation of init method failed; nested
exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not
find definition for service
{http://core.dpm.lsi.com/}DpmCorePortTypeImplService
<http://core.dpm.lsi.com/%7DDpmCorePortTypeImplService>.
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native
Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
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(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at
org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServlet.java:166)
My main class is core.dpm.lsi.com.DpmCorePortTypeImpl, missing the
trailing "Service"
For the invokating command line I'm using:
java -jar jetty-runner-7.0.0.pre5.jar --log ../log/jetty.log --out
../log/jetty.out DpmCore.war
I saw a reference to this in this posting wsdl:service name in .wsdl
file <http://www.mail-archive.com/dev@geronimo.apache.org/msg41954.html>
but I don't understand the meaning of the stated fix:
After modifying the wsdl:name name from
<wsdl:service name="Calculator">
to
<wsdl:service name="CalculatorService">
Anyone else run into this?
Thanks, Bruce
Re: jetty-runner invocation of cxf generated top down POJO app
Posted by Daniel Kulp <dk...@apache.org>.
On Tue May 5 2009 5:31:32 pm Bruce Edge wrote:
> Daniel Kulp wrote:
> > Basically, there are three options to fix this:
> >
> > 1) Adjust the @WebService annotation on
> > core.dpm.lsi.com.DpmCorePortTypeImpl to specify the portName and and
> > serviceName that match the same values in the wsdl.
> >
> > 2) Adjust the wsdl so that they match the "auto generated" names
> > (DpmCorePortTypeImplService)
> >
> > 3) Adjust the spring config (cxf-servlet.xml) to add the
> > serviceName/endpointName attributes to the jaxws:endpoint tags.
>
> Here's the snipped from cxf-servlet.xml.
>
> <jaxws:endpoint id="dpmcore"
> implementor="com.lsi.dpm.core.DpmCorePortTypeImpl"
> address="dpmcore"
> wsdlLocation="WEB-INF/wsdl/DpmCore.wsdl">
> </jaxws:endpoint>
>
> This _is_ referring to the end point implementor.
> Where is the extra "Service" string being added?
From the JAX-WS/JWS specs. If the @WebService annotation on
DpmCorePortTypeImpl does not contain a serviceName attribute, then the
servicename is defined as "implclass" + "Service", so
DpmCorePortTypeImplService in your case. Again, the fix would be to adjust
the annotation.
Dan
>
> > Dan
> >
> > On Tue May 5 2009 5:09:32 pm Bruce Edge wrote:
> >> I had this working at some point late last night and rather than leave
> >> it alone I kept working.
> >>
> >> Now when I run my app with jetty-runner, I get this exception:
> >>
> >>
> >>
> >> org.springframework.beans.factory.BeanCreationException: Error creating
> >> bean with name 'dpmcore': Invocation of init method failed; nested
> >> exception is javax.xml.ws.WebServiceException:
> >> org.apache.cxf.service.factory.ServiceConstructionException: Could not
> >> find definition for service
> >> {http://core.dpm.lsi.com/}DpmCorePortTypeImplService
> >> <http://core.dpm.lsi.com/%7DDpmCorePortTypeImplService>.
> >> at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> >>tor y.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
> >>
> >> at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> >>tor y.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> >>
> >> at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> >>tor y$1.run(AbstractAutowireCapableBeanFactory.java:409)
> >>
> >> at java.security.AccessController.doPrivileged(Native
> >> Method)
> >>
> >> at
> >> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
> >>tor y.createBean(AbstractAutowireCapableBeanFactory.java:380)
> >>
> >> at
> >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
> >>t(A bstractBeanFactory.java:264)
> >>
> >> at
> >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
> >>etS ingleton(DefaultSingletonBeanRegistry.java:221)
> >>
> >> at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(
> >>Abs tractBeanFactory.java:261)
> >>
> >> at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> >>str actBeanFactory.java:185)
> >>
> >> at
> >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
> >>str actBeanFactory.java:164)
> >>
> >> at
> >> org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
> >>Ins tantiateSingletons(DefaultListableBeanFactory.java:429)
> >>
> >> at
> >> org.springframework.context.support.AbstractApplicationContext.finishBea
> >>nFa ctoryInitialization(AbstractApplicationContext.java:729)
> >>
> >> at
> >> org.springframework.context.support.AbstractApplicationContext.refresh(A
> >>bst ractApplicationContext.java:381)
> >>
> >> at
> >> org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServ
> >>let .java:166)
> >>
> >>
> >> My main class is core.dpm.lsi.com.DpmCorePortTypeImpl, missing the
> >> trailing "Service"
> >>
> >> For the invokating command line I'm using:
> >> java -jar jetty-runner-7.0.0.pre5.jar --log ../log/jetty.log --out
> >> ../log/jetty.out DpmCore.war
> >>
> >>
> >> I saw a reference to this in this posting wsdl:service name in .wsdl
> >> file <http://www.mail-archive.com/dev@geronimo.apache.org/msg41954.html>
> >> but I don't understand the meaning of the stated fix:
> >>
> >> After modifying the wsdl:name name from
> >>
> >> <wsdl:service name="Calculator">
> >>
> >> to
> >>
> >> <wsdl:service name="CalculatorService">
> >>
> >> Anyone else run into this?
> >>
> >> Thanks, Bruce
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
Re: jetty-runner invocation of cxf generated top down POJO app
Posted by Bruce Edge <br...@lsi.com>.
Daniel Kulp wrote:
>
> Basically, there are three options to fix this:
>
> 1) Adjust the @WebService annotation on core.dpm.lsi.com.DpmCorePortTypeImpl
> to specify the portName and and serviceName that match the same values in the
> wsdl.
>
> 2) Adjust the wsdl so that they match the "auto generated" names
> (DpmCorePortTypeImplService)
>
> 3) Adjust the spring config (cxf-servlet.xml) to add the
> serviceName/endpointName attributes to the jaxws:endpoint tags.
>
>
Here's the snipped from cxf-servlet.xml.
<jaxws:endpoint id="dpmcore"
implementor="com.lsi.dpm.core.DpmCorePortTypeImpl"
address="dpmcore"
wsdlLocation="WEB-INF/wsdl/DpmCore.wsdl">
</jaxws:endpoint>
This _is_ referring to the end point implementor.
Where is the extra "Service" string being added?
> Dan
>
>
> On Tue May 5 2009 5:09:32 pm Bruce Edge wrote:
>
>> I had this working at some point late last night and rather than leave
>> it alone I kept working.
>>
>> Now when I run my app with jetty-runner, I get this exception:
>>
>>
>>
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'dpmcore': Invocation of init method failed; nested
>> exception is javax.xml.ws.WebServiceException:
>> org.apache.cxf.service.factory.ServiceConstructionException: Could not
>> find definition for service
>> {http://core.dpm.lsi.com/}DpmCorePortTypeImplService
>> <http://core.dpm.lsi.com/%7DDpmCorePortTypeImplService>.
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>> y.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
>>
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>> y.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>>
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>> y$1.run(AbstractAutowireCapableBeanFactory.java:409)
>>
>> at java.security.AccessController.doPrivileged(Native
>> Method)
>>
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>> y.createBean(AbstractAutowireCapableBeanFactory.java:380)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(A
>> bstractBeanFactory.java:264)
>>
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS
>> ingleton(DefaultSingletonBeanRegistry.java:221)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs
>> tractBeanFactory.java:261)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
>> actBeanFactory.java:185)
>>
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
>> actBeanFactory.java:164)
>>
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns
>> tantiateSingletons(DefaultListableBeanFactory.java:429)
>>
>> at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFa
>> ctoryInitialization(AbstractApplicationContext.java:729)
>>
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(Abst
>> ractApplicationContext.java:381)
>>
>> at
>> org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServlet
>> .java:166)
>>
>>
>> My main class is core.dpm.lsi.com.DpmCorePortTypeImpl, missing the
>> trailing "Service"
>>
>> For the invokating command line I'm using:
>> java -jar jetty-runner-7.0.0.pre5.jar --log ../log/jetty.log --out
>> ../log/jetty.out DpmCore.war
>>
>>
>> I saw a reference to this in this posting wsdl:service name in .wsdl
>> file <http://www.mail-archive.com/dev@geronimo.apache.org/msg41954.html>
>> but I don't understand the meaning of the stated fix:
>>
>> After modifying the wsdl:name name from
>>
>> <wsdl:service name="Calculator">
>>
>> to
>>
>> <wsdl:service name="CalculatorService">
>>
>> Anyone else run into this?
>>
>> Thanks, Bruce
>>
>
>
Re: jetty-runner invocation of cxf generated top down POJO app
Posted by Daniel Kulp <dk...@apache.org>.
Basically, there are three options to fix this:
1) Adjust the @WebService annotation on core.dpm.lsi.com.DpmCorePortTypeImpl
to specify the portName and and serviceName that match the same values in the
wsdl.
2) Adjust the wsdl so that they match the "auto generated" names
(DpmCorePortTypeImplService)
3) Adjust the spring config (cxf-servlet.xml) to add the
serviceName/endpointName attributes to the jaxws:endpoint tags.
Dan
On Tue May 5 2009 5:09:32 pm Bruce Edge wrote:
> I had this working at some point late last night and rather than leave
> it alone I kept working.
>
> Now when I run my app with jetty-runner, I get this exception:
>
>
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'dpmcore': Invocation of init method failed; nested
> exception is javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException: Could not
> find definition for service
> {http://core.dpm.lsi.com/}DpmCorePortTypeImplService
> <http://core.dpm.lsi.com/%7DDpmCorePortTypeImplService>.
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>y.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>y.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>y$1.run(AbstractAutowireCapableBeanFactory.java:409)
>
> at java.security.AccessController.doPrivileged(Native
> Method)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
>y.createBean(AbstractAutowireCapableBeanFactory.java:380)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(A
>bstractBeanFactory.java:264)
>
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS
>ingleton(DefaultSingletonBeanRegistry.java:221)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs
>tractBeanFactory.java:261)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
>actBeanFactory.java:185)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
>actBeanFactory.java:164)
>
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns
>tantiateSingletons(DefaultListableBeanFactory.java:429)
>
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFa
>ctoryInitialization(AbstractApplicationContext.java:729)
>
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(Abst
>ractApplicationContext.java:381)
>
> at
> org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServlet
>.java:166)
>
>
> My main class is core.dpm.lsi.com.DpmCorePortTypeImpl, missing the
> trailing "Service"
>
> For the invokating command line I'm using:
> java -jar jetty-runner-7.0.0.pre5.jar --log ../log/jetty.log --out
> ../log/jetty.out DpmCore.war
>
>
> I saw a reference to this in this posting wsdl:service name in .wsdl
> file <http://www.mail-archive.com/dev@geronimo.apache.org/msg41954.html>
> but I don't understand the meaning of the stated fix:
>
> After modifying the wsdl:name name from
>
> <wsdl:service name="Calculator">
>
> to
>
> <wsdl:service name="CalculatorService">
>
> Anyone else run into this?
>
> Thanks, Bruce
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog