You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Koen Dejonghe <ko...@hotmail.com> on 2000/05/19 19:46:32 UTC
XmlMapper: Can't find method setDescription in Wrapper
Hi,
After having added a new servlet to the tomcat environment I always get the
following message when starting up the tomcat server:
XmlMapper: Can't find method setDescription in Wrapper(dpoxui dpoxui) CLASS
class org.apache.tomcat.core.ServletWrapper
The server keeps running however and does not bother me any further. Does
anyone know whether this means trouble and if so how to get rid of it ?
Cheers.
Koen Dejonghe.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
error 500, mapping paths problem - help, please!
Posted by Georgi Kostadinov <ge...@avue.bc.ca>.
Hello folks,
I posted this message 2 weeks ago and nobody replied. Could you, please, have a
quick look at it?
It might be something very simple that I am missing. Thank you!
I am trying to run the web tier of the java pet store distributed application
from sun. However,
I get an error. 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