aspose file tools*
The moose likes JDBC and the fly likes java.sql.SQLException: Invalid URL: Driver type not specified Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java.sql.SQLException: Invalid URL: Driver type not specified" Watch "java.sql.SQLException: Invalid URL: Driver type not specified" New topic
Author

java.sql.SQLException: Invalid URL: Driver type not specified

Ashutosh Arya
Ranch Hand

Joined: Oct 07, 2008
Posts: 69
Hi I am trying to connect to database using properties file:



But getting java.sql.SQLException: Invalid URL: Driver type not specified error.

Our server is iPlanet 6.

Please guide that what can be the problem?

Thanks in advance

Aashu
Steven Schwab
Greenhorn

Joined: May 25, 2010
Posts: 9
Assuming you are using Oracle, your connection url is incorrect.

Please see http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html#05_03 as well as the question below it for how you need to form the connection url.
 
 
subject: java.sql.SQLException: Invalid URL: Driver type not specified