0 Replies Latest reply on Dec 19, 2014 2:49 AM by D Roy

    Unable to find contextual data of type: javax.ws.rs.core.UriInfo in Jboss EAP 6.1during startProcess using RemoteRestRuntimeFactory

    D Roy Newbie

      Hi,

      I am trying to start my process using RemoteRestRuntimeFactory. I have deployed my code in JBOSS EAP 6.1. During start Process I am getting following Exception.  I am using JBPM 6.0.1.

      I am not able to figure out the root cause and probable solution.

      org.jboss.resteasy.spi.ReaderException: org.jboss.resteasy.spi.LoggableFailure: Unable to find contextual data of type: javax.ws.rs.core.UriInfo

      org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:469)

      org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:377)

      org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:350)

      org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:344)

      org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:323)

      org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:110)

      org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232)

      com.dnb.ercr.util.JbpmUtil.createNewProcessInstance(JbpmUtil.java:67)

      com.dnb.ercr.partneruser.controller.UserController.loginForm(UserController.java:70)

      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      java.lang.reflect.Method.invoke(Method.java:606)

      org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)

      org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)

      org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)

      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)

      org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)

      org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)

      org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)

      org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)

      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)

      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      JBWEB000071: root cause

      org.jboss.resteasy.spi.LoggableFailure: Unable to find contextual data of type: javax.ws.rs.core.UriInfo
           org.jboss.resteasy.core.ContextParameterInjector$GenericDelegatingProxy.invoke(ContextParameterInjector.java:56)
           com.sun.proxy.$Proxy300.getPathParameters(Unknown Source)
           org.kie.services.remote.rest.JaxbContextResolver.getContext(JaxbContextResolver.java:42)
           org.kie.services.remote.rest.JaxbContextResolver.getContext(JaxbContextResolver.java:27)
           org.kie.services.remote.rest.JaxbContextResolver$Proxy$_$$_WeldClientProxy.getContext(JaxbContextResolver$Proxy$_$$_WeldClientProxy.java)
           org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder.findProvidedJAXBContext(AbstractJAXBContextFinder.java:76)
           org.jboss.resteasy.plugins.providers.jaxb.XmlJAXBContextFinder.findCachedContext(XmlJAXBContextFinder.java:37)
           org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider.findJAXBContext(AbstractJAXBProvider.java:69)
           org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBProvider.readFrom(AbstractJAXBProvider.java:112)
           org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:105)
           org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.read(GZIPDecodingInterceptor.java:63)
           org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:108)
           org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:433)
           org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:377)
           org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:350)
           org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:344)
           org.kie.services.client.api.command.AbstractRemoteCommandObject.executeRestCommand(AbstractRemoteCommandObject.java:323)
           org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:110)
           org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232)
           com.dnb.ercr.util.JbpmUtil.createNewProcessInstance(JbpmUtil.java:67)
           com.dnb.ercr.partneruser.controller.UserController.loginForm(UserController.java:70)
           sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           java.lang.reflect.Method.invoke(Method.java:606)
           org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
           org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
           org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
           org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
           org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
           org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
           org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
           org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
           org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
           org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
           org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
           javax.servlet.http.HttpServlet.service(HttpServlet.java:847)