Вы находитесь на странице: 1из 41

Content Server Setup on Oracle 10g iAS (10.1.

3)
An Oracle White Paper
FEB-2013
CONTENT SERVER SETUP ON ORACLE 10G IAS (10.1.3) 0

Content Server Setup on Oracle 10g iAS (10.1.3) 3

Setup Solution 4
Option 1 4
For 10.1.3.1.0 and greater 4
Option 2 7

STEPS COMMON TO OPTION1 AND OPTION2 10

CONTENT SERVER TROUBLESHOOTING: 13


Files to Collect 14
Turning on logging on the Content Server 14

NOW SCREEN SHOTS OF INSTALLING 10GAS 10.1.3.0 21

STEPS OF INSTALLING THE 10G APPLICATION SERVER (10.1.3.0.0) 21

NOW SCREEN SHOTS OF INSTALLING 10GAS 10.1.3.1 26

STEPS OF INSTALLING THE 10G APPLICATION SERVER (10.1.3.1.0) 26

Content Server Setup on Oracle 10g iAS 10.1.3 Page 2


Content Server Setup on Oracle 10g iAS (10.1.3)

Prior to Oracle 10g iAS, Oracle Application server had jserv installed/delivered along with it. So, the earlier
MyOracleSupport note to copy the servlets in jserv/servlets directory, create alias in httpd.conf, modify zone.properties
were valid. However, from Oracle 10g onwards, jserv is de-supported and is no longer a part of iAS
Install 10g Application server (preferably 10.1.3.0.0 ) of type standalone OPMN managed OC4J server that uses the built-
in OC4J Web server to directly receive and respond to HTTP[S] requests.
Choose the option ‘J2EE Server and Process Management’ while installing.
This does not contain the Oracle HTTP Server.
Notation: $ORACLE_HOME is the path where application server is installed.
e.g. D:\product\10.1.3\Oracle AS_1
$J2EE_HOME is $ORACLE_HOME/j2ee/home
The default http port for oc4j is 8888. You can change the port after installations, if required. Steps to change the port
after installation are:
In 10gAS – 10.1.3.1, you can login to enterprise manager and change the port as follows -
1. After logging in choose cluster topology link in breadcrumb.
2. Select Runtime Ports link in Administration region.
3. Select the edit link beside http port number.
4. Update the port number and apply.
For prior versions of 10gAS, you can manually change the port as follows -
1. Go to $ORACLE_HOME/opmn/conf
2. opmn.xml has the following line
<port id="default-web-site" range="8888" protocol="http"/>
3. Update the port number to 7777.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 3


Setup Solution
The solution to setup a content server is briefly as follows
1. Create an application “contents” under OC4J default instance. Content is a web application that is deployed with
contents.war, a web archive of the class files that you were copying under servlets directory earlier.
2. Create another application “contentstorage” under OC4J default instance again. This is a dummy web application
with “Allow directory browsing” set to yes. This will allow the player module in the learning management application to
access the content directly using an http url.
You can install the Content Server in the following two ways:

OPTION 1
The steps to deploy these applications are as below,
1. Add the following lines in application.xml ($J2EE_HOME /config). This must be added between the <orion-
application> and </orion-application> tags. This is to tell the container about the war files to be deployed.
<web-module id="contents" path="../../home/applications/contents.war" />
<web-module id="contentstorage" path="../../home/applications/ContentStorage.war" />
2. Add the following lines in default-web-site.xml ( $ J2EE_HOME /config). This is to tell the OC4J HTTP server about
the web module deployed with the applications. It's important to note that the application attribute must specified as
"default" since you have deployed your Web module to the default application. The name attribute should match the
ID attribute you specified for the Web module. This should be added between the <web> and </web> tags.
<web-app application="default" name="contents" load-on-startup="true" root="/" />
<web-app application="default" name="contentstorage" load-on-startup="true"
root="/contentstorage" />
(b) Remove the attribute “root” from ‘default-web-app’ element.
<default-web-app application="default" name="defaultWebApp" root=”/j2ee”/>
Should be changed to:
<default-web-app application="default" name="defaultWebApp"/>
Important Note: If any one does not want to remove root=”/j2ee” because of some business need, then one should
choose Option2 of content server installation.

FOR 10.1.3.1.0 AND GREATER


For release 11i you will need patch:
7290918 - SET UP CONTENT SERVER USING FULL VERSION OF 10G IAS SERVER
This will provide ContentServerWeb.xml at version 115.1
For release R12 you will need patch:
7427646 - SET UP CONTENT SERVER USSING 10.1.3.1 VERSION OF 10G IAS SERVER
This will provide ContentServerWeb.xml at version 120.0.12000000.2 (Note: This is fixed in 12.0.7 but not in 12.1.1)

Content Server Setup on Oracle 10g iAS 10.1.3 Page 4


3. Create a file contents.war as follows:
• Create a directory structure step3/WEB-INF anywhere
• Copy ContentServerWeb.xml (from the application middle tier
$JAVA_TOP/oracle/apps/ota/admin/common/util), rename it as web.xml and place it under the step3/WEB-INF
directory just created.
Note, you can edit or view the web.xml to confirm it was created using the correct ContentServerWeb.xml file by examining the Header
information.
• Create the following directory structure under this same step3/WEB-INF directory:
classes
oracle
apps
fnd
common
• Copy the following file into this newly created directory: VersionInfo.class (copied from <ApplicationMiddleTier>
$JAVA_TOP/oracle/apps/fnd/common)

• You also have to create the following directory structure under the step3/WEB-INF/classes directory – metadata and
common directories should be at the same level.
oracle
apps
fnd
metadata
Copy DatabaseClass.class (copied from <ApplicationMiddleTier> $JAVA_TOP/oracle/apps/fnd/metadata) into this
directory.
Then also under the same step3/WEB-INF/classes/oracle/apps directory create the following folders
ota (This should be at the same level as the fnd folder created above)
admin
common
util
(copy the following files from <ApplicationMiddleTier> $JAVA_TOP/oracle/apps/ota/admin/common/util)
ContentServerClientData.class
ContentServerServlet.class
ProtocolConstants.class

Content Server Setup on Oracle 10g iAS 10.1.3 Page 5


SystemUtils.class
SystemUtils$JarUtility.class
Time to create the contents.war file
• Issue a cd step3 command to move back one directory level.
• Open command prompt and navigate to directory step3 under which WEB-INF is present.
• Execute the command jar -cvf contents.war WEB-INF

4. Create a file ContentStorage.war as follows:


• Create another directory structure step4/WEB-INF anywhere.
• Copy ContentStorageWeb.xml (from the application middle tier $JAVA/oracle/apps/ota/admin/common/util) as
web.xml and place it under this new step4/WEB-INF directory.
Note, you can edit or view the web.xml to confirm it was created using the correct ContentStorageWeb.xml file by examining the Header
information.
• Issue a cd step4 command to move back one directory level.
• Open command prompt and navigate to directory step4 under which WEB-INF is present.
• Execute the command jar -cvf ContentStorage.war WEB-INF

5. Copy the two war files, contents.war and ContentStorage.war under ( $J2EE_HOME/applications).
<End Of steps specific to option1>

Content Server Setup on Oracle 10g iAS 10.1.3 Page 6


OPTION 2
(You can use this option on unix servers or on servers having issues with steps in Option1)
NOTE: If Option 1 failed you will first need to undeploy the contents.war setup in Option 1.
a. Use EM to stop the services.
b. Edit the $J2EE_HOME/config/application.xml file
c. Comment out (or delete) the following line:
<web-module id="contents" path="../../home/applications/contents.war" />
d. Delete the contents.war previously created.
e. Continue with the remaining steps as documented below
The steps to deploy these applications are:
1. Navigate to $J2EE_HOME/config and edit the application.xml file. This is to tell the container about the war files
to be deployed. Add the following line
<web-module id="contentstorage" path="../../home/applications/ContentStorage.war" />
2. Also edit the default-web-site.xml file in the same directory and add the line below. This is to tell the OC4J HTTP
server about the web module deployed with the applications. It's important to note that the application attribute
must specified as "default" since you have deployed your Web module to the default application. The name
attribute should match the ID attribute you specified for the Web module.
<web-app application="default" name="contentstorage" root="/contentstorage" load-on-
startup="true" />
3. Navigate to $J2EE_HOME/default-web-app/WEB-INF and edit the file web.xml. Add the following lines:
NOTE: on the <servlet-class> lines is a directory structure. This structure must physically exist and the files must
physically exist under this directory structure.
<servlet>
<servlet-name>OtaContentServerServlet</servlet-name>
<servlet-class>oracle.apps.ota.admin.common.util.ContentServerServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>OtaProtocolConstants</servlet-name>
<servlet-class>oracle.apps.ota.admin.common.util.ProtocolConstants</servlet-class>
</servlet>
<servlet>
<servlet-name>OtaSystemUtils</servlet-name>
<servlet-class>oracle.apps.ota.admin.common.util.SystemUtils</servlet-class>

Content Server Setup on Oracle 10g iAS 10.1.3 Page 7


</servlet>
<servlet>
<servlet-name>OtaSystemUtils$JarUtility</servlet-name>
<servlet-class>oracle.apps.ota.admin.common.util.SystemUtils$JarUtility</servlet-class>
</servlet>
<servlet>
<servlet-name>OtaContentServerClientData</servlet-name>
<servlet-class>oracle.apps.ota.admin.common.util.ContentServerClientData</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>OtaContentServerServlet</servlet-name>
<url-pattern>/servlets/*</url-pattern>
</servlet-mapping>

NOTE: If you experience problems with your content server alter the url-pattern above as follows by removing the
“/servlets” part of the path. So it reads:
<url-pattern>/*</url-pattern>
Bounce the server and retest.
4. Create the following directory structure in the directory $J2EE_HOME/default-web-app/WEB-INF/classes
oracle
apps
fnd
common
VersionInfo.class (copy from <ApplicationMiddleTier> $JAVA_TOP/oracle/apps/fnd/common)
5. Also include the following file under the WEB-INF/classes directory
oracle
apps
fnd
metadata
DatabaseClass.class (copied from <ApplicationMiddleTier> $JAVA_TOP/oracle/apps/fnd/metadata)

Content Server Setup on Oracle 10g iAS 10.1.3 Page 8


6. Create the following directory structure in the directory
$J2EE_HOME/default-web-app/WEB-INF/classes/oracle/apps/
ota
admin
common
util
(copy the below files from <ApplicationMiddleTier> $JAVA_TOP/oracle/apps/ota/admin/common/util)
ContentServerClientData.class
ContentServerServlet.class
ProtocolConstants.class
SystemUtils.class
SystemUtils$JarUtility.class (In Unix, this file will not copy correctly, please FTP this file to the
content server.
7. Create a file ContentStorage.war as follows
a) Create a directory WEB-INF anywhere.
b) Copy and Rename ContentStorageWeb.xml (from <ApplicationMiddleTier>
$JAVA_TOP/oracle/apps/ota/admin/common/util) to web.xml and copy it under this new WEB-INF
directory.
c) Open command prompt and navigate to directory under which WEB-INF is present.
d) Execute the command jar -cvf ContentStorage.war WEB-INF

8. Copy the war file, ContentStorage.war under ( $J2EE_HOME /applications).


<End Of steps specific to option2>

Content Server Setup on Oracle 10g iAS 10.1.3 Page 9


STEPS COMMON TO OPTION1 AND OPTION2
1. Navigate to $J2EE_HOME/config and edit the file oc4j.properties. Add the following line:
middletier=10.176.126.54+140.87.205.58+140.87.204.217
NOTE: If you are using a BIG IP or load balancer for your E-Business suite middle tiers, this IP address must be included as well.
jbo.server.in_oc4j=true

java.io.tmpdir=D:\\ContentTemp
Important Note: Check that there is no extra space after any value in the above properties.

The IPs for middle tier is the IP Addresses where Oracle Applications is installed.
e.g For JUN05MST, add the IP address of ap6045rt.us.oracle.com.. These values must be seperated by a plus sign (+), any
other seperator will cause errors.

Value for "java.io.tmpdir" is a valid directory in the system where content server is installed. This will contain temporary
files that are created while uploading, importing, exporting content from content server. It must writable and have enough
free space for the largest file you may be uploading.
2. Enable directory browsing for the application contentstorage:
Login to Application server, e.g. http://10.176.126.54:80/em
Under OC4J instances table, click on OC4J instance "home".
Click on sub tab "Applications".
Click on "default" in the tree.
Click on contentstorage from Modules.
Click on Administration sub tab.
Select Configuration Properties.
Check the check box "Allow Directory Browsing".
Click on ok.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 10


Content Server Setup on Oracle 10g iAS 10.1.3 Page 11
3. Define a content server from Learning Administrator > Setup Administrator
Host name - IP address where content server is installed.
Port - HTTP port of the content server.
Physical Directory - $ J2EE_HOME\applications\ContentStorage\ (replace $J2EE_HOME with the installation
value)
Virtual directory = contentstorage
4. Create a learning object under Content Administration and Click on upload from Learning Object details page.
Upload the file. If you are uploading a single file (instead of zip) then file name that is being uploaded (w/o
directory) = Initial file name
The learning object starting URL will be like
http://10.176.126.54:80/contentstorage/learningdemos/RBAC.ppt
where host name (for content server) = 10.176.126.54
port number(for content server) = 80
learningdemos = directory entered while uploading the file
RBAC.ppt - Initial file (entered when uploading the file into lo)

Content Server Setup on Oracle 10g iAS 10.1.3 Page 12


CONTENT SERVER TROUBLESHOOTING:
Overview:

This section attempts to list the common issues that arise when configuring and utilizing and OLM content server.

1) Collect the following files immediately after the error is produced or reproduced.
(a) OC4J~home~default_group~1 file under $ORACLE_HOME\opmn\logs

You should first check this file if you get any errors. If you have made some mistakes in oc4j.properties like putting extra space
after key value pair, then that would be reflected here.

If there is no error in this file, then check other two.

(b) global-application.log file under $J2EE_HOME\log\home_default_group_1

If you are having some difficulties in initialization of your main servlet class

ContentServerServlet.java, then that would reflect in this file.

One of the main causes of initialization problem is that you have forgotten to include some files as mentioned previously in this
document.

(c) default-web-access-<date>.log under $J2EE_HOME\log\home_default_group_1

This file keeps the status of communication between the middle tier and content server.

Check the log line

POST /servlets/oracle.apps.ota.admin.common.util.ContentServerServlet?Connection=%3Copen%2F%3E&Operation=0
HTTP/1.1"
<response code>

In case of successful transaction, the response code will be 200.

If there is any problem with servlet initialization, then the response code will be 500 (Internal server error).

Note: If you have forgotten to remove the root=”/j2ee” from application.xml as mentioned in section 2.b of Option1, then log
line will have URL start with ‘/j2ee’

e.g.

POST /j2ee/servlets/oracle.apps.ota.admin.common.util.ContentServerServlet?Connection=%3Copen%2F%3E&Operation=0
HTTP/1.1" 404

And response code will be 404 (source not found).

Content Server Setup on Oracle 10g iAS 10.1.3 Page 13


FILES TO COLLECT
Here is the list of files to collect to aid support in diagnosing your issue:

• OC4J~home~default_group~1 log file ( $ORACLE_HOME\opmn\logs)

• global-application.log file ($J2EE_HOME\log\home_default_group_1)

• default-web-access-<date>.log ($J2EE_HOME\log\home_default_group_1)

• application.xml ($J2EE_HOME/config).
• default-web-site.xml ( $J2EE_HOME/config).
• web.xml ($J2EE_HOME/default-web-app/WEB-INF)
• oc4j.properties ($J2EE_HOME/config)
• ias.properties ($ORACLE_HOME/config)
• opmn.xml ($ORACLE_HOME/opmn/conf)

TURNING ON LOGGING ON THE CONTENT SERVER

• Stop all Enterprise Manager processes


• Edit the $J2EE_HOME/conf/ default-web-site.xml file.
• There should be a Commented line similar to the following
<access-log path=”../log/default-web-access-log” split=”day”/>
• Remove the comment
• Save the change
• Restart the Enterprise Manager processes
• Recreate the issue

Content Server Setup on Oracle 10g iAS 10.1.3 Page 14


2) Error: Input/output Error, or, uploaded or imported files did not appear on the file server while
uploading content or Content Upload failed Error.
a) Check that following files are the same version and size on both the Application Middle tier and Content server.

• ContentServerClientData.class(java)

• ContentServerServlet.class

• ProtocolConstants.class

• SystemUtils.class

• SystemUtils$JarUtility.class

Question: How Can I check the File version.

Answer: Run the ident command on file:

ident <file path>.

Or strings <file name>| grep '$Header:

For Windows based installations you can use the “findstr” command.
Open a command prompt and ‘cd’ to the correct directory.
Issue “findstr ContentServerServlet.class Header” (This is just an example)
There is quite a bit of information returned, but you will see the header information including the name and version

b) Also check the above files have execute permission on server.

Question: How can one check that execute permission is given or not?

Answer: Run the “ ls –l “ unix command for files. It gives the permission set allotted to the files.

c) Check that files are not miscopied. This means the file name and class name should be same. e.g if file name is
ContentServerSevlet.class , then the class contained by this file also should be ContentServerSevlet. At least one issue was
resolved when it was found the ContentServerSevlet.class file was miscopied from the ContentServerClientData.class file.

Question: How can I check whether the file name and class name are same?

Answer: Run the ident command on file. It gives you class name as well as version.

ident <file path>

or strings <file name>| grep '$Header:

d) Confirm with their Network/Firewall team to ensure the proper ports are open to allow communication between the two
servers to occur.

e) Verify that ip address is the physical Ip Address.

f) If there is load balancing then mention ip address of all the balancing servers.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 15


g) Check that url names and ip address are matching

Question: How can I find out that URL and ip address are matching.

Answer: Run the nslookup command on both content server and middle tier for each other.

Command syntax is:

nslookup <ipaddress>

nslookup <url name >

Example: Run the nslookup at content server for apps instance name

C:\> nslookup ap6045rt.us.oracle.com

Server: 130.35.249.41

Address: 130.35.249.41#53

Name: ap6045rt.us.oracle.com

Address: 140.87.205.11

And specify 140.87.205.11 in the oc4j.prop file

h) Please refer to Note 972536.1 – Content Upload Error (Input / Output Error) for additional trouble shooting
instructions.

3) “Content server is not running” error while uploading content


Question: How can I check the status of content server?

Answer: Use the following two options:

a) Check the status of server by running the following command

opmnctl status –l

Run this command from inside the <oracle home>/opmn/bin directory.

b) Can also check the status by accessing the Oracle Enterprise Manager 10g Application

Server Control. Read the <ORACLE HOME>/install/readme.txt for information regarding

Oracle Enterprise Manager 10g Application Server Control

Content Server Setup on Oracle 10g iAS 10.1.3 Page 16


Question: How to check whether servlet is up or not?

Answer: Type http://<contentserverip>:<port no>/servlets/ in your web browser. It should show the following screen:

Now log into the Enterprise Manager Interface and go to contents application page.

Steps to reach the contents application home page are as follows:

(a) Under OC4J instances table, click the name of OC4J instance name (‘home’ by default). You will reach the home page of
OC4J instance as shown in the following image.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 17


(b) Click the ‘default’ link. You will reach the default application home page as shown below.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 18


(c) Click the “contents” under module. You will reach the home page of contents application as shown below:

(d) Check that ‘OtaContentServerServlet’ should appear under section Active Servlets?JSPs

(3) Authentication failure error or Content Upload failed Error

(a)Check the oc4j.properties file under $J2EE_HOME/config that ‘middletier’ key has the ip address of middle tier.

(b) Check root=”/j2ee” is removed as it mentioned in section 2.b under Option1.

(c) Check that in oc4j.properties file there is no extra space after key-value pair.

e.g.

java.io.tmpdir=D:\\ContentTemp

here check that there is no extra space after D:\\ContentTemp.

(4) Where To Find Cause of Errors

You can look at the following three log files to find out the cause of error:

(a) OC4J~home~default_group~1 file under $ORACLE_HOME\opmn\logs

You should first check this file if you get error. If you have made some mistakes in oc4j.properties like putting extra space after
key value pair, then that would reflect here.

If there is no error in this file, then check other two.

(b) global-application.log file under $J2EE_HOME\log\home_default_group_1

Content Server Setup on Oracle 10g iAS 10.1.3 Page 19


If you are having some difficulties in initialization of your main servlet class

ContentServerServlet.java, then that would reflect in this file.

One of the main causes of initialization problem is that you have forgotten to include some files as mentioned in document
above.

(c) default-web-access-<date>.log under $J2EE_HOME\log\home_default_group_1

This file keeps the status of communication between the middle tier and content server.

Check the log line

POST /servlets/oracle.apps.ota.admin.common.util.ContentServerServlet?Connection=%3Copen%2F%3E&Operation=0
HTTP/1.1"
<response code>

In case of successful transaction, the response code will be 200.

If there is any problem with servlet initialization, then the response code will be 500 (Internal server error).

Note: If you have forgotten to remove the root=”/j2ee” from application.xml as mentioned in section 2.b of Option1, then log
line will have URL start with ‘/j2ee’

e.g.

POST /j2ee/servlets/oracle.apps.ota.admin.common.util.ContentServerServlet?Connection=%3Copen%2F%3E&Operation=0
HTTP/1.1" 404

And response code will be 404 (source not found).

Content Server Setup on Oracle 10g iAS 10.1.3 Page 20


NOW SCREEN SHOTS OF INSTALLING 10GAS 10.1.3.0

STEPS OF INSTALLING THE 10G APPLICATION SERVER (10.1.3.0.0)

This is the starting page.

(a) Provide value in text box against ‘Installation Directory’ (by default it is

D:\product\10.1.3\OracleAS_1). This is called the $ORACLE_HOME

(b) Choose the Advance Installation mode.

(c) Click ‘Next’.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 21


(d) Select option ‘J2EE Server and Process Management (468 MB)’.

(e) Click Next.

(f) Click Next.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 22


(g) Select the check box (configure this as an Administration OC4J instance) and click Next.

(h) Provide all the details. You will require the password that you provide here when you log into the Manager Interface using
http://<contentserveripaddress>:<port>/em.

(i) You can also provide the OC4J instance name (by default it is ‘home’).

Content Server Setup on Oracle 10g iAS 10.1.3 Page 23


(j) Click Next.

(k) Click Next.

(l) Click Install.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 24


(m) You should get this window without an error. Click Next.

(n) This is the final window showing successful installation. Click Exit.

All information regarding installation, URL for manager interface, and other details are available in the readme.txt file under
$ORACLE_HOME/install directory.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 25


NOW SCREEN SHOTS OF INSTALLING 10GAS 10.1.3.1

STEPS OF INSTALLING THE 10G APPLICATION SERVER (10.1.3.1.0)

1) Download the 10g SOA application

2) Unzip this

3) Run the Setup:

4) You should see the form; fill in the name for this installation and the password you wish to use for the
installation.

5) At this point select “J2EE Server” option, possibly the third one available.

6) Now start at the beginning of this document to complete the content server installation.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 26


Content Server Install (fpscontent)
Install Oracle 10g iAS (10.1.3.1.0)
Software downloaded from Oracle Technology Network
http://www.oracle.com/technetwork/middleware/ias/downloads/101310-085449.html
Downloaded Oracle SOA Suite 10g (10.1.3.x) Disk1 and Disk2 under Solaris to
$HOME/software
soa_Solaris_101310_disk1.cpio
soa_Solaris_101310_disk2.cpio
cpio was used to extract to Disk1 and Disk2 directories

cd /export/home/oracle/software/Disk1
runInstaller
Oracle Application Server SOA Suite 10.1.3.1.0 Installation

Installation Directory /u01/oracle/ctnt

Content Server Setup on Oracle 10g iAS 10.1.3 Page 27


Click Advanced Install
<Next>

<Yes>

Oracle Universal Installer: Select Installation Type

J2EE Server (1005MB)


<Next>

Content Server Setup on Oracle 10g iAS 10.1.3 Page 28


Oracle Universal Installer: Specify Port Configuration Options

Automatic
<Next>
Oracle Universal Installer: Administration Settings

Content Server Setup on Oracle 10g iAS 10.1.3 Page 29


AS Instance Name ctnt
AS Administrator Username oc4jadmin
AS Administrator Password oc4jadmin
CHECK Configure this as an Administration OC4J instance
OC4J Instance Name ctnt
<Next>
Oracle Universal Installer: Cluster Topology Configuration

Content Server Setup on Oracle 10g iAS 10.1.3 Page 30


<Next>
Oracle Universal Installer: Summary

Content Server Setup on Oracle 10g iAS 10.1.3 Page 31


<Install>

Open another console window


cd /u01/oracle/ctnt
su root

Content Server Setup on Oracle 10g iAS 10.1.3 Page 32


./root.sh
# ./root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:


ORACLE_OWNER= oracle
ORACLE_HOME= /u01/oracle/ctnt

Enter the full pathname of the local bin directory: [/usr/local/bin]:


The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying coraenv to /usr/local/bin ...

Adding entry to /var/opt/oracle/oratab file...


Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
#
# Exit
<OK>

Content Server Setup on Oracle 10g iAS 10.1.3 Page 33


Oracle Universal Installer: End of Installation

<Exit>

<Yes>

Content Server Setup on Oracle 10g iAS 10.1.3 Page 34


/u01/oracle/ctnt/install/readme.txt

The installation of Oracle Application Server 10g 10.1.3.1.0 was successful.

These instructions are located in /u01/oracle/ctnt/install/readme.txt for your future


reference.

You can view the status of the server with the following command:

/u01/oracle/ctnt/opmn/bin/opmnctl status

Access the Welcome Page with the following URL:

http://fpscontent.MyOrg.org:8888/

Access the Oracle Container for J2EE with the following URL:
http://fpscontent.MyOrg.org:8888/j2ee

Access the Oracle Enterprise Manager 10g Application Server Control via the following
URL:
http://fpscontent.MyOrg.org:8888/em

Installation Details:

Installation Directory: /u01/oracle/ctnt


Installation Type: J2EE Server
Installed Components: Oracle Containers for J2EE (OC4J) and Oracle Process Manager
& Notification Server (OPMN).
Instance Name: ctnt.fpscontent.MyOrg.org
Administrator Username: oc4jadmin

The log file containing the details of Configuration Asistants is located in


/u01/oracle/ctnt/cfgtoollogs

Documentation

Online documentation for Oracle Application Server is available at:


http://download.oracle.com/docs/cd/B31017-01/index.htm.

In order to keep your system up-to-date we encourage you to regularly check for the latest
certification and software updates via MyOracleSupport.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 35


MyOracleSupport (http://support.oracle.com) will help you get the most out of your
Oracle products by providing access to technical information and assistance from Oracle
Support Services, including information about: product availability, certification, product
alerts, bug information, patches, technical solutions, logging service requests, and more.

If you need to find more information on Oracle Integration


Products please visit (http://otn.oracle.com/products/integration)

You can access the list of ports used by the following command :
/u01/oracle/ctnt/opmn/bin/opmnctl status –l

This ends the installation and implementation of the content server.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 36


The following is an example of what one customer did to make their content server function.
FPSCONTENT was the name they chose for their server.
Setup Content Server
Base on the White Paper Content Server Setup on Oracle 10g iAS (10.1.3) in NOTE:
427311.1

Option 1 (pg. 4)
Modify /u01/oracle/ctnt/j2ee/home/config/application.xml
Add the following lines in application.xml ($J2EE_HOME /config).
This must be added between the <orion-application>
and </orion-application> tags. This is to tell the container about the war files to be
deployed.

<web-module id="contents" path="../../home/applications/contents.war" />


<web-module id="contentstorage" path="../../home/applications/ContentStorage.war" />

Modify /u01/oracle/ctnt/j2ee/home/config/default-web-site.xml
Add the following lines in default-web-site.xml ( $ J2EE_HOME /config). This is to tell
the OC4J HTTP server about the web module deployed with the applications. It's important
to note that the application attribute must specified as "default" since you have deployed
your Web module to the default application. The name attribute should match the ID
attribute you specified for the Web module. This should be added between the <web> and
</web> tags

<web-app application="default" name="contents" load-on-startup="true" root="/" />


<web-app application="default" name="contentstorage" load-on-startup="true"
root="/contentstorage" />

Remove the attribute “root” from ‘default-web-app’ element.

<default-web-app application="default" name="defaultWebApp" root=”/j2ee”/>

Should be changed to:

<default-web-app application="default" name="defaultWebApp"/>

Create contents.war file


On fpscontent
cd /u01/oracle/ctnt
mkdir WEB-INF
Log on to FPS1 and open console

Content Server Setup on Oracle 10g iAS 10.1.3 Page 37


. prodappl_r12
cd $JAVA_TOP/oracle/apps/ota/admin/common/util
scp ContentServerWeb.xml oracle@fpscontent:/u01/oracle/ctnt/WEB-INF
On fpscontent
cd /u01/oracle/ctnt/WEB-INF
mkdir classes
cd classes
mkdir oracle
cd oracle
mkdir apps
cd apps
mkdir fnd
cd fnd
mkdir common
cd /u01/oracle/ctnt/WEB-INF/classes/oracle/apps/fnd
mkdir metadata
Log on to FPS1 and open console
. prodappl_r12
cd $JAVA_TOP/oracle/apps/fnd/metadata
scp DatabaseClass.class oracle@fpscontent:/u01/oracle/ctnt/WEB-INF/classes/oracle/apps/fnd/metadata
cd $JAVA_TOP/oracle/apps/fnd/common
scp VersionInfo.class oracle@fpscontent:/u01/oracle/ctnt/WEB-INF/classes/oracle/apps/fnd/metadata
On fpscontent
cd /u01/oracle/ctnt/WEB-INF/classes/oracle/apps
mkdir ota
cd ota
mkdir admin
cd admin
mkdir common
cd common
mkdir util

Log on to FPS1 and open console


. prodappl_r12
cd $JAVA_TOP/oracle/apps/ota/admin/common/util
scp ContentServerClientData.class ContentServerServlet.class ProtocolConstants.class
SystemUtils.class SystemUtils$JarUtility.class oracle@fpscontent:/u01/oracle/ctnt/WEB-
INF/classes/oracle/apps/ota/admin/common/util
On fpscontent
cd /u01/oracle/ctnt
jar –cvf contents.war WEB-INF

Content Server Setup on Oracle 10g iAS 10.1.3 Page 38


Create ContentStorage.war file
On fpscontent
cd /u01/oracle/ctnt
mkdir WEB-INF-2
Log on to FPS1 and open console
. prodappl_r12
cd $JAVA_TOP/oracle/apps/ota/admin/common/util
scp ContentStorageWeb.xml oracle@fpscontent:/u01/oracle/ctnt/WEB-INF-2/web.xml
On fpscontent
cd /u01/oracle/ctnt
jar –cvf ContentStorage.war WEB-INF-2

Copy war files to $J2EE_HOME/applications


cp contents.war ContentStorage.war /u01/oracle/ctnt/j2ee/home/applications

Steps Common to Option 1 and Option 2


Step 1 On fpscontent
cd /u04
mkdir oracle
cd oracle
mkdir ctnt
cd ctnt
mkdir ContentTemp
cd /u04/oracle/ctnt
chmod 777 ContentTemp
cd /u01/oracle/ctnt/j2ee/home/config
Add the following lines to oc4j.properties
middletier=172.22.22.146
jbo.server.in_oc4j=true
java.io.tmpdir=/u04/oracle/ctnt/ContentTemp

Step 2 On fpscontent
Log on to OEM Application Server Control

http://fpscontent.MyOrg.org:8888/em
Under OC4J instances table, click on OC4J instance "home".
Click on sub tab "Applications".
Click on "default" in the tree.
Click on contentstorage from Modules.
Click on Administration sub tab.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 39


Select Configuration Properties.
Check the check box "Allow Directory Browsing".
Click on ok.

Content Server Setup on Oracle 10g iAS 10.1.3 Page 40


White Paper Title: Content Server Setup on Oracle 10g iAS (10.1.3)
Created: April 2008
Author: Deepak Singh
Modified: March 2012
By: Chuck Hedler

Oracle Corporation
World Headquarters
500 Oracle Parkway
Redwood Shores, CA 94065
U.S.A.

Worldwide Inquiries:
Phone: +1.650.506.7000
Fax: +1.650.506.7200
oracle.com

Copyright © 2008, Oracle. All rights reserved.


This document is provided for information purposes only and the
contents hereof are subject to change without notice.
This document is not warranted to be error-free, nor subject to any
other warranties or conditions, whether expressed orally or implied
in law, including implied warranties and conditions of merchantability
or fitness for a particular purpose. We specifically disclaim any
liability with respect to this document and no contractual obligations
are formed either directly or indirectly by this document. This document
may not be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without our prior written permission.
Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle
Corporation and/or its affiliates. Other names may be trademarks
of their respective owners.

Вам также может понравиться