How to add portlets JSR 168 Portal Web Logic

I installed WebLogic Server 10.3, WebLogic Portal 10.3 and workshop 10.3 on a virtual Windows Linux (version 5.4 of Red Hat Enterprise Linux Server).

I used Workshop for WebLogic to create a Web portal project and a portlet in the < BEA_HOME > /wlportal_10.3/samples/domains/portal field. I can view the page in the portal at http://localhost:7041/PortalOneWP/myportal.portal.

Using NetBeans IDE, I created a JSR 168 portlet that is packaged in a WAR file. I put the file. WAR in the folder < BEA_HOME > /wlportal_10.3/samples/domains/portal/autodeploy

How can I add this portlet to the page I have to the http://localhost:7041/PortalOneWP/myportal.portal?

Thanks in advance for your help,
Barbara

Hello Barbara,.

The problem is that your JSP attempts to use portlet_2_0 tag library, which works only with the JSR286. JSR286 only is not supported by WLP right now (although it will be in the next version), only JSR168 is supported.

If you do not use the specific tag library JSR286 features, you may be able to just change the import of taglib to be "http://java.sun.com/portlet" (the library of tags JSR168) and everything should work. If it still does not compile with that change, watch the JSR168 tag library documentation and make sure that you use only tags and attributes that are supported in JSR168 tag library.

Kevin

Tags: Fusion Middleware

Similar Questions

  • Question of packaging portlets JSR 168

    Hello

    I have a bunch of Java (JSR 168, using Spring MVC) portlets (PortletOne, PortletTwo... PortletN) that I've created as individual Web portal projects and are contained in a portal REE project. This portal EAR is my unit of deployment and consists also of another project of Portal Web (Assembly.war) that contains an app.portal file where I intend to assemble all these Java portlets and use it to create a desktop computer. The reason for having all individual portlets in web projects that is clean is to export it to a device and use it as a shared library or package in the EAR another file as necessary.

    my application.xml looks a bit like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    
         <display-name>MyEar</display-name>
    
         <module id="WebModule_1">
              <web>
                   <web-uri>Assemby.war</web-uri>
                   <context-root>appname</context-root>
              </web>
         </module>
    
         <module id="WebModule_2">
              <web>
                   <web-uri>PortletOne.war</web-uri>
                   <context-root>PortletOne</context-root>
              </web>
         </module>
         
         <module id="WebModule_3">
              <web>
                   <web-uri>PortletTwo.war</web-uri>
                   <context-root>PortletTwo</context-root>
              </web>
         </module>
    </application>
    But since all these WAR files are at the same level that I can't refer to definitions of context and the controllers for the portlets defined in each of these portlet WAR files (PortletOne, PortletTwo,...) of the joint web project that contains the file app.portal in Assembly.war. I tried to set up a structure of classes customized in weblogic - Chargers application.xml and put the war on a lower level assembly file, but the app even not a not deploy with IllegalAccessError as soon as a framework for each of the war files is saved by the hot deployment of processes. Moreover, when I deploy the EAR file, the portlets defined in each of the WAR files do not appear in the resource library, seen from the Portal Administration console.

    Suggestions how to assemble these common individual portlets in a web project, while keeping their packaged in the same EAR file? Other approaches are also welcome.

    I've already reviewed deploy these files of WAR portlet like Weblogic J2EE of shared libraries. But with this approach, the overall application response time is very slow despite exhausting all the tuning options and can also precompile JSP pages in shared libraries.

    Is to import the JSR-168 portlets using the import utility as WSRP portlets ARE a viable option? I'll be able to share in portlets all session variables, of fire and manage events and be able to precompile the JSP in Rible portlets?

    Published by: shyam6190 on August 13, 2009 13:25

    Hello

    Maybe the nested multiple classloaders involved with shared libraries approach slows down, it down-if this is the case, it would be difficult to fix.

    With the help of WSRP should work for you; There is a little more complex, but if you have relatively simple portlets, use methods and tags correct JSR168 (or done spring bridge), it shouldn't be too difficult to get to work. The IDE may be able to help you with that; You can create a new portlet type 'remote portlet' in your aggregate webapp, and a wizard will guide you through the steps. If you use the local proxy mode, individual portlet WSDL URL will be the URL of the Web application for each portlet on localhost.

    WSRP configuration can also be done dynamically in the tools of administration of portal, and even using a specialized tool to import JSR168, but these two options would create instances of database portlets and portals in your webapp library. It would be nice if your EAR group does not need to move to a different deployment environment, but if you need portability of the EAR in another environment it makes packing, as data is also necessary. If you happen to use WLP version 10.3, according to me, there is a bug that prevents the import JSR168 tool specialized to work, but the tool is documented here:

    http://download.Oracle.com/docs/CD/E13155_01/WLP/docs103/prodOps/deployment.html#wp1047337

    Because all WSDL URL show up only on the local host, when you compress the associate WAR file it should successfully deploy on all servers. Information about the local proxy mode, which should improve the performance of your configuration, are described here:

    http://download.Oracle.com/docs/CD/E13155_01/WLP/docs103/Federation/chap-Best_Practices.html#wp1010714

    I hope this helps!

    Kevin

  • Portlets JSR-168 in WebCenter Interaction

    We exposed re-implement many of our portlets WebCenter Interaction in the JSR 168 standard uses the container of the JSR-168 WebCenter interaction. What we found, is that the stardard is fairly simplistic, and we do not find a way to access things like Id of the portlet or the URL of the Image Server, which we are accustomed to use. Is there a way to make use of these things in the WebCenter Interaction JSR-168 container?

    The main reason that we wanted to move to the standard is to facilitate future updates. We will have to move in the future everything on an IBM WebSphere portal that our company uses also, or if we stay with WebCenter Interaction, finally we heard that there could be major changes when the product merges with WebLogic portal.

    Thank you
    Tim

    Hello

    JSR168 is a fairly simplistic standard, but there are ways to do more things.

    For example, to get the portlet ID (I assume you want a single portlet instance ID and not an ID for that 'typical' portlet), you can use the PortletRequest.getWindowID () to return an ID for the single portlet user session.

    For the storage of URLs that need to be reconfigured depending on deployment, which is usually done with the preferences of portlets JSR168 portlet - portlet can read its value, which can be set by a developer or an administrator (or the portlet itself, if you wish). Deployed with portlets Java properties files can also contain this configuration information.

    Kevin

  • How to add code affiliated with the Web site created in Muse

    Can someone guide me... . How do I add the code to the Web site created in adobe affiliate marketing muse.

    Hello

    Place the code in the HTML body (I mean within the page) you can use the object > insert HTML code.

    If you want the code to be in the head section just right click on the page > go to the properties of the page > metadata > and paste the HTML code for the head.

    Kind regards

    Ankush

  • How to add a link to a Web page directly on my firefox home page

    Safari has a function which, on their homepage, are small boxes that are links to Web sites, you go often to which is so useful. Can I do this with Firefox? I don't want to type in my goto sites every time, especially if I go to them every day.
    Thank you!!

    Fred mentioned using the bookmarks toolbar. See this article on this subject.
    https://support.Mozilla.org/en-us/KB/bookmarks-toolbar-display-favorite-websites

    I don't use Safari in a good number of years, so I don't know what functions it has. The default Firefox Start Page / Home Page is incorporated into the code of Firefox and has no configurable element of the user where the user can add anything; However, it loads information from a secure server of Mozilla that changes from time to time.

    But you can define what you want to be "your" home page that appears whenever you open Firefox relatively easily.
    See - How to set the home page

  • How to add external content to our Web page

    Hi all

    I need to add a virtual reality panorama to my Web page. VR Pano that's HTML plus two records. Can I store on my ftp and share it, but how to integrate it to the Web page? I can't copy all of the html code, because there are two additional files. Any ideas?

    In this case, you can simply download the two files on your site through FTP to the desired location and update the path in the Pano RV HTML code that you would be inserted into pages of Muse to the object-> the option Insert HTML code in order to call these scripts from their relative location.

    You can also take a look at this thread where the user had a similar query.

    http://forums.Adobe.com/message/5078401#5078401

    Thank you

    Vinayak

  • How to add portlets to the page of workflow

    I use the WebCenter space and I want users of space to place portlets in their space of the group pages.
    All the portlets are under folder portlet in the catalog. However, our requirement was to have custom folders.

    For example, the portlets of administration user must be in something like "user management" record and report portlets needs to be something like 'report' folder.

    By 'extending WebCenter spaces' white paper, I can create custom folders and then I can put tasks custom workflows. However, it says nothing about portlets. I opened SR with Oracle, but so far I do not have the answer of the Oracle.

    So I tried to add the portlet in pages of task flow after recording producers of portlet. However, it gives me the error portlet unavailable. Do I need extra steps to do this? I need help...

    Scot,

    Do you have the manual to webcenter? On page 321 described how you can add a portlet to a folder instead of using the default medium.
    Basically, it's very simple. You must also add a reference to the catalog of resources.

    The repository is the name of the provider and the path is the portlet ID specified in the provider portlet.xml.

    After for example, if you saved a called myProvider provider and the provider has a portlet with the myPortlet ID that you can add to your catalog of resources:

    
    

    I hope this helps. If you use spaces webcenter, you must use the name of the provider used in enterprise manager.

  • How to add zoom to the QML Web format?

    I want to load the local html file with pinch and zoom for Web display.

    How can I do it in QML?

    Now my code is:

    import bb.cascades 1.0
    
    Page {
        ScrollView {
            Container {
                background: Color.create("#f8f8f8")
                layout: StackLayout {
                    layoutDirection: LayoutDirection.TopToBottom
                }
                WebView {
                    url: "local:///assets/web/moscowmetromap.html"
                }
            }
        }
    }
    

    Hello

    I did some tests on the sample application CascadesCookbookQML with the GestureHandler.qml...

    So, on your ScrollViewProperties try pinchToZoomEnabled true, same as below:

    scrollViewProperties {
        scrollMode: ScrollMode.Both
        pinchToZoomEnabled: true
    }
    

    Hope this helps,

  • How to add Arabic language to my Web site?

    Hello guys,.

    I have my using the English Web site but I need to use the multilingual Web site by adding the Arabic language. I don't want to use Google Translate code, please help me as soon as possible.

    I saw someone say copy the following code.

    p

    {do-family: "Arabic Transparent"}

    ; Direction: "rtl"; ISO-8859-6

    }

    It doesn't work with me; ()

    Hi Yasser,

    You can use a Widget for Google translation instead, please check for any widget of your choice on this website - http://resources.muse.adobe.com/search?q=translate and use it.

    Kind regards

    Ankush Rao

  • interaction of JSR 168 portlets with a portal

    Hi, I'm fairly new to jsr 168 prtlets and how to use on a portal.
    I want to design two placeholders, one to the left and to the right. Then each placeholder has a jsr 168 portlet such as portlets on the left have buttons or hyperlinks and clicking on them, the page or action opens on the right portlet.

    Can someone guide me on how to code it. I use weblogic workshop for that. Please give me an example of code if you can.

    Thank you much for the help in advance

    Concerning
    John

    Hi John,.

    In JSR168, there are two "scopes" for the session - scope portlet (which is the default) and the scope. Your code would work except that you have found the scope of default by portlet session; you want the scope of application shared-of-everything-portlets.

    For that, all you need to do is to change your call:

    portletSession.setAttribute ("testVariable", "testing123");

    TO:

    portletSession.setAttribute ("testVariable", "testing123", PortletSession.APPLICATION_SCOPE);

    and modify your call:

    String value = (String) portletSession.getAttribute ("testVariable");

    TO:

    String value = (String) portletSession.getAttribute ("testVariable", PortletSession.APPLICATION_SCOPE);

    Kevin

  • How can I add an icon to a Web page in my bookmarks bar?

    Most Web pages have the coding for the small square icon in the bookmarks toolbar.
    Some do not.
    How can I add an icon to a Web page that does not have an assigned icon?

    It saves space for icons rather than a description of the page.

    These icons are called the favicons. Unfortunately, there no Firefox builtin feature to customize or change the favicon as the favicon is determined by a line in the HTML code of the site.

    There are many addons for Firefox that improve your browsing experience and allow you to make some customizations to Firefox. You can browse the addons of Firefox here.

    The only addon that I could find was the Favicon Images bookmarks addon, but it seems that there are some restrictions and you are only allowed to choose an icon from the list of the addon, not a custom image.

  • How to add the Web page in the application of air?

    Hai, I need to add a little Web page to my application to the adobe air someone knows how to add this feature, please help...

    Thank you

    Dembélé

    See API for QNXStageWebView.

  • How to add jsession ID to an ADF web application deployed in weblogic server?

    Hello

    I use jdeveloper 11.1.2.4 version. Can anyone tell please how to add custom JSESSIONID (BLTSESSIONID) to the URL of the web application ADF that must be deployed in weblogic server. I tried the following approach. but it did not work for me.

    in webogic.xml, I added

    < session descriptor - >

    < name > BLTSESSIONID < / cookie-name >

    < / session descriptor >

    However, I've added the weblogic.xml manually from the gallery.

    Could someone help me on this please?

    Thank you

    You don't have to add the session ID to the URL. The Web application automatically manages session IDS. By default, it uses an HTTP cookie (a cookie with name JSESSIONID) therefor. The Web application will automatically add it to the URL only if it detects that the client browser does not support cookies (for example, if the user has disabled cookies in the browser). By adding the lines above to weblogic.xml you just changed the name of cookie JSESSIONID to BLTSESSIONID default session. This is useful only if you have access to a couple of different Web applications from one and the same server and you want every application to maintain a clean session (for example, each application having a different session cookie name). If all applications on the server use one and same name cookie (JSESSIONID for example) and you have access to more than one application at the same time in one and the same browser (and even multiple instances of the browser, with the exception of some special cases), you will not be able to work with these applications correctly because the next access to another application will replace the cookie and you will lose the session to the requests earlier. Because HTTP cookies are maintained at the level of server name, it's not at the level of application root. In this case, you must specify the application names specific cookie (what you did above).

    Dimitar

  • How to add a html page or page Web Flash SWF in as3?

    Hi all

    How to add a html page or page Web Flash SWF in as3?

    Thank you

    Omar

    to a swf on the web, use navigateToURL.  for a mobile swf file, use the htmlloader or stagewebview class.

  • How to add the Web site project?

    I finished my project in Beta 2, but impossible to find tutorials on how to actually add it on my site...?

    Can someone please explain the difference between 'deploy to the web' and 'run-local' files (when using either, or) and also tell me how to add my project in my Dreamweaver site?

    Thank you!

    Hey!

    So it depends on what you mean by "a component.

    Do you mean the project created in the catalyst file consists of a component (interactive map) and you want to paste only specific somewhere within your site?

    You can embed the swf file from the Deploy folder Web as much as you would like in your site (main.swf, ignorant main.html).

    You will still need to copy all the files of deploy on the web, to ensure that your assets and others get lost along the way.

    This thread should help in this case: http://forums.adobe.com/message/2449721#2449721

    Is that what you're looking for?

    If not, let me know

    Thank you

    Tara

Maybe you are looking for