• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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?
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic