You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Choe <ch...@mindspring.com> on 2000/09/06 17:11:36 UTC

examples in tomcat 3.1 not working

i installed tomcat 3.1 on a freebsd machine which runs jdk1.1.8.

when i start tomcat and try to access the examples or other application
i have from tomcat 3.0 that i placed in the 3.1 environment, i get a 404
error.  i have added the context of my other application to server.xml.
when i look at the tomcat.log i get the following error.

Context log: path="/application" Error in jsp service() :
 java.lang.NullPointerException:
        at
_0002fvalidate_0002ejspvalidate_jsp_0._jspService(_0002fvalidate_0002
ejspvalidate_jsp_0.java:148)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
        at java.lang.Thread.run(Thread.java)
Context log: path="/application" <b>Internal Servlet Error:</b><br>
<pre>
java.lang.NullPointerException:
        at
_0002fvalidate_0002ejspvalidate_jsp_0._jspService(_0002fvalidate_0002
ejspvalidate_jsp_0.java:148)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
nection(Ajp12ConnectionHandler.java:156)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
        at java.lang.Thread.run(Thread.java)
</pre>

anyone have an idea what i am missing?

thanks for any help.

peter choe


Re: examples in tomcat 3.1 not working

Posted by Gael Stehagen <ga...@epk.ericsson.se>.
I had to set the home in server.xml to absolute path of tomcat to get
the examples to work. However I can't get the
request.getPathTranslated() to return any value if I run the example
snoop. It returns null...

Summary:
Try to set the home attribute.

/
Gael


Peter Choe wrote:
> 
> i installed tomcat 3.1 on a freebsd machine which runs jdk1.1.8.
> 
> when i start tomcat and try to access the examples or other application
> i have from tomcat 3.0 that i placed in the 3.1 environment, i get a 404
> error.  i have added the context of my other application to server.xml.
> when i look at the tomcat.log i get the following error.
> 
> Context log: path="/application" Error in jsp service() :
>  java.lang.NullPointerException:
>         at
> _0002fvalidate_0002ejspvalidate_jsp_0._jspService(_0002fvalidate_0002
> ejspvalidate_jsp_0.java:148)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
> vlet.java:174)
>         at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
> 61)
>         at
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
> va:503)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
> )
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
> nection(Ajp12ConnectionHandler.java:156)
>         at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
> ava:338)
>         at java.lang.Thread.run(Thread.java)
> Context log: path="/application" <b>Internal Servlet Error:</b><br>
> <pre>
> java.lang.NullPointerException:
>         at
> _0002fvalidate_0002ejspvalidate_jsp_0._jspService(_0002fvalidate_0002
> ejspvalidate_jsp_0.java:148)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
> vlet.java:174)
>         at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
> 61)
>         at
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
> va:503)
>         at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
> )
>         at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processCon
> nection(Ajp12ConnectionHandler.java:156)
>         at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
> ava:338)
>         at java.lang.Thread.run(Thread.java)
> </pre>
> 
> anyone have an idea what i am missing?
> 
> thanks for any help.
> 
> peter choe