users@jersey.java.net

Re: [Jersey] Disable jax-b wadl

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 29 Jun 2009 15:03:01 +0200

On Jun 29, 2009, at 9:33 AM, Paul Sandoz wrote:

>
> On Jun 28, 2009, at 5:37 PM, Thomas Matthijs wrote:
>
>> Hey,
>>
>> Is there a way to disable/not load everything related to jax-b and
>> wadl?
>>
>
> The only current way is to not have JAXB in the class path. There is
> an issue submitted for a feature to explicitly disable it.
>
> https://jersey.dev.java.net/issues/show_bug.cgi?id=299
>

I just fixed this in the trunk:

   Suppport disabling of WADL. Set the following feature on
ResourceConfig to
   true:
     ResourceConfig.FEATURE_DISABLE_WADL
   or add the following initialiation parameter to the Jerseuy servlet
or filter:
     <init-param>
         <param-name>com.sun.jersey.config.feature.DisableWADL</param-
name>
         <param-value>true</param-value>
     </init-param>

Paul.