Oracle® Fusion Middleware Administrator's Guide for Oracle WebCenter 11g Release 1 (11.1.1) E12405-10 |
|
![]() Previous |
![]() Next |
This chapter describes how to register, edit, delete, and deploy portlet producers.
This chapter includes the following sections:
Section 21.1, "What You Should Know About Portlet Producers"
Section 21.5, "Testing Oracle PDK-Java Producer Connections"
Audience
The content of this chapter is intended for Fusion Middleware administrators (users granted the Admin
or Operator
role through the Oracle WebLogic Server Administration Console). For more information, see Section 1.12, "Oracle WebCenter Administration Tools."
Consider the following while working with portlet producers:
Several out-of-the-box producers are provided with Oracle WebCenter: OmniPortlet, Web Clipping, Rich Text Portlet, and WSRP Tools. The following EAR files are packaged with Oracle WebCenter:
portalTools.ear
- OmniPortlet and Web Clipping
wsrp-tools.ear
- Rich Text Portlets and WSRP Tools
You can install the portalTools.ear
and wsrp-tools.ear
files using the registerOOTBProducers
WLST command. For command syntax and examples, see "registerOOTBProducers" in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
Before users can add JSR 168 or Oracle PDK-Java portlets to a page, you must register the owning WSRP and Oracle PDK-Java producers. See also, "registerSampleProducers" in Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
The Oracle Portlet Producer product (server) must be installed in the production environment and the wsrp-tools
and portalTools
URLs must be accessible. If the Oracle Portlet Producer is not installed, see the section "Extending an Existing Domain" in the Oracle Fusion Middleware Installation Guide for Oracle WebCenter to install it in the production environment.
When you create a connection to a portlet producer, the producer is registered with the WebCenter application and the connection is added to the connections.xml
file. For WRSP producers, a Web service connection is also created, which follows the naming convention, connectionname-wsconn
. For Oracle PDK-Java producers, an underlying URL connection is created, which follows the naming convention, connectionname
-urlconn
. During the registration, connection metadata is created in the Oracle Metadata Services (MDS) repository and in the producer being registered. When a producer is consumed, the user customizations are saved to the producer. During deregistration the producer connection and customizations are removed.
All post deployment connection configuration is stored in MDS. For more information, see Section 1.3.5, "Oracle WebCenter Configuration Considerations." For detailed information about MDS, see the chapter "Managing the Oracle Metadata Repository" in the Oracle Fusion Middleware Administrator's Guide.
Portlet producer registration is dynamic. New portlet producers and updates to existing producers are immediately available in the WebCenter application; it is not necessary to restart the WebCenter application or the managed server.
To migrate producers from one instance to another, use the migration utilities described in the appendix "Portlet Preference Store Migration Utilities" in the Oracle Fusion Middleware Developer's Guide for Oracle WebCenter.
For information on securing portlet producers, see Section 29.1, "Securing a WSRP Producer" and Section 29.2, "Securing a PDK-Java Producer."
This section describes how to register WSRP producers for a deployed application, using Fusion Middleware Control and WLST commands. This section includes the following subsections:
For information about how to register WSRP producers at design-time, using JDeveloper, see the section "How to Register a WSRP Portlet Producer" in the Oracle Fusion Middleware Developer's Guide for Oracle WebCenter.
To register a WSRP portlet producer:
Log in to Fusion Middleware Control and navigate to the home page for your custom WebCenter application (or WebCenter Spaces). For more information, see:
Do one of the following:
For custom WebCenter applications - From the Application Deployment menu, choose WebCenter > Register Producer.
For WebCenter Spaces - From the WebCenter menu, choose Register Producer.
In the Add Portlet Producer Connection section, enter connection details for the WSRP producer.
For detailed parameter information, see Table 21-1.
Table 21-1 WSRP Producer Connection Parameters
Field | Description |
---|---|
Connection Name |
Enter a unique name to identify this portlet producer registration within the WebCenter application. The name must be unique across all WebCenter connection types. The name you specify here appears in the Oracle Composer (under the Portlets folder). |
Producer Type |
Indicate the type of this producer. Select WSRP Producer. |
WSDL URL |
The registration URL for the WSRP producer. The syntax varies according to your WSRP implementation. For example, possible URL formats for a portlet deployed to the Oracle WSRP container include:
Where:
For example:
For WSRP producers, you can obtain this registration URL by accessing the producer test page at:
|
Use Proxy? |
Select if the WebCenter application must use an HTTP proxy when contacting this producer. If selected, enter values for Proxy Host and Proxy Port. A proxy is required when the WebCenter application and the remote portlet producer are separated by a firewall and an HTTP proxy is needed to communicate with the producer. |
Proxy Host |
Enter the address for the proxy server. Do not prefix |
Proxy Port |
Enter the port number on which the proxy server listens. The default port is |
Default Execution Timeout (Seconds) |
Enter a suitable timeout for design time operations. For example, the maximum time the producer may take to register, deregister, or display portlets on WebCenter pages. Individual portlets may define their own timeout period, which takes precedence over the value expressed here. This default is |
Use the Security section to specify the type of security token to use for the identity propagation/assertion.
The security token with the propagated or asserted user information is represented as an XML element in the SOAP header. The security token and the SOAP message body are then digitally signed to prove the authenticity of the SOAP message origin from the WebCenter application. WebCenter Spaces supports three types of security tokens: Username Tokens Without Password, Username Tokens With Password, and SAML Tokens.
Note: PeopleSoft WSRP producers support two profiles: Username Token With Password and SAML Token With Message Integrity. Oracle Portal (as a consumer) supports three profiles: Username Token Without Password, Username Token With Password, SAML Token With Message Integrity. Other Oracle WSRP producers support all profiles. For other WSRP containers, check with the specific vendor to determine the token formats they support. |
For detailed parameter information, see Table 21-2.
Table 21-2 WSRP Producer Security Connection Parameters
Field | Description |
---|---|
Token Profile |
Select the type of token profile to use for authentication with this WSRP producer. Select from:
|
Token Profile (cont.) |
|
Configuration |
Select:
|
Issuer Name |
Enter the name of the issuer of the SAML Token. For example: The issuer name is the attesting entity that vouches for the verification of the subject, and it must be a trusted SAML issuer on the producer end. Valid for: WSS 1.0 SAML Token With Message Integrity, WSS1.0 SAML Token With Message Protection, WSS 1.0 SAML Token, and WSS 1.1 SAML Token with Message Protection |
Default User |
Enter a user name to assert to the remote producer when the user is not authenticated with the WebCenter application. When unauthenticated, the identity anonymous is associated with the application user. The value anonymous may be inappropriate for the remote producer, so it may be necessary to specify an alternative identity here. Keep in mind though, that in this case, the WebCenter application has not authenticated the user so the default user you specify should be a low privileged user in the remote producer. If the user has authenticated to the application, the user's identity is asserted rather than the default user. The WSRP producer must be configured with Valid for: WSS 1.0 SAML Token With Message Integrity, WSS 1.0 SAML Token With Message Protection, WSS 1.0 SAML Token, WSS 1.1 SAML Token with Message Protection and WSS 1.0 Username Without Password. |
Associated External Application (Username With Password) |
If this producer uses an external application for authentication, use the Associated External Application dropdown list to identify the application. If the application you want is not listed, select Create New to define the external application now. An external application is required to support producers using the security option Username With Password. The external application stores and supplies the user credentials. See also Section 22.2, "Registering External Applications." Valid for: WSS 1.0 Username With Password only. |
Use the Keystore section to specify the location of the key store that contains the certificate and private key that is used for signing some parts (security token and SOAP message body) of the SOAP message.
For detailed parameter information, see Table 21-3.
Table 21-3 WSRP Producer Key Store Connection Parameters
Field | Description |
---|---|
Recipient Alias |
Specify the key store alias that is associated with the producer's certificate. This certificate is used to encrypt the message to the producer. |
Store Path |
Enter the absolute path to the keystore that contains the certificate and the private key that is used for signing or encrypting the soap message (security token and message body). The signature, encryption, and recipient keys described in this table must be available in this keystore. The keystore should be created using JDK's keytool utility. |
Password |
Provide the password to the keystore that was set when the keystore was created. The producer is not available if a password is not specified or incorrect. |
Signature Key Alias |
Enter the signature key alias. The Signature Key Alias is the identifier for the certificate associated with the private key that is used for signing. |
Signature Key Password |
Enter the password for accessing the key identified by the alias specified in Signature Key Alias. |
Encryption Key Alias |
Enter the key alias to use for encryption. |
Encryption Key Password |
Enter the password for accessing the encryption key. |
Click OK.
The new producer appears in the connection table.
Use the WLST command registerWSRPProducer
to create a connection to a WSRP portlet producer and register the producer with your WebCenter application. For command syntax and examples, see the section "registerWSRPProducer" in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
See Also: deregisterWSRPProducer , listWSRPProducers , refreshProducer , registerOOTBProducers , registerSampleProducers |
For information on how to run WLST commands, see Section 1.12.3.1, "Running Oracle WebLogic Scripting Tool (WLST) Commands."
If you are using the Default User
field to map an alternative user identity you must also add a grant to the policy store by doing one of the following:
Adding the following grant directly to the policy store:
<grant> <grantee> <codesource> <url>file:${common.components.home}/modules/oracle.wsm.agent.common_11.1.1/wsm-agent.jar</url> </codesource> </grantee> <permissions> <permission> <class>oracle.wsm.security.WSIdentityPermission</class> <name>resource=MyAppID</name> <actions>assert</actions> </permission> <permissions> <grant>
Replacing MyAppID
in the line above with the name of the client application, including the version number if any.
Granting the permission by running the following WLST command:
grantPermission(codeBaseURL='file:${common.components.home}/modules/oracle.wsm.agent.common_11.1.1/wsm-agent.jar',
permClass='oracle.wsm.security.WSIdentityPermission',
permTarget='resource=MyAppID', permActions='assert')
Replacing MyAppID
with the name of the client application, including the version number if any.
To verify a WSRP producer connection, first obtain the producer URL from:
http://host_name:port_number
/context_root/info
Then, run the producer URL in a browser window.
For a WSRP v1 producer connection, the URL format is:
http://host_name
:port_number
/context_root/portlets/wsrp1?WSDL
For example:
http://myhost.com:7778/MyPortletApp/portlets/wsrp1?WSDL
For a WSRP v2 producer connection, the URL format is:
http://host_name
:port_number
/context_root/portlets/wsrp2?WSDL
For example:
http://myhost.com:7778/MyPortletApp/portlets/wsrp2?WSDL
This section describes how to register PDK-Java producers for a deployed WebCenter application using Fusion Middleware Control and WLST commands. This section includes the following subsections:
Section 21.4.1, "Registering an Oracle PDK-Java Producer Using Fusion Middleware Control"
Section 21.4.2, "Registering an Oracle PDK-Java Producer Using WLST"
For information about how to register PDK-Java producers at design-time, using JDeveloper, see the section "How to Register an Oracle PDK-Java Portlet Producer" in the Oracle Fusion Middleware Developer's Guide for Oracle WebCenter.
To register an Oracle PDK-Java portlet producer:
Log in to Fusion Middleware Control and navigate to the home page for your custom WebCenter application (or WebCenter Spaces):
Do one of the following:
For custom WebCenter applications - From the Application Deployment menu, choose WebCenter > Register Producer.
For WebCenter Spaces - From the WebCenter menu, choose Register Producer.
In the Add Portlet Producer Connection section, enter connection details for the Oracle PDK-Java producer.
For detailed parameter information, see Table 21-4, "Oracle PDK-Java Producer Connection Parameters".
Table 21-4 Oracle PDK-Java Producer Connection Parameters
Field | Description |
---|---|
Connection Name |
Enter a unique name that identifies this portlet producer registration within the WebCenter application. The name must be unique across all WebCenter connection types. The name you specify here appears in the Oracle Composer (under the Portlets folder). |
Producer Type |
Indicate the type of this producer. Select Oracle PDK-Java Producer. |
URL End Point |
Enter the Oracle PDK-Java producer's URL using the following syntax:
Where:
For example:
|
Service ID |
Enter a unique identifier for this producer. PDK-Java enables you to deploy multiple producers under a single adapter servlet. Producers are identified by their unique service ID. A service ID is required only if the service ID is not appended to the URL end point. For example, the following URL endpoint requires
However, the following URL endpoint, does not require a service ID:
The service ID is used to look up a file called |
Use Proxy? |
Select this checkbox if the WebCenter application must use an HTTP proxy when contacting this producer. If selected, enter values for Proxy Host and Proxy Port. A proxy is required if the WebCenter application and the remote portlet producer are separated by a firewall and an HTTP proxy is needed for communication with the producer. |
Proxy Host |
Enter the host name for the proxy server. Do not prefix |
Proxy Port |
Enter the port number on which the proxy server listens. The default port is |
Associated External Application |
If one of this producer's portlets requires authentication, select Associate Producer with an External Application, and then select the relevant external application from the dropdown list. See also Section 22.2, "Registering External Applications." |
Establish Session? |
Select to enable a user session when executing portlets from this producer. When sessions are enabled, they are maintained on the producer server. This allows the portlet code to maintain information in the session. Message authentication uses sessions, so if you specify a shared key, you must also select this option. For sessionless communication between the producer and the server, do not select this option. |
Default Execution Timeout (Seconds) |
Enter a suitable timeout for design time operations. For example, the maximum time the producer may take to register, deregister, or display portlets on WebCenter pages. This defaults to Individual portlets may define their own timeout period, which takes precedence over the value expressed here. |
Subscriber ID |
Enter a string to identify the consumer of the producer being registered. When a producer is registered with an application, a call is made to the producer. During the call, the consumer (WebCenter application in this instance) passes the value for Subscriber ID to the producer. If the producer does not see the expected value for Subscriber ID, it might reject the registration call. |
Shared Key |
Enter a shared key to use for producers that are set up to handle encryption. The shared key is used by the encryption algorithm to generate a message signature for message authentication. Note that producer registration fails if the producer is set up with a shared key and you enter an incorrect shared key here. The shared key can contain between 10 and 20 alphanumeric characters. This key is also used when registering a producer using the Federated Portal Adapter (FPA). The Shared Key is also known as the HMAC key. |
Click OK.
The new producer appears in the connection table.
Use the WLST command registerPDKJavaProducer
to create a connection to a PDK-Java portlet producer and register the producer with your WebCenter application. For command syntax and examples, see the section "registerPDKJavaProducer" in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
See Also: deregisterPDKJavaProducer , listPDKJavaProducers , refreshProducer |
For information on how to run WLST commands, see Section 1.12.3.1, "Running Oracle WebLogic Scripting Tool (WLST) Commands."
To verify an Oracle PDK-Java producer connection, run the producer URL in a browser window in the following format:
http://host_name:port_number
/context-root
/providers/producer_name
For example:
http://domain.example.com:7778/axyz/providers/sample
You can update producer registration details at any time.
If a producer moves to a different location, then you must reconfigure any connections you have defined to this producer. You can use Fusion Middleware Control or WLST to edit the URL property:
WDSL URL for a WSRP producer
URL End Point for an Oracle PDK-Java producer
To retain all the portlet customizations and personalizations that users make while working with WebCenter applications, you must also migrate producer customizations and personalizations to the producer's new location. Use the WLST commands exportProducerMetadata
and importProducerMetadata
to migrate portlet client metadata to a different location. For more information, see Section 31.2.3, "Exporting Portlet Client Metadata (Custom WebCenter Applications)" and Section 31.2.4, "Importing Portlet Client Metadata (Custom WebCenter Applications)."
Note: If you want to migrate all the metadata for a particular producer (rather than portlet customizations and personalizations only), then use the producer migration tool. For more information, see Section 31.1.3.15, "Exporting Portlet Producers" and Section 31.1.3.16, "Importing Portlet Producers." |
This section includes the following subsections:
Section 21.6.1, "Editing Producer Registration Details Using Fusion Middleware Control"
Section 21.6.2, "Editing Producer Registration Details Using WLST"
Section 21.6.3, "Migrating WSRP Producer Metadata to a New WSDL URL"
To update connection details for a portlet producer:
Log in to Fusion Middleware Control and navigate to the home page for your custom WebCenter application (or WebCenter Spaces):
Do one of the following:
For custom WebCenter applications - From the Application Deployment menu, choose WebCenter > Service Configuration.
For WebCenter Spaces - From the WebCenter menu, choose Settings > Service Configuration.
From the list of services on the WebCenter Service Configuration page, select Portlet Producers.
In the Manage Portlet Producer Connections section, select the producer you want to modify, and click Edit.
In the Edit Portlet Producer Connection section, modify connection details, as required. For more information, see:
Click OK.
Use the following WLST commands to edit portlet producer connections:
WSRP producers - setWSRPProducer
PDK-Java producers - setPDKJavaProducer
For command syntax and examples, see the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
For information on how to run WLST commands, see Section 1.12.3.1, "Running Oracle WebLogic Scripting Tool (WLST) Commands."
If you want to move a WSRP producer to a new WSDL URL, you can use the exportPortletClientMetadata
, setWSRPProducer
, and importPortletClientMetadata
WLST commands to migrate the existing producer metadata to the new location. Before importing the producer metadata, you must deregister the existing producer and then reregister the producer with the new URL endpoint. If you do not reregister the producer, "Portlet Unavailable
" messages display in your WebCenter application.
To migrate WSRP producer metadata to a new URL endpoint:
Export the producer metadata, using the WLST command exportPortletClientMetadata
. For command syntax and examples, see "exportPortletClientMetadata" in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
Change the producer's WSDL URL, using the WLST command setWSRPProducer
. For command syntax and examples, see "setWSRPProducer" in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
Use Fusion Middleware Control or the WLST command deregisterWSRPProducer
to remove the existing producer connection, and the producer's metadata, from the WebCenter application. For more information, see Section 21.7, "Deregistering Producers."
Use Fusion Middleware Control or the WLST command registerWSRPProducer
to reregister the WSRP producer with the same name but the new WSDL URL. For more information, see Section 21.2, "Registering WSRP Producers."
Import the producer metadata, using the WLST command importPortletClientMetadata
. For command syntax and examples, see "importPortletClientMetadata" in the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
You can deregister producers at any time but, before doing so, consider any impact to the WebCenter application as portlets associated with a deregistered producer no longer work. Check the Portlets Producer Invocation metric to see how frequently the producer is being used. For more information, see Section 30.2, "Viewing Performance Information."
When you deregister a producer, registration data is removed from both the WebCenter application and the remote producer:
WebCenter application - The producer connection is deleted and producer metadata is also deleted.
Remote producer - Portlet instances are deleted (not the portlets themselves).
Portlet instances are not removed from WebCenter application pages. In place of the portlet, WebCenter users see a "Portlet unavailable
" message.
Note: Consider deleting the external application associated with this portlet producer if the application's sole purpose was to support this producer. See Section 22.5, "Deleting External Application Connections." |
This section includes the following subsections:
To deregister a portlet producer:
Log in to Fusion Middleware Control and navigate to the home page for your custom WebCenter application (or WebCenter Spaces):
Do one of the following:
For custom WebCenter applications - From the Application Deployment menu, choose WebCenter > Service Configuration.
For WebCenter Spaces - From the WebCenter menu, choose Settings > Service Configuration.
From the list of services on the WebCenter Service Configuration page, select Portlet Producers.
Select the name of the producer you want to remove, and click Delete.
The connection details are removed. Portlets associated with this producer are no longer accessible within the WebCenter application.
Use the following WLST commands to deregister portlet producer connections:
WSRP producers - deregisterWSRPProducer
PDK-Java producers - deregisterPDKJavaProducer
Use the following WLST commands to deregister the out-of-the-box or sample producers provided with Oracle WebCenter:
Out-of-the-box producers - deregisterOOTBProducers
Sample producers - deregisterSampleProducers
For command syntax and examples, see the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference.
For information on how to run WLST commands, see Section 1.12.3.1, "Running Oracle WebLogic Scripting Tool (WLST) Commands."
To deploy a portlet producer to an Oracle WebLogic Managed Server instance, you can use Fusion Middleware Control, Oracle WebLogic Server Administration Console, or WLST. For information on deploying a portlet producer at design-time, through Oracle JDeveloper, see the chapter "Testing and Deploying Your Portlets" in the Oracle Fusion Middleware Developer's Guide for Oracle WebCenter.
This section includes the following subsections:
Section 21.8.1, "Understanding Portlet Producer Application Deployment"
Section 21.8.2, "Converting a JSR 168 Portlet Producer EAR File into a WSRP EAR File"
Section 21.8.3, "Deploying Portlet Producer Applications Using Oracle JDeveloper"
Section 21.8.4, "Deploying Portlet Producer Applications Using Fusion Middleware Control"
For more information about deploying applications, see the chapter "Deploying Application" in Oracle Fusion Middleware Administrator's Guide.
You can deploy your portlet producer application to any Oracle WebLogic Managed Server instance that is configured to support WebCenter portlet producers. To deploy an application to a managed server, you can use Oracle Enterprise Manager Fusion Middleware Control, Oracle WebLogic Administration Console, or WLST. For more information about these administration tools, see Section 1.12, "Oracle WebCenter Administration Tools."
To deploy JSR 168 portlets to the WSRP Oracle Portlet Container, the portlet application EAR files must be converted into a WSRP application, which contains the necessary WSDL documents. To convert the JSR 168 portlet producer EAR file into a WSRP EAR file, run the WSRP producer predeployment tool located in the Middleware directory at WC_ORACLE_HOME
/webcenter/modules/oracle.portlet.server_11.1.1
, as follows:
java -jar wsrp-predeploy.jar source EAR target EAR
For JSR 168 portlets developed with servlet version 2.3, you must specify Web proxies using the following command:
java -Dhttp.proxyHost=proxy host
-Dhttp.proxyPort=proxy port
-jar wsrp-predeploy.jarsource EAR
target EAR
where:
proxy host
is the server to which your producer has been deployed.
proxy port
is the HTTP Listener port.
wsrp-predeploy.jar
is located in the WC_ORACLE_HOME
/webcenter/modules/oracle.portlet.server_11.1.1
directory.
source EAR
is the name of the JSR 168 EAR file.
target EAR
file is the name of the new EAR file to be created. If the file name for the targeted EAR file is not specified, then a new EAR file called WSRP-
source EAR
is produced.
In the following example Web proxy is specified:
java -Dhttp.proxyHost=myhttpproxy.com -Dhttp.proxyPort=80 -jar wsrp-predeploy.jar wsrp-samples.ear
This example produces WSRP-wsrp-samples.ear
.
The wsrp-predeploy.jar
predeployment tool makes all the necessary changes to a JSR 168 portlet to be able to deploy it to the Oracle portlet container and expose it as a WSRP producer. Here are some examples of what the predeployment tool does:
Creates the wsdldeploy
directory in the java.io.tmpdir
folder.
On UNIX, the default value of this property is /tmp
or /var/tmp
On Microsoft Windows, the default value of this property is c:\temp
.
Unpacks the EAR file into wsdldeploy/EAR
.
Unpacks the WAR files into wsdldeploy/[warfilename.war]/
.
Inserts WEB-INF/
WSDLs
into the unpacked application.
Modifies WEB-INF/web.xml
in the unpackaged WAR files.
Inserts or modifies WEB-INF/webservices.xml
in the WAR files.
Inserts or modifies WEB-INF/oracle-webservices.xml
in the WAR files.
Repackages the WARs and builds a new EAR file.
You can deploy portlet applications to an Oracle WebLogic Managed Server instance directly from the development environment using Oracle JDeveloper, if you have the necessary credentials to access the WebLogic server. For more information, see the section "Deploying a Portlet Application to an Oracle WebLogic Managed Server Instance" in the Oracle Fusion Middleware Developer's Guide for Oracle WebCenter.
For information about deploying a portlet producer application using Fusion Middleware Control, see Section 7.1.4.2, "Deploying Applications Using Fusion Middleware Control."
For information about deploying a portlet producer application using Oracle WebLogic Server Administration Console, see Section 7.1.4.4, "Deploying Applications Using the WLS Administration Console."
For information on deploying a portlet application using the WLST command, see Section 7.1.4.3, "Deploying Applications Using WLST."
This section includes the following sub sections:
This section describes producer registration and portlet unavailability issues.
Problem
You are unable to register a WSRP producer.
Solution
Ensure the following:
Back-end producer is up and running. To test the producer, access the WSDL URL of the producer through a browser window. See, Section 21.3, "Testing WSRP Producer Connections."
Producer application is packaged accurately. If not, then register the producer at design time (in JDeveloper), as described in the section "Registering Portlet Producers with a WebCenter Application" in the chapter "Consuming Portlets" in Oracle Fusion Middleware Developer's Guide for Oracle WebCenter, and redeploy the application, as described in Section 7.1, "Deploying Custom WebCenter Applications." After redeployment, verify that the packaged application includes the MBean, ProducerManager
:
In Fusion Middleware Control, from the Application Deployment menu, select System MBean Browser.
In the Navigator, expand Application Defined MBeans > oracle.webcenter.portlet > Application: application_name > Producer Manager > Producer Manager.
PortletServletContextListener
is added to the web.xml
file.
For applications that support post deployment registration of producers, the producer must be registered at least once at design time. This adds PortletServletContextListener
to the web.xml
file, which registers the appropriate runtime MBeans to enable post deployment registration of producers. For example, see the text in bold in the following web.xml
snippet:
<listener>
<description>
WebCenter Portlet Context Listener
</description>
<display-name>
WebCenterPortletContextListener
</display-name>
<listener-class>
oracle.webcenter.portlet.listener.PortletServletContextListener
</listener-class>
</listener>
Setting up the User Name with Password token profile in a WSRP portlet producer throws the exception WSM-00101
.
Problem
If you configure the User Name with Password Token profile for a WSRP producer through Fusion Middleware Control (or WLST) while portlets associated with this producer are in use, the portlets display the following exception in the WebCenter application:
oracle.wsm.common.sdk.WSMException: WSM-00101: The specified Keystore file /keys/user_projects/domains/pv_0309/config/fmwconfig/default-keystore.jks cannot be found; it either does not exist or its path is not included in the application classpath.
Solution
Ensure that you have configured the default keystore in your portlet producer. For information, see Section 29.1.3, "Setting Up the Keystores."