Place the NCSO.jar in the following Sun Java System Portal Server directory:
/usr/share/lib
Update the web container class path to include /usr/share/lib/NCSO.jar using the Sun Java System Application Server administration console.
Launch the Sun Java System Application Server administration console.
Select the domain.
Select the server instance.
Select the JVM Settings tab in the server instance view.
Select Path Settings under the JVM Settings tab.
Add /usr/share/lib/NCSO.jar in the Classpath Suffix list.
Select Save.
Select Apply Changes under the General tab of the instance.
Select Restart.
Place the NCSO.jar file in the following directory:
PortalServer-base/SUNWportal/web-src/WEB-INF/lib
Redeploy the web application with the following command:
PortalServer-base/ SUNWportal/bin/deploy redeploy
Where PortalServer-base represents the directory in which the Sun Java System Portal Server was originally installed.
Restart the web container.
Place the NCSO.jar in the following Sun Java System Portal Server directory:
/usr/share/lib
Update the web container class path to include /usr/share/lib/NCSO.jar using the command line.
Change directories to the web container install directory:
WebContainer-base /bea/wlserver6.1/config
Where WebContainer-base represents the directory in which the web container was originally installed.
Change directories to the directory that contains the domain instance:
mydomain
Edit the startWebLogic.sh file using the editor of your choice.
Add /usr/share/lib/NCSO.jar to the end of the CLASSPATH.
The startWebLogic.sh file may contain multiple CLASSPATH definitions. Locate the last definition of the variable and add the following string to the very end of the CLASSPATH:
/usr/share/lib/NCSO.jar
Restart the web container.
Prune the classes under org/w3c/dom/ and org/xml/sax/ from the NCSO.jar file and rejar.
The classes should include the following:
org/w3c/dom/Document.class
org/w3c/dom/Node.class
org/xml/sax/InputSource.class
org/xml/sax/SAXException.class
You can perform this task in many ways. Two examples are provided here. Follow the method that suits you best:
The following method requires you to manually unjar and rejar the file:
Download and place the file in the following directory:
/tmp/ncsoprune/work
Unjar the file while it is in that directory.
Remove the preceding four classes.
Rejar the file.
The following method requires you to run a script that automates the jar and unjar logic.
Download and place the file in the following directory:
/tmp/ncsoprune/work
Run the following script:
!/bin/ksh JAR=/usr/j2se/bin/jar JAR_FILE=NCSO.jar RM=/usr/bin/rm BASE_DIR= /tmp/ncsoprune WORK_DIR=${BASE_DIR}/work cd to director of jar file cd $WORK_DIR # unjar $JAR xvf $JAR_FILE prune classes $RM $WORK_DIR/org/w3c/dom/Document.class $RM $WORK_DIR/org/w3c/dom/Node.class $RM $WORK_DIR/org/xml/sax/InputSource.class $RM $WORK_DIR/org/xml/sax/SAXException.class jar $JAR cvf $BASE_DIR/$JAR_FILE META-INF com lotus org |
Place the re-jarred NCSO.jar file in the following directory:
PortalServer-base/SUNWportal/web-src/WEB-INF/lib
Redeploy the web application with the following command:
PortalServer-base/ SUNWportal/bin/deploy redeploy
Where PortalServer-base represents the directory in which the Sun Java System Portal Server was originally installed.