From ALEXANDROS_K@prodigy.net Wed Jul 19 03:34:13 2000 Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 15633 invoked from network); 19 Jul 2000 03:34:13 -0000 Received: from pimout3-ext.prodigy.net (HELO pimout3-int.prodigy.net) (207.115.63.102) by locus.apache.org with SMTP; 19 Jul 2000 03:34:13 -0000 Received: from synera427 (NYCMA010-0896.splitrock.net [209.255.52.134]) by pimout3-int.prodigy.net (8.10.1/8.10.1) with SMTP id e6J3YBj51382 for ; Tue, 18 Jul 2000 23:34:12 -0400 Message-ID: <006f01bff132$0fc830e0$8634ffd1@prodigy.net> From: "ALEXANDROS KOTSIRAS" To: Subject: Can i avoid ClassCastException whenever i recompile servlets ? ? Date: Tue, 18 Jul 2000 23:33:08 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_006C_01BFF110.87D4BC60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_006C_01BFF110.87D4BC60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Although Tomcat3.1 supports auto-reloading of servlets i cannot = really enjoy it becuase every time i recompile=20 i get ClassCastException and i need to restart the Engine to get = things working.=20 I am using Model2 design pattern which means that i have plenty of = Database beans and just 1 servlet controller and of course plent of = JSPs. The ClassCastException happens when i recompile a Database bean or = the controller.=20 Does it have to do with the fact that i have almost all of my .jar = libraries (JDBC driver, mail.jar, jndi.jar etc.) in the System Classpath = which i set in the tomcat.bat script , instead of the the WEB-INF/lib = directory ? In fact i do not use at all the WEB-INF/lib directory.=20 I have all my servlets and database beans in WEB-INF/classes . ------=_NextPart_000_006C_01BFF110.87D4BC60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
   Although Tomcat3.1 supports auto-reloading of servlets = i=20 cannot really enjoy it becuase every time i recompile
   i get ClassCastException and i need to restart the = Engine to=20 get things working.
   I am using Model2 design pattern which means that i = have=20 plenty of Database beans and just 1 servlet controller and of course = plent of=20 JSPs. The ClassCastException happens when i recompile a Database bean or = the=20 controller.
   Does it have to do with the fact that i have almost = all of my=20 .jar libraries (JDBC driver, mail.jar, jndi.jar etc.) in the System = Classpath=20 which i set in the tomcat.bat script , instead of the the WEB-INF/lib = directory=20 ?
  In fact i do not use at all the WEB-INF/lib directory. =
  I have all my servlets and database beans in WEB-INF/classes = .
------=_NextPart_000_006C_01BFF110.87D4BC60--