You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2002/02/22 18:26:02 UTC
RE: oracle/TC4.0.2/linux
The most common problem is not renaming classesXXX.zip to
classesXXX.jar. (Tomcat doesn't automatically see ZIP files, but it does
JAR).
Randy
> -----Original Message-----
> From: remy.menetrieux [mailto:remy.menetrieux@pixelpark.com]
> Sent: Friday, February 22, 2002 1:00 PM
> To: Tomcat Users List
> Subject: oracle/TC4.0.2/linux
>
>
> Has anybody succeeded in making this specific configuration working ?
> Has anybody can access to a database with a Datasource??
> Could you send me you're configuration please...
>
>
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: oracle/TC4.0.2/linux
Posted by "remy.menetrieux" <re...@pixelpark.com>.
I have already rename classes12.zip in classes12.jar
I obtain : No suitable driver
this code works :
String url="jdbc:oracle:thin:@62.52.53.213:1521:db8ir3";
String password="jdev";
String user="jdev";
String driver = "oracle.jdbc.driver.OracleDriver";
//Class.forName(driver).newInstance();<-- so the driver is in
CLASSPATH
Connection conn = DriverManager.getConnection(url,user,password);
this no
try{
Context envCtx = (Context) initCtx.lookup("java:comp/env");
System.out.println("2");
DataSource ds = (DataSource)envCtx.lookup("jdbc/HelloDB");
System.out.println("DataSource="+ds );//DataSource=Enabled
Connection conn = ds.getConnection();
}catch (Exception e) {
System.out.println("erreur"+e.getMessage() ); //No Suitable Driver
Have you any idea ??
P.S : The same configuaration and same code under WinNT works
Randy Layman wrote:
> The most common problem is not renaming classesXXX.zip to
>classesXXX.jar. (Tomcat doesn't automatically see ZIP files, but it does
>JAR).
>
> Randy
>
>>-----Original Message-----
>>From: remy.menetrieux [mailto:remy.menetrieux@pixelpark.com]
>>Sent: Friday, February 22, 2002 1:00 PM
>>To: Tomcat Users List
>>Subject: oracle/TC4.0.2/linux
>>
>>
>>Has anybody succeeded in making this specific configuration working ?
>>Has anybody can access to a database with a Datasource??
>>Could you send me you're configuration please...
>>
>>
>>
>>
>>--
>>To unsubscribe: <ma...@jakarta.apache.org>
>>For additional commands: <ma...@jakarta.apache.org>
>>Troubles with the list: <ma...@jakarta.apache.org>
>>
>
>--
>To unsubscribe: <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>
>