I'm debugging a
jsp using Netbeans and bundled
Tomcat.
The jsp is looking for a class and can't find it. I have the class in a jar file in the /lib folder. Other classes use this class and compile just fine.
I've tried everything. Here's the snippet:
<%@ page import="com.oneok.portal.mgmtauth.Reports,<br /> com.oneok.portal.Hierarchy,<br /> com.oneok.portal.util.CommonUtils,<br />
com.oneok.db.DBConnection,<br /> java.sql.Connection,<br /> java.sql.SQLException,<br /> java.sql.ResultSet,<br /> java.sql.Statement,<br /> java.util.TreeMap,<br /> java.util.ArrayList,<br /> java.util.Arrays,<br /> java.util.Set,<br /> java.util.Stack,<br /> java.text.DecimalFormat,<br /> org.apache.log4j.Logger,<br /> com.oneok.portal.beans.HierarchyBean,<br /> com.oneok.portal.beans.MgmtAuthBean,<br /> java.util.Iterator"<br /> %>
<%!<br /> public TreeMap setMgmtAuthBeans(TreeMap tmEmployees) {
TreeMap results = new TreeMap();
reports.getMgmtAuthBeans().clear();
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
String sql = "";
try {
conn = DBConnection.getConnection("MISC_READONLY"); It craters on the connection attempt.
DBConnection is included in the compile and run libs for Netbeans. According to Netbeans
doc, these libs are automagically included in the classpath, although I would think Tomcat takes care of that by putting them in the /lib folder.
Any ideas?