• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat 5.5 and Ubuntu

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having problems using Tomcat on Ubuntu. I installed Tomcat 5.5 with Synaptic, and there are all these permission problems now. I am not sure but there is a Tomcat55 user, but it does not have a home directory. I am logged in as my user, and I want to deploy my webapp.

However, Tomcat fails to even run on Ubuntu, everything fails with ACL errors.
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/tomcat5.5-webapps/servlets-examples/WEB-INF/classes/logging.properties read)

Did Synaptic not install it correctly? How do I fix it? I read all the install tutorials I could find, but none talk about this problem.

Should I try to change the owner of all the Tomcat 55 directories?

Thanks

Mark
[ September 03, 2008: Message edited by: Mark Spritzler ]
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you starting Tomcat? I use:
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Who is the owner of the installed tomcat??

If it is 'tomcat55' that is the installations owner - then this is the user to use - otherwise you need to start/stop tomcat as Joe, and I do.
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually what it ends up being is that by default the security manager is on and there are properties for certain files defined in a properties file that restrict the normal webapps directory to nothing more than just read, which causes the failure while deploying the apps.

I turned off the security manager and now it works perfectly.

Mark
 
Evildoers! Eat my justice! And this tiny ad's justice too!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic