To deploy jars via web start and open sockets on the client, you need to 'sign' the jars.
Here's a link that should help you get the jars signed (or you could download the signed jars we have and re-deploy them on your private server). http://weblogs.java.net/blog/kirillcool/archive/2005/05/signing_jars_fo.html Scott On Wed, Sep 2, 2009 at 3:59 AM, Moley Harey <[email protected]> wrote: > Hi Scott, > > Thanks for the response, I have downloaded the VFS + commons necessary > files and now it works fine, with this method I can display the remote > log files in Chainsaw. > > I have another question regarding Chainsaw, I would appreciate if you > could give some feedback on this cause I see no light there! :-( > > I was wondering if is possible to launch Chainsaw remotely using Java > Web Start, I have tested that but for some reason I do not know if I > launch Chainsaw as standalone in the remote server the messages are > received well and port 4445 is listening to new SocketReceiver > messages but if I launch the same Chainsaw using a JNLP file then port > 4445 is not open and is not listening so new messages cannot be > received by Chainsaw. > > Have you tried that in the past? From the mailing lists it seems it > should work but I have no idea of what is happening, hete is my > Chainsaw config file for that: > <?xml version="1.0" encoding="UTF-8" ?> > <!DOCTYPE log4j:configuration PUBLIC "-//log4j/log4j > Configuration//EN" "log4j.dtd"> > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > debug="false"> > > <plugin name="SocketReceiver" > class="org.apache.log4j.net.SocketReceiver"> > <param name="active" value="false"/> > <param name="name" value="TestSocketReceiver" /> > <param name="port" value="4445" /> > </plugin> > > <appender name="RollingAppender" > class="org.apache.log4j.RollingFileAppender"> > <param name="File" value="/home/project/test.log"/> > <param name="Append" value="true"/> > <param name="MaxFileSize" value="20000KB"/> > <param name="MaxBackupIndex" value="400"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%d | %-5r | %-5p | %c | > %t:%x | %m%n"/> > </layout> > </appender> > > <root> > <level value="debug"/> > <appender-ref ref="RollingAppender"/> > </root> > > <logger name="org.apache.log4j"> > <level value="off"/> > </logger> > > </log4j:configuration> > > And this is my log4j config file for sending messages to the receiver: > > # Set root logger level to DEBUG and its only appender to ConsoleAppender. > log4j.rootCategory=DEBUG,stdout,A1 > > # ConsoleAppender > log4j.appender.stdout=org.apache.log4j.ConsoleAppender > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout > > # Pattern to output the caller's file name and line number. > log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n > > # A1 is set to be a SocketAppender sending its output to the server > running on the remote host, port 4445 > log4j.appender.A1=org.apache.log4j.net.SocketAppender > log4j.appender.A1.Port=4445 > log4j.appender.A1.RemoteHost=localhost > > Any ideas? > > > > 2009/9/1, Scott Deboy <[email protected]>: > > Here is a link describing what you need to install to use VFS in > Chainsaw: > > > > http://logging.apache.org/chainsaw/distributionnotes.html > > > > Scott > > > > On Tue, Sep 1, 2009 at 5:58 AM, Moley Harey <[email protected]> > wrote: > > > >> Hi folks, > >> > >> As still I could not work properly with chainsaw using Java Web Start, I > >> was > >> thinking about a workaround solution which is the use the > >> "VFSLogFilePatternReceiver" to access a remote log file and display it > >> into > >> Tomcat. > >> > >> The problem is that I have downloaded the standalone version of Chainsaw > >> from the web and it seems I do not have that package > >> "org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver" in any of the > >> *.jar I downloaded, this is the full list of libraries I have: > >> > >> > >> jakarta-oro-2.0.6.jar > >> jmdns.jar > >> log4j-1.3alpha-7.jar > >> log4j-chainsaw-2.0alpha-1.jar > >> log4j-optional-1.3alpha-7.jar > >> log4j-oro-1.3alpha-7.jar > >> log4j-smtp-1.3alpha-7.jar > >> log4j-xml-1.3alpha-7.jar > >> log4j-zeroconf.jar > >> xstream-1.1.2.jar > >> > >> To create a VFSLogFilePatternReceiverdo I have to install some extra > stuff > >> to Chainsaw? > >> > >> Thanks in advance, > >> > >> Mh > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
