Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 17th, 2006, 05:15 AM
Registered User
Join Date: Mar 2006
Location: islamabad, punjab, Pakistan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database connection error help me

I am a newbee in jsp development. I am using Oracle JDeveloper 10g as a JSP editor.
i made following code to connect with the database.
<%@ page import="java.sql.*" %>
<%@ page language="java" %>
<%@ page import="mypackage.*" %>
 <HEAD><TITLE>Man Get Connected </TITLE></HEAD>

  DataAccess daccess=new DateAccess();

  Connection conn = null;
  Statement st = null;
  ResultSet rs = null;
  try {

    try{Class.forName("com.mysql.jdbc.Driver").newInst ance();
    }catch(Exception ex)
    {out.println("Driver not found");

      try{conn = DriverManager.getConnection("jdbc:mysql://localhost/menageris?user=root&password=teralight");
      }catch(Exception ex)
        out.println("Driver Manager not Connected");
          st = conn.createStatement();
          rs = st.executeQuery("select * from company");
    <%= rs.getString("name") %><br>
    catch(Exception ex) {

    out.println("connection not found");


And found exception as:
----->>>>>>>> Driver not found
plz help me in dealing with that
have I made any change in JDeveloper,path setting etc

Reply With Quote
  #2 (permalink)  
Old March 21st, 2006, 08:38 AM
Authorized User
Join Date: Mar 2006
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts

Copy the following file into the web/application server's lib directory.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database connection error......Page not loading??? ankur_icfai ASP.NET 2.0 Basics 2 January 25th, 2007 09:12 AM
Database connection error lappling General .NET 0 April 20th, 2006 07:48 AM
Database Connection Error werD420 Classic ASP Databases 12 January 20th, 2005 01:52 PM
Server error for database connection frankv25 ASP.NET 1.0 and 1.1 Basics 5 August 14th, 2004 07:33 AM

All times are GMT -4. The time now is 02:17 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.