GeeCON Prague 2014*
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
 
GeeCON Prague 2014
 
subject: iam getting an error while running a servlet program