I want to disable WADL generation with an application deployed on WebLogic 12cR2. WebLogic uses the Jersey implementation of JAX-RS.
I have used something like this on previous projects:
but with WebLogic, I get this exception:
I am assuming that there is a way to through deployment descriptors, but I can't seem to find that documented anywhere.
I have never extended ResourceConfig on my @ApplicationPath classes. Instead I extended Application. This has method getProperties that you can override to add properties like these. I used that in the past to disable bean validation (ServerProperties.BV_FEATURE_DISABLE) (because we had our own handling of ConstraintViolationExceptions).
German Gonzalez-Morris wrote:ResourceConfig FEATURE_DISABLE_WADL "com.sun.jersey.config.feature.DisableWADL"
I have tried "com.sun.jersey.config.feature.DisableWADL" and "com.sun.jersey.config.server.wadl.DisableWADL" - neither disables WADL generation.
Jersey does seem to understand ServerProperties.WADL_FEATURE_DISABLE, but this results in a UnsatisfiedDependencyException being thrown when used with WebLogic 184.108.40.206.0 (not sure about other versions).
I'll try to provide a custom WadlGenerator which returns nothing.