Hello,

I am using JavaWebServer 1.1.3 in a PC with NT4.0.  I can install
servlets and run them but, when I try to connect to a database (from a
servlet) with DriverManager.getConnection, I get the following error:
 "Data source was not found and a predetermined driver was not
specified" (The o.s. is in spanish.  The textual error is:  "El origen
de datos no se encontr� y no se especific� ning�n controlador
predeterminado")
I have configured system DNS and archive DNS.
The same code works when inserted in an application instead to be in a
servlet (I mean, it connects to the database and executes the query).
Is there something that needs to be configured to allow the server to
access to databases?  I have been scanning the documentation and the
property files but I have not found anything related to database
access.  Can someone give me a clue?

The code is quite simple:
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        Traza("Class found");
        Connection c =
DriverManager.getConnection("jdbc:odbc:EjemploDB", "", "");
        Traza("Connection made");

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to