tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Calvin Lau <ali...@uclink4.berkeley.edu>
Subject Re: moving webapps from tc 3.2.1 to 4.0-b7
Date Sun, 16 Sep 2001 18:10:43 GMT
Thanks, I added it to CATALINA_HOME/lib and it works now.  I had it in my Classpath before
and I
think that was working fine on tomcat3.2.1.

Calvin

"Craig R. McClanahan" wrote:

> On Sat, 15 Sep 2001, Calvin Lau wrote:
>
> > Date: Sat, 15 Sep 2001 14:17:21 -0700
> > From: Calvin Lau <alienx@uclink4.berkeley.edu>
> > Reply-To: tomcat-user@jakarta.apache.org
> > To: tomcat-user@jakarta.apache.org
> > Subject: Re: moving webapps from tc 3.2.1 to 4.0-b7
> >
> > I'm having a similar problem.  I installed Tomcat4 and
> > have the examples and struts-example webapps working.
> > However I can't seem to get my webapp which was
> > working fine under Tomcat3.2.1 to work.  I get the error
> > listed below when I try go to any *.do.  I
> >
> > My $JAVA_HOME/jre/lib/ext directory is empty.
> > Anyone have any idea what the problem is?
> >
> > Here's an abridged version of the error:
> > ======================================================
> > Root Cause:
> > java.lang.NoClassDefFoundError: javax/sql/DataSource
> >  at java.lang.ClassLoader.defineClass0(Native Method)
> >  at java.lang.ClassLoader.defineClass(Unknown Source)
> >  at
> > java.security.SecureClassLoader.defineClass(Unknown
> > Source)
> >  at
> > org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1488)...
> >
> > ======================================================
> >
>
> The only way I have been able to reproduce this particular message is to
> *not* have the JDBC 2.0 optional package JAR file (jdbc2_0-stdext.jar)
> available to my webapp (it's not currently made visible by Tomcat 4).  It
> needs to be put either in $CATALINA_HOME/lib or in /WEB-INF/lib of your
> web app.
>
> This is likely to change in the final release -- and the release notes
> will definitely include a section describing the various JAR files that
> are made visible to web applications by default.
>
> Craig


Mime
View raw message