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.