tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgi Kostadinov <geo...@avue.bc.ca>
Subject error 500, mapping paths problem?
Date Mon, 08 May 2000 16:26:25 GMT
Hello folks,

I am trying to run the web tier of the java pet store distributed
application from sun. However, I get an error. I am very new to tomcat,
so please, be patient and help me with this problem. Thank you very much
in advance!


I go to <webapps>/casting (where application is installed) and in the
browser window I get:
========================================================
Error: 500
Location: /casting/control/main
Internal Servlet Error:
java.lang.NullPointerException
 at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java,
Compiled Code)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
 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:479)
Please notify the administrator. Thank you.
========================================================

In my "welcome" file I have the following link: <a href="control/main">

In the web.xml file I map the /control/* as follows:
=============================
  <servlet>
    <servlet-name>castingEntryPoint</servlet-name>
    <jsp-file>Main.jsp</jsp-file>
  </servlet>
  <servlet-mapping>
    <servlet-name>castingEntryPoint</servlet-name>
    <url-pattern>/control/*</url-pattern>
  </servlet-mapping>
=============================
Note: Main.jsp is in <webapps>/casting

In my server.xml I have the context mapping line:
================================================
        <Context path="/casting" docBase="webapps/casting" debug="9"
reloadable="true" >
        </Context>
================================================

In the tomcat.log I have:
=================================================================
set work dir D:\Programs\jakarta-tomcat\work
Context log: path="/casting" XmlReader - init  /casting webapps/casting
Context log: path="/casting" Reading
D:\Programs\jakarta-tomcat\conf\web.xml
Context log: path="/casting" Reading
D:\Programs\jakarta-tomcat\webapps\casting\WEB-INF\web.xml
Context log: path="/casting" Loading -2147483646 jsp
Context log: path="/casting" Loading -2147483646 default
Starting endpoint port="8080"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
Context log: path="/casting" In error handler 0
java.lang.NullPointerException / R( /casting + /control + /main)
Context log: path="/casting"  Error in custom error handler
java.lang.NullPointerException
Context log: path="/casting" Error: Calling servlet null
Context log: path="/casting" In error handler 0
java.lang.NullPointerException / R( /casting + /control + /main)
Context log: path="/casting" Error: exception inside exception servlet
null class java.lang.NullPointerException
Context log: path="/casting" Error: Calling servlet
Wrapper(tomcat.errorPage S:org.apache.tomcat.servlets.DefaultErrorPage)
Context log: path="/casting" <b>Internal Servlet Error:</b><br>
<pre>
java.lang.NullPointerException
 at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java,
Compiled Code)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
 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:479)
</pre>
=================================================================

In the servlet.log I have:
==============================
Context log path="/admin" :tomcat.errorPage: init
Context log path="/admin" :jsp: init
Context log path="/admin" :default: init
Context log path="/examples" :tomcat.errorPage: init
Context log path="/examples" :jsp: init
Context log path="/examples" :default: init
Context log path="/test" :tomcat.errorPage: init
Context log path="/test" :jsp: init
Context log path="/test" :default: init
Context log path="/casting" :tomcat.errorPage: init
Context log path="/casting" :jsp: init
Context log path="/casting" :default: init
Context log path="" :tomcat.errorPage: init
Context log path="" :jsp: init
Context log path="" :default: init
==============================

In the jasper.log I have:
=================================================================
<JASPER_LOG> Mon May 08 09:07:47 PDT 2000 Scratch dir for the JSP engine
is: D:\Programs\jakarta-tomcat\work\localhost_8080%2Fadmin</JASPER_LOG>
<JASPER_LOG> Mon May 08 09:07:47 PDT 2000 IMPORTANT: Do not modify the
generated servlets</JASPER_LOG>
=================================================================

Regards,

  Georgi

Mime
View raw message