This discussion is archived
0 Replies Latest reply: May 31, 2012 4:33 AM by 677687 RSS

Problem by providing ADF portlet in Oracle Portal

677687 Newbie
Currently Being Moderated
Hi,

I have created a simple ADF application with one JSF with a simple outputtext label, using Jdeveloper 11.1.1.3.
I created a portlet out of it by Create Portlet Entry and deployed it on weblogic (WL_WSRP).
Then i created a WSRP Provider on Oracle Portal 11g (11.1.1.6) with success, so I put the portlet on a page, when Portal show the page its appear a error message, like this:

Error: Could not get markup. The cookie or session is invalid or there is a runtime exception.

If I create a portlet with JSP page instead of a JSF page its works fine, another situation: when I access the JSF page directly in browser tha page works fine too.

To create the domain for WLS_WSRP I used this document: Doc Id 1058565.1

These are the error messages in the Weblogic logs:

ContentFetcher Unexpected Exception Request Failed:oracle.webdb.wsrp.client.run.WSRPDispatcherException: An error occurred whilst invoking an operation on the Provider name=content-fetcher17 label=wsrpPortlet url=http://ovm063portaltbl.compasso.com.br:8090/portal/proxy/portal/TBLPORTAL_PORTAL/wsrp time=1633ms timeout=65000ms process=Dispatching

An internal error has occurred in method getMarkup. java.lang.NoClassDefFoundError: javax/portlet/PortletRequest at oracle.adf.share.portlet.PortletADFContext.getPortletRequest(PortletADFContext.java:108)
at oracle.adf.share.portlet.PortletADFContext.getUserPrincipal(PortletADFContext.java:141)
at oracle.adf.share.portlet.PortletADFContext.setUserPrincipal(PortletADFContext.java:124)
at oracle.adf.share.portlet.PortletADFContext.setSecurityContext(PortletADFContext.java:119)
at oracle.adf.share.ADFContext.getSecurityContext(ADFContext.java:830)
at oracle.adf.share.portlet.PortletADFContext.initialize(PortletADFContext.java:245)
at oracle.adf.share.portlet.PortletADFContext.initThreadContext(PortletADFContext.java:232)
at oracle.adf.model.portlet.PortletBindingRequestHandler.initADFContext(PortletBindingRequestHandler.java:49)
at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:105)
at oracle.portlet.bridge.adf.lifecycle.ADFBindingBridgeLifecycleListenerImpl.onBeginRequest(ADFBindingBridgeLifecycleListenerImpl.java:94)
at oracle.portlet.bridge.adf.context.ADFPortletExternalContextImpl.<init>(ADFPortletExternalContextImpl.java:225) at oracle.portlet.bridge.adf.context.ADFPortletFacesContextImpl.<init>(ADFPortletFacesContextImpl.java:40) at oracle.portlet.bridge.adf.context.ADFPortletFacesContextFactoryImpl.getFacesContext(ADFPortletFacesContextFactoryImpl.java:41) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64) at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.getFacesContext(BridgeImpl.java:989) at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:535) at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498) at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449) at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:241) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:243) at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:209) at javax.portlet.GenericPortlet.render(GenericPortlet.java:163) at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287) at oracle.portlet.server.containerimpl.ServerImpl.doRuntimeCall(ServerImpl.java:1316) at oracle.portlet.server.containerimpl.ServerImpl.getMarkup(ServerImpl.java:143) at oracle.portlet.server.containerimpl.ServerPerfLogger.getMarkup(ServerPerfLogger.java:559) at oracle.portlet.wsrp.v2.WSRPv2VersionWrapperServer.getMarkup(WSRPv2VersionWrapperServer.java:522) at oracle.portlet.wsrp.v2.WSRPv2ToServer.getMarkup(WSRPv2ToServer.java:11783) at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeSoapToJaxb.getMarkup(WSRP_v2_Markup_PortTypeSoapToJaxb.java:81) at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeSoapPerfLogger.getMarkup(WSRP_v2_Markup_PortTypeSoapPerfLogger.java:58) at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.invoke_getMarkup(WSRP_v2_Markup_Binding_SOAP_Tie.java:814) at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.processingHook(WSRP_v2_Markup_Binding_SOAP_Tie.java:1457) at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:299) at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:442) at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1112) at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:333) at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:233) at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:185) at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.portlet.server.service.ContextFilter.doFilter(ContextFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points