aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "logging into JWS jar" Watch "logging into JWS jar" New topic
Author

logging into JWS jar

Rene Curth
Greenhorn

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.
Rene
Ed Ewing
Greenhorn

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: http://aspose.com/file-tools
 
subject: logging into JWS jar
 
Similar Threads
JWS - A Good Way To Demo Apps
Problem on Applet connecting to JMS
Check for latest version check of JWS
Memory usage decrease after minimizing java console
Confused (JWS)