Click OK. Deploying Your JSR 168 Portlet to the Oracle WebLogic Server

6-26 Oracle Fusion Middleware Developers Guide for Oracle Portal 15. You should now register your producer and view your portlet. Refer to Section 6.3.4, Registering and Viewing Your JSR 168 Portlet . When you redeploy your portlets to the portlet container, all existing sessions between the producer and all of its consumers are lost. If a consumer tries to reuse an existing producer session, it may receive an error message the first time it tries to contact the producer after redeployment. Error: Could not get markup. The cookie or session is invalid or there is a runtime exception. To reestablish the producers session, refresh the portal page. You wont see this error message if you are re-accessing the portlet from a new browser session because it automatically establishes a new producer session.

6.3.4 Registering and Viewing Your JSR 168 Portlet

After youve created and deployed the provider and its portlets, you should register the provider with Oracle Portal. Registering your provider gives Oracle Portal the information it needs to locate and communicate with that provider. After you register a provider, the provider and its portlets become available in the Portlet Repository. They are also listed in the Oracle Portal Navigator. To register providers for your standards-based portlets:

1. Open Oracle Portal and log in. Note that to register your provider, you need to

have Manage or Edit privileges on providers. If you do not have these privileges, you need to request them from your administrator.

2. If you are not already on the Portal Builder page, click Builder in the upper right

corner.

3. Click the Administer tab.

4. Click the Portlets subtab.

5. In the Remote Providers portlet, click Register a Provider to display the Register

Provider page Figure 6–18 . Note: When you build portlets and providers with built-in tools, such as the Portlet Builder, Oracle Portal automatically registers the provider for you. Once youve created your portlet, it automatically displays in the Portlet Repository. Oracle Portal also offers built-in portlets that are contained in a preconfigured provider. For example, OmniPortlet and Web Clipping are portlets that you can use out of the box, and are already registered with Oracle Portal. You can view these portlets in the Add Portlets list. However, if you build the portlets and providers programmatically, you must then register these providers to make them available to the portal user. Note: If you do not want to install Oracle Portal but you still need to test your portlets, you may want to use the Oracle Portal Verification Service on OTN to validate your WSRP producers: http:portalstandards.oracle.comportalpageportal OracleHostedWSRPPortalWelcome