Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Database connection problem in J2EE sdk 1.3.1

843829Mar 15 2003 — edited Mar 25 2003
I am trying to connect to an oracle database. I have a servlet that calls a bean and in the ejbCreate() method of the bean i am calling code as follows

DataSource ds = (DataSource) ic.lookup
("java:comp/env/jdbc/AccountDB");
Connection conn=ds.getConnection();

i am getting the follwing error
java.sql.SqlException: No suitable driver found

i am using oracle thin driver and have set it up in Forte and have also been able to connect in Forte to the database
i have added foll. in Server configuration

Driver class: oracle.jdbc.driver.OracleDriver
Driver url: jdbc:oracle:thin:@<host ip address>:1521:orcl
jndi name: jdbc/AccountDB

I would really appreciate any help here
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2003
Added on Mar 15 2003
6 comments
124 views