tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <jwcar...@fuse.net>
Subject RE: XmlMapper: Can't find method setDescription in Wrapper...
Date Sat, 07 Oct 2000 16:17:12 GMT
The setDescription method is not defined in the ServletWrapper class, but if
you include a <description> tag in your web.xml, the servlet engine will try
to call that method.  It is a valid tag per the DTD, but it causes errors in
Tomcat.  It is only a description, so I just commented it out, but it really
should be addressed since it is a valid tag.  Out of curiosity, I checked
the class using javap.  This is what it printed out...

public class org.apache.tomcat.core.ServletWrapper extends java.lang.Object
{
    protected org.apache.tomcat.util.StringManager sm;
    protected org.apache.tomcat.core.Context context;
    protected org.apache.tomcat.core.ContextManager contextM;
    protected java.lang.String servletClassName;
    protected org.apache.tomcat.core.ServletConfigImpl config;
    protected javax.servlet.Servlet servlet;
    protected java.lang.Class servletClass;
    protected java.lang.String description;
    boolean initialized;
    java.lang.Exception unavailable;
    long unavailableTime;
    protected boolean isReloadable;
    protected long lastAccessed;
    protected int serviceCount;
    int loadOnStartup;
    java.util.Hashtable initArgs;
    java.util.Hashtable securityRoleRefs;
    static boolean haveContextClassLoader;
    static java.lang.Class noParams[];
    static java.lang.Class clParam[];
    static java.lang.Object noObjs[];
    static java.lang.Class class$java$lang$ClassLoader;
    static {};
    public org.apache.tomcat.core.ServletWrapper();
    org.apache.tomcat.core.ServletWrapper(org.apache.tomcat.core.Context);
    public void addInitParam(java.lang.String, java.lang.String);
    public void addSecurityMapping(java.lang.String, java.lang.String,
java.lang.String);
    static java.lang.Class class$(java.lang.String);
    void destroy();
    java.lang.ClassLoader fixJDKContextClassLoader(java.lang.ClassLoader);
    protected org.apache.tomcat.core.Context getContext();
    public int getLoadOnStartUp();
    public java.lang.String getPath();
    public java.lang.String getSecurityRole(java.lang.String);
    public javax.servlet.Servlet getServlet();
    public java.lang.String getServletClass();
    public java.lang.String getServletDescription();
    public java.lang.String getServletName();
    void handleReload();
    public void
handleRequest(org.apache.tomcat.core.HttpServletRequestFacade,
org.apache.tomcat.core.HttpServletResponseFacade);
    public void handleRequest(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response);
    void initServlet() throws java.lang.ClassNotFoundException,
java.lang.InstantiationException, java.lang.IllegalAccessException,
javax.servlet.ServletException;
    public void loadServlet() throws java.lang.ClassNotFoundException,
java.lang.InstantiationException, java.lang.IllegalAccessException,
javax.servlet.ServletException;
    public void setContext(org.apache.tomcat.core.Context);
    public void setLoadOnStartUp(int);
    public void setLoadOnStartUp(java.lang.String);
    public void setPath(java.lang.String);
    void setReloadable(boolean);
    public void setServletClass(java.lang.String);
    public void setServletDescription(java.lang.String);
    public void setServletName(java.lang.String);
    public java.lang.String toString();
}

As you can see, there is no setDescription method, but there is a
setServletDescription.

James Carman
(513) 325-7977


Mime
View raw message