NonStop Servlets for JSP System Administrator's Guide
Migration to NSJSP 2.0
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
7-3
The web.xml File
The web.xml File
The NSJSP 2.0 Container enforces stricter XML syntax checking of the web.xml file. 
For the Web application deployment descriptor, refer to Example 3-10, Deploying a 
Servlet, on page 3-14.
Example 1 
The <load-on-startup> block should be inside the <servlet> block, but outside 
of the <init-param> block. Thus, the block in bold in Example 1 must be placed at 
the location indicated by the underlined comment (between the </init-param> and 
the </servlet> tags). 
Example 2 
The <session-config> block should be inside the <web-app> block, but outside of 
the <servlet> block. Thus, the block in bold in Example 2 must be placed in the 
location indicated by the underlined comment (between the </servlet> and the 
</web-app> tags).
<servlet>
 …
 <init-param>
  <load-on-startup>
  -1.5
  </load-on-startup>
  <param-name>
  InitFile
  </param-name>
  <param-name>
  /Webqa/server/servlet22/servlet20/ShopUsers.txt
  </param-name>
 </init-param>
 <!-- 
Move the bolded block here.  -->
</servlet>
<web-app>
 <servlet>
  <servlet-name>ColorSessionServlet</servlet-name>
  <!-- Fully qualified Servlet class -->
  <servlet-class>ColorSessionServlet</servlet-class>
  <load-on-startup>
  1
  </load-on-startup>
  <session-config>
  <session-timeout>5</session-timeout>
  </session-config>
 </servlet>
 <!-- 
Move the bolded block here.  -->
</web-app>










