Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help please! Problem accessing db connections from servlets

843840Nov 14 2002 — edited Nov 15 2002
Hi all,
I am creating a web application using MVC architecture using jsp,servlets and beans.

I have created a login.jsp which accesses the LoginHandlerServlet.class.
in login.jsp there are two fields. One is username and one is password. When fields are filled and submitted it redirects it to LoginHandlerServlet. Now in the servlet it calls a passwordBean which in turn calls a connectionBean which gives the connection to passwordBean and passwordBean checks the username and password and returns the result to servlet.
Now when I run this application through tomcat. I am getting a error
Error : oracle:jdbc:Driver:OracleDriver
But when I append a main method in passwordBean which calls the corresponding method my driver gets initialised and I get the perfect output.

Please let me know what is wrong with this. Thanking you all in advance.

Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2002
Added on Nov 14 2002
22 comments
266 views