500 Servlet Exception - Class Not Found
I recently changed web hosting companies, and copied all of my files (servlets, jsp, etc.) into the same file structure that I used with the previous company. I used these files for about three years without problems, but now cannot get my jsp's to recognize my servlets, or at least it appears that way.
My class files are in: /public_html/WEB-INF/classes, and my jsp files are in: /public_html, both of which are where the hosting company (Lunarpages) says to put the respective files. Though I had no problems with my files before, I now get the following error:
500 Servlet Exception
Note: sun.tools.javac.Main has been deprecated.
/reunion/messageBoard.jsp:22: Class _reunion.DBManager not found.
DBManager dbManager = new DBManager();
^
/reunion/messageBoard.jsp:22: Class _reunion.DBManager not found.
DBManager dbManager = new DBManager();
^
The jsp file that is calling the servlet contains the following:
<BODY BACKGROUND="" BGCOLOR="#ffffff" TEXT="#000000" LINK="#0000ff" VLINK="#800080" ALINK="#ff0000">
<%@ page import = "java.io.*, javax.servlet.*, javax.servlet.http.*, java.sql.*, java.util.*, java.util.Date" %>
<%
response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-cache");
ResultSet resultSet = null;
Connection connection = null;
DBManager dbManager = new DBManager();
String title = "Welch's Family Reunion";
String homePage = "http://www.cnjdesigns.com/reunion/index.html";
String messagePage = "http://www.cnjdesigns.com/reunion/messageBoard.jsp";
String postPage = "http://www.cnjdesigns.com/reunion/messagePost.jsp";
...
and the servlet has the following code:
import java.sql.*;
public class DBManager {
Connection connection = null;
private String URL = "jdbc:mysql://www.cnjdesigns.com/cnjde2_reunion";
private String username = "xxxxxxx";
private String password = "xxxxxxx";
public DBManager() {
// Load the Driver
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (Exception e) {
System.err.println("ERROR: Problems loading the driver" );
e.printStackTrace();
}
}
...
Anyone interested in seeing the actual page I'm trying to make work can go to:http://www.cnjdesigns.com/reunion/messageBoard.jsp
I tried to compile in both JDK 1.4 and 1.5, but that did not solve the problem.
Has anyone else experienced this or know what I'm doing wrong? Any help would be appreciated.

