cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <>
Subject [jira] Resolved: (CXF-1808) wsdlLocation value of jaxws:endpoint being resolved differently between CXFServlet and ContextLoaderListener versions.
Date Tue, 07 Oct 2008 23:30:44 GMT


Glen Mazza resolved CXF-1808.

    Resolution: Invalid

> wsdlLocation value of jaxws:endpoint being resolved differently between CXFServlet and
ContextLoaderListener versions.
> ----------------------------------------------------------------------------------------------------------------------
>                 Key: CXF-1808
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.1.2
>            Reporter: Glen Mazza
>            Priority: Minor
> From my DoubleIt sample[1], the wsdlLocation value in a jaxws:endpoint element appears
to be resolved differently when read as part of cxf-servlet.xml (directly from CXFServlet,
no ContextLoaderListener in web.xml) compared to the ws-beans.xml file (read from the ContextLoaderListener
in web.xml).  When I try to read in the wsdlLocation of "WEB-INF/wsdl/DoubleIt.wsdl" from
cxf-servlet.xml, everything works fine--the wsdl is properly read from that directory.  But
when I use the same value with ContextLoaderListener in the ws-beans.xml file, it is resolving
the file incorrectly--the error stack is showing it's resolving from my IDE directory:  /work/myapps/eclipse/WEB-INF/wsdl/DoubleIt.wsdl.
> wsdlLocation should be resolved using the same rules, whether from CXFServlet or the
ContextLoaderListener.    Note when I remove wsdlLocation from the ws-beans.xml (i.e., rely
on CXF to regenerate the wsdl from scratch), the web service works fine.
> Error stack I'm getting with ContextLoaderListener and the wsdLocation value given above
in ws-beans.xml:
> [INFO] </pre></p><p><b>root cause</b> <pre>org.apache.cxf.service.factory.ServiceConstructionException:
Failed to create service.
> [INFO] 	org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(
> [INFO] 	org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(
> [INFO] 	org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(
> [INFO] 	org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(
> [INFO]
> [INFO] 	org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(
> [INFO] 	org.apache.cxf.frontend.ServerFactoryBean.create(
> [INFO] 	org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(
> [INFO] 	org.apache.cxf.jaxws.EndpointImpl.getServer(
> [INFO] 	org.apache.cxf.jaxws.EndpointImpl.doPublish(
> [INFO] 	org.apache.cxf.jaxws.EndpointImpl.publish(
> [INFO] 	org.apache.cxf.jaxws.EndpointImpl.publish(
> [INFO] 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [INFO] 	sun.reflect.NativeMethodAccessorImpl.invoke(
> [INFO] 	sun.reflect.DelegatingMethodAccessorImpl.invoke(
> [INFO] 	java.lang.reflect.Method.invoke(
> [INFO]
> [INFO]
> [INFO]
> [INFO]
> [INFO]$1.getObject(
> [INFO]
> [INFO]
> [INFO]
> [INFO]
> [INFO]
> [INFO] 	org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(
> [INFO] 	org.apache.cxf.transport.servlet.CXFServlet.updateContext(
> [INFO] 	org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(
> [INFO] 	org.apache.cxf.transport.servlet.CXFServlet.loadBus(
> [INFO] 	org.apache.cxf.transport.servlet.AbstractCXFServlet.init(
> [INFO] 	org.apache.catalina.valves.ErrorReportValve.invoke(
> [INFO] 	org.apache.catalina.connector.CoyoteAdapter.service(
> [INFO] 	org.apache.coyote.http11.Http11Processor.process(
> [INFO] 	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> [INFO]$
> [INFO]
> [INFO] </pre></p><p><b>root cause</b> <pre>javax.wsdl.WSDLException:
WSDLException: faultCode=PARSER_ERROR: Problem parsing 'WEB-INF/wsdl/DoubleIt.wsdl'.:
/work/myapps/eclipse/WEB-INF/wsdl/DoubleIt.wsdl (No such file or directory)
> [INFO] Source)
> [INFO] Source)
> [INFO] Source)
> [INFO] 	org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(
> [INFO] 	org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(
> [INFO] 	org.apache.cxf.wsdl11.WSDLServiceFactory.&lt;init&gt;(
> [INFO] 	org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(
> [1]

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message