You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Stephane Eybert <mi...@yahoo.se> on 2012/03/07 15:17:40 UTC

Incorrect urls in the service list page with Tomcat behind Apache

Hello,

I have a Tomcat container sitting behind an Apache server.

When I request the services list page from the Apache server, that is, with
an Apache url, like http://ws.nnn.nn/sesam-ws-web/ I get the services list
page with its WSDL urls being
http://potassium.nnn.nn:8080/sesam-ws-web/hello?wsdl instead of
http://ws.nnn.nn/sesam-ws-web/hello?wsdl

And a request at the url http://ws.nnn.nn/sesam-ws-web/hello?wsdl gives a
response fine.

It's only that the services page has these Tomcat-domain-like urls instead
of the Apache-domain-like ones.

Steph

--
View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5544190.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Incorrect urls in the service list page with Tomcat behind Apache

Posted by Stephane Eybert <mi...@yahoo.se>.
Hi Glen, thanks again, yes I'm using a Maven filter which is a good option.
Cheers ,
Steph

Sent from my iPod

On 8 mars 2012, at 14:38, "Glen Mazza (Talend) [via CXF]" <ml...@n5.nabble.com> wrote:

> I'm not sure how that concern would be different for any other setting 
> in a configuration (cxf-servlet.xml) file -- it's where you place the 
> settings you wish at deployment time, and you change them as you change  
> your deployment options.  That said, Maven has a filtering capability 
> that can populate configuration and source files with deployment-time 
> values: 
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html.   
> You may wish to look at that. 
> 
> Glen 
> 
> On 03/08/2012 03:40 AM, Stephane Eybert wrote:
> 
> > Hi Glen, 
> > 
> > Thanks for that, I added the following directive in the endpoint 
> > configuration and I now have the correct url displayed in the services list 
> > of the wsdl page. 
> > 
> > The only thing I still wonder about is that I now have this hard coded url 
> > which would need to be updated if the web service is to be deployed on 
> > another server. 
> > 
> > Do you know if the coupling between a web service and a host is not a 
> > concerned to the community ? 
> > 
> > Kind Regards, 
> > 
> > Stephane 
> > 
> > 
> > 
> > -- 
> > View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5546769.html
> > Sent from the cxf-user mailing list archive at Nabble.com.
> 
> 
> -- 
> Glen Mazza 
> Talend Community Coders - coders.talend.com 
> blog: www.jroller.com/gmazza 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5547495.html
> To unsubscribe from Incorrect urls in the service list page with Tomcat behind Apache, click here.
> NAML


--
View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5548547.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Incorrect urls in the service list page with Tomcat behind Apache

Posted by Glen Mazza <gm...@talend.com>.
I'm not sure how that concern would be different for any other setting 
in a configuration (cxf-servlet.xml) file -- it's where you place the 
settings you wish at deployment time, and you change them as you change 
your deployment options.  That said, Maven has a filtering capability 
that can populate configuration and source files with deployment-time 
values: 
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html.  
You may wish to look at that.

Glen

On 03/08/2012 03:40 AM, Stephane Eybert wrote:
> Hi Glen,
>
> Thanks for that, I added the following directive in the endpoint
> configuration and I now have the correct url displayed in the services list
> of the wsdl page.
>
> The only thing I still wonder about is that I now have this hard coded url
> which would need to be updated if the web service is to be deployed on
> another server.
>
> Do you know if the coupling between a web service and a host is not a
> concerned to the community ?
>
> Kind Regards,
>
> Stephane
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5546769.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza


Re: Incorrect urls in the service list page with Tomcat behind Apache

Posted by Stephane Eybert <mi...@yahoo.se>.
Hi Glen,

Thanks for that, I added the following directive in the endpoint
configuration and I now have the correct url displayed in the services list
of the wsdl page.

The only thing I still wonder about is that I now have this hard coded url
which would need to be updated if the web service is to be deployed on
another server.

Do you know if the coupling between a web service and a host is not a
concerned to the community ?

Kind Regards,

Stephane



--
View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5546769.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Incorrect urls in the service list page with Tomcat behind Apache

Posted by Glen Mazza <gm...@talend.com>.
 From googling, I think you can place that in a cxf.xml configuration file:
http://fusesource.com/forums/message.jspa?messageID=10948

HTH,
Glen

On 03/07/2012 03:18 PM, Stephane Eybert wrote:
> Hi Glenn,
>
> Thanks for that, but I'm not using wsdl2java, it's a code first scenario
> with the wsdl generated by CXF.
>
> I wonder if CXF has any such property.
>
> Thanks !
>
> Stephane
>
> --
> View this message in context:http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5545422.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog:www.jroller.com/gmazza


Re: Incorrect urls in the service list page with Tomcat behind Apache

Posted by Stephane Eybert <mi...@yahoo.se>.
Hi Glenn,

Thanks for that, but I'm not using wsdl2java, it's a code first scenario
with the wsdl generated by CXF.

I wonder if CXF has any such property.

Thanks !

Stephane

--
View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5545422.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Incorrect urls in the service list page with Tomcat behind Apache

Posted by Glen Mazza <gm...@talend.com>.
I think you're looking for the "publishedEndpointURL" setting 
(http://www.jroller.com/gmazza/entry/web_service_tutorial#notes).

HTH,
Glen

On 03/07/2012 09:17 AM, Stephane Eybert wrote:
> Hello,
>
> I have a Tomcat container sitting behind an Apache server.
>
> When I request the services list page from the Apache server, that is, with
> an Apache url, like http://ws.nnn.nn/sesam-ws-web/ I get the services list
> page with its WSDL urls being
> http://potassium.nnn.nn:8080/sesam-ws-web/hello?wsdl instead of
> http://ws.nnn.nn/sesam-ws-web/hello?wsdl
>
> And a request at the url http://ws.nnn.nn/sesam-ws-web/hello?wsdl gives a
> response fine.
>
> It's only that the services page has these Tomcat-domain-like urls instead
> of the Apache-domain-like ones.
>
> Steph
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Incorrect-urls-in-the-service-list-page-with-Tomcat-behind-Apache-tp5544190p5544190.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza