tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rob" <rob_m...@fastmail.fm>
Subject Re: exception when compiling jsp
Date Thu, 31 Jan 2002 15:44:15 GMT
I'm already redirecting to .jsp files under WEB-INF (but they don't contain
custom tags). 

Also, your correct about the remainder of the problem and putting the 
tags in a package has made things happy.

Thanks I appreciate it.

----- Original Message ----- 
From: "Larry Isaacs" <Larry.Isaacs@sas.com>
To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Sent: Friday, February 01, 2002 2:31 AM
Subject: RE: exception when compiling jsp


> 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:rob_mail@fastmail.fm]
> > Sent: Thursday, January 31, 2002 9:53 AM
> > To: tomcat-user@jakarta.apache.org
> > 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:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message