tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rush <...@uwyo.edu>
Subject Re: Can't find classes
Date Wed, 02 Jun 2004 21:33:45 GMT
Even servlet.jar!?!?!?

David

Schalk wrote:

>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='c:\tomcat4130'
>:: CATALINA_HOME='c:\tomcat4130'
>::
>CLASSPATH='c:\tomcat4130\common\lib\servlet.jar;c:\tomcat4130\shared\lib\arc
>::
>ims_jconnect.jar;c:\tomcat4130\shared\lib\ojdbc14.jar;c:\pub\tomcat\ROOT\WEB
>:: -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.java:89
>:: 1)
>::     at
>:: org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>::     at
>::
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
>:: 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:273)
>::     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>::     at
>::
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>:: )
>::     at
>::
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>:: .java:25)
>::     at java.lang.reflect.Method.invoke(Method.java:324)
>::     at
>::
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
>:: )
>::     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.jav
>:: a:1443)
>::     at
>::
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>:: a:1289)
>::     at
>::
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
>:: 5)
>::     at
>:: org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
>::     at
>::
>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
>:: 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:273)
>::     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>::     at
>::
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>:: )
>::     at
>::
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>:: .java:25)
>::     at java.lang.reflect.Method.invoke(Method.java:324)
>::     at
>::
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
>:: )
>::     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      <DIR>          .
>:: 06/02/2004  11:13a      <DIR>          ..
>:: 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      <DIR>          .
>:: 05/28/2004  03:45p      <DIR>          ..
>:: 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
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message