URL generation - Https and JSR 168

We have some JSR 168 complaint portlets that are working fine under http. However,
when we switch to https (with a webserver front-end), the edit button functionality
generates incorrect urls. It tries to use http and then append port 443. These
urls do not work with the web server front-end.
I know all urls for JPF portlets etc are controlled through the url-template-config.xml
file, but it seems that the JSR 168 portlets do not use this file. Any idea what
these portlets use and what configuration change I could make to resolve this
issue?
Thanks
Kunal

Hi Subbu -
I have modified the template to use relative paths - maybe that will solve my
issue. Here is my modified template.
Thanks
Kunal
Subbu Allamaraju <[email protected]> wrote:
Hi Kunal,
In WLP, all portlets rely on url-templates-config.xml to create URLs.
The edit button is independent of the type of the portlet you are using.
For Java portlets, could you make sure you have the following snippet
in
this file:
<java-portlet-url-templates>
<url-template-ref type="action" name="portlet-default"/>
<url-template-ref type="secure-action" name="portlet-default"/>
<url-template-ref type="resource" name="portlet-default"/>
<url-template-ref type="secure-resource" name="portlet-default"/>
</java-portlet-url-templates>
</url-template-config>
where the name of the template should be mapped to one of the templates
defined in this file.
If you still face issues with this, please post the templates specified
in this file so that I can take a look. Also, let me know if you are
using GA or SP2.
Subbu
Kunal Mittal wrote:
We have some JSR 168 complaint portlets that are working fine underhttp. However,
when we switch to https (with a webserver front-end), the edit buttonfunctionality
generates incorrect urls. It tries to use http and then append port443. These
urls do not work with the web server front-end.
I know all urls for JPF portlets etc are controlled through the url-template-config.xml
file, but it seems that the JSR 168 portlets do not use this file.Any idea what
these portlets use and what configuration change I could make to resolvethis
issue?
Thanks
Kunal
[url-template-config.xml]

Similar Messages

  • WSRP and JSR 168 Docs

    Can anyone tell me where to find some good documentation (especially tutorials) for WSRP and JSR 168?
    Thanks

    This is a good document for WSRP understanding.
    http://xml.coverpages.org/WSRP-Primerv0920040830a.pdf

  • Spring and JSR 168 Portlet

    I have an application which uses Spring beans and JSR 168 based portlet. I want to know how can i get access to the my spring beans in the portlet controller. I am trying to do the following
    public WebApplicationContext getSpringContext(PortletRequest request) {
    HttpServletRequest servletRequest = (HttpServletRequest)request.getAttribute("javax.servlet.request");
    WebApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(servletRequest
                        .getSession().getServletContext());
    return appContext;
    Actually a NPE happens @ "servletRequest.getSession()"
    The spring beans are initialized during deployment using the spring contextListener
    This code works in other J2EE container which have JSR 168 support, like BEA, JBOSS
    Any help is greatly appreciated.

    OMG!
    Today, I wanted to build a really simple portlet with spring, and deploy it on oc4j / iAS10gR2 - since it hoped it will ease development in the future.
    Your post, doesn't motivate so much - but let's hope I've a bit more luck getting it running :)
    -> Have you looked at the spring-framework 2.0.3 release demos? In the 2.0.3 release a new demo: petportal is included - maybe this helps :)

  • Mapping individual WARs to separate URLs on HTTP and HTTPS

    I have the following setup and I cannot seem to find all the pieces of information to put them together into one coherent, easily maintainable solution:
    IBM WebSphere Application Server 5.1
    IBM HTTP Server 2.0.47.1
    Enterprise SuSe Linux 8.0
    One Enterprise Application - ENTAPP.ear containing two J2EE web projects:
    ENTAPP.ear
      |
      |+> WEBAPP1.war
      |
      |+> WEBAPP2.warWEBAPP1.war needs to be accessed via
    http://www.company.com
    and WEBAPP2.war needs to be accessed via
    https://clientaccess.company.com
    Currently, I have no problems setting up the enterprise application and accessing the application directly via WebSphere's embedded HTTP server. However, in the production environment, I would like all the static files to be served by IBM HTTP Server and only the JSP/servlets to be served by WebSphere Application Server. Also, note that the first web project must be accessed over regular HTTP, wheras the second web project must be accessed securely over SSL (HTTPS). Last of all, note that the first part of both URLs are different, i.e., "www" and "clientaccess".
    I tried various resources and am trying to figure out if there is a way the web server can work with the WebSphere plugin to serve all static content and only the dynamic content is forwarded and served by WebSphere. Also, if the Web Server is serving static content, what should be specified as the document root? Should there be Virtual Hosts defined in both the Web Server and Application Server? Is the Host Alias in WebSphere of significance?
    I appreciate any help! Thanks.

    This a question for websphere forums like www.websphere-world.com or look into deja.com.
    We use WAS 3.5.7, and first you have to go to the domains and write down for each on of the addresses. Just write the names and take out any ip.
    Then go to the app and choose the domain for each of the apps.
    If you are working in a 2 server squema, remember to change the temp files so the webserver can actually gets to the app server.
    you have to restart both servers.
    Hope it helps.
    Lorenzo

  • JSR 168 Container

    Is the JSR 168 container available for download?

    We have Application Server 10g installed. We also have applied patchset 9.0.4.1
    We have tried to install WSRP and JSR 168 containers following steps detailed in OracleAS Portal Developer's Preview for Portlet Standards install guide.
    We tried to install repository database on the 9.2.0.4 database (not the Metadata Repostiory Database as noted in install guide) we got error that OWA_VPD_CTX procedure is missing.
    We continued installation ignoring this error and after we created DAD (described in the 'Wiring the Portal Repository to the Portal Middle Tier and Infrastructure' section of install guide) we could not successfully execute ptlasst.sh script. This is the error in the log file:
    Error in getting the Portal version INSTALL_ERROR : Could not obtain Portal version : null
    OPCA_ERROR : Portal installation throws exception :null
    I guess because of this we cannot start DAD and later cannot register WSRP provide...

  • Any way to access params passed in URL  implementing JSR 168 on Oracle Appl

    I'm trying to access the params passed through URL like : http://hostname:7777/portal/page/portal/Wes%20store%20Sample/OnlyOnePortal
    webStoreId=100&Id=10000
    I have create a portlet with jsp implementing JSR 168 on Oracle Application Server 10g
    But unable to access them in either actionProcess() as well as render() using actionRequest and renderRequest as well.
    I wonder will this possible with JSR 168 to access params passed in URL in any way
    Can any body help me do this

    access params passed in URL  implementing JSR 168 on Oracle Application Ser

  • JSR-168 and Request Parameters

    Hi!
    I'm creating a portlet application; right now it only has one portlet in it. The landing page for my portlet (view mode) has the following form code:
        <FORM action="<portlet:renderURL/>">
            I'm thinking of a number between 1 and 10.<BR><BR>
            <I>What is it?</I>
            <INPUT name="<portlet:namespace/>number" type="text" size="10" />
            <INPUT name="submit" type="submit" value="Guess!!" />
        </FORM>When I submit this form, I see the parameter in my browser's URL window prefixed with the portlet namespace:
       http://host:port/portal/page/portal/portalpage?__ns36_5643_36_1_1_number=3&submit=Guess%21%21Here is how I'm trying to get the "number" parameter in the Java class associated with this jsp:
                String number = (response.getNamespace()+"number");I have also tried with
                String number = response.getParameter("number");In both cases the variable number gets assigned the null value.
    How can I capture parameters sent by a form on a JSP page on the portlet's Java class?
    I am developing this portlet application with JDeveloper 10.1.3.3.0.4157 and deploying to Oracle Application Server 10.1.2.0.2 with a wsrp-compliant container. Portlet is consumed in Oracle Portal 10.1.4.
    Thank you for your response.

    I'm sorry; I typed it wrong:
    It's
    String number = request.getParameter("number");However, if you're referring to the namespace, then the way I have on my book (Portlet Programming, Effectively Using the JSR-168 Standard, by Cameron McKenzie) is really
    (response.getNamespace()+"number")

  • Parameter passing and forwarding issues with 10.1.4 JSR 168 portlets

    Hi,
    I'm using version 10.1.4 version of Oracle Portal Server, and am trying to move a JSP web application to a JSR 168 compliant portlet.
    I am experiencing these issues:
    1. There are <form> tags in my JSPs. I've set the action attribute to "<portlet:actionURL>". This works okay and I can see the parameters in my processAction properly. However, if I modify the action attribute to "<portlet:renderURL>", I do not see any parameters in my doView(). Is this expected or a known bug?
    2. As a workaround of the issue #1, in my processAction, I'm using response.setRenderParameter(). This works but has a serious side effect: the first set of values set are set permanently for the session. Subsequent submissions of my JSP fail to alter the values. Is this expected? This problem is not there if setRenderParameter() is not used.
    3. My JSPs use request.setAttribute() and request.getSession().setAttribute(). I don't see these attributes in my processAction using request.getAttributeNames(). Is there another way of retrieving them?
    4. In my JSP, I have this code in a method declaration:
    String forwardPage = "hello.jsp";
    RequestDispatcher forwarder = request.getSession().getServletContext().getRequestDispatcher(forwardPage);
    forwarder.forward(request, response);
    This results in an exception on the server:
         06/05/07 00:25:10 AnupamPortlets: JspServlet: unable to dispatch to requested page: java.lang.NullPointerException
         at com.evermind.server.http.HttpApplication.isLegalFileSystemPath(HttpApplication.java:1298)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:502)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:253)
         at opportunity_detail____contacts__view._Controller.processRequest(_Controller.java:2516)
         at opportunity_detail____contacts__view._Controller._jspService(_Controller.java:2592)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
         at oracle.webdb.wsrp.server.RequestDispatcherImpl.include(Unknown Source)
         at mypackage1.Portlet1.doView(Portlet1.java:158)
    I've tried moving the page around and using request.getContextPath() and getNamedDispatcher(), but same error.
    This is supported, right? I saw some old messages about this being a bug on the PDK side.
    Actually, using forwarder.include() works, but causes other issues
    Any ideas what I can try of any of these will be greatly appreciated. Thanks.

    Hi Anupam,
    I can help you with question #2.
    2. As a workaround of the issue #1, in my processAction, I'm using response.setRenderParameter(). This works but has a serious side effect: the first set of values set are set permanently for the session. Subsequent submissions of my JSP fail to alter the values. Is this expected? This problem is not there if setRenderParameter() is not used.
    I believe that the issue is an artifact of the interpretation of the JSR-168 specification by Oracle. I discovered that the setRenderParameter basically ends up sending a redirect back to the browser with the render parameters in the URL. This raised security concerns as you may have wanted to pass some sort of internal data from your action to your render request. The parameters in the url "hang around" once they are there so your portlet keeps recieving them. Based on this behavior I have decided to not use setRenderParameter in Oracle portal.
    -sean
    Solutions Architect
    www.sagelogix.com

  • How get browser URL from portlet JSR-168?

    I use Oracle Portal. And I have problem.
    How get browser URL from portlet JSR-168?

    Normaly it is
    http://server:port/portletContextRoot
    Did you create the portlet with JDeveloper? When you dpeloy the portlet to your application server, JDeveloper should output the URL of the portlet test page in the deployment output feedback.

  • Help with JSR-168 Remote Server URL Setting

    Installation file just says:
    Note: Before placing the portlets on a page, edit the JSR-168 Remote Server object
    and change the Remote Server URL to the correct address of the host computer.
    What should it be? This is not enough information for me.
    Thanks,
    user450158

    Never mind... I figured it out. It should be set to whatever makes the URL for the web services correct; i.e. wherever the JSR168 sample portlets WAR file is deployed. In my case: http://qlv-ows-i-1.ql.local:7071/

  • JSR 168 and Web Services For Remote Portlets

    Hi,
       I have recently joined SAP.In my previous work experience I have worked extensively on the Sun Java Portal Server and was curious about the following
    1.Does SAP Enterprise Portal Server support JSR 168 compliant Portlets.
    2.If yes the Question that naturally follows is:Can portlets(view Components)in a SAP Portal be remote enabled?In other words does SAP portal support WSRP standards.
    3.If the SAP Enterprise Portal has implemented  the JSR 168 specifications then how does the architecture seperate out the Portal engine from the Portlet Container.
    In other words where does the actual wrapping from a HTTPServletRequest to a Portlet Request happen?
    4.The JSR 168 specifications restricts the use of IFrames and many HTML tags in the fragments that are returned by the portlets running in the Portlet Container.Is this taken care of in SAP Enterprise Portal?
    5.Can WebDynpro applications be embedded in a JSR 168 compliant portlet?
    6.How is parity maintaned between portlet session HTTP session and the Applications session?
    7.Does SAP Portal support deployment through a par model?
    Thanks and Regards
    Sujeet Mishra
    SAP Labs India Ltd
    [email protected]

    > 1.Does SAP Enterprise Portal Server support JSR 168
    > compliant Portlets.
    I'd like to know the answer to this question as well. I wrote an email but didn't receive any response. So i guess JSR 168 isn't supported yet?

  • Required:Autocomplete and Modal Window components for JSR 168 Faces Portlet

    Hi All,
    I need to use Auto-complete and Modal window in my JSR 168 Faces portlet. Are there any components readily available?
    I am using WPS 6.1 + RAD 7.5. Please suggest.
    Thanks and Regards,
    Anitha.

    You may want to take a look for RichFaces.
    Homepage: [http://www.jboss.org/jbossrichfaces/]
    Auto complete example: [http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf]
    Modal window example: [http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf]

  • JSR 168 and UIX.

    Hi,
    Iam a newbie working on an JSR 168 app that makes an existing portlets as JSR 168 compatible. The portlets was orginaly developed usign the JPDK api and to incorporate standards we are making it as JSR 168 compatible.
    We used the UIX pages as the front end for showing portlet content. Is it possible to leverage the existing UIX pages using the JSR 168 API. For Rendering the UIX content we used the JPDK classes like the RenderManager , PortletContainerRenderer etc.
    As i understand JSR 168 provides the RenderRequest which represents the request sent to the portlet to handle a render. Can this RenderRequest be used to display UIX pages.
    Just wanted to know a couple of things.
    a) JPDK providers RenderManager , PortletContainerRenderer etc are there equivalents in the JSR 168 API
    b) Difference between the RenderRequest of the JSR and the PorletRenderRequest class .
    At a brief Iam looking for an equivalents of in the JSR 168 API which can accomplish this.
    Thanks
    Mouli

    Hi Mouli,
    In case of JPDK always you will get single request i.e., HttpServletRequest from the portlet.you can get the PortletRenderRequest from HttpServletRequest.
    Way to get PortletRenderRequest from HttpServletRequest :
    ===========================================
    PortletRenderRequest portletRenderRequest=(PortletRenderRequest)oHttpServletRequest.getAttribute("oracle.portal.PortletRenderRequest");
    [NOTE : you need to import the following class.
    import oracle.portal.provider.v2.render.PortletRenderRequest;]
    In case of JSR 168 generally you will get two kinds of request ie., RenderRequest & ActionRequest.Where PortletRequest is the parent interface for this two interfaces.
    For Ex.whenever the portlets first time loaded on portalpage the portlet will get RenderRequest & it will create its own portlet markup.When ever you perform any operation in any portlet then it will have ActionRequest & remaining portlets will have RenderRequest.
    Please feel free to ask anything related to portal technology..Let me know if i specified anything wrong.....
    Thanks & Regards.,
    Bala S Murugan.,
    sendrequestgetresponse At Gmail Dot Com
    http://balamurugan-portlets.blogspot.com/

  • JSR 168 support and portlet taglib

    I could not find support for the ActionURL tag in the JSR 168 release for 8.1.
    Are these tags available? If so, where can I find them?
    Thanks,
    Steve

    Chris,
    You can obtain an instance of renderRequest from the http request as in:
    <%
    RenderRequest renderRequest = (RenderRequest)
    request.getAttribute("javax.portlet.request");
    %>
    Alternatively, if you've JSP base class set to
    com.bea.portlet.jsp.PortletJspBase in your weblogic.xml (see WLS docs on
    how to set a default base class for JSPs), all JSPs in your webapp can
    automatically access renderRequest, renderResponse and portletConfig
    variables directly, as in
    <%
    renderResponse.createActionURL(...);
    %>
    Subbu
    Chris Jennings wrote:
    I need custom tags that can get the namespace of a portlet. I don't mind writing
    some to fill the gap until the final release. How can I get access to the RenderRequest
    from in a home grown custom tag now?
    Thanks!
    Chris
    Subbu Allamaraju <[email protected]> wrote:
    These tags will be available in the final release. The preview release
    does not include this tag library.
    Subbu

  • Support for JSR 168 and WSRP

    Hi,
    does SAP EP 7.0 supports JSR 168 and WSRP standards?
    Regards,
    Ladislav

    Hi Ladislav,
    Here are a few pointers that might answer your question:
    - WSRP 1.0 is supported in NetWeaver 7.0 (see this [SAP Help Page|http://help.sap.com/saphelp_nw70/helpdata/en/43/23fb36cad10d23e10000000a1553f7/frameset.htm] for more information)
    - JSR 168 support for Netweaver 7.0 has been discussed often but never confirmed in SAP documentation (check this thread for a recent SAP unofficial comment about its upcoming availability). However, NetWeaver CE 7.1 already supports JSR 168 (see this [SAP Help Page|http://help.sap.com/saphelp_nwce10/helpdata/en/44/5b96b37b6f4de1e10000000a1553f7/frameset.htm])
    Hope this helps.
    Best Regards,
    Joseph

Maybe you are looking for