Oracle Weblogic Server (MOSC)

MOSC Banner

How to disable WADL generation in WebLogic 12.2, tried all documented ways by Oracle and Jersey for

edited Sep 21, 2016 5:00AM in Oracle Weblogic Server (MOSC) 2 commentsAnswered

@ApplicationPath("/rest")

public class RESTApplication extends Application {

  @Override

  public Map<String, Object> getProperties() {

  Map<String, Object> properties = new HashMap<String, Object>();

  properties.put(ServerProperties.WADL_FEATURE_DISABLE, true);

  return properties;

  }

Produces Exception:

weblogic.application.ModuleException: org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl(requiredType=WadlApplicationContext,parent=JaxRsMonitoringListener,qualifiers={},position=-1,optional=false,self=false,unqualified=null,855849263):org.glassfish.hk2.api.UnsatisfiedDependencyException:There was no object available for injection at SystemInjecteeImpl(requiredType=WadlApplicationContext,parent=JaxRsMonitoringListener,qualifiers={},position=-1,optional=false,self=false,unqualified=null,855849263)

  at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:75)

  at org.jvnet.hk2.internal.Utilities.justInject(Utilities.java:946)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center