You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by trupti <tr...@gmail.com> on 2011/02/18 00:35:09 UTC

javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

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.

Re: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

Posted by trupti <tr...@gmail.com>.
Thanks Daniel,

That solved the problem. ACtually I had specified the attribute of wsdl
location earlier , however the value I had given was
"wsdl/CompliancePort.wsdl" instead of "WEB-INF/wsdl/CompliancePort". ITs now
up and running with latest 2.3.3-SNAPSHOT as you said.

-- 
View this message in context: http://cxf.547215.n5.nabble.com/javax-xml-ws-WebServiceException-org-apache-cxf-service-factory-ServiceConstructionException-Could-ne-tp3390338p3392281.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

Posted by Daniel Kulp <dk...@apache.org>.
I think you need to add to the jaxws:endpoint an attribute of:

wsdlLocation="/WEB-INF/wsdl/CompliancePort.wsdl"

It's pulling the location from the annotation which is a http:// url.  Since 
the startup occurs before tomcate has the port open, for me, it's hanging.

Once I set that, it starts fine with the latest 2.3.3-SNAPSHOT

Dan

On Friday 18 February 2011 6:35:34 PM trupti wrote:
> Hi Daniel,
> 
> I am also attaching the compliance.war file, that I am deploying on
> tomcat...In the lib folder instead of the jar files, I have just included a
> text document of the names of the jar files in my original war, so as to
> reduce the size. Hopefully this helps to  determine what's the issue.
> 
> <p/>
> http://cxf.547215.n5.nabble.com/file/n3391948/compliance.war compliance.war

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Re: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

Posted by trupti <tr...@gmail.com>.
Hi Daniel,

I am also attaching the compliance.war file, that I am deploying on
tomcat...In the lib folder instead of the jar files, I have just included a
text document of the names of the jar files in my original war, so as to
reduce the size. Hopefully this helps to  determine what's the issue.

<p/>
http://cxf.547215.n5.nabble.com/file/n3391948/compliance.war compliance.war 
-- 
View this message in context: http://cxf.547215.n5.nabble.com/javax-xml-ws-WebServiceException-org-apache-cxf-service-factory-ServiceConstructionException-Could-ne-tp3390338p3391948.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

Posted by trupti <tr...@gmail.com>.
Hi Daniel..I m stumped too..I have been at this for weeks.

Here's the full catalina log..

<p />

17/02/2011 16:50:29 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
17/02/2011 16:50:29 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
17/02/2011 16:50:29 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
17/02/2011 16:50:29 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
17/02/2011 16:50:29 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 739 ms
17/02/2011 16:50:29 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17/02/2011 16:50:29 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.32
17/02/2011 16:50:29 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
17/02/2011 16:50:30 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive compliance.war
17/02/2011 16:50:30 org.springframework.web.context.ContextLoader
initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
17/02/2011 16:50:30
org.springframework.context.support.AbstractApplicationContext
prepareRefresh
INFO: Refreshing Root WebApplicationContext: startup date [Thu Feb 17
16:50:30 EST 2011]; root of context hierarchy
17/02/2011 16:50:31
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource
[/WEB-INF/beans.xml]
17/02/2011 16:50:31
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]
17/02/2011 16:50:31
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-soap.xml]
17/02/2011 16:50:31
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-servlet.xml]
17/02/2011 16:50:31
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-http.xml]
17/02/2011 16:50:31
org.springframework.beans.factory.support.DefaultListableBeanFactory
preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1a68ef9:
defining beans
[cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,complianceservice];
root of factory hierarchy
17/02/2011 16:50:31
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://complianceservice.example.com/}ComplianceService from WSDL:
wsdl/CompliancePort.wsdl
17/02/2011 16:50:32
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
destroySingletons
INFO: Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1a68ef9:
defining beans
[cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,complianceservice];
root of factory hierarchy
17/02/2011 16:50:32
org.springframework.beans.factory.support.DisposableBeanAdapter
invokeCustomDestroyMethod
WARNING: Invocation of destroy method 'shutdown' failed on bean with name
'cxf': org.springframework.beans.factory.BeanCreationNotAllowedException:
Error creating bean with name
'org.apache.cxf.buslifecycle.BusLifeCycleManager': Singleton bean creation
not allowed while the singletons of this factory are in destruction (Do not
request a bean from a BeanFactory in a destroy method implementation!)
17/02/2011 16:50:32 org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'complianceservice': 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://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)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not find
definition for service
{http://complianceservice.example.com/}ComplianceService.
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:343)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:489)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
	... 36 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not find definition for service
{http://complianceservice.example.com/}ComplianceService.
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:131)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:389)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:506)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:245)
	at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
	at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
	at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:148)
	at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)
	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:415)
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:315)
	... 45 more
17/02/2011 16:50:32 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
17/02/2011 16:50:32 org.apache.catalina.core.StandardContext start
SEVERE: Context [/compliance] startup failed due to previous errors
17/02/2011 16:50:33 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
17/02/2011 16:50:33 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
17/02/2011 16:50:33 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
17/02/2011 16:50:33 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3778 ms
-- 
View this message in context: http://cxf.547215.n5.nabble.com/javax-xml-ws-WebServiceException-org-apache-cxf-service-factory-ServiceConstructionException-Could-ne-tp3390338p3391904.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service

Posted by Daniel Kulp <dk...@apache.org>.
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
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com