Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Getting Servlets within a package to find jdbc driver-Tomcat?

Options
  • 11-04-2007 12:13am
    #1
    Registered Users Posts: 1,550 ✭✭✭


    Ive started putting my java servlets into packages but I find when I put the servlets into a package the servlets cant find the jdbc driver and it comes up saying no suitable driver.

    If I put the servlets into the root directory they seem to run ok and find the driver.

    So how do I get servlets in packages to work properly and find jdbc driver?


Comments

  • Registered Users Posts: 11,977 ✭✭✭✭Giblet


    Can you post some code about how you are referencing the driver?
    Make sure that when you have stuff in packages, that you reference the class including its package name.
    i.e.: packagename.subpackage.class


Advertisement