• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Netbeans Tomcat JSP debug - HELP PLEASE!

 
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic