-
1. Re: Logging whole HTML content generated by JBoss
welle Oct 8, 2010 4:25 AM (in response to takach)1 of 1 people found this helpfulPerhaps the "RequestDumperValve" is what you want.
Look in:
$JBOSS_HOME/server/XXX/deploy/jboss-web.deployer/server.xml (JBoss 4)
$JBOSS_HOME/server/XXX/deploy/jbossweb.sar/server.xml (JBoss 5)
-
2. Re: Logging whole HTML content generated by JBoss
takach Oct 8, 2010 5:48 AM (in response to welle)Thank you for your effort to help me!
Unfortunately RequestDumperValve is only for HTTP headers, not for the body of HTTP responses.
Moreover, it seems to cause problems with I18N in query string...
-
3. Re: Logging whole HTML content generated by JBoss
takach Oct 8, 2010 5:47 AM (in response to takach)tcpmon is a useful tool, but it must run on the client machine, that is not an option for me. See https://tcpmon.dev.java.net/
-
4. Re: Logging whole HTML content generated by JBoss
welle Oct 8, 2010 6:43 AM (in response to takach)Hmm...sorry missed that.... really thought that i logged at least the HTTP body.
If you look at the code for the RequestDumperValve it's quite straight foward. You should easlily be able to create your own impl. that can log the data (i suggest by first checking the content type so you don't log a lot of binary data
Of course you should be able to run whatever sniffer sofware on the server instead. (wireshark is nice).
-
5. Re: Logging whole HTML content generated by JBoss
takach Oct 8, 2010 7:50 AM (in response to welle)Thank you. Our traffic goes through an Apache server, we try to log the traffic there with JkRequestLogFormat
-
6. Re: Logging whole HTML content generated by JBoss
takach Oct 8, 2010 8:17 AM (in response to takach)It is not clear, if mod_jk is able to to log whole HTTP responses.
-
7. Re: Logging whole HTML content generated by JBoss
genman Oct 8, 2010 12:48 PM (in response to takach)Your best bet is to use "tcpdump" on the server, and the suggested tool "Wireshark", above.