Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JDBC connection to Progress through a Servlet

Status
Not open for further replies.

siren

Programmer
Aug 7, 2002
5
TR

By using JDBC driver, I am trying to connect to a Progress91b db through a class and a servlet. The commands that the class and servlet are using while connecting to the db are the same:

...

String driver = "com.progress.sql.jdbc.JdbcProgressDriver";
String URL = "jdbc:jdbcprogress:T:localhost:10500:rac";
String username = "dba1";
String password = "dba1";

Connection con = null;
DatabaseMetaData dmd = null;
ResultSet rs = null;

try
{
Class.forName( driver );
con = DriverManager.getConnection( URL, username, password );

.....



I can easily connect to the db and see the results of a query through a class. However, I cannot do the same things by a servlet and I come across such an error:
"java.lang.ClassNotFoundException: com.progress.sql.jdbc.JdbcProgressDriver"

In short, when I try to connect to the db by a servlet it cannot find the JDBC driver. What shall I do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top