File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 877
    
    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