aspose file tools
The moose likes Tomcat and the fly likes How to enable a Security Manager per web application? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "How to enable a Security Manager per web application?" Watch "How to enable a Security Manager per web application?" New topic
Author

How to enable a Security Manager per web application?

Vishal Saxena
Greenhorn

Joined: Apr 23, 2003
Posts: 26
Say, a web application is added to a few already existing ones, in an engine of Tomcat supposed to run on a host. This web application makes a RMI call and needs to run with a RMISecurityManager.

If <catalina.home>/bin/startup -security is run with ./catalina.bat edited to specify -Djava.security.manager=java.rmi.RMISecurityManager all the other web applications too will run with that - perhaps not good! The question is, how to enable a Security Manager per web application? Things may be similiar but lets' talk about Tomcat 5.

Thanks. -V


Thx -V
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35237
    
    7
You can set a security manager just for one web app the same way you would in a desktop application, via "System.setSecurityManager(SecurityManager)". That's best done during initialization, perhaps during a contextInitialized event.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to enable a Security Manager per web application?
 
Similar Threads
Tomcat Listner error while servlet load
SAML in Web Services
Access data from outside the Tomcat
404 - the requested resource is not availabe...
Tomcat 6.0.30: cannot deploy application: access denied.