On Sat, 15 Sep 2001, Calvin Lau wrote:
> Date: Sat, 15 Sep 2001 14:17:21 -0700
> From: Calvin Lau <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> 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