Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 99551 invoked from network); 2 Jun 2004 21:35:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 21:35:20 -0000 Received: (qmail 81008 invoked by uid 500); 2 Jun 2004 21:35:10 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 80965 invoked by uid 500); 2 Jun 2004 21:35:09 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 80951 invoked by uid 99); 2 Jun 2004 21:35:09 -0000 Received: from [196.25.240.76] (HELO ctb-mesg4.saix.net) (196.25.240.76) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 02 Jun 2004 14:35:09 -0700 Received: from DELL530 (tpr-123-174.telkomadsl.co.za [165.165.123.174]) by ctb-mesg4.saix.net (Postfix) with ESMTP id 7B24EB361 for ; Wed, 2 Jun 2004 23:34:44 +0200 (SAST) From: "Schalk" To: "'Tomcat Users List'" Subject: RE: Can't find classes Date: Wed, 2 Jun 2004 23:34:43 +0200 Message-ID: <001901c448e9$6f8b8190$3a5afea9@DELL530> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: <40BE47B9.8010503@uwyo.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N No, servlet.jar will always be in the Tomcat distributions common/lib/ Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:schalk@volume4.co.za web: www.volume4.com =20 This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in = error, please notify me immediately so that I can correct and delete the = original email. Thank you.=20 :: -----Original Message----- :: From: David Rush [mailto:dar@uwyo.edu] :: Sent: Wednesday, June 02, 2004 11:34 PM :: To: Tomcat Users List :: Subject: Re: Can't find classes ::=20 :: Even servlet.jar!?!?!? ::=20 :: David ::=20 :: Schalk wrote: ::=20 :: >Definitely, the easiest way to ensure you have access to your .jar = file is :: >include them your webapps WEB-INF/lib/. This also makes your app = more :: >portable. :: > :: >Kind Regards :: >Schalk Neethling :: >Web Developer.Designer.Programmer.President :: >Volume4.Development.Multimedia.Branding :: >emotionalize.conceptualize.visualize.realize :: >Tel: +27125468436 :: >Fax: +27125468436 :: >email:schalk@volume4.co.za :: >web: www.volume4.com :: > :: >This message contains information that is considered to be sensitive = or :: >confidential and may not be forwarded or disclosed to any other = party :: >without the permission of the sender. If you received this message = in error, :: >please notify me immediately so that I can correct and delete the original :: >email. Thank you. :: > :: >:: -----Original Message----- :: >:: From: Matthew Chen [mailto:MatthewChen@realtydata.com] :: >:: Sent: Wednesday, June 02, 2004 11:08 PM :: >:: To: Tomcat Users List :: >:: Subject: RE: Can't find classes :: >:: :: >:: Hi! David :: >:: :: >:: I had similar problem when trying to use /share/lib, I am not = sure :: >:: restarting Tomcat would help or not. But what I did is not = trusting :: >:: /share/lib, instead put all jar in the war file itself when you = build the :: >:: war. That way always works. :: >:: :: >:: Regards, :: >:: :: >:: matt :: >:: :: >:: -----Original Message----- :: >:: From: David Rush [mailto:dar@uwyo.edu] :: >:: Sent: Wednesday, June 02, 2004 4:38 PM :: >:: To: Tomcat Users List :: >:: Subject: Can't find classes :: >:: :: >:: Hi. I'm running Tomcat 4.1.30 on a Win2k box. I have two (non-default :: >:: to Tomcat) .jar files I'm trying to use, along with my own code. :: >:: Tomcat is installed under c:\tomcat4130. :: >:: My application-specific code is under :: >:: c:\pub\tomcat\ROOT\WEB-INF\classes, and I've edited server.xml to :: >:: reflect the non-default location. :: >:: Simple servlets were working there this morning. I can still = compile :: >:: without a problem. :: >:: I've put two needed jar files (one for ArcIMS and one for Oracle = JDBC :: >:: stuff) in c:\tomcat4130\shared\lib and servlet.jar is (and always = has :: >:: been) in c:\tomcat4130\common\lib. :: >:: When I started to need the ojdbc14.jar (Oracle) file, I stuck it = in to :: >:: c:\tomcat4130\shared\lib, and moved my ArcIMS .jar file there, = too, and :: >:: changed my CLASSPATH to include those files in their new = location. :: >:: :: >:: CATALINA_BASE=3D'c:\tomcat4130' :: >:: CATALINA_HOME=3D'c:\tomcat4130' :: >:: :: >CLASSPATH=3D'c:\tomcat4130\common\lib\servlet.jar;c:\tomcat4130\shared\l= ib\ar c :: >:: :: >ims_jconnect.jar;c:\tomcat4130\shared\lib\ojdbc14.jar;c:\pub\tomcat\ROOT= \WE B :: >:: -INF\classes' :: >:: :: >:: But now I can't do squat. :: >:: :: >:: I'm getting this in my localhost_log... file: :: >:: :: >:: 2004-06-02 14:25:40 WebappLoader[]: Deploying class repositories = to work :: >:: directory C:\tomcat4130\work\Standalone\localhost\_ :: >:: 2004-06-02 14:25:40 WebappLoader[]: Deploy class files /WEB-INF/classes :: >:: to c:\pub\tomcat\ROOT\WEB-INF\classes :: >:: 2004-06-02 14:25:40 WebappLoader[]: Deploy JAR :: >:: /WEB-INF/lib/arcims_jconnect.jar to :: >:: c:\pub\tomcat\ROOT\WEB-INF\lib\arcims_jconnect.jar :: >:: 2004-06-02 14:25:41 StandardManager[]: Seeding random number generator :: >:: class java.security.SecureRandom :: >:: 2004-06-02 14:25:42 StandardManager[]: Seeding of random number :: >:: generator has been completed :: >:: 2004-06-02 14:25:42 StandardWrapper[:default]: Loading container servlet :: >:: default :: >:: 2004-06-02 14:25:42 StandardWrapper[:invoker]: Loading container servlet :: >:: invoker :: >:: 2004-06-02 14:25:42 StandardWrapper[:jsp]: Marking servlet jsp as :: >:: unavailable :: >:: 2004-06-02 14:25:42 StandardContext[]: Servlet threw load() exception :: >:: javax.servlet.ServletException: Wrapper cannot find servlet class :: >:: org.apache.jasper.servlet.JspServlet or a class it depends on :: >:: at :: >:: :: >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav= a:8 9 :: >:: 1) :: >:: at :: >:: org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) :: >:: at :: >:: :: >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j= ava : :: >:: 3427) :: >:: at :: >:: org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)= :: >:: at :: = >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: >:: at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) :: >:: at :: = >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: >:: at :: >:: org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) :: >:: at :: >:: org.apache.catalina.core.StandardService.start(StandardService.java:497) :: >:: at :: >:: org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) :: >:: at :: >:: :: >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:2= 73) :: >:: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native = Method) :: >:: at :: >:: :: >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:3 9 :: >:: ) :: >:: at :: >:: :: >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Imp l :: >:: .java:25) :: >:: at java.lang.reflect.Method.invoke(Method.java:324) :: >:: at :: >:: :: >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java= :24 5 :: >:: ) :: >:: at :: >:: :: >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:= 307 ) :: >:: ----- Root Cause ----- :: >:: java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet :: >:: at :: >:: :: >org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader= .ja v :: >:: a:1443) :: >:: at :: >:: :: >org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader= .ja v :: >:: a:1289) :: >:: at :: >:: :: >org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav= a:8 8 :: >:: 5) :: >:: at :: >:: org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) :: >:: at :: >:: :: >org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j= ava : :: >:: 3427) :: >:: at :: >:: org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)= :: >:: at :: = >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: >:: at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) :: >:: at :: = >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: >:: at :: >:: org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) :: >:: at :: >:: org.apache.catalina.core.StandardService.start(StandardService.java:497) :: >:: at :: >:: org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) :: >:: at :: >:: :: >org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:2= 73) :: >:: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native = Method) :: >:: at :: >:: :: >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:3 9 :: >:: ) :: >:: at :: >:: :: >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Imp l :: >:: .java:25) :: >:: at java.lang.reflect.Method.invoke(Method.java:324) :: >:: at :: >:: :: >org.apache.catalina.startup.BootstrapService.start(BootstrapService.java= :24 5 :: >:: ) :: >:: at :: >:: :: >org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:= 307 ) :: >:: :: >:: This suggests to me that it can no longer find servlet.jar. = What's up :: >:: with that? :: >:: :: >:: Directory of C:\tomcat4130\shared\lib :: >:: :: >:: 06/02/2004 11:13a . :: >:: 06/02/2004 11:13a .. :: >:: 06/02/2004 11:13a 3,433,670 arcims_jconnect.jar :: >:: 04/26/2002 11:47a 1,174,976 ojdbc14.jar :: >:: 2 File(s) 4,608,646 bytes :: >:: 2 Dir(s) 14,122,446,848 bytes free :: >:: /cygdrive/c/tomcat4130/common/lib :: >:: Volume in drive C has no label. :: >:: Volume Serial Number is 186A-2C1B :: >:: :: >:: Directory of C:\tomcat4130\common\lib :: >:: :: >:: 05/28/2004 03:45p . :: >:: 05/28/2004 03:45p .. :: >:: 01/25/2004 07:19a 45,386 activation.jar :: >:: 01/25/2004 07:19a 952,104 ant.jar :: >:: 01/25/2004 07:19a 165,119 commons-collections.jar :: >:: 01/25/2004 07:19a 100,776 commons-dbcp-1.1.jar :: >:: 01/25/2004 07:19a 22,327 commons-logging-api.jar :: >:: 01/25/2004 07:19a 39,523 commons-pool-1.1.jar :: >:: 01/25/2004 07:19a 181,664 jasper-compiler.jar :: >:: 01/25/2004 07:19a 72,406 jasper-runtime.jar :: >:: 01/25/2004 07:19a 6,727 jdbc2_0-stdext.jar :: >:: 01/25/2004 07:19a 98,496 jndi.jar :: >:: 01/25/2004 07:19a 8,674 jta.jar :: >:: 01/25/2004 07:19a 280,984 mail.jar :: >:: 01/25/2004 07:19a 28,086 naming-common.jar :: >:: 01/25/2004 07:19a 18,021 naming-factory.jar :: >:: 01/25/2004 07:19a 38,484 naming-resources.jar :: >:: 01/25/2004 07:19a 79,265 servlet.jar :: >:: 02/22/2004 11:48p 5,082,203 tools.jar :: >:: 17 File(s) 7,220,245 bytes :: >:: 2 Dir(s) 14,122,446,848 bytes free :: >:: :: >:: Any suggestions? I can no longer run any of my servlets. :: >:: :: >:: David :: >:: :: >:: :: >:: = --------------------------------------------------------------------- :: >:: To unsubscribe, e-mail: = tomcat-user-unsubscribe@jakarta.apache.org :: >:: For additional commands, e-mail: = tomcat-user-help@jakarta.apache.org :: >:: :: >:: = --------------------------------------------------------------------- :: >:: To unsubscribe, e-mail: = tomcat-user-unsubscribe@jakarta.apache.org :: >:: For additional commands, e-mail: = tomcat-user-help@jakarta.apache.org :: > :: > :: > :: = >--------------------------------------------------------------------- :: >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org :: >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org :: > :: > :: > :: > :: > ::=20 ::=20 :: --------------------------------------------------------------------- :: To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org :: For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org