NonStop Servlets for JSP System Administrator's Guide
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
6-1
6
Interoperability of NSJSP With 
NonStop EJB
In order for NSJSP to interoperate with NonStop EJB, you must make a few changes 
to the EJB ejb.jar file. 
The ejb.jar file contains the Servlet API 2.0 classes within it, which will cause 
problems if this jar file is placed in the NSJSP CLASSPATH environment variable—it will 
essentially not allow the NSJSP container to start up. 
You will need to make the changes discussed in the following subsections:
•
Changing the ejb.jar File on page 6-1
•
Adding and Linking New Jar Files on page 6-2
•
References to EJB Components on page 6-3
Changing the ejb.jar File
Perform the following steps before using the EJB ejb.jar file in the NSJSP container:
•
Remove the extra javax.servlet.* (including javax.servlet.http.*) 
classes from within the ejb.jar file. 
•
Repackage the Security_ServletSecurity class in a new jar file and move 
the new jar file to either the iTPWS_INSTALL_DIR/servlet_jsp/common/lib 
directory or to the web application's WEB-INF/lib directory.
These two steps can be performed via the 
iTPWS_INSTALL_DIR/servlet_jsp/conf/nsjsp_fixupNSEJB script provided 
with the NSJSP release, shown in Example 6-1
. 










