Consuming a Liferay portlet from WebCenter

Hi all,
I'm trying to consume the default Liferay "Hello World" portlet from WebCenter but keep on getting a null portlet instance when trying to drop the portlet on a jspx page.
Any help would be greatly appreciated.
Regards
Antonis

Hi Yannick,
Exactly, i'm using WSRP to register the portlet. It registers successfully, it's only when you try to add the portlet to the page that you get a NPE.
I have a customer requirement of integrating or even better migrating their portlets to WebCenter. Their Liferay portlets use Liferay APIs and custom security. How would you tackle this requirements?
Thanks
Antonis

Similar Messages

  • Passing session parameter to a portlet from webcenter spaces page

    How do you pass a parameter to a portlet on a WebCenter Spaces page? For example, I have the user's company ID in the session, I need to pass that company ID to the portlet defined to accept a company ID parameter so that the returned data can be filtered.

    You can for example add the companyID to the url of the page and then pass that parameter to the parameter of your portlet.
    Have you created your portlet to enable inter portlet communication? You should first do that and create a navigation-parameter in the oracle.xml. If you don't know what i'm talking about, i'll explain a bit more.
    Their is another way, which is easier i think, is to set the value of your portlet parameter to an expression language refering to a session variabel.
    In you portlet parameter set the companyId (if you have created a navigation-parameter companyID) to following value:
    #{sessionScope.company}You will have to set the value of that session variable from within your webcenter spaces.
    How are you doing that? Are you planning on setting that variable using another portlet, taskflow,... This can be very important on how webcenter reactt on parameters and it can also give you additional ways on passing the parameters.

  • Issues Consuming ADF portlet in Webcenter

    Hi,
    We created an ADF page in the portlet producer and created a portlet entry. We used a webcenter consumer to consume the ADF portlet from the portlet producer.
    On running the webcenter consumer the page is displayed as desired but on performing any action on the page, a blank JS popup message is displayed. Once this popup message displays nothing else can be performed on the screen and the browser tab has to be closed.
    There are no logs at the server level.
    The jdeveloper version is :11.1.1.6.0.
    Can you please help us with this issue
    Thanks and regards

    Hi.
    See into Oracle My Support. Remember (don't know exactly) that exists a Portlets problems with version 11.1.1.6 similar to your problem.
    Probably you'll need to patch your WebCenter installation to 11.1.1.6.2
    Regards.

  • JasperServer Portlet on Webcenter

    Has anyone attempted embedding the JasperServer portlet into Spaces? I managed to get the portlet deployed to Weblogic and register it as a WSRP Producer but it doesn't render on Spaces. I get errors relating to Spring framework (Jasper uses the spring web framework) when I add the portlet to Spaces.
    <Nov 26, 2010 11:56:12 AM EST> <Error> <oracle.portlet.client.connection.wsrp.HTTPClientTransport> <WCS-40152> <A request to the producer URL "http://10.0.3.26:8889/jasper_portlet/portlets/WSRP_v2_Markup_Service" resulted in a status 500 response with fault string "oracle.portlet.wsrp.v2.OperationFailedException: oracle.portlet.server.container.OperationFailedException: javax.portlet.PortletException: Request processing failed". The fault code given was "ns0:OperationFailed". The producer generated a timestamp of 2010-11-26T11:56:12+1100 and associated the following stack trace with the fault message: oracle.portlet.wsrp.v2.OperationFailedException: oracle.portlet.server.container.OperationFailedException: javax.portlet.PortletException: Request processing failed
         at oracle.portlet.wsrp.v2.WSRPv2ToServer.getMarkup(WSRPv2ToServer.java:15310)
         at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeSoapToJaxb.getMarkup(WSRP_v2_Markup_PortTypeSoapToJaxb.java:81)
    Caused by: java.lang.IllegalStateException: Invalid portlet request phase: null
         at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:531)
    I know this is Spring related but I ask here to see if anyone has succeeded in getting Jasper to work with webcenter spaces or if there are any recommendations on the best way to achieve my requirement. Is WSRP the only way way to consume pre-developed portlets in Webcenter Spaces?
    -- Bijesh
    Edited by: Bijesh Krishnadas on Nov 25, 2010 8:14 PM - Where did all my text go??

    Atul,
    On Webcenter framework - JSF task flow vs Portlet you can find a complete study on the (dis)advantages of both.
    The guideline I use myself is: Do we require the functionality in multiple portals of which one or more is not a WebCenter Portal?
    If so, use portlets (e.g. if you want to use the functionality in your WebCenter application and e.g. an Oracle Portal)
    Also, exposing the functionality to 'the world' could make you decide to implement a portlet.
    If you only need the functionality internally, in one or more applications that can consume task flows, implement it as task flow.
    That taskflow can be deployed as a library. If you attach that library to your application, you can use the task flow.
    Good luck,
    Rob

  • Consume a Web Service from a Webcenter aplication | Checkinuniversal servi

    HI
    Im trying to consume the checkinuniversal service from my webcenter application.
    Steps done as instructed in the URL below
    http://www.oracle.com/technology/obe/obe11jdev/11/wsdc/wsdc.htm
    But when i try to cehkin the document from my webcenter application it showin an error ' Content item 'scs' was not successfully checked in. The content item must have a primary file.'
    Is there any other way to checkin content from webcenter application through java code/CIS/ or any one has idea about primary file issue-how to resolve it.
    Can you please share your ideas/ sample code(CIs) if any
    thanks Smith

    Hi Paolo,
    maybe I faced the same issue. I solved it reading the thread:
    web service deployable client
    Hope this help
    Cheers
    Roberto

  • Pass parameter FROM webcenter page TO dropped portlet

    Hi All,
    I have created a webcenter page
    I have created a ADF remote portlet
    I have regsitered the portlet as producer under webcenter page "Connection"
    I dragged the portlet on webcenter (jspx) page.
    now, my design requires that, i should be able to pass the paramter called "Country URL" that is available in webcenter page's backing bean TO this dropped portlet's SRC tag of IFRAME.
    is it possible to pass paramter FROM webcenter page's backing bean TO SRC of IFRAME inside dropped portlet ?
    If yes, the how will src refer to webcenter backing URL parameter ? ( like binding ...............)
    yhx
    dd

    The idea stays the same in WebCenter. The technique i have described above does not change when you use ADF portlets.
    There are only a few steps required:
    1) Create the parameter in portlet.xml
    2) assign the parameter to your portlet (also in portlet.xml)
    3) deploy portlet
    4) create a page parameter in webcenter on the page you are dropping the portlet on
    5) assign the page parameter to the value of the portlet parameter
    That's it.
    Notice that the link in the above post of me (from 2010) is about JSR 168 portlets. Since WebCenter PS3, webcenter supports JSR 286 and some things change like you do not need to create the parameter in the oracle-portlet.xml anymore. You can easily do this in the portlet.xml
    This is a more up to date post: http://yonaweb.be/inter_portlet_communication_jsr_286_and_webcenter_11g_ps3

  • Can workshop consume portlet from preconfigured OC4J

    hi,
    i want to use remote portlet from workshop and consume portlet that i have deployed at preconfigurd oc4j. i developed portlet from jdev, and when i use portlet via jdev (using wsrp producer registration), i successfully display the portlet.
    the problem is when i try to use remote portlet from workshop, for wsdl i use wsrp v1 wsdl at preconfigured oc4j, i can connect with oc4j but at information number of available portlet is zero. i don't know where is wrong.
    is there any tips, advice or tutorial how to consume portlet at preconfigured oc4j in workshop? or it's impossible to do it...
    i'm still new with adf and weblogic workshop... hope anyone can help me ^^

    Yes via WSRP. By default (if you did not turn off) portal created in workshop 8.1 is a wsrp producer. you can access a portlet in the portal in a different web app as a remote portlet.
    Hope this helps

  • Portlet inside Webcenter Framework Application

    Hi,
    I need to implement portlet functionality of editing and moving around components in my webcenterframework application. i went through the cue cards, and all possible oracle documents. i am not able to figure it out. Able to follow till registering portlet in the webcenter framework application. But where to write the logic/code of what content we want inside portlet.?
    For example say i have testFramework webcenter framework application and portletproducer application testPortlet. Inside the myPage.jspx present in testFramework application after importing the portlets i created, Where to write in the code. and i need to cal/invoke webservices from myPage.jspx to display the response in the Portlets. so Where Should i have to create the pages? In which application? How to Go about it.. Can i Please get some links or blogs to go about this or sample application?
    Thank You

    If you are using WebCenter, then instead of creating a portlet you can just create regular ADF Taskflows, and then dynamically add them to your pages with the webcenter runtime customization functionality.
    See for example the lab here: http://www.oracle.com/technetwork/community/developer-day/vdd-oracle-fusion-dev-day-1725597.html
    If you are creating a portlet in WebCenter then you need to write the code behind it. Again you can create a regular ADF page that consumes a Web service for example and then expose it as a portlet - if you need to use it outside of WebCenter.

  • How to cosume BPEL worklist as a portlet in webcenter application

    Hi,
    Can someone guide me how to consume a BPEL worklist application as portlet in webcenter application. I have a BPEL process and have deployed it on BPEL Integration server installed on oracle apllication server. But how to proceed from here? The portlet should show all the tasks exactly as it appears in the worklist applction.
    Thanks
    Anand

    Thanks a lot Cappa. Those links were really helpful and I have completed the POC successfully by integrating my existing ADF application with WebCenter by following the steps mentioned in http://www.oracle.com/technetwork/developer-tools/jdev/ccset62-all-100884.html.
    Apart from the links you mentioned, Andrejus pointed to one of his blog entry on the same topic. Please find the same at http://andrejusb.blogspot.com/2009/12/producing-jsr-168-portlets-directly.html
    Now, the issue is it's very very slow and it's getting timeout most of the time. I'm getting concurrent modification exception also some times. Both the applications are running on the embedded server that comes with JDev. Have you ever come across it?
    Regards,
    Antony.

  • Webclipping Portlet in Webcenter portal application

    When creating a web-clipping port-let in Webcenter portal application, we register the url for the webclipping portlet (http://localhost:7101/portalTools/webClipping/providers/webClipping) as Oracle PDK Producer connection as mentioned in Web center portal developer's guide http://docs.oracle.com/cd/E25178_01/webcenter.1111/e10148/jpsdg_pages.htm#CHDJDGIF.
    The content for the web-clipping portlet is to be specified at runtime only.
    Is it possible to define the contents for the web clipping portlet in design time/JDeveloper itself.
    Thanks,
    Navaneeth

    You mean you have exposed the taskflow and consumed it as a portlet in Webcenter ?
    You may want to check it on the Webcenter Portal forum too - WebCenter Portal

  • How to use external application, webclipping portlet in webcenter ?

    I'm just following this [http://biemond.blogspot.com/2008/01/external-application-in-webcenter-11g.html|http://biemond.blogspot.com/2008/01/external-application-in-webcenter-11g.html]
    to integrate an application into webcenter application as a external application. But I can't get the login work, always get the "User authentication failed".
    I'm using JDeveloper 11.1.1.2.0 and Webcenter 11.1.1.2.0.

    You can view a demo-
    How to Build a Portlet from an existing authentication web application
    from:
    http://portalstudio.oracle.com/servlet/page?_pageid=350&_dad=ops&_schema=OPSTUDIO&9054_PDKHOME_39847486.p_subid=176584&9054_PDKHOME_39847486.p_sub_siteid=73&9054_PDKHOME_39847486.p_edit=0#PDKURLDEMO
    There are PDK articles that explain how to builld ASP portlets and how to set up a URL based portlet for external authentication:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/build.asp.portlet.url.services.html
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/how.to.build.urlbased.portlet.with.SSO.to.external.app.html
    There is also an ASP sample under the PDK-URL services samples.
    Please use these to build your application.
    Thanks,
    Mohana

  • How to Get Prebuilt Portlets from OPN

    Hi,
    I want to get the following or any other prebuilt portlets from OPN, How I can get this and register it to my Webcenter Portal spaces application.
    https://solutions.oracle.com/scwar/sc/Solution/SCSP-OOWLOBVD.html
    We are Oracle Gold Partner
    Thank you,
    Muhammad Nasir

    Thanks Sir for you kind reply But I have just studied about this from the following doc, I think it is possible but how i dont know.
    http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10149/portlets.htm#BABIHAAH
    Thank You,
    Muhammad Nasir

  • How to manage workflow of a content from Webcenter?

    Hi,
    Is there a way to manage the UCM content workflow from Webcenter portal ?
    We are aware of the Components like Document Explorer, Document Manager, etc. But none of this seems to provide the workflow functionality (approve/reject etc) by default.
    Would this be possible by doing customization to any OOB component ?
    Regards,
    Shalin

    Hi Shalin,
    You can use Workflow Queue Portlet part of Oracle Content Portlet Suite (CPS). We have successfully use in Spaces 11GPS4.
    Following deployment guide explain you how to install CPS portlets:-
    http://docs.oracle.com/cd/E21764_01/doc.1111/e10637/c05_portlets.htm#i1090949
    Following user guide explain you how to use in WebCenter:-
    http://docs.oracle.com/cd/E21764_01/webcenter.1111/e10149/content_workflow.htm#WCSUG8483
    The only limitation we found with this portlet is that you can't assign workflow to a group/role.
    Regards,
    Imran

  • Spring Portlets in Webcenter

    Hi,
    I have been trying to create a simple spring portlet using WebCenter PS3. When i try to run the portlet i'm getting the below exception.
    I have been using spring 3 and have included the JSTL 1.2 library in classpath from JDeveloper. The application is not able to load the Config class at runtime which is there in the JSTL libray. Did anybody faced a similar problem. Any help on this is appreciated.
    javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Configjavax.portlet.PortletException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
         at com.bea.portlet.container.PortletRequestDispatcherImpl.internalInclude(PortletRequestDispatcherImpl.java:214)
         at com.bea.portlet.container.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:140)
         at org.springframework.web.portlet.DispatcherPortlet.doRender(DispatcherPortlet.java:1140)
         at org.springframework.web.portlet.DispatcherPortlet.render(DispatcherPortlet.java:1094)
         at org.springframework.web.portlet.DispatcherPortlet.doRenderService(DispatcherPortlet.java:832)
         at org.springframework.web.portlet.FrameworkPortlet.processRequest(FrameworkPortlet.java:483)
         at org.springframework.web.portlet.FrameworkPortlet.doDispatch(FrameworkPortlet.java:453)
         at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
         at com.bea.portlet.container.PortletStub.doRender(PortletStub.java:1003)
         at com.bea.portlet.container.FilterChainGenerator.runFilterChain(FilterChainGenerator.java:127)
         at com.bea.portlet.container.PortletStub.render(PortletStub.java:438)
         at com.bea.portlet.container.AppContainer.renderStub(AppContainer.java:1144)
         at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:1076)
         at com.bea.wsrp.producer.adapter.javaportlet.JavaPortletAdapter.doGetMarkup(JavaPortletAdapter.java:294)
         at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doGetMarkup(MarkupServiceHandler.java:449)
         at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:264)
         at com.bea.wsrp.producer.handlers.AbstractServiceHandler.service(AbstractServiceHandler.java:71)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:349)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:250)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:208)
         at oracle.portlet.server.adapter.web.WSRP_v2_Markup_PortTypeSoapToEndpoint.getMarkup(WSRP_v2_Markup_PortTypeSoapToEndpoint.java:74)
         at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.invoke_getMarkup(WSRP_v2_Markup_Binding_SOAP_Tie.java:66)
         at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.processingHook(WSRP_v2_Markup_Binding_SOAP_Tie.java:1445)
         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:1081)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:333)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:185)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
         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:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.producer.container.endpoint.ProducerEndpointFilter.doFilter(ProducerEndpointFilter.java:34)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         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:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         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:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         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:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:523)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
         at com.bea.portlet.container.PortletRequestDispatcherImpl.internalInclude(PortletRequestDispatcherImpl.java:204)
         ... 65 more
    Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
         at org.springframework.web.servlet.support.JstlUtils.exposeLocalizationContext(JstlUtils.java:97)
         at com.cts.portlet.helloworld.JstlView.exposeHelpers(JstlView.java:45)
         at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:209)
         at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257)
         at org.springframework.web.servlet.ViewRendererServlet.renderView(ViewRendererServlet.java:111)
         at org.springframework.web.servlet.ViewRendererServlet.processRequest(ViewRendererServlet.java:84)
         at org.springframework.web.servlet.ViewRendererServlet.doGet(ViewRendererServlet.java:65)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         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:300)
         ... 69 more

    Hi All, Fixed the issue. Its was due to the duplicate Spring jar, which the Integrated server was loading from the modules directory.

  • What are the requirements to deploy Portlets from Jdeveloper 10.1.3.2

    Hi all,
    I'm new in version Jdeveloper 10.1.3.2
    plz which version of Application Server (infrastructure and middle-tier)
    or web-center are required to deploy portlet from jdeveloper 10.1.3.2
    can you send me links about these requirments
    thanks

    I had already applied all of this before trying to deploy.
    The error seems to be a versioning error in the jsf-impl.jar file as the ApplicationAssociate class is found there. I have changed the JDK and J2EE to 1.4.2 and 1.3 respectively, rebuilt everything, updated all the settings to the right versions for 10.1.2 but it still keeps failing on the deploy.

Maybe you are looking for