Reuven, you say the error is "it is not found by the compiler used by Tomcat6", but that is not clear from the JSP compiler output. It says "....The constructor DB_Connection() is undefined", so Kris's suggestion is right. You could split the statement in a declaration and an assignment to prove it:
DB_Connection dbCon; dbCon = new DB_Connection(); Also, do you get this error only if you declare the DB_Connection() in a JSP, or also if you declare it in another Java class ? (the JSP compiler uses a slightly different classpath than the webapp classloader) regards, Harry 2010/4/26 Kris Schneider <kschnei...@gmail.com> > On Mon, Apr 26, 2010 at 2:11 PM, Reuven Koblick <groovyro...@gmail.com> > wrote: > > Sure Chris more specifically, from the localhost.*.log > > > > An error occurred at line: 21 in the jsp file: > > /admin/GenerateTriggersManually.jsp > > The constructor DB_Connection() is undefined > > Does DB_Connection actually have a no-arg constructor 'cause the > compiler doesn't seem to think so... > > > 18: <body> > > 19: > > 20: <% > > 21: DB_Connection dbCon = new DB_Connection(); > > 22: > > 23: int timeInterval = 1; > > 24: > > > > Here is the JSP file from the webapps/${appname} directory > > less admin/GenerateTriggersManually.jsp > > > > <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> > > <%...@page contentType="text/html"%> > > <%...@page pageEncoding="UTF-8"%> > > <%...@page import="com.bestrictlypersonal.db.DB_Connection" %> > > <%...@page import="com.bestrictlypersonal.trigger.*" %> > > <%...@page import="com.bestrictlypersonal.info.Volunteer" %> > > <%...@page > > > import="com.bestrictlypersonal.db.getTrigger.DB_GetInterruptedSessionReportTrigger" > > %> > > <%...@page import="com.bestrictlypersonal.error.ProcessError" %> > > <%...@page import="com.bestrictlypersonal.email.Email"%> > > <%...@page import="com.bestrictlypersonal.setup.*" %> > > <%...@page import="com.bestrictlypersonal.util.*" %> > > <%...@page import="com.bestrictlypersonal.info.Volunteer"%> > > > > > > > > <html> > > <head><title>JSP Page</title></head> > > <body> > > > > <% > > DB_Connection dbCon = new DB_Connection(); > > > > int timeInterval = 1; > > > > lastly, I go to > > webapps/${app-name}/WEB-INF/classes/com/bestrictlypersonal/db and the > file > > DB_Connection.class is present and accounted for. > > > > Hope that is enough specific. > > > > Reuven > > > > > > > > > > > > > > > > On Mon, Apr 26, 2010 at 1:42 PM, Christopher Schultz < > > ch...@christopherschultz.net> wrote: > > > >> -----BEGIN PGP SIGNED MESSAGE----- > >> Hash: SHA1 > >> > >> Reuven, > >> > >> On 4/26/2010 1:22 PM, Reuven Koblick wrote: > >> > I'm getting an error when code in a *.jsp file tries to instantiate a > >> class > >> > [that] is not found by the compiler used by Tomcat6. > >> > >> [snip] > >> > >> > I verified that the class that was not found is indeed in > >> /WEB-INF/classes. > >> > >> Can you be specific? Where is the .class file for that class (including > >> full path)? > >> > >> > Also, classes in *.jar files in WEB-INF/lib are found. Does anyone > have > >> any > >> > thoughts or suggestions? > >> > >> Can you post the "import" lines from the JSP as well? > >> > >> Anything else that's relevant (symlinks, network file system, etc.)? > >> > >> - -chris > >> -----BEGIN PGP SIGNATURE----- > >> Version: GnuPG v1.4.10 (MingW32) > >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > >> > >> iEYEARECAAYFAkvV0IcACgkQ9CaO5/Lv0PA+5ACguUaVhNrjTQS3c3r4fXxpIl/v > >> mBQAoKLuW9++5QpV/tRcFKQV9QAHC8V+ > >> =uV0D > >> -----END PGP SIGNATURE----- > > -- > Kris Schneider > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >