Oracle® Fusion Middleware Content Management Guide for Oracle WebLogic Portal 10g Release 3 (10.3.4) Part Number E14230-02 |
|
|
View PDF |
The basic deployment configuration for an application is defined in a deployment plan. A deployment plan is a collection of deployment descriptors, which are XML documents. The deployment descriptors for content management are defined in the content-config.xml
file.
Caution:
WebLogic Server imposes no restrictions on the configuration properties that a user can modify using the WebLogic Portal Administration Console. Changes made in the administration console can override the settings made in the content-config.xml file. Therefore, if you use this method, be sure to follow the recommendations made in "Configuring Applications for Production Deployment" in Oracle Fusion Middleware Deploying Applications to Oracle WebLogic Server. It is recommended that you use the content management APIs or administration tools to change your repository configuration.This chapter contains the following topics:
Section 15.1, "Enabling Library Services in content-config.xml"
Section 15.2, "Setting User Credentials for an External Repository in content-config.xml"
You can enable library services in content-config.xml
. This is useful when you want to add a custom workflow that you want propagated in a production environment or when you want to share library services across a team of developers.
To enable library services using a deployment descriptor from Oracle Enterprise Pack for Eclipse:
Follow the steps in Section 15.3, "Editing the content-config.xml File" to access the content-config.xml
file.
Using the Oracle Enterprise Pack for Eclipse editor or other editor, add the following repository property to the content-config.xml
file:
<repository-property> <name>MANAGEMENT_ENABLED</name> <value>true</value> </repository-property>
This section provides information about setting a cleartext password in content-config.xml
when using a third-party repository.
To set a cleartext password in content-config.xml
:
Follow the steps in Section 15.3, "Editing the content-config.xml File" to access the content-config.xml
file.
Using the Oracle Enterprise Pack for Eclipse editor or other editor, add the following repository property to the content-config.xml
file:
<content-store> <name>WLP_ExtendedRepository</name> <description>Portal Test Extended Repository Configuration</description> <class-name>com.bea.content.spi.internal.ExtendedRepositoryImpl </class-name> <password></password> </content-store>
Start the server for the domain, if it is not already running.
Run the weblogic.security.Encrypt utility. For information on how to do this, see "Using the Oracle WebLogic Server Java Utilities" in Oracle Fusion Middleware Command Reference for Oracle WebLogic Server.
Copy the generated domain-secret-encrypted-password into the password element. For example:
<password>{3DES}85Kmho5Uphc=</password>
Note:
Password must begin with a{3DES}
and end with =
.
The password is specific to the given domain and must be run as a command line utility from that domain directory. This password will not work with another domain.
Restart the server.
To edit the content-config.xml
file from Oracle Enterprise Pack for Eclipse:
In the Project Explorer, navigate to the <
PortalEARProject
>/EarContent/META-INF
folder.
If content-config.xml
is not in this folder, otherwise go to Step 3:
Select Window > Show View > Other.
Expand the WebLogic Portal node in the tree and click to select Merged Projects View.
Tip:
Some items listed in the Merged Projects view are italicized. The italicized items represent entities that are stored in shared J2EE libraries. All entities that are stored on your file system are shown in regular type.Click OK.
In the Merged Projects View, right-click the <
PortalEARProject
>/EarContent/META-INF/content-config.xml
file and select Copy To Project from the context menu.
Using the Oracle Enterprise Pack for Eclipse editor or other editor, edit the content-config.xml
file.