Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ashutosh Arya
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic