users@jax-rpc.java.net

Re: JAR and only JAR instead of ZIP???

From: Plaetinck, Luc <Luc_Plaetinck_at_COMPUWARE.COM>
Date: Mon, 17 Jun 2002 11:02:01 -0400

When you look at the startup scripts for the Tomcat server, you'll see that
it takes only the .jar files from common\lib into it's classpath (same for
the targets.xml in jaxrpc\common).
Luc

-----Original Message-----
From: Pedro Salazar [mailto:pedro-b-salazar_at_PTINOVACAO.PT]
Sent: Monday, June 17, 2002 10:11
To: JAXRPC-INTEREST_at_JAVA.SUN.COM
Subject: JAR and only JAR instead of ZIP???


Is it be possible? I was debugging for more than 4 days with an
exception about not loading oracle driver in jndi to get a connection
from a datasource in tomcat (webservices), and as far I can see, from a
rumor, I changed my oracle driver package file (classes12.zip) from zip
to jar and I solved the problem!!!

It's strange because times ago, not in a jaxrpc service, but in a
servlet (tomcat 3.2.1), I could load a oracle driver from a zip file...
Why can't I do it now?? Even a Class.forName() was throwing an
exception!!!???

Could anyone explain me this?

thanks,
Pedro Salazar

--- exception ---
DbcpDataSourceFactory: driverClassName=oracle.jdbc.driver.OracleDriver,
url=jdbc:oracle:thin:@veleiro:1521:crumpet, user=admincrumpet_08
DbcpDataSourceFactory: Cannot load JDBC driver
oracle.jdbc.driver.OracleDriver
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
...



The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.