On Wed, 2008-07-23 at 13:31 +0200, Paul Sandoz wrote:
> Hi,
>
> The base URL on the <resources> element is no longer set when obtaining
> the application.wadl for the deployed application.
This was my fault: when I adapted the WadlResource to the new
WadlBuilder I serialized the generated application to a byte array,
according to a comment I found in the constructor of the WadlResource:
// TODO serialize JAXB bean to byte[]
// no need to serilize WADL every time it is requested
Unfortunately, I did this in the constructor, so that the UriInfo was
not available.
Now I changed the WadlResource, so that the byte array is created once
in WadlResource.getWadl, and before this is done, the UriInfo.getBaseUri
is set on the application/resources.
The WadlResourceTest.testGetWadl now runs successfully, therefore I
reactivated it (renamed WadlResourceTest.ignoredTestGetWadl to
WadlResourceTest.testGetWadl).
Cheers,
Martin
>
> It works when obtaining the WADL for a specific resource using the
> OPTIONS method.
>
> Paul.