You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cmoulliard <cm...@gmail.com> on 2009/01/27 13:55:25 UTC
Re: Problem when deploying part 5 of
Tutorial-Example-ReportIncident on Tomcat
Hi,
Can you provide the tomcat stack trace error generated when the web service
has been called please ?
Charles
O. Baujard wrote:
>
> Hi,
>
> I'm currently playing with the Tutorial-Example-ReportIncident. I have a
> problem when I try to deploy the war generated by maven on Tomcat. I
> managed to make Tomcat start properly after having add the following
> <br><br>
> <code>
> <import resource="classpath:META-INF/cxf/cxf.xml"/><br>
> <import
> resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/><br>
> <import
> resource="classpath:META-INF/cxf/cxf-servlet.xml"/><br><br>
> </code>
>
> to the camel-config.xml file.
>
> When I access the services url, I got a page listing the web service
> deployed :
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css"
> rel="stylesheet" href="/part-five/webservices/?stylesheet=1"><meta
> http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF -
> Service list</title></head><body>Available services:<br /><table
> cellpadding="1" cellspacing="1" border="1"
> width="100%"><tr><td>ReportIncidentEndpoint<ul><li>ReportIncident</li></ul></td><td>Endpoint
> address: http://localhost:20000/part-five/webservices/incident<br />Wsdl:
> http://localhost:20000/part-five/webservices/incident?wsdl
> {http://reportincident.example.camel.apache.org}ReportIncidentEndpointService
> <br />Target namespace:
> http://reportincident.example.camel.apache.org</td></tr></table></body></html>
>
> but then when I click the url to obtain the wsdl, it fails, the message on
> the server side being :
>
> Can't find the request for
> http://localhost:20000/part-five/webservices/incident's Observer
>
> It seems the service is not correctly deployed.
>
> Has anybody already tried to deploy this war on Tomcat ? Any pointer to
> solve this problem ?
>
> Cheers,
>
> Olivier
>
-----
Charles Moulliard
SOA Architect
My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
--
View this message in context: http://www.nabble.com/Problem-when-deploying-part-5-of-Tutorial-Example-ReportIncident-on-Tomcat-tp21586670s22882p21683882.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Problem when deploying part 5 of Tutorial-Example-ReportIncident
on Tomcat
Posted by Willem Jiang <wi...@gmail.com>.
Hi,
I'm back. Just went through the whole example and found if you want to
deploy the example war into the tomcat, you need to do some change on
the camel-cxf endpoint's address.
The cxf endpoints which are using Servlet transport only take the
relative path as the endpoint address, since CXF can't get the context
path information.
In this case, the cxf endpoint address in the ReportIncidentRoutes
should be changed like this
String cxfEndpoint = "cxf:/incident"
+
"?serviceClass=org.apache.camel.example.reportincident.ReportIncidentEndpoint"
+ "&wsdlURL=report_incident.wsdl";
I just did a quick test of it , I can get the wsdl file.
Hope this answer is not too late :)
Willem
Claus Ibsen wrote:
> Hi
>
> Willem Jiang is the CXF export and he is celebrating chinese new year
> at the moment.
>
> Thanks for the hints about adding the cxf imports to the -config file.
>
> Can you hit the URL for the webservice, and see what happens
> http://localhost:20000/part-five/webservices/incident
>
> It could be just the .wsdl not being able to be loaded and displayed.
>
> On Tue, Jan 27, 2009 at 1:55 PM, cmoulliard <cm...@gmail.com> wrote:
>> Hi,
>>
>> Can you provide the tomcat stack trace error generated when the web service
>> has been called please ?
>>
>> Charles
>>
>> O. Baujard wrote:
>>> Hi,
>>>
>>> I'm currently playing with the Tutorial-Example-ReportIncident. I have a
>>> problem when I try to deploy the war generated by maven on Tomcat. I
>>> managed to make Tomcat start properly after having add the following
>>> <br><br>
>>> <code>
>>> <import resource="classpath:META-INF/cxf/cxf.xml"/><br>
>>> <import
>>> resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/><br>
>>> <import
>>> resource="classpath:META-INF/cxf/cxf-servlet.xml"/><br><br>
>>> </code>
>>>
>>> to the camel-config.xml file.
>>>
>>> When I access the services url, I got a page listing the web service
>>> deployed :
>>>
>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>>> "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css"
>>> rel="stylesheet" href="/part-five/webservices/?stylesheet=1"><meta
>>> http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF -
>>> Service list</title></head><body>Available services:<br /><table
>>> cellpadding="1" cellspacing="1" border="1"
>>> width="100%"><tr><td>ReportIncidentEndpoint<ul><li>ReportIncident</li></ul></td><td>Endpoint
>>> address: http://localhost:20000/part-five/webservices/incident<br />Wsdl:
>>> http://localhost:20000/part-five/webservices/incident?wsdl
>>> {http://reportincident.example.camel.apache.org}ReportIncidentEndpointService
>>> <br />Target namespace:
>>> http://reportincident.example.camel.apache.org</td></tr></table></body></html>
>>>
>>> but then when I click the url to obtain the wsdl, it fails, the message on
>>> the server side being :
>>>
>>> Can't find the request for
>>> http://localhost:20000/part-five/webservices/incident's Observer
>>>
>>> It seems the service is not correctly deployed.
>>>
>>> Has anybody already tried to deploy this war on Tomcat ? Any pointer to
>>> solve this problem ?
>>>
>>> Cheers,
>>>
>>> Olivier
>>>
>>
>> -----
>> Charles Moulliard
>> SOA Architect
>>
>> My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
>> --
>> View this message in context: http://www.nabble.com/Problem-when-deploying-part-5-of-Tutorial-Example-ReportIncident-on-Tomcat-tp21586670s22882p21683882.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
Re: Problem when deploying part 5 of Tutorial-Example-ReportIncident
on Tomcat
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Willem Jiang is the CXF export and he is celebrating chinese new year
at the moment.
Thanks for the hints about adding the cxf imports to the -config file.
Can you hit the URL for the webservice, and see what happens
http://localhost:20000/part-five/webservices/incident
It could be just the .wsdl not being able to be loaded and displayed.
On Tue, Jan 27, 2009 at 1:55 PM, cmoulliard <cm...@gmail.com> wrote:
>
> Hi,
>
> Can you provide the tomcat stack trace error generated when the web service
> has been called please ?
>
> Charles
>
> O. Baujard wrote:
>>
>> Hi,
>>
>> I'm currently playing with the Tutorial-Example-ReportIncident. I have a
>> problem when I try to deploy the war generated by maven on Tomcat. I
>> managed to make Tomcat start properly after having add the following
>> <br><br>
>> <code>
>> <import resource="classpath:META-INF/cxf/cxf.xml"/><br>
>> <import
>> resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/><br>
>> <import
>> resource="classpath:META-INF/cxf/cxf-servlet.xml"/><br><br>
>> </code>
>>
>> to the camel-config.xml file.
>>
>> When I access the services url, I got a page listing the web service
>> deployed :
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><LINK type="text/css"
>> rel="stylesheet" href="/part-five/webservices/?stylesheet=1"><meta
>> http-equiv=content-type content="text/html; charset=UTF-8"><title>CXF -
>> Service list</title></head><body>Available services:<br /><table
>> cellpadding="1" cellspacing="1" border="1"
>> width="100%"><tr><td>ReportIncidentEndpoint<ul><li>ReportIncident</li></ul></td><td>Endpoint
>> address: http://localhost:20000/part-five/webservices/incident<br />Wsdl:
>> http://localhost:20000/part-five/webservices/incident?wsdl
>> {http://reportincident.example.camel.apache.org}ReportIncidentEndpointService
>> <br />Target namespace:
>> http://reportincident.example.camel.apache.org</td></tr></table></body></html>
>>
>> but then when I click the url to obtain the wsdl, it fails, the message on
>> the server side being :
>>
>> Can't find the request for
>> http://localhost:20000/part-five/webservices/incident's Observer
>>
>> It seems the service is not correctly deployed.
>>
>> Has anybody already tried to deploy this war on Tomcat ? Any pointer to
>> solve this problem ?
>>
>> Cheers,
>>
>> Olivier
>>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog : http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: http://www.nabble.com/Problem-when-deploying-part-5-of-Tutorial-Example-ReportIncident-on-Tomcat-tp21586670s22882p21683882.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/