Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable automatic Wadl Generation for OPTIONS request

I'm having trouble disabling automatic Wadl Generation in Jersey every time an OPTIONS request is received. I've tried adding the following to the servlet configuration in web.xml but it doesn't work:

<init-param>
    <param-name>jersey.config.server.wadl.disableWadl</param-name>
    <param-value>true</param-value>
</init-param>

Can anyone help?

like image 503
Vercingetorix Avatar asked Oct 19 '22 03:10

Vercingetorix


1 Answers

Just ran into this problem myself and it looks like you need to make sure the capitalization is correct for it to work: com.sun.jersey.config.feature.DisableWADL. Put this entry in your web.xml file in the jersey-servlet <servlet> section.

<init-param>
     <param-name>com.sun.jersey.config.feature.DisableWADL</param-name>
     <param-value>true</param-value>
</init-param> 
like image 137
kent_e Avatar answered Oct 21 '22 23:10

kent_e