SOLVED: jdk 1.4 and Oracle drivers

2002-06-11 Thread John Gregg

Once I tapped in to the bootstrap process with my debugger a little earlier
in the Tomcat startup process, I could see the conditions under which some
jar files are excluded from the various class loaders.  The Oracle
classes12.jar file contains the javax.sql stuff, which is now included in
jdk 1.4.  Tomcat ignores any jar files that contain classes that were once
separate from the standard jdk but are now part of it, such as the jdbc
extensions, jndi stuff, etc.  The solution was simply to remove the
javax.sql stuff from the Oracle clsses12.jar file.

john


-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED].
org]On Behalf Of John Gregg
Sent: Thursday, June 06, 2002 4:53 PM
To: [EMAIL PROTECTED]
Subject: jdk 1.4 and Oracle drivers


Hi all.

Upon completing my most recent project I switched from jdk 1.3.1 to 1.4.
However now I can't start Tomcat (4.0.1) because it can't find the Oracle
jdbc driver class.  When I first started using Oracle with Tomcat, I renamed
the classes12.zip to classes12.jar.  Now no matter where I put
classes12.jar, I get the same error.  I've tried lib, common/lib,
server/lib, and webapps/project/web-inf/lib.  FWIW, I have a servlet that
runs at startup and tries to initialize a db connection pool.  This used to
work just fine and in fact still does with postgresql.jar.  I even tried
unzipping classes12.zip and actually jarring it up.  No luck.  I've traced
the problem in a debugger far enough to know that the StandardClassLoader
that should have classes12.jar in its scope doesn't.  In fact, of all the
stuff under common (classes and lib), it's missing classes12.jar and
jdbc2_0-stdext.jar.  Everything else is there.  I see those 2 jars overlap
somewhat, so I tried removing the latter to no avail.  I don't have any
other Tomcat installations and there aren't any jar files in multiple
locations.  I feel like I know everything about this problem but the answer.

thanks

john


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: SOLVED: jdk 1.4 and Oracle drivers

2002-06-11 Thread Jacob Kjome

Hello John,

Well, I have been using the classes12.jar in TOMCAT_HOME/common/lib.
I've used it with both the JNDI javax.sql.DataSource deal provided by
the Jakarta-Commons project and another connection pooler.  I've never
had a single problem.  I've used JDK-1.3.x and JDK-1.4 and haven't had
to remove any classes from anywhere.  If you are having to do this
with Tomcat-4.0.3, I suggest an upgrade to the latest 4.0.4 or 4.1.x
betas.  They are plenty stable and fix some classloading issues.  I
pretty much skipped from Tomcat-4.0.2-b2 to nightly builds of 4.1
because of so many classloading issues with the final release of 4.0.2
(and 4.0.3 is just 4.0.2 + a security fix).

Jake

Tuesday, June 11, 2002, 10:36:22 AM, you wrote:

JG Once I tapped in to the bootstrap process with my debugger a little earlier
JG in the Tomcat startup process, I could see the conditions under which some
JG jar files are excluded from the various class loaders.  The Oracle
JG classes12.jar file contains the javax.sql stuff, which is now included in
JG jdk 1.4.  Tomcat ignores any jar files that contain classes that were once
JG separate from the standard jdk but are now part of it, such as the jdbc
JG extensions, jndi stuff, etc.  The solution was simply to remove the
JG javax.sql stuff from the Oracle clsses12.jar file.

JG john


JG -Original Message-
JG From:
JG [EMAIL PROTECTED]
JG [mailto:[EMAIL PROTECTED].
JG org]On Behalf Of John Gregg
JG Sent: Thursday, June 06, 2002 4:53 PM
JG To: [EMAIL PROTECTED]
JG Subject: jdk 1.4 and Oracle drivers


JG Hi all.

JG Upon completing my most recent project I switched from jdk 1.3.1 to 1.4.
JG However now I can't start Tomcat (4.0.1) because it can't find the Oracle
JG jdbc driver class.  When I first started using Oracle with Tomcat, I renamed
JG the classes12.zip to classes12.jar.  Now no matter where I put
JG classes12.jar, I get the same error.  I've tried lib, common/lib,
JG server/lib, and webapps/project/web-inf/lib.  FWIW, I have a servlet that
JG runs at startup and tries to initialize a db connection pool.  This used to
JG work just fine and in fact still does with postgresql.jar.  I even tried
JG unzipping classes12.zip and actually jarring it up.  No luck.  I've traced
JG the problem in a debugger far enough to know that the StandardClassLoader
JG that should have classes12.jar in its scope doesn't.  In fact, of all the
JG stuff under common (classes and lib), it's missing classes12.jar and
JG jdbc2_0-stdext.jar.  Everything else is there.  I see those 2 jars overlap
JG somewhat, so I tried removing the latter to no avail.  I don't have any
JG other Tomcat installations and there aren't any jar files in multiple
JG locations.  I feel like I know everything about this problem but the answer.

JG thanks

JG john


JG --
JG To unsubscribe, e-mail:
JG mailto:[EMAIL PROTECTED]
JG For additional commands, e-mail:
JG mailto:[EMAIL PROTECTED]



JG --
JG To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
JG For additional commands, e-mail: mailto:[EMAIL PROTECTED]



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: SOLVED: jdk 1.4 and Oracle drivers

2002-06-11 Thread Peter Mutsaers

 Jacob == Jacob Kjome [EMAIL PROTECTED] writes:

Jacob Well, I have been using the classes12.jar in
Jacob TOMCAT_HOME/common/lib.  I've used it with both the JNDI
Jacob javax.sql.DataSource deal provided by the Jakarta-Commons
Jacob project and another connection pooler.  I've never had a
Jacob single problem.  I've used JDK-1.3.x and JDK-1.4 and
Jacob haven't had to remove any classes from anywhere.  If you
Jacob are having to do this with Tomcat-4.0.3, I suggest an
Jacob upgrade to the latest 4.0.4 or 4.1.x betas.  They are

I use classes12.jar with tomcat-4.0.3 and JDK1.4 (solaris) and have no
problems. classes12.jar is unmodified in common/lib, didn't have to
remove anything.

-- 
Peter Mutsaers, Dübendorf, Switzerland.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




jdk 1.4 and Oracle drivers

2002-06-06 Thread John Gregg

Hi all.

Upon completing my most recent project I switched from jdk 1.3.1 to 1.4.
However now I can't start Tomcat (4.0.1) because it can't find the Oracle
jdbc driver class.  When I first started using Oracle with Tomcat, I renamed
the classes12.zip to classes12.jar.  Now no matter where I put
classes12.jar, I get the same error.  I've tried lib, common/lib,
server/lib, and webapps/project/web-inf/lib.  FWIW, I have a servlet that
runs at startup and tries to initialize a db connection pool.  This used to
work just fine and in fact still does with postgresql.jar.  I even tried
unzipping classes12.zip and actually jarring it up.  No luck.  I've traced
the problem in a debugger far enough to know that the StandardClassLoader
that should have classes12.jar in its scope doesn't.  In fact, of all the
stuff under common (classes and lib), it's missing classes12.jar and
jdbc2_0-stdext.jar.  Everything else is there.  I see those 2 jars overlap
somewhat, so I tried removing the latter to no avail.  I don't have any
other Tomcat installations and there aren't any jar files in multiple
locations.  I feel like I know everything about this problem but the answer.

thanks

john


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: jdk 1.4 and Oracle drivers

2002-06-06 Thread Tia Haenni

Did you try adding the location of your classes12.jar to the Tomcat 
classpath? Look in tomcat_home/bin/setclasspath file. There should be 
a section near the bottom like one of the following depending on the OS:

# Set standard CLASSPATH
CLASSPATH=$JAVA_HOME/lib/tools.jar

rem Set standard CLASSPATH
set CLASSPATH=%JAVA_HOME%\lib\tools.jar



John Gregg wrote:

Hi all.

Upon completing my most recent project I switched from jdk 1.3.1 to 1.4.
However now I can't start Tomcat (4.0.1) because it can't find the Oracle
jdbc driver class.  When I first started using Oracle with Tomcat, I renamed
the classes12.zip to classes12.jar.  Now no matter where I put
classes12.jar, I get the same error.  I've tried lib, common/lib,
server/lib, and webapps/project/web-inf/lib.  FWIW, I have a servlet that
runs at startup and tries to initialize a db connection pool.  This used to
work just fine and in fact still does with postgresql.jar.  I even tried
unzipping classes12.zip and actually jarring it up.  No luck.  I've traced
the problem in a debugger far enough to know that the StandardClassLoader
that should have classes12.jar in its scope doesn't.  In fact, of all the
stuff under common (classes and lib), it's missing classes12.jar and
jdbc2_0-stdext.jar.  Everything else is there.  I see those 2 jars overlap
somewhat, so I tried removing the latter to no avail.  I don't have any
other Tomcat installations and there aren't any jar files in multiple
locations.  I feel like I know everything about this problem but the answer.

thanks

john


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


  





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]