after starting tomcat, after calling the DisplayAllEmployees.jsp from webbrowser, i am getting
NULL POINTER EXCEPTION in web browser and
the below error in tomcat server :--
-------------------------------------------------------
Getting Connection.............
Error : java.sql.SQLException : [Microsoft ] [ ODBC Driver Manager ] Data source name not found and no default driver specified
-------------------------------------------------------
i am using oracle 10 g
i am using the below MyConnection.class
---------------------------
// MyConnection.java
//
// placed as
// K:\tomcat\webapps\test\WEB-INF\classes\mycon\MyConnection.java
package mycon;
import java.sql.*;
public class MyConnection
{
Connection connection;
public MyConnection()
{
connection = null;
}
public Connection getConnection()
{
openConnection();
return connection;
}
private void openConnection()
{
try
{
boolean isReady = true;
if(connection == null)
{
isReady = false;
}
else if(connection.isClosed() == true)
{
isReady = false;
}
if(isReady == false)
{
// Connection not in open mode, open the connection now
System.out.print("Getting Connection ... ");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connection = DriverManager.getConnection(
"jdbc

dbc:javaoracle","system","bhaskar");
System.out.println(" OK");
}
}
catch(Exception ex)
{
System.out.println();
System.out.println("Error: "+ex);
}
} // end of openConnection()
} // end of class