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/[email protected]/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