web.xml - load-on-startup not working
843833Oct 10 2008 — edited Oct 15 2008I am having some problems with the same issue although specifying the load-on-startup param is not working for.
Here is snipet of the web.xml:
<servlet id="Servlet_1206024889339">
<servlet-name>ContentServer</servlet-name>
<servlet-class>COM.FutureTense.Servlet.SContentServer</servlet-class>
<init-param id="InitParam_1206024988781">
<param-name>inipath</param-name>
<param-value>/data/WebSphere/ContentServer</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
This however doesn't init the contentServer servlet. Is there anythign else i need to check? I am using websphere5-1.
I saw somewhere you might have to specify a loadonstartup=true? Where is this set?
I know the app is reading the right web.xml because i put in a bad value and saw the error being outputted in the startup log.
There are some servlets being initialised on startup but not the ones I want. These servlets don't seem to be in the web.xml.
[10/10/08 11:53:30:265 IST] 1e06de8 WebContainer A SRVE0169I: Loading Web Module: cs.war.
[10/10/08 11:53:33:330 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: JSP 1.2 Processor: init
[10/10/08 11:53:34:098 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: SimpleFileServlet: init
[10/10/08 11:53:34:117 IST] 1e06de8 WebGroup I SRVE0180I: [cs.war] [servlet] [Servlet.LOG]: DirectoryBrowsingServlet: init