I agree and when time permits hopefully within the next few weeks I will do that. It causes JSPC problems as well and I want to get to where these are all precompiled anyway. Thanks for your input.
-----Original Message----- From: Todd Kaplinger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 7:05 PM To: [EMAIL PROTECTED] Subject: RE: JSP compile fails to find class If the included resource is used for only static includes, I would suggest changing the name to something other than .jsp since it cannot stand on it's own. This would prevent the jsp compiler from attempting to compile this resource. >From: Leonard Crowe <[EMAIL PROTECTED]> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: 'Tomcat Users List' <[EMAIL PROTECTED]> >Subject: RE: JSP compile fails to find class >Date: Wed, 24 Apr 2002 18:59:37 -0500 > >At least in my case these JSP's compile and run without any problems at all >except for in the case where the included file changes and the parent >document does not. Actually if you look in the output directory you will >see that the servelet for the parent jsp was generated and compiled with >the >included page, but the included page is process separately as well causing >the error. If I try to run the page again it works correctly. > >-----Original Message----- >From: Todd Kaplinger [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, April 24, 2002 6:33 PM >To: [EMAIL PROTECTED] >Subject: RE: JSP compile fails to find class > > >The problem is due to the change with regards to package names in 4.0. All >jsp's are now part of the package org.apache.jsp. If one needs to >reference > >beans that are in the default package (ie no package), you need to import >each of the bean classes explicitly. > > > >From: Leonard Crowe <[EMAIL PROTECTED]> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> > >To: 'Tomcat Users List' <[EMAIL PROTECTED]> > >Subject: RE: JSP compile fails to find class > >Date: Wed, 24 Apr 2002 13:57:37 -0500 > > > >Steve, > > > >Is the jsp that your having problems compiling an include for another jsp > >page (By that I mean "<%@ include file="???.jsp" %>)? If so that your > >having the same problem I'm trying to track down. When the included file > >changes but the parent file does not, Tomcat does not seem to be trying >to > >compile the parent page but instead tries to compile the included file on > >it's own and fails because it's not really a complete servlet. In your > >case > >it does not have the imports for the classes you are trying to reference. > >I > >don't really have an answer for you but we might be having the same > >problem. > > > >Leonard > > > >-----Original Message----- > >From: Steve D George [mailto:[EMAIL PROTECTED]] > >Sent: Wednesday, April 24, 2002 11:38 AM > >To: [EMAIL PROTECTED] > >Subject: JSP compile fails to find class > > > > > >Hi, I've tried hunting through the archive but no success as yet so can > >anyone help with this please. > > > >I have a webapp that was working just fine on 3.2. I've just installed > >tomcat 4 and I'm trying to get the same webapp to work. > >I have created a new web.xml based around the example one that comes with > >T4. Then I've copied over the whole of the directory structure for the > >webapp that I'm migrating. I think this is all I need to do. > > > >The first JSP page in my web app makes use of a couple of classes. One of > >these is referenced as follows: > > > ><jsp:useBean id="trackerState" scope="session" class="TrackerStateBean"/> > > > >the other is referenced like this: > > > ><% > > new HistoryController().retrieveUsers(trackerState); > >%> > > > >Both the TrackerStateBean and HistoryController classes are in the > >WEB-INF\classes directory for the web app but when the JSP is compiling I > >get an error saying that class org.apache.jspTrackerStateBean cannot be > >found. The same is true of the HistoryController class. It appears to be > >looking for both classes in the org.apache.jsp package but these classes > >aren't in any package at all????? > > > >The error trace is below. Any help much appreciated, > > > >Cheers, > > > >Steve. > > > >org.apache.jasper.JasperException: Unable to compile class for JSP > > > >An error occurred at line: 1 in the jsp file: /trackerentry.jsp > > > >Generated servlet error: > >C:\Program Files\Apache Tomcat > >4.0\work\localhost\locationtracker\trackerentry$jsp.java:57: Class > >org.apache.jsp.TrackerStateBean not found. > > TrackerStateBean trackerState = null; > > ^ > > > > > >An error occurred at line: 1 in the jsp file: /trackerentry.jsp > > > >Generated servlet error: > >C:\Program Files\Apache Tomcat > >4.0\work\localhost\locationtracker\trackerentry$jsp.java:60: Class > >org.apache.jsp.TrackerStateBean not found. > > trackerState= (TrackerStateBean) > > ^ > > > > > >An error occurred at line: 1 in the jsp file: /trackerentry.jsp > > > >Generated servlet error: > >C:\Program Files\Apache Tomcat > >4.0\work\localhost\locationtracker\trackerentry$jsp.java:65: Class > >org.apache.jsp.TrackerStateBean not found. > > trackerState = (TrackerStateBean) > >java.beans.Beans.instantiate(this.getClass().getClassLoader(), > >"TrackerStateBean"); > > ^ > > > > > >An error occurred between lines: 34 and 37 in the jsp file: > >/trackerentry.jsp > > > >Generated servlet error: > >C:\Program Files\Apache Tomcat > >4.0\work\localhost\locationtracker\trackerentry$jsp.java:101: Class > >org.apache.jsp.HistoryController not found. > > new HistoryController().retrieveUsers(trackerState); > > ^ > >4 errors > > > > at > >org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) > > at > >org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) > > > > > > > > > >-- > >To unsubscribe: <mailto:[EMAIL PROTECTED]> > >For additional commands: <mailto:[EMAIL PROTECTED]> > >Troubles with the list: <mailto:[EMAIL PROTECTED]> > > > > >----------------------- >Todd Kaplinger >mailTo:[EMAIL PROTECTED] > > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > > >-- >To unsubscribe: <mailto:[EMAIL PROTECTED]> >For additional commands: <mailto:[EMAIL PROTECTED]> >Troubles with the list: <mailto:[EMAIL PROTECTED]> ----------------------- Todd Kaplinger mailTo:[EMAIL PROTECTED] _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>