Bug 39292 - "balancer" webapp broken when run catalina.bat start -security
"balancer" webapp broken when run catalina.bat start -security
Status: RESOLVED FIXED
Product: Tomcat 5
Classification: Unclassified
Component: Catalina
5.5.16
Other All
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2006-04-13 03:49 UTC by Kerry Sainsbury
Modified: 2006-04-13 00:33 UTC (History)
0 users



Attachments
diff -u for catalina.polocy (798 bytes, patch)
2006-04-13 03:53 UTC, Kerry Sainsbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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