WARNING: Failed to close randomIS.

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
rbjone
Posts: 9
Joined: Thu Mar 08, 2007 10:01 am

WARNING: Failed to close randomIS.

Post by rbjone »

I have noticed a lot of the following messages in my Tomcat output.

Apr 28, 2008 6:41:48 AM org.apache.catalina.session.ManagerBase setRandomFile
WARNING: Failed to close randomIS.

It doesn't seem to be causing any problems, but I would like to know what the cause is, and if there is a way to stop the warning messages.

Russ
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

What version of Tomcat are you running?
What version of the SDK are you running?
I googled the error message and it seems to be related (again) to hardware crypto setup.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

What you are seeing may be related to this thread (see the last post):

http://dovetail.com/forum/viewtopic.php?p=1549

What is happening is that z/OS has a /dev/random that returns an error when you try to use it if your ICSF setup is not correct. The Tomcat code is just reporting an error when it tries to use it.

So, the error can probably be ignored. What should probably happen is that someone should submit a patch to Tomcat that displays a slightly more friendly error message when /dev/random gets an IO error. Or, maybe it would be nice to add a feature to Tomcat to disable the use of /dev/random altogether.
Post Reply