This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes SQLException: No suitable driver Found for jdbc:oracle:thin:@//localhost:1521/orcl Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQLException: No suitable driver Found for jdbc:oracle:thin:@//localhost:1521/orcl" Watch "SQLException: No suitable driver Found for jdbc:oracle:thin:@//localhost:1521/orcl" New topic
Author

SQLException: No suitable driver Found for jdbc:oracle:thin:@//localhost:1521/orcl

peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39

I'm tried to develop a Java EE application that connect to Oracel database fromw eb service class but there is SQLException: No suitable driver found for jdbcracle:thin:@//localhost:1521/orcl.

I have the ojdbc6.jar in the class path and i verified this in the jboss as deployment folder.

My application is EAR composes a war.

What wrong (root cause) with this?

Please help.

Thanks.
peter wong ka chon
Ranch Hand

Joined: Jul 28, 2011
Posts: 39
Kindly provide help to this question.

Thanks.
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 866
    
    5
> No suitable driver found

The Oracle driver library is not present.
harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

make sure you are loading the correct class also verify if your jar is present inside $JBOSS_HOME/server/default/lib/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQLException: No suitable driver Found for jdbc:oracle:thin:@//localhost:1521/orcl
 
Similar Threads
java.sql.SQLException: Io exception: The Network Adapter could not establish the conn
java.sql.SQLException: No suitable driver
java.sql.SQLException: No suitable driver found
Unable to run servlet program using Connection Pool in JBoss
JDBC Error