You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jean-François Daune <jf...@cigersoft.be> on 2007/09/17 16:00:05 UTC
jaxws:endpoint and wsdlLocation
Hi,
I cannot manage to configure properly a JAX-WS endpoint using servlet transport in Tomcat 5.5 with a custom WSDL:
<jaxws:endpoint
id="BackOffice"
implementor="#backOfficeService"
address="/erh/backoffice"
wsdlLocation="WEB-INF/backoffice.wsdl">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
Generates: java.io.FileNotFoundException: D:\tools\apache-tomcat-5.5.25\bin\WEB-INF\backoffice.wsdl
What should I put in 'wsdlLocation' ?
Cheers,
J-F
Re: jaxws:endpoint and wsdlLocation
Posted by Willem Jiang <ni...@iona.com>.
Hi
The cxf-servlet.xml[1] is came form the RI's endpoint.xml which just
describe the jaxws front end endpoint's information, you need to write
it by yourself.
It has nothing to do with the spring context listener which will try to
load the spring context before the CXF servlet is initiated.
Just for your question , because CXF servlet already set up the servlet
transport after it (CXF servlet) is initiated, you is no need to import
the servlet transport configuration cxf-servlet.xml [2] in the endpoint
decription file[1].
Although they are all cxf-servlet.xml , but one is for the servlet
transport configuration , the other is for the endpoint information.
If you take a look at these two different cxf-servlet.xml, you will know
the mail said.
[1]https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/cxf-servlet.xml
[2]https://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/transports/http/src/main/resources/META-INF/cxf/cxf-servlet.xml
Willem.
Jean-François Daune wrote:
> Hi,
>
> regarding the problem of combining hand-written WSDL (i.e. wsdlLocation attribute) with servlet transport, I came across this:
> http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200705.mbox/%3c200705030843.18366.dkulp@apache.org%3e
>
> I think it would be nice to add this to the website documentation.
>
> Besides that, I am not sure I have understood the proper configuration for servlet tranport.
>
> The use of cxf-servlet.xml is particularly unclear.
>
> Should I write my own, or import it in my Spring context?
>
> What is the purpose of cxf-servlet.xml?
>
> Cheers,
>
> J-F
>
> -----Message d'origine-----
> De : Jean-François Daune [mailto:jfd@cigersoft.be]
> Envoyé : lundi 17 septembre 2007 17:35
> À : cxf-user@incubator.apache.org
> Objet : RE: jaxws:endpoint and wsdlLocation
>
> I have no cxf-servlet.xml, but my Spring context contains the following:
>
> <!-- Import the main CXF configuration file -->
> <import resource="classpath:META-INF/cxf/cxf.xml"/>
> <!-- Import the SOAP bindings configuration file -->
> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
> <!-- Import the servlet transport configuration file -->
> <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
>
>
> J-F
>
> -----Message d'origine-----
> De : Sergey Beryozkin [mailto:sergey.beryozkin@iona.com]
> Envoyé : lundi 17 septembre 2007 16:11
> À : cxf-user@incubator.apache.org
> Objet : Re: jaxws:endpoint and wsdlLocation
>
>
> Do you use <import> statements in your cxf-servlet.xml ? If yes then get rid of them and it should fix the problem...
>
> Cheers, Sergey
> ----- Original Message -----
> From: "Jean-François Daune" <jf...@cigersoft.be>
> To: <cx...@incubator.apache.org>
> Sent: Monday, September 17, 2007 3:00 PM
> Subject: jaxws:endpoint and wsdlLocation
>
>
> Hi,
>
> I cannot manage to configure properly a JAX-WS endpoint using servlet transport in Tomcat 5.5 with a custom WSDL:
>
> <jaxws:endpoint
> id="BackOffice"
> implementor="#backOfficeService"
> address="/erh/backoffice"
> wsdlLocation="WEB-INF/backoffice.wsdl">
> <jaxws:features>
> <bean class="org.apache.cxf.feature.LoggingFeature"/>
> </jaxws:features>
> </jaxws:endpoint>
>
>
> Generates: java.io.FileNotFoundException: D:\tools\apache-tomcat-5.5.25\bin\WEB-INF\backoffice.wsdl
>
> What should I put in 'wsdlLocation' ?
>
> Cheers,
>
> J-F
>
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>
>
RE: jaxws:endpoint and wsdlLocation
Posted by Jean-François Daune <jf...@cigersoft.be>.
Hi,
regarding the problem of combining hand-written WSDL (i.e. wsdlLocation attribute) with servlet transport, I came across this:
http://mail-archives.apache.org/mod_mbox/incubator-cxf-user/200705.mbox/%3c200705030843.18366.dkulp@apache.org%3e
I think it would be nice to add this to the website documentation.
Besides that, I am not sure I have understood the proper configuration for servlet tranport.
The use of cxf-servlet.xml is particularly unclear.
Should I write my own, or import it in my Spring context?
What is the purpose of cxf-servlet.xml?
Cheers,
J-F
-----Message d'origine-----
De : Jean-François Daune [mailto:jfd@cigersoft.be]
Envoyé : lundi 17 septembre 2007 17:35
À : cxf-user@incubator.apache.org
Objet : RE: jaxws:endpoint and wsdlLocation
I have no cxf-servlet.xml, but my Spring context contains the following:
<!-- Import the main CXF configuration file -->
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<!-- Import the SOAP bindings configuration file -->
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<!-- Import the servlet transport configuration file -->
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
J-F
-----Message d'origine-----
De : Sergey Beryozkin [mailto:sergey.beryozkin@iona.com]
Envoyé : lundi 17 septembre 2007 16:11
À : cxf-user@incubator.apache.org
Objet : Re: jaxws:endpoint and wsdlLocation
Do you use <import> statements in your cxf-servlet.xml ? If yes then get rid of them and it should fix the problem...
Cheers, Sergey
----- Original Message -----
From: "Jean-François Daune" <jf...@cigersoft.be>
To: <cx...@incubator.apache.org>
Sent: Monday, September 17, 2007 3:00 PM
Subject: jaxws:endpoint and wsdlLocation
Hi,
I cannot manage to configure properly a JAX-WS endpoint using servlet transport in Tomcat 5.5 with a custom WSDL:
<jaxws:endpoint
id="BackOffice"
implementor="#backOfficeService"
address="/erh/backoffice"
wsdlLocation="WEB-INF/backoffice.wsdl">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
Generates: java.io.FileNotFoundException: D:\tools\apache-tomcat-5.5.25\bin\WEB-INF\backoffice.wsdl
What should I put in 'wsdlLocation' ?
Cheers,
J-F
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
RE: jaxws:endpoint and wsdlLocation
Posted by Jean-François Daune <jf...@cigersoft.be>.
I have no cxf-servlet.xml, but my Spring context contains the following:
<!-- Import the main CXF configuration file -->
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<!-- Import the SOAP bindings configuration file -->
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<!-- Import the servlet transport configuration file -->
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
J-F
-----Message d'origine-----
De : Sergey Beryozkin [mailto:sergey.beryozkin@iona.com]
Envoyé : lundi 17 septembre 2007 16:11
À : cxf-user@incubator.apache.org
Objet : Re: jaxws:endpoint and wsdlLocation
Do you use <import> statements in your cxf-servlet.xml ? If yes then get rid of them and it should fix the problem...
Cheers, Sergey
----- Original Message -----
From: "Jean-François Daune" <jf...@cigersoft.be>
To: <cx...@incubator.apache.org>
Sent: Monday, September 17, 2007 3:00 PM
Subject: jaxws:endpoint and wsdlLocation
Hi,
I cannot manage to configure properly a JAX-WS endpoint using servlet transport in Tomcat 5.5 with a custom WSDL:
<jaxws:endpoint
id="BackOffice"
implementor="#backOfficeService"
address="/erh/backoffice"
wsdlLocation="WEB-INF/backoffice.wsdl">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
Generates: java.io.FileNotFoundException: D:\tools\apache-tomcat-5.5.25\bin\WEB-INF\backoffice.wsdl
What should I put in 'wsdlLocation' ?
Cheers,
J-F
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
Re: jaxws:endpoint and wsdlLocation
Posted by Sergey Beryozkin <se...@iona.com>.
Do you use <import> statements in your cxf-servlet.xml ? If yes then get rid of them and it should fix the problem...
Cheers, Sergey
----- Original Message -----
From: "Jean-François Daune" <jf...@cigersoft.be>
To: <cx...@incubator.apache.org>
Sent: Monday, September 17, 2007 3:00 PM
Subject: jaxws:endpoint and wsdlLocation
Hi,
I cannot manage to configure properly a JAX-WS endpoint using servlet transport in Tomcat 5.5 with a custom WSDL:
<jaxws:endpoint
id="BackOffice"
implementor="#backOfficeService"
address="/erh/backoffice"
wsdlLocation="WEB-INF/backoffice.wsdl">
<jaxws:features>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
Generates: java.io.FileNotFoundException: D:\tools\apache-tomcat-5.5.25\bin\WEB-INF\backoffice.wsdl
What should I put in 'wsdlLocation' ?
Cheers,
J-F
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland