tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgi Kostadinov <geo...@avue.bc.ca>
Subject Re: error 500, mapping paths problem?
Date Fri, 12 May 2000 22:10:54 GMT
Hi William,

Thank you for your reply.

> That sounds like an error I had that responded to replacing
> my JDK 1.2.1 with 1.2.2

But I have only JDK 1.2.2 installed on my machine?!

Does anybody know what the following line (from the error log below) mean?

> java.lang.NullPointerException / R( /casting + /control + /main)

I suspect that first /casting is mapped to <webapps>/casting, then /control is mapped
to /control/* which,
on the other hand, is mapped to the Main.jsp JSP servlet, and /main is passed to the Main.jsp
as a
parameter?! This is the behaviour I am expecting, but I get the error described below. Am
I doing anything
wrong with my mappings? Your help is highly appreciated!


Georgi


> Georgi Kostadinov wrote:
> >
> > Hello folks,
> >
> > I have posted this question a week ago, but nobody replied. Please,
> > reply if can help me. Thanks!
> >
> > 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
> >
> >   ----------------------------------------------------------------------
> > --------------------------------------------------------------------------
> > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commmands, email: tomcat-user-help@jakarta.apache.org
>
> --
> WBB - wbrogden@bga.com  Chief Scientist, LANWrights, Inc.
> Java Programmer Certification information and mock exam
> at  http://www.lanw.com/java/javacert/
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message