I have long ago mentally surpressed the difference between .zips and .jars so your
solution didn't even occur to me.

Thanks!

cc

Greg Trasuk wrote:

> Hi all:
>
>         From your command line '$ jar tf SilverRuntime.zip | grep
> com/sssw/rt/util/AgiUserLogin' it looks like your 'jar' file is actually
> named '.zip'.  As I understand it, the servlet spec requires jar files to be
> '.jar' and Tomcat enforces this requirement.  In all likelihood, you'll get
> it working by renaming 'SilverRuntime.zip' to 'SilverRuntime.jar' in your
> WEB-INF/lib.  At worst, you may have to unzip, then 'jar' the files.
>
>         Many people seem to have this problem with the Oracle JDBC drivers, so you
> can get more info from the mailing list archives by searching for 'Oracle
> JDBC'.  Of course, as people point out, you'll get even better answers by
> searching for 'Oracle JDBC Craig'.
>
> Regards,
>
> Greg Trasuk, President
> StratusCom Manufacturing Systems Inc. - We use information technology to
> solve business problems on your plant floor.
> http://stratuscom.ca
>
> > -----Original Message-----
> > From: Christopher Cobb [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 28, 2002 1:49 PM
> > To: Tomcat Users List
> > Subject: Re: WEB-INF/lib/SilverRuntime.jar
> >
> >
> > I should have mentioned that my environment is:
> >     tc 4.0.2-b2
> >     jdk1.4.0-rc
> >     win2k
> >
> > cc
> >
> > Christopher Cobb wrote:
> >
> > > I have just started using Tomcat 4 for the first time (have
> > used Tomcat 3.x for
> > > a while) and I see that startup.sh does not access the
> > user's CLASSPATH.  I
> > > think that's great!  CLASSPATH dependencies can get unwieldy.
> > >
> > > I have placed the file SilverRuntime.jar in my webapp's
> > WEB-INF/lib directory.
> > > An examination of this file with jar reveals that it
> > contains the class
> > > com.sssw.rt.util.AgiUserLogin:
> > >
> > >      $ jar tf SilverRuntime.zip | grep com/sssw/rt/util/AgiUserLogin
> > >      com/sssw/rt/util/AgiUserLogin.class
> > >
> > > However, when I run my webapp, I get:
> > >
> > >      exception
> > >
> > >      javax.servlet.ServletException: Servlet execution
> > threw an exception
> > >       at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(ApplicationFilterChain.java:269)
> > >
> > >       at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterChain.java:193)
> > >
> > >       at
> > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.java:243)
> > >
> > >      ...
> > >
> > > with a root cause of:
> > >
> > >      java.lang.NoClassDefFoundError: com/sssw/rt/util/AgiUserLogin
> > >       at java.lang.ClassLoader.defineClass0(Native Method)
> > >       at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
> > >       at
> > >
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.
> > java:123)
> > >
> > >       at
> > >
> > org.apache.catalina.loader.WebappClassLoader.findClassInternal
> > (WebappClassLoader.java:1547)
> > >
> > >       at
> > >
> > org.apache.catalina.loader.WebappClassLoader.findClass(WebappC
> > lassLoader.java:856)
> > >
> > >       at
> > >
> > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> > lassLoader.java:1286)
> > >
> > >       at
> > >
> > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> > lassLoader.java:1169)
> > >
> > >       at java.beans.Beans.instantiate(Beans.java:187)
> > >       at java.beans.Beans.instantiate(Beans.java:48)
> > >       at
> > >
> > com.ams.acq.pd.base.web.CommandFactory.getCommandInstance(Comm
> > andFactory.java:259)
> > >
> > > Why doesn't my web app find a class which is in a jar in my
> > WEB-INF/lib
> > > directory?
> > >
> > > cc
> > >
> > > --
> > > To unsubscribe:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to