File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes how to encrypt catalina out files. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to encrypt catalina out files." Watch "how to encrypt catalina out files." New topic

how to encrypt catalina out files.

Gopi Chand Maddula
Ranch Hand

Joined: May 11, 2010
Posts: 40


Can we encrypt the catalina out files in the tomcat server.

Is it possible in any case or not.

Please help me in this issue......
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

Catalina.out is simply the intermingled System.out and System.err streams from Tomcat. Ideally, there would be very little that needs encrypting in them, since they shouldn't be carrying app-specific log information, just a small amount of info relating to the operation of the server itself. That's of course, if your apps do civilized logging and don't just dump stuff out to System.out.

Depending on what OS you're running on, you could encrypt the stdout/stderr streams by piping them to an encryption program before writing them to disk. However the downside of that is that if the server crashes and the pipeline breaks, the encryption process may lose data in transit, and that may include critical messages about why the server crashed.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: how to encrypt catalina out files.
It's not a secret anymore!