Hi all: I am new to jsp and i met a problem while connecting to Microsoft Access. The following is the code: <%@ page import="java.sql.*" %> <html> <body> <% String name=request.getParameter("name"); String balance=null;
The error message is: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified the datasoure "kkk" is in the ODBC pool and it tests well when I run a standalone program. Any ideas?
Billybob Marshall
Ranch Hand
Joined: Jan 27, 2004
Posts: 202
posted
0
Is "kkk" a 'system' DSN, or a 'user' or 'file' DSN? If not a 'system' DSN, when you start the J2EE server, is it running as the same user that owns the DSN?
Steven Riche
Greenhorn
Joined: Feb 10, 2004
Posts: 3
posted
0
billbob, thanks. cause I am using Tomcat 5, which start as Windows Service.
Billybob Marshall
Ranch Hand
Joined: Jan 27, 2004
Posts: 202
posted
0
Originally posted by Steven Riche:
...I am using Tomcat 5, which start as Windows Service.
That's probably the "SYSTEM" user. So your 'kkk' DSN needs to be defined as a 'system' DSN, not a user one.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.