tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rush <...@uwyo.edu>
Subject Can't find classes
Date Wed, 02 Jun 2004 20:38:28 GMT
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\arcims_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:891)
    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.java:1443)
    at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
    at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:885)
    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


Mime
View raw message