yes, but it's already done and it doesn't work .. have you an other idea ??
Remy Randy Layman wrote: > Because the Contexts are managed by Tomcat you need to put the >classes12.jar into the CATALINA_HOME/lib/common directory (Tomcat needs to >see them, lib/container might also work). > > Randy > >>-----Original Message----- >>From: remy.menetrieux [mailto:[EMAIL PROTECTED]] >>Sent: Friday, February 22, 2002 2:06 PM >>To: Tomcat Users List >>Subject: Re: oracle/TC4.0.2/linux >> >> >>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:[EMAIL PROTECTED]] >>>>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: >>>> >><mailto:[EMAIL PROTECTED]> >> >>>>For additional commands: >>>> >><mailto:[EMAIL PROTECTED]> >> >>>>Troubles with the list: >>>> >><mailto:[EMAIL PROTECTED]> >> >>>-- >>>To unsubscribe: <mailto:[EMAIL PROTECTED]> >>>For additional commands: <mailto:[EMAIL PROTECTED]> >>>Troubles with the list: <mailto:[EMAIL PROTECTED]> >>> >>> >>> >> > >-- >To unsubscribe: <mailto:[EMAIL PROTECTED]> >For additional commands: <mailto:[EMAIL PROTECTED]> >Troubles with the list: <mailto:[EMAIL PROTECTED]> > > >
