File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes logging into JWS jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "logging into JWS jar" Watch "logging into JWS jar" New topic

logging into JWS jar

Rene Curth

Joined: May 13, 2004
Posts: 11
Hi folks,
I'm not sure, if this is the right place, please forgive me, if it's not.
Anyway, the problem came up, while transfering to JWS.

I'm facing the following:
our application consists of multiple jars and some conf and log files. These files are changed programatically, e.g. by log4j. To use JWS I've to put these outter-jar-files into a jar, right? Okay, done. Finding conf resources seems no problem, but writing into a jar to update logging information by an appender is a tricky one, too much for me. Is anybody out there, who can give me a clue?

Thanks in advance.
Ed Ewing

Joined: Aug 30, 2005
Posts: 29
Yes this seems like the right place to post your question.

I think you should not be trying to write a logging file into a jar file. Certainly you can't write into the same jar file your jnlp application is running from. (Because modifying the file in that way would invalidate the jar signature.)

You need to write your log file somewhere else. Perhaps in the user's home directory, or perhaps ask the user where they want it to be written.
I agree. Here's the link:
subject: logging into JWS jar
It's not a secret anymore!