Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to enable catalina.policy in tomcat embedded

 
Paolo Latini
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I've a big problem with catalina.policy. I've read that to start security manager is necessary the following code:%CATALINA_HOME%\bin\catalina start -security but i've a tomcat "embedded".
I've tried with System.setProperties(.....) but Tomcat run without read catalina.policy.

Can we help me?

Thanks for your answers...

Paolo
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18169
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Paolo!

Have you tried calling setSecurityProtection() on the embedded Tomcat object before starting it?
 
Paolo Latini
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Thanks a lot for your answer!!!

No, i inerithed the code by an other person. He made a class named TomcatEmbedded where inside there is an object Catalina that call "the start of the server".

I think that i have to use the class "Embedded" for this method.

However i post the code (the main init() is in an other class)

 
Paolo Latini
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My project uses Tomcat 6.0
 
Rob Spoor
Sheriff
Pie
Posts: 20533
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paolo, could you please UseCodeTags next time? See how much easier it is to read your code with them.
 
Paolo Latini
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, the next time i'll do it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic