Weblogic: disable jersey scanning -



Weblogic: disable jersey scanning -

my webapp contains library contains class annotated @javax.ws.rs.ext.provider. if class present, webapp (deployed war within ear) fails start next error:

<19-jun-2014 14:41:50 o'clock bst> <error> <deployer> <bea-149265> <failure occurred in execution of deployment request id "1403185262187" task "2". error is: "weblogic.application.moduleexception: com.sun.jersey.api.container.containerexception: resourceconfig instance not contain root resource classes." weblogic.application.moduleexception: com.sun.jersey.api.container.containerexception: resourceconfig instance not contain root resource classes. @ weblogic.application.internal.extensiblemodulewrapper.start(extensiblemodulewrapper.java:140) @ weblogic.application.internal.flow.modulelistenerinvoker.start(modulelistenerinvoker.java:124) @ weblogic.application.internal.flow.modulestatedriver$3.next(modulestatedriver.java:213) @ weblogic.application.internal.flow.modulestatedriver$3.next(modulestatedriver.java:208) @ weblogic.application.utils.statemachinedriver.nextstate(statemachinedriver.java:42) truncated. see log file finish stacktrace caused by: com.sun.jersey.api.container.containerexception: resourceconfig instance not contain root resource classes. @ com.sun.jersey.server.impl.application.rootresourceurirules.<init>(rootresourceurirules.java:99) @ com.sun.jersey.server.impl.application.webapplicationimpl._initiate(webapplicationimpl.java:1331) @ com.sun.jersey.server.impl.application.webapplicationimpl.access$700(webapplicationimpl.java:168) @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:774) @ com.sun.jersey.server.impl.application.webapplicationimpl$13.f(webapplicationimpl.java:770) truncated. see log file finish stacktrace

i'm not using bailiwick of jersey @ all, i'm not using jax-rs services, , web.xml contains no bailiwick of jersey related servlets. don't understand why weblogic initialises bailiwick of jersey , scans jars in application jaxrs related stuff.

most of info can find on net relating results in people configuring bailiwick of jersey servlet differently. don't have 1 configure...

i don't command offending library, removing class not option.

so, how can tell weblogic not scan classes when initialises jersey?

note happened after changing web.xml servlet 3.0 instead of 2.4. if alter 2.4, fine.

i'm using weblogic 12.1.2.0 (12c).

update: turns out jax-rs scanning key feature of javaee 6 - whole thought set annotated classes in webapp , don't need configuration have them exposed rest webservice.

i have clue disable jersey scanning setting property jersey.config.disableautodiscovery, not work me yet. see configuring classpath scanning more details.

jersey weblogic jax-rs weblogic12c

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -