I don't believe Tomcat 3.3 supports accessing content, via forward, include, etc. under the WEB-INF, or META-INF, directories, even if it did compile.
My guess is that your error is occuring because you didn't put you tag classes in a package and are thus in the "default" package. In Tomcat 3.x, the package ssigned to the JSP matches the directory structure from the root of the web application. Thus, JSPs in the webapp's root directory are assigned to the "" package, i.e. the "default" package. These JSPs can access your tags because they are in the same package as the JSP. JSPs under a "jsp" subdirectory would be assigned to the "jsp" package. Your moved JSPs are being placed in the "WEB_0002dINF.pages" package. Your tag classes aren't automatically accessible because they aren't in the same package. You can either add imports to all your JSP pages or put your tags into a package and update your TLD. Cheers, Larry > -----Original Message----- > From: rob [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 31, 2002 9:53 AM > To: [EMAIL PROTECTED] > Subject: exception when compiling jsp > > > In order to provide more secure access to my .jsp pages > I have moved them above the WEB-INF directory and > am using a servlet to forward requests to them. > > However a problem arises when I try to do this with > regard to compiling of the .jsp pages they can't seem to > properly locate my custom tag class files. > > My custom tag class files are in WEB-INF/classes/ > and my .jsp pages are in WEB-INF/pages/ > > The exception I receive follow this post. > > Any solutions would be appreciated (using Tomcat 3.3) > > Thanks > > org.apache.jasper.JasperException: Unable to compile > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:32: Class > WEB_0002dINF.pages.LsTag not found. > LsTag.class); > ^ > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:39: Class > WEB_0002dINF.pages.ActionTag not found. > ActionTag.class); > ^ > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:77: Class > WEB_0002dINF.pages.LsTag not found. > LsTag _jspx_th_html_ls_0 = null; > ^ > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:82: Class > WEB_0002dINF.pages.LsTag not found. > _jspx_th_html_ls_0 = (LsTag) > _jspx_tagPool__WEB_INF_dms_html_tld_ls_dimg_fimg.getHandler(); > ^ > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:85: Class > WEB_0002dINF.pages.LsTag not found. > _jspx_th_html_ls_0 = new LsTag(); > ^ > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:126: > Class WEB_0002dINF.pages.ActionTag not found. > ActionTag _jspx_th_html_action_0 = null; > ^ > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:131: > Class WEB_0002dINF.pages.ActionTag not found. > _jspx_th_html_action_0 = (ActionTag) > _jspx_tagPool__WEB_INF_dms_html_tld_action.getHandler(); > ^ > /usr/local/tomcat/work/DEFAULT/ms/WEB_0002dINF/pages/folder_1. > java:134: > Class WEB_0002dINF.pages.ActionTag not found. > _jspx_th_html_action_0 = new ActionTag(); > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
