Hi folks !

I have a bunch of JSP's

xxx is the applications name and its location is added to the context
path.
Suppose that I have a JSP under xxx/myjsp.jsp
I want it to be hit when I type in the URL ..../xxx/myjsp, so for that I
put in the web.xml the following lines:

        <servlet>
            <servlet-name>AdminDefault</servlet-name>
            <jsp-file>myjsp.jsp</jsp-file>
        </servlet>
        <servlet-mapping>
            <servlet-name>AdminDefault</servlet-name>
            <url-pattern>/myjsp</url-pattern>
        </servlet-mapping>

This all works perfectly under another engine, BEA Weblogic.
Using TomCat I get the following message:



Location: /xxx/myjsp
Internal Servlet Error:

java.lang.NullPointerException
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:398)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Thread.java:484)


Does anybody know what I make wrong?

Thanks a lot !!

Andy

Reply via email to