Using IIS and Tomcat 4.0.1 how do you make a database connection?

Already tried and got an exception caught null, couldnt even make a
connection!
I am using Access on Win2K and this code:

public class myphonebookservlet extends HttpServlet {
    Connection con;

    public void init() throws ServletException {
        if (con != null)
            return;

        try {
            // Load Driver
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

            // Get Connection to database
            con = DriverManager.getConnection("jdbc:odbc:Phonebook",
"",""  );
         }catch(ClassNotFoundException e)  {
            System.out.println("Couldnt Load database Driver: " +
e.getMessage());
         }catch (SQLException e) {}


    }

Thanks

L Marcus

----- Original Message -----
From: "Larry Isaacs" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 10:01 AM
Subject: RE: Problems with Tomcat3.3 and IIS5.0


This would seem to be a permission problem on the IIS 5.0
side.  The "howto" document mentions some changes to the IIS
configuration but doesn't address this topic in general.
What appears in IIS's access log and isapi_redirect.dll's
log file for the request?

Cheers,
Larry


> -----Original Message-----
> From: Santiago Planet Garc�a [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 27, 2001 7:02 AM
> To: [EMAIL PROTECTED]
> Subject: Problems with Tomcat3.3 and IIS5.0
>
>
>
> I'm trying to install Tomcat 3.3 to work with IIS 5.0, over
> Windows 2000
> Server, and I'm doing the steps specifieds on
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
> but I'm not obtaining any good results. The error that I obtain is:
>
> "HTTP 401.3 - Access denied by ACL on resource"
>
> when accessing to http://localhost/examples/jsp/index.html
>
> However if I access to
> http://localhost:8080/examples/jsp/index.html the
> error not appears. How can I resolve this problem?
>
> Thank you very much. Happy New Year!
>
> ______________________________________________________________
> _________________
> SANTI PLANET GARCIA
>
> [EMAIL PROTECTED]
> http://www.salleURL.edu/~si05993
>
> Departament de Comunicacions i Teoria del Senyal
> Enginyeria La Salle
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to