Everything actually looks OK. The annotations and namespaces and such all
seem correct. Thus, I'm not really sure. :-(
Is there a full catalina log? Can you create a testcase for this?
Dan
On Thursday 17 February 2011 6:35:09 PM trupti wrote:
> Hello,
>
> I am new to cxf and have been trying to deploy a simple webservice using
> cxf, tomcat 5.5 and spring. I am using the eclipse plugin to develop code
> (wsdl2java) from an exisiting wsdl. The code gets developed, however when I
> deploy the code as a war onto tomcat, I get the following exception.
>
>
> javax.xml.ws.WebServiceException:
> org.apache.cxf.service.factory.ServiceConstructionException: Could not find
> definition for service
> {http://complianceservice.example.com/}ComplianceService
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.createBean(AbstractAutowireCapableBeanFactory.java:456) at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(A
> bstractBeanFactory.java:291) at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS
> ingleton(DefaultSingletonBeanRegistry.java:222) at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs
> tractBeanFactory.java:288) at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
> actBeanFactory.java:190) at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns
> tantiateSingletons(DefaultListableBeanFactory.java:580) at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFa
> ctoryInitialization(AbstractApplicationContext.java:895) at
> org.springframework.context.support.AbstractApplicationContext.refresh(Abst
> ractApplicationContext.java:425) at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(C
> ontextLoader.java:276) at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(Con
> textLoader.java:197) at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(Co
> ntextLoaderListener.java:47) at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java
> :3795) at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
> 760) at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
> ..........................................................................
> ... ............................................
>
>
> I have tried many work arounds, however can't seem to resolve this error. I
> am using ant to package the war file and deploy on tomcat. I did google
> this and found out this normally happens when proper targetNamespace or
> serviceName attribute in the implementation bean doesn't match the service
> names in the wsdl. However I have double checked this and still facing the
> same error. I think its something to do with the wsdl, but not sure what.
> I would greatly appreciate help to get this resolved. Thanks..
>
> Posting all my code for reference..
>
>
>
> http://cxf.547215.n5.nabble.com/file/n3390338/beans.xml beans.xml
>
>
>
> http://cxf.547215.n5.nabble.com/file/n3390338/ComplianceService.java
> ComplianceService.java
>
>
> http://cxf.547215.n5.nabble.com/file/n3390338/ComplianceServiceImpl.java
> ComplianceServiceImpl.java
>
>
>
> http://cxf.547215.n5.nabble.com/file/n3390338/CompliancePort.wsdl
> CompliancePort.wsdl
>
>
> Awaiting your responses. Thanks!!
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com