tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arieh Markel <>
Subject More problems with migration to 3.2
Date Fri, 25 Aug 2000 20:42:04 GMT
Here is a stack trace for an exception from a servlet that used to
work on 3.1.

The servlet is a /launch servlet.

Invocation of the servlet is as follows:

Based on the 'nodeid', an object search is done and a reference (actually
a remote reference) is obtained for that object.

A specific servlet that is matched to the class of the referenced object
is identified. If it has not been created, it will be instantiated and
added to the 'dynamic' context.

The /launch servlet will perform a 'forward' to the servlet selected.

The following is the code that performs that:

                if (null != servInfo[0])
                    String servletPath = servInfo[0] +
                        "?" + Constants.URLAttribute.Node + "=" + 
                                URLEncoder.encode (node) +
                        "&" + Constants.URLAttribute.Family + "=" + 
                                URLEncoder.encode (familyName) +
                        "&" + Constants.URLAttribute.Session + "=" + sessionId;

                    ServletContext sctx = getServletContext();
                    RequestDispatcher rd = null;

                    if (null != sc.getServletByName (servInfo[0]))
                        ServletContext lc = sctx.getContext(servletPath);
                        rd = lc.getRequestDispatcher(servletPath);

                    //  if there has never been a dispatcher established
                    //  for the servlet path, we will install the servlet
                    boolean goodInstall = false;
                    if (rd == null)
                        goodInstall = ServletMgr.installServlet (servInfo[0],
                                                            servInfo[1], sc);

                        if (goodInstall)
                            ServletContext lc = sctx.getContext(servletPath);
                            rd = lc.getRequestDispatcher(servletPath);

The exception below occurs in the 'lc.getRequestDispatcher(servletPath)'

Error: 500


Internal Servlet Error:

java.lang.NoClassDefFoundError: org/apache/tomcat/facade/RequestDispatcherImpl
        at com.sun.esm.web.console.launch.Launch.redirect(
        at com.sun.esm.web.console.launch.Launch.doGet(
        at javax.servlet.http.HttpServlet.service(
        at com.sun.esm.web.servlet.CMCServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.tomcat.core.Handler.service(Compiled Code)
        at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
org.apache.tomcat.service.http.HttpInterceptor.processConnection(Compiled Code)
        at Code)
        at org.apache.tomcat.util.ThreadPool$ Code)
        at Code)

I checked my CLASSPATH and invoked 'javap' on the environment on which
I start Tomcat, and I can find the RequestDispatcherImpl class.
It is not clear to me why the class is not found.


On the problem I sent earlier.

I proceeded to try to access the application servlets and webpages from
the HttpInterceptor (which I assume is not a PoolTcpConnector) and I am
able to have more of the content displayed.


Have any changes been done to the PrintWriter that is found on the
HttpServletRequest ?

My traces show that the code goes through the statements that should
be outputting to the HTTP connection, yet nothing is displayed.


 Arieh Markel		                Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: arieh.markel@sun.COM           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)

View raw message