It doesn't matter what jsp I used as long as I specified it to use the
<load-on-startup> tag within the <servlet> tag in web.xml, null ptr
exception is thrown.
A fragment of my web.xml is as follows:
<servlet>
<servlet-name>OracleEmployeeTest</servlet-name>
<display-name>Multiple JSP servlet engine tests</display-name>
<jsp-file>OracleEmployeeTest.jsp</jsp-file>
<init-param>
<param-name>DBHost</param-name>
<param-value>amita</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
The exception stack trace is as follows:
2000-12-14 02:29:20 - Ctx( ): Exception in: R( +
/OracleEmployeeTestOracleEmpl
oyeeTest2.jsp + null) - java.lang.NullPointerException:
at
org.apache.tomcat.request.AccessInterceptor.requestMap(AccessIntercep
tor.java:252)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j
ava:820)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.loadJsp(LoadOnStar
tupInterceptor.java:169)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java:128)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Is this a know bug ? Any thoughts how to resolve this, please ?
Thanks,
-SK Cheong