Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

error says "java.sql.SQLException: [Microsoft][ODBC Driver Manager]

  Asked By: Charlie    Date: Jan 22    Category: Java    Views: 2767
  

I am trying to write a web application and I am having some
problem. I work on this for whole weekend and I figure out why its not
working.
Here is the structure I have

If I put the class file in classes folder then I am able to connect
to the Database and everything is fine
../Tomcat 5.0/webapps/hw/web-inf/classes/test.class

But if I put the classes file in pacakage
../Tomcat 5.0/webapps/hw/web-inf/classes/jsp/test.class

I get error
says "java.sql.SQLException:
[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified".

Please let me know if anyone has any solution for that.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Corey Jones     Answered On: Jan 22

First of all.. where's the database file  located? r u using DSN based method to
connect to database  or what?

My approximation says its problem with location of database file.. just make
sure path and stuff wherever u've used them.

 




Tagged: