Hi all,

I currently try to generate the WADL specification for my web application
using 

<groupId>org.apache.cxf</groupId>
<artifactId>cxf-java2wadl-plugin</artifactId>
<version>3.0.3</version>

My web application has three differen jaxrs:server declarations with
different address values. According to 
JAXRSServicesDescription-Changingthebaseaddress
<http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription-Changingthebaseaddress>
  
I also added the jaxrs:server/@publishedEndpointUrl with the same value of
jaxrs:server/@address to my three server specifications.
All addresses are different and are non-overlapping.

Each jaxrs:server points to a single serviceBean, which specifies a REST
service using Java Annotations.

*With this I am getting the following results:*

The WADL generated at build-time includes the conjunction of all servers in
one resources node with the base="/". 
1. Why are the jaxrs:server@address values not taken into account in this
case?

Besides: at run-time I can access one WADL per server with the correct @base
for each server, but only with the relative path. So the resource@base looks
like "/myService" rather than "http://host:port/servlet/myService";
2. Any suggestions why this is the case?

Kind Regards,
Malte



--
View this message in context: 
http://cxf.547215.n5.nabble.com/wadl-generation-at-build-time-including-resources-base-from-jaxrs-server-address-tp5753439.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to