i am facing issues while deploying CXF base restful services into oracle weblogic server. The error i am getting is "The ResourceConfig instance does not contain any root resource classes".
I deployed as a war application, that contents only service definitions. it runs fine (other could use the service when its deployed in tomcat, but getting "The ResourceConfig instance does not contain any root resource classes" error when deploying to oracle weblogic server. I tried all the options (creating a ear and specifying prefer-application-packages option in weblogic-application.xml etc). Please let me know there is anyother configuration i need to do to get rid of the error.
Error Stacktrace:
The ResourceConfig instance does not contain any root resource classes.>
SEVERE: Missing dependency for method public void org.apache.cxf.jaxrs.provider.RequestDispatcherProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext) at parameter at index 1 SEVERE: Missing dependency for method public void org.apache.cxf.jaxrs.provider.JAXBElementProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext) at parameter at index 1 SEVERE: Missing dependency for field: private org.apache.cxf.jaxrs.ext.MessageContext org.apache.cxf.jaxrs.provider.MultipartProvider.mc SEVERE: Missing dependency for method public void org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext) at parameter at index 3 SEVERE: Missing dependency for method public void org.apache.cxf.jaxrs.provider.AbstractCachingMessageProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext) at parameter at index 3>
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. at com.sun.jersey.server.impl.application.RootResourceUriRules.(RootResourceUriRules.java:99) at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1331) at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:168) at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:774) at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:770) Truncated. see log file for complete stacktrace
init-param
like here: mkyong.com/webservices/jax-rs/… – Display Name is missing