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. Rene
posted 11 years ago
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.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads