Bug 39292

Summary: "balancer" webapp broken when run catalina.bat start -security
Product: Tomcat 5 Reporter: Kerry Sainsbury <kerryland>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 5.5.16   
Target Milestone: ---   
Hardware: Other   
OS: All   
Attachments: diff -u for catalina.polocy

Description Kerry Sainsbury 2006-04-13 03:49:20 UTC
The catalina.policy shipped with 5.5.16 contains an obsolete reference to
"/webapps/balancer/WEB-INF/classes/". This webapp now ships in a jar file, not
the classes directory, so this:

// The permissions granted to the balancer WEB-INF/classes directory
grant codeBase "file:${catalina.home}/webapps/balancer/WEB-INF/classes/-" {
        permission java.lang.RuntimePermission
"accessClassInPackage.org.apache.tomcat.util.digester";
        permission java.lang.RuntimePermission
"accessClassInPackage.org.apache.tomcat.util.digester.*";
};


... needs to change to this ...

grant codeBase
"file:${catalina.home}/webapps/balancer/WEB-INF/lib/catalina-balancer.jar" {
        permission java.lang.RuntimePermission
"accessClassInPackage.org.apache.tomcat.util.digester";
        permission java.lang.RuntimePermission
"accessClassInPackage.org.apache.tomcat.util.digester.*";
}

Cheers,
Kerry
Comment 1 Kerry Sainsbury 2006-04-13 03:53:38 UTC
Created attachment 18089 [details]
diff -u for catalina.polocy
Comment 2 Peter Rossbach 2006-04-13 07:33:15 UTC
I thing better is to open both with  classes and lib
grant codeBase "file:${catalina.home}/webapps/balancer/WEB-INF/classes/-"

Thanks included for 5.5.17
Peter