Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2007
    Rep Power

    Default Problem in Servlet with JDBC

    Hello ,

    I 'm a new programmer in Java . This semester , I have a project in which I have to design a web site using HTML and Servlet.
    But I faced with a problem that prevents me strat my project :(

    The problem was the servlet program that contains a connection to MS Access did not work :(

    If the servlet program does not have a connection to a database , it works properly !<<< some of my colleague even this did not work ,,

    The error is some thing like this :

    HTTP Status 404 - /jdbc/servlet/coreservlets.NorthwindServlet


    type Status report

    message /jdbc/servlet/coreservlets.NorthwindServlet

    description The requested resource (/jdbc/servlet/coreservlets.NorthwindServlet) is not available.


    Apache Tomcat/5.5.20

    I'm using apache-tomcat-5.5.20
    and jdk1.5.0

    I hope you could help my as soon as possible:(

    Thanks in advance,,

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Bali, Indonesia
    Rep Power


    How do you configure your servlet (servlet mapping) in the web.xml file. The 404 error is just telling that the resource does not exists in the server.

  3. #3
    collins is offline Member
    Join Date
    Dec 2007
    Rep Power


    Define the JDBC details in a method in a separate class and Create an object of that class in the servlet. Using this object, call the method which establishes connection.
    I think this is the best possible way....If any reply!!!
    All The Best!!!

Similar Threads

  1. Jdbc problem
    By abhiN in forum JDBC
    Replies: 1
    Last Post: 03-21-2008, 06:10 AM
  2. JDBC select problem
    By abhiN in forum JDBC
    Replies: 0
    Last Post: 03-12-2008, 09:09 AM
  3. JDBC problem
    By Swamipsn in forum New To Java
    Replies: 1
    Last Post: 08-13-2007, 06:05 PM
  4. JDBC Driver problem
    By Swamipsn in forum New To Java
    Replies: 3
    Last Post: 08-09-2007, 03:55 PM
  5. JDBC problem
    By peiceonly in forum Threads and Synchronization
    Replies: 2
    Last Post: 08-03-2007, 01:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts