wood burning stoves 2.0*
The moose likes Servlets and the fly likes iam getting an error while running a servlet program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "iam getting an error while running a servlet program" Watch "iam getting an error while running a servlet program" New topic
Author

iam getting an error while running a servlet program

Avinash Nethi
Greenhorn

Joined: Aug 28, 2008
Posts: 7
This is the error message I get:

javax.servlet.ServletException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

The servlet program is compiled but at the run time only it is showing the above message can you please help me by giving the right solution
vijay dadhwal
Ranch Hand

Joined: Dec 02, 2008
Posts: 47

Hi,

As per error, There could be 2 reasons:-

(1)Data source name specified in ODBC is not matching with the one in your servlet code.

(2) User DSN is specified instead of System DSN in ODBC.

Regards
vijay


MCA , SJCP
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: iam getting an error while running a servlet program
 
Similar Threads
FOR HELP: Failed to connect to oracle in servlet
FOR HELP, can not connect to Oracle using JDBC in servlet.
Servlets and SQL Express 2005
Servlets with JDBC connection
How to configure P6Spy Driver with websphere 5.1 version