Discussion:
Where can I download VFSLogFilePatternReceiver API for Chainsaw?
Moley Harey
2009-09-01 12:58:57 UTC
Permalink
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
Scott Deboy
2009-09-01 13:55:54 UTC
Permalink
Here is a link describing what you need to install to use VFS in Chainsaw:

http://logging.apache.org/chainsaw/distributionnotes.html

Scott
Post by Moley Harey
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
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
Moley Harey
2009-09-02 10:59:40 UTC
Permalink
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?
Post by Scott Deboy
http://logging.apache.org/chainsaw/distributionnotes.html
Scott
Post by Moley Harey
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
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
Scott Deboy
2009-09-02 14:47:14 UTC
Permalink
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
Post by Moley Harey
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
<?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>
# 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?
Post by Scott Deboy
Here is a link describing what you need to install to use VFS in
http://logging.apache.org/chainsaw/distributionnotes.html
Scott
Post by Moley Harey
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
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
Post by Scott Deboy
Post by Moley Harey
to Chainsaw?
Thanks in advance,
Mh
---------------------------------------------------------------------
Moley Harey
2009-09-02 15:34:01 UTC
Permalink
Scott, where can I download those signed jars?

After reading the link you sent me it seems I should sign Chainsaw jars and
with the other jars (commons etc...) I should just put them in a separate
JNPL file and reference those from the main JNPL, is that right?

Thanks in advance,

Mh
Post by Scott Deboy
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
Post by Moley Harey
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
<?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>
# Set root logger level to DEBUG and its only appender to
ConsoleAppender.
Post by Moley Harey
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?
Post by Scott Deboy
Here is a link describing what you need to install to use VFS in
http://logging.apache.org/chainsaw/distributionnotes.html
Scott
Post by Moley Harey
Hi folks,
As still I could not work properly with chainsaw using Java Web Start,
I
Post by Moley Harey
Post by Scott Deboy
Post by Moley Harey
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
Post by Moley Harey
Post by Scott Deboy
Post by Moley Harey
from the web and it seems I do not have that package
"org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver" in any of
the
Post by Moley Harey
Post by Scott Deboy
Post by Moley Harey
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
Post by Scott Deboy
Post by Moley Harey
to Chainsaw?
Thanks in advance,
Mh
---------------------------------------------------------------------
Scott Deboy
2009-09-02 15:38:38 UTC
Permalink
That's rght.

The Chainaw files are here:
http://logging.apache.org/log4j/docs/webstart/chainsaw/

Notice you'll find the jnlp in there (that's the codebase in the jnlp file),
and the jars referenced in the jnlp are under lib.

Scott
Post by Moley Harey
Scott, where can I download those signed jars?
After reading the link you sent me it seems I should sign Chainsaw jars and
with the other jars (commons etc...) I should just put them in a separate
JNPL file and reference those from the main JNPL, is that right?
Thanks in advance,
Mh
Post by Scott Deboy
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
Post by Scott Deboy
Scott
Post by Moley Harey
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
<?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>
# Set root logger level to DEBUG and its only appender to
ConsoleAppender.
Post by Moley Harey
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?
Post by Scott Deboy
Here is a link describing what you need to install to use VFS in
http://logging.apache.org/chainsaw/distributionnotes.html
Scott
Post by Moley Harey
Hi folks,
As still I could not work properly with chainsaw using Java Web
Start,
Post by Scott Deboy
I
Post by Moley Harey
Post by Scott Deboy
Post by Moley Harey
was
thinking about a workaround solution which is the use the
"VFSLogFilePatternReceiver" to access a remote log file and display
it
Post by Scott Deboy
Post by Moley Harey
Post by Scott Deboy
Post by Moley Harey
into
Tomcat.
The problem is that I have downloaded the standalone version of
Chainsaw
Post by Moley Harey
Post by Scott Deboy
Post by Moley Harey
from the web and it seems I do not have that package
"org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver" in any of
the
Post by Moley Harey
Post by Scott Deboy
Post by Moley Harey
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
Post by Scott Deboy
Post by Moley Harey
to Chainsaw?
Thanks in advance,
Mh
---------------------------------------------------------------------
Loading...