• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

I am close to breaking something

This is driving me insane.

I have netbeans installed, I programmed a class and put it in the web-inf/classes folder, then I called it using

TrainingConnect trainingConnect = new TrainingConnect();

Netbeans even used code assist to let me know that it found the class.

Then when I run it, it gives me the error:

C:\Documents and Settings\marcadam\.netbeans\3.6\jakarta-tomcat-5.0.19_base\work\Catalina\localhost\jsp\org\apache\jsp\records_jsp.java:59: cannot resolve symbol
symbol  : class TrainingConnect
location: class org.apache.jsp.records_jsp
 TrainingConnect trainingConnect = new TrainingConnect();
 ^
C:\Documents and Settings\marcadam\.netbeans\3.6\jakarta-tomcat-5.0.19_base\work\Catalina\localhost\jsp\org\apache\jsp\records_jsp.java:59: cannot resolve symbol
symbol  : class TrainingConnect
location: class org.apache.jsp.records_jsp
 TrainingConnect trainingConnect = new TrainingConnect();
                                       ^
2 errors


Why the hell won't it find my class? It;s pissing me off.

Thanks for any help you can give.
0
k41d3n
Asked:
k41d3n
  • 2
1 Solution
 
bobbit31Commented:
at top of your jsp page:

<% page import="yourpackage.TrainingConnect" %>
0
 
bobbit31Commented:
oops:

<%@ page import="..." %>
0
 
k41d3nAuthor Commented:
haha yeah, I figured that one out 3 seconds after I posted.

Old school tomcat didn't require that

thanks man!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now