tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vernon Wu" <v...@hotmail.com>
Subject RE: The 4.0b5 doesn't recognize a servlet class
Date Wed, 18 Jul 2001 22:50:46 GMT
<html><DIV>
<P><BR><BR></P>
<DIV></DIV>
<P>Hi, Aditya,</P></DIV>
<P>&nbsp;</P>
<DIV></DIV>
<P>I think you mean the two jar files: jasper-runtime.jar and namingfactory.jar in the
tomcat4.0/lib.</P>
<DIV></DIV>
<P>I use the JBuilder as the IDE where I can check any syntax errors or not.&nbsp;I
have j2ee.jar inside of the JBuilder library setting. When I want to deploy it, I compile
it again using ant, where the j2ee.jar is from the jdk1.3 directory. After&nbsp;I&nbsp;change
the j2ee.jar point&nbsp;to the common/lib (a copy of the jar is&nbsp;in the directory),
and include the two jars from tomcat/lib, and recompile it, the result is the same: recycle
the tomcat and have the following error&nbsp; messages:</P>
<DIV></DIV>
<P>Catalina.start: LifecycleException:&nbsp; start: :&nbsp; java.lang.NoSuchMethodError<BR>LifecycleException:&nbsp;
start: :&nbsp; java.lang.NoSuchMethodError<BR></P>
<DIV></DIV>
<P>Do&nbsp;I get the message right?</P>
<DIV></DIV>
<P>&nbsp;</P>
<DIV></DIV>
<P>Thanks.&nbsp;<BR></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>----Original Message Follows---- 
<DIV></DIV>
<DIV></DIV>From: Aditya Anand <ADIAND@YAHOO.COM>
<DIV></DIV>
<DIV></DIV>Reply-To: tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>To: tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>Subject: RE: The 4.0b5 doesn't recognize a servlet class 
<DIV></DIV>
<DIV></DIV>Date: Wed, 18 Jul 2001 12:10:16 -0700 (PDT) 
<DIV></DIV>
<DIV></DIV>MIME-Version: 1.0 
<DIV></DIV>
<DIV></DIV>Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id MHotMailBD1F2A1D00B0400438AD40D02A2911A50;
Wed, 18 Jul 2001 12:10:21 -0700 
<DIV></DIV>
<DIV></DIV>Received: (qmail 4427 invoked by uid 500); 18 Jul 2001 19:10:14 -0000

<DIV></DIV>
<DIV></DIV>Received: (qmail 4420 invoked from network); 18 Jul 2001 19:10:14 -0000

<DIV></DIV>
<DIV></DIV>Received: from web4704.mail.yahoo.com (216.115.105.204) by h31.sny.collab.net
with SMTP; 18 Jul 2001 19:10:14 -0000 
<DIV></DIV>
<DIV></DIV>Received: from [199.97.64.16] by web4704.mail.yahoo.com via HTTP; Wed,
18 Jul 2001 12:10:16 PDT 
<DIV></DIV>
<DIV></DIV>From tomcat-user-return-41583-vwu0 Wed, 18 Jul 2001 12:11:35 -0700

<DIV></DIV>
<DIV></DIV>Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm

<DIV></DIV>
<DIV></DIV>Precedence: bulk 
<DIV></DIV>
<DIV></DIV>list-help: <?xml:namespace prefix = mailto /><mailto:tomcat-user-help@jakarta.apache.org>
<DIV></DIV>
<DIV></DIV>list-unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
<DIV></DIV>
<DIV></DIV>list-post: <mailto:tomcat-user@jakarta.apache.org>
<DIV></DIV>
<DIV></DIV>Delivered-To: mailing list tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>Message-ID: &lt;20010718191016.24736.qmail@web4704.mail.yahoo.com&gt;

<DIV></DIV>
<DIV></DIV>In-Reply-To: <F1616CI6NX8DYDD3OJX00000B5F@HOTMAIL.COM>
<DIV></DIV>
<DIV></DIV>X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>hmm... did you recompile the classes using the tomcat 
<DIV></DIV>
<DIV></DIV>lib jars? 
<DIV></DIV>
<DIV></DIV>--- Vernon Wu <VWU0@HOTMAIL.COM>wrote: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<HR>

<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>Hi, </P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;</P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>As you suggested, I moved the j2ee.jar from the 
<DIV></DIV>
<DIV></DIV>web-inf\lib to common\lib. And then I restarted the 
<DIV></DIV>
<DIV></DIV>Tomcat 4.0b5. Here is what I got: 
<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>Catalina.start: LifecycleException:&nbsp; start: 
<DIV></DIV>
<DIV></DIV>:&nbsp; 
<DIV></DIV>
<DIV></DIV>java.lang.NoSuchMethodError<BR>LifecycleException:&nbsp;

<DIV></DIV>
<DIV></DIV>start: :&nbsp; 
<DIV></DIV>
<DIV></DIV>java.lang.NoSuchMethodError<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:6<BR>49)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)

<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardContext.start(StandardContext.java:3<BR>189)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardService.start(StandardService.java:3<BR>53)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardServer.start(StandardServer.java:458<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Catalina.start(Catalina.java:725)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Catalina.execute(Catalina.java:647)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Catalina.process(Catalina.java:177)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at java.lang.reflect.Method.invoke(Native 
<DIV></DIV>
<DIV></DIV>Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)<BR>-----

<DIV></DIV>
<DIV></DIV>Root Cause 
<DIV></DIV>
<DIV></DIV>-----<BR>java.lang.NoSuchMethodError<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:6<BR>27)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)

<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardContext.start(StandardContext.java:3<BR>189)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardService.start(StandardService.java:3<BR>53)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.core.StandardServer.start(StandardServer.java:458<BR>)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Catalina.start(Catalina.java:725)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Catalina.execute(Catalina.java:647)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Catalina.process(Catalina.java:177)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at java.lang.reflect.Method.invoke(Native 
<DIV></DIV>
<DIV></DIV>Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<DIV></DIV>
<DIV></DIV>at 
<DIV></DIV>
<DIV></DIV>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196) 
<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>&nbsp;</P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<P>If I don't relocate the j2ee.jar file, when I try 
<DIV></DIV>
<DIV></DIV>to open up the main page which doesn't call any 
<DIV></DIV>
<DIV></DIV>servlet instance. What I get is the followings: 
<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<H3>Exception 
<DIV></DIV>
<DIV></DIV>Report:</H3><PRE>javax.servlet.ServletException: Class
<DIV></DIV><DIV></DIV>org.apache.jasper.servlet.JspServlet is not
a
<DIV></DIV><DIV></DIV>Servlet</PRE><PRE>...</PRE><PRE><H3>Root
<DIV></DIV><DIV></DIV>Cause:</H3><PRE>java.lang.ClassCastException:
<DIV></DIV><DIV></DIV>org.apache.jasper.servlet.JspServlet</PRE><PRE>...<BR></PRE><PRE>Please
<DIV></DIV><DIV></DIV>advise what steps I shall
<DIV></DIV><DIV></DIV>take</PRE><PRE>&nbsp;</PRE><PRE>Thanks.<BR></PRE></PRE>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>----Original Message Follows---- 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>From: Wells Tiedeman 
<DIV></DIV>
<DIV></DIV><JWTIEDEMAN@YOUCENTRIC.COM>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Reply-To: tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>To: "'tomcat-user@jakarta.apache.org'" 
<DIV></DIV>
<DIV></DIV><TOMCAT-USER@JAKARTA.APACHE.ORG>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Subject: RE: The 4.0b5 doesn't recognize a 
<DIV></DIV>
<DIV></DIV>servlet class 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Date: Tue, 17 Jul 2001 16:06:10 -0400 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>MIME-Version: 1.0 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: from [64.208.42.41] by 
<DIV></DIV>
<DIV></DIV>hotmail.com (3.2) with ESMTP id 
<DIV></DIV>
<DIV></DIV>MHotMailBD1DE6CE00214004389F40D02A290FE90; Tue, 17 Jul 
<DIV></DIV>
<DIV></DIV>2001 13:10:55 -0700 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: (qmail 38493 invoked by uid 500); 
<DIV></DIV>
<DIV></DIV>17 Jul 2001 20:10:46 -0000 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: (qmail 38486 invoked from 
<DIV></DIV>
<DIV></DIV>network); 17 Jul 2001 20:10:45 -0000 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: from 
<DIV></DIV>
<DIV></DIV>salesvision-gw.youcentric.com (HELO 
<DIV></DIV>
<DIV></DIV>yc?exchange.yc?exchange.salesvision.com) (12.19.52.2) 
<DIV></DIV>
<DIV></DIV>by h31.sny.collab.net with SMTP; 17 Jul 2001 20:10:45 
<DIV></DIV>
<DIV></DIV>-0000 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: by 
<DIV></DIV>
<DIV></DIV>yc_exchange.yc_exchange.salesvision.com with Internet 
<DIV></DIV>
<DIV></DIV>Mail Service (5.5.2653.19)id &lt;3XZSJXH3&gt;; Tue, 17 
<DIV></DIV>
<DIV></DIV>Jul 2001 16:06:11 -0400 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>From tomcat-user-return-41410-vwu0 Tue, 17 
<DIV></DIV>
<DIV></DIV>Jul 2001 13:11:00 -0700 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Mailing-List: contact 
<DIV></DIV>
<DIV></DIV>tomcat-user-help@jakarta.apache.org; run by ezmlm 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Precedence: bulk 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>list-help: /&gt;<mailto:tomcat-user-help@jakarta.apache.org>

<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>list-unsubscribe: 
<DIV></DIV>
<DIV></DIV><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>list-post: 
<DIV></DIV>
<DIV></DIV><mailto:tomcat-user@jakarta.apache.org>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Delivered-To: mailing list 
<DIV></DIV>
<DIV></DIV>tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Message-ID: 
<DIV></DIV>
<DIV></DIV>&lt;15082D39DCA99746A53E37B280DCB10AC04C10@yc_exchange.yc_exchange.salesvision.com&gt;

<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>X-Mailer: Internet Mail Service 
<DIV></DIV>
<DIV></DIV>(5.5.2653.19) 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>X-Spam-Rating: h31.sny.collab.net 1.6.2 
<DIV></DIV>
<DIV></DIV>0/1000/N 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Any of the jars/classes containing the 
<DIV></DIV>
<DIV></DIV>packages java.*, com.sun.*, javax.*, 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>etc. If any of these are included in your 
<DIV></DIV>
<DIV></DIV>/WEB-INF/lib directory the class 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>loaders get confused. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>-Wells 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>-----Original Message----- 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>From: Vernon Wu [mailto:vwu0@hotmail.com] 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Sent: Tuesday, July 17, 2001 3:49 PM 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>To: tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Subject: The 4.0b5 doesn't recognize a 
<DIV></DIV>
<DIV></DIV>servlet class 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Hi, Wells, 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Thanks for your response. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>It took me awhile trying to figure how the 
<DIV></DIV>
<DIV></DIV>CLASSPATH relates with the 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>problem. I build up the JSP application 
<DIV></DIV>
<DIV></DIV>using Tomcat 3.x with the standard 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>procedure. Nothing inside the project is 
<DIV></DIV>
<DIV></DIV>set up in the CLASSPATH. I don't 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>know what you means by "all j2ee platform 
<DIV></DIV>
<DIV></DIV>classes". Are the classes used 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>j2ee APIs? 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Thx. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Vernon 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>----Original Message Follows---- 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>From: Wells Tiedeman 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Reply-To: tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>To: "'tomcat-user@jakarta.apache.org'" 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Subject: RE: ServletException in 4.0b5 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Date: Tue, 17 Jul 2001 08:46:44 -0400 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>MIME-Version: 1.0 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: from [64.208.42.41] by 
<DIV></DIV>
<DIV></DIV>hotmail.com (3.2) with ESMTP id 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>MHotMailBD1D7FCF00164004376140D02A290F500; 
<DIV></DIV>
<DIV></DIV>Tue, 17 Jul 2001 05:51:28 -0700 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: (qmail 73852 invoked by uid 500); 
<DIV></DIV>
<DIV></DIV>17 Jul 2001 12:51:21 -0000 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: (qmail 73845 invoked from 
<DIV></DIV>
<DIV></DIV>network); 17 Jul 2001 12:51:21 -0000 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: from 
<DIV></DIV>
<DIV></DIV>salesvision-gw.youcentric.com (HELO 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>yc?exchange.yc?exchange.salesvision.com) 
<DIV></DIV>
<DIV></DIV>(12.19.52.2) by h31.sny.collab.net 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>with SMTP; 17 Jul 2001 12:51:21 -0000 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Received: by 
<DIV></DIV>
<DIV></DIV>yc_exchange.yc_exchange.salesvision.com with Internet 
<DIV></DIV>
<DIV></DIV>Mail 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Service (5.5.2653.19)id &lt;3XZSJV86&gt;; 
<DIV></DIV>
<DIV></DIV>Tue, 17 Jul 2001 08:46:45 -0400 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>From tomcat-user-return-41367-vwu0 Tue, 17 
<DIV></DIV>
<DIV></DIV>Jul 2001 05:52:26 -0700 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Mailing-List: contact 
<DIV></DIV>
<DIV></DIV>tomcat-user-help@jakarta.apache.org; run by ezmlm 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Precedence: bulk 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>list-help: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>list-unsubscribe: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>list-post: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Delivered-To: mailing list 
<DIV></DIV>
<DIV></DIV>tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Message-ID: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>&lt;15082D39DCA99746A53E37B280DCB10AC04C06@yc_exchange.yc_exchange.salesvision.

<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>com&gt; 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>X-Mailer: Internet Mail Service 
<DIV></DIV>
<DIV></DIV>(5.5.2653.19) 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>X-Spam-Rating: h31.sny.collab.net 1.6.2 
<DIV></DIV>
<DIV></DIV>0/1000/N 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>I experienced the same problem. It's due to 
<DIV></DIV>
<DIV></DIV>a class loader issue. Multiple 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>class loaders have been introduced in V4.0 
<DIV></DIV>
<DIV></DIV>to implement the requirements 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>found in Section 9.6.2 of the Servlet 2.3 
<DIV></DIV>
<DIV></DIV>Spec. These class loaders are 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>used to load all of the jars and classes 
<DIV></DIV>
<DIV></DIV>rather than using the CLASSPATH. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>I was able to resolve this problem as 
<DIV></DIV>
<DIV></DIV>follows : 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>- Add all supporting jars for your web 
<DIV></DIV>
<DIV></DIV>application (except J2EE jars) to 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>the /WEB-INF/lib directory rather than 
<DIV></DIV>
<DIV></DIV>including them in the CLASSPATH 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>- Add all of the required classes for your 
<DIV></DIV>
<DIV></DIV>web application to the 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>/WEB-INF/classes directory rather than 
<DIV></DIV>
<DIV></DIV>including them in the CLASSPATH 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>- Add the j2ee.jar from the /j2sdkee1.3/lib 
<DIV></DIV>
<DIV></DIV>directory to the 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>TOMCAT_HOME/common/lib directory. All J2EE 
<DIV></DIV>
<DIV></DIV>platform classes must be placed 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>in the common/lib or common/classes 
<DIV></DIV>
<DIV></DIV>directories rather than with the web 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>application. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>-Wells 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Wells Tiedeman 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>YOUcentric, Inc. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>P: 704.401.1109 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>F: 704.401.1240 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>jwtiedeman@youcentric.com 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>For more information on YOUcentric, please 
<DIV></DIV>
<DIV></DIV>visit our web site at 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>www.youcentric.com 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>-----Original Message----- 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>From: Vernon Wu [mailto:vwu0@hotmail.com] 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Sent: Monday, July 16, 2001 7:53 PM 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>To: tomcat-user@jakarta.apache.org 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Subject: ServletException in 4.0b5 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>I move one our small JSP application from 
<DIV></DIV>
<DIV></DIV>3.x to 4.0b5 for the reason of 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>using servlet 2.3 specification: 
<DIV></DIV>
<DIV></DIV>ServletContextListener, HttpSessionListener 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>be more specific. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>I get the exception under the 4.0b5 with 
<DIV></DIV>
<DIV></DIV>the following messages: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Exception Report: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>javax.servlet.ServletException: Class 
<DIV></DIV>
<DIV></DIV>abc.control.ControllerServlet is not a 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Servlet 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>.... 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Root Cause: 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>java.lang.ClassCastException: 
<DIV></DIV>
<DIV></DIV>abc.control.ControllerServlet 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>... 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>There is not any indication that anywhere 
<DIV></DIV>
<DIV></DIV>my code is not approprt. What I 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>shall do at this situation? 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>I believe that I encounter the similar 
<DIV></DIV>
<DIV></DIV>situation in the 3.x, and it can be 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>resolved by recycle the Tomcat server. That 
<DIV></DIV>
<DIV></DIV>method doesn't work for 4.0b5. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Thanks. 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Vernon 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>_____ 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Get your FREE download of MSN Explorer at 
<DIV></DIV>
<DIV></DIV>http://explorer.msn.com 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>_____ 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>Get your FREE download of MSN Explorer at 
<DIV></DIV>
<DIV></DIV>http://explorer.msn.com 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></mailto:tomcat-user@jakarta.apache.org></mailto:tomcat-user-unsubscribe@jakarta.apache.org></mailto:tomcat-user-help@jakarta.apache.org><BR
< DIV>clear=all&gt; 
<DIV></DIV>
<HR>

<DIV></DIV>Get your FREE download of MSN Explorer 
<DIV></DIV>
<DIV></DIV>at <A < DIV>href="http://explorer.msn.com"&gt;http://explorer.msn.com</A><BR>
<DIV></DIV>
<P></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>__________________________________________________ 
<DIV></DIV>
<DIV></DIV>Do You Yahoo!? 
<DIV></DIV>
<DIV></DIV>Get personalized email addresses from Yahoo! Mail 
<DIV></DIV>
<DIV></DIV>http://personal.mail.yahoo.com/ 
<DIV></DIV>
<DIV></DIV></mailto:tomcat-user@jakarta.apache.org></mailto:tomcat-user-unsubscribe@jakarta.apache.org></mailto:tomcat-user-help@jakarta.apache.org><br
clear=all><hr>Get your FREE download of MSN Explorer at <a href="http://explorer.msn.com">http://explorer.msn.com</a><br></p></html>

Mime
View raw message