You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ja...@external.t-mobile.at on 2008/06/03 13:10:06 UTC

Antwort: AW: CXF delivers transformed WSDL on ?wsdl Request [Virus checked]

error with WEB-INF looks better in my opinion.
The problem is probably missing annotation in implementation class, or 
#fooService is AOP proxy and then implementorClass attribute has to be 
used also.
Any maybe it's enough to define service attribute as alternative to 
annots.




"Maurer Uwe" <u....@enbw.com> 
06/03/2008 13:00
Bitte antworten an
users@cxf.apache.org


An
<us...@cxf.apache.org>
Kopie

Thema
AW: CXF delivers transformed WSDL on ?wsdl Request  [Virus checked]






> Maybe the path is case sensitive - try WEB-INF instead of Web-inf?

I already tried. "Web-inf" seems to be the correct string. Trying WEB-INF
leads to another (!) error:

javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not 
find
definition for service
{http://service.ka.soa.hund.enbw.com/}FooDocumentImplService.

(see stacktrace below)

Still there is the question, why CXF tries to load WSDL from the "bin"
directory of Tomcat.

Uwe



<stacktrace>
org.springframework.beans.factory.BeanCreationException: Error creating 
bean
with name 'KonzessionsAbgabenSatzBereitstellen_v1': 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://service.ka.soa.hund.enbw.com/}FooService.
Caused by: 
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Could not 
find
definition for service
{http://service.ka.soa.hund.enbw.com/}FooDocumentImplService.
                 at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:258)
                 at 
org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194)
                 at 
org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:380)
                 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:585)
                 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
                 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
                 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
                 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:425)
                 at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:251)
                 at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:156)
                 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:248)
                 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:160)
                 at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:287)
                 at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:352)
                 at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Co
ntextLoader.java:244)
                 at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:187)
                 at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:49)
                 at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3729)
                 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
                 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
59)
                 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
                 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
                 at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
                 at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
                 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
                 at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
                 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
                 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
                 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
                 at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
                 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
                 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
                 at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
                 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
                 at 
org.apache.catalina.startup.Catalina.start(Catalina.java:551)
                 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:585)
                 at 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
                 at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Could not find definition for service
{http://service.ka.soa.hund.enbw.com/}FooDocumentImplService.
                 at
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:114)
                 at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFrom
WSDL(ReflectionServiceFactoryBean.java:300)
                 at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServic
eModel(ReflectionServiceFactoryBean.java:392)
                 at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflectio
nServiceFactoryBean.java:180)
                 at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFact
oryBean.java:163)
                 at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Abst
ractWSDLBasedEndpointFactory.java:79)
                 at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:114)
                 at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.ja
va:160)
                 at
org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:322)
                 at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:244)
                 ... 43 more
</stacktrace>


> -----Ursprüngliche Nachricht-----
> Von: Ian Roberts [mailto:i.roberts@dcs.shef.ac.uk] 
> Gesendet: Dienstag, 3. Juni 2008 12:49
> An: users@cxf.apache.org
> Betreff: Re: CXF delivers transformed WSDL on ?wsdl Request
> 
> 
> Maurer Uwe wrote:
> >              <jaxws:endpoint id="FooService"
> >                              wsdlLocation="Web-inf/wsdl/main.wsdl"
> >                              implementor="#fooService"
> >                              address="/FooService" />
> 
> Maybe the path is case sensitive - try WEB-INF instead of Web-inf?
> 
> Ian
> 
> -- 
> Ian Roberts               | Department of Computer Science
> i.roberts@dcs.shef.ac.uk  | University of Sheffield, UK
>