tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Riggio <roberto.rig...@create-net.org>
Subject Re: Problem with policies
Date Wed, 30 Apr 2008 10:18:51 GMT
Because it works fine if I add the following block to to 50user.policy 

grant codeBase "file:${catalina.base}/webapps/myapp/-" {
  permission java.security.AllPermission;
}; 

Am I missing something? 

R.

----- "David Smith" <dns4@cornell.edu> wrote:
> What makes you think its a problem with the security policy file?  
> This 
> looks more like it can't find the struts html taglib tld file.   It's
> 
> looking for the definition in your web.xml file or the tld file in the
> 
> META-INF of one of your .jar files in WEB-INF/lib
> 
>  --David
> 
> Roberto Riggio wrote:
> > Hi,
> >
> > I'm running tomcat 5.5.25 under ubuntu. However with the default
> setup i get the following exeception when a try to use my webapp:
> >
> > org.apache.jasper.JasperException: The absolute uri:
> http://struts.apache.org/tags-html cannot be resolved in either
> web.xml or the jar files deployed with this application
> > 
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
> > 
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
> > 
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
> > 
> org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:317)
> > 
> org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
> > 
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
> > 	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
> > 	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
> > 	org.apache.jasper.compiler.Parser.parse(Parser.java:127)
> > 
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)
> > 
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
> > 
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
> > 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
> > 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
> > 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
> > 
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
> > 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
> > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
> > 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> > 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > 	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > 	java.lang.reflect.Method.invoke(Method.java:597)
> > 
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
> > 	java.security.AccessController.doPrivileged(Native Method)
> > 	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> > 
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
> > 
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
> >
> > The I've tried to grant all rights to my webapp with:
> >
> > grant codeBase "file:${catalina.base}/webapps/myapp/-" {
> >   permission java.security.AllPermission;
> > };
> >
> > and everything works fine. Is there anybody that can give me some
> > hints about how this problem should be handled? I'm sure that give 
> > full rights to the webapp is not the best solutions.
> >
> > Thanks
> > Roberto
> >
> >
> ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >   
> 
> 
> -- 
> David Smith
> Network Operations Supervisor
> Department of Entomology
> Cornell University
> 2132 Comstock Hall
> Ithaca, NY 14853
> Phone: (607) 255-9571
> Fax: (607) 255-0940
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


-- 
--------------------------------------------------------
Roberto Riggio, PhD

CREATE-NET
Via alla Cascata 56/C 
38100 Trento (Italy)

E-mail: roberto.riggio@create-net.org
HomePage: http://disi.unitn.it/~riggio/

Tel: +39.0461.314.960
Fax: +39.0461.314.972
--------------------------------------------------------


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message