• 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/Unix

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I've installed tomcat many times in the past but never on Unix (I'm definitely not a Unix pro). I'm currently trying to deploy tomcat for some proof-of-concept work on a unix environment where I do not have ROOT access and I'm seeing errors in the logs complaining about permissions, for example:

WARNING: Error reading /dev/urandom
java.io.FileNotFoundException: /dev/urandom (The file access permissions do not allow the specified action.)

I did some poking around on this site and using Google and determined that "/dev/urandom" seems to be a random number generator, but I did not find anything to help me resolve the issue. Basically, my context fails to start.

Do I have to have ROOT access to install and run tomcat on unix?

Thanks for helping a Unix novice!
Bobby

 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Bobby!

What type of Unix are you using? It might be one that doesn't support /dev/urandom.

Linux provides /dev/urandom, but it's read-only for all users. However, I wasn't aware that Tomcat even referenced /dev/urandom. Especially since Tomcat also runs on Windows, which doesn't have a /dev/urandom. Are you sure this isn't an application problem?

No, you do not have to have root to install and run Tomcat on Unix/Linux unless you want to use a port number than 4096. Tomcat's default is 8080 and various other ports in that general range.
 
Bobby Rosenberger
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Tim, and thanks for the quick reply... also, sorry about my delayed response.

The client is using AIX v5.

I'm using port 8080. I can get the Tomcat page to display, but I see the dev/urandom errors even before I deploy my app - during tomcat startup. When I drop my war, I see more of these urandom errors and my app fails to start.

It's possible, that I have issues with my app... it runs fine on tomcat installed on Windows (for what that is worth) - I will continue to investigate that - but I can assure you that I am not deliberately trying to access dev/urandom from within my app!

The dev/urandom errors were just throwing me for a loop - and seemed the most obvious place for me to begin my search.

Any other thoughts would be welcome.

Thanks again,
Bobby
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic