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.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.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!!
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/javax-xml-ws-WebServiceException-org-apache-cxf-service-factory-ServiceConstructionException-Could-ne-tp3390338p3390338.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to