Monitor the HTTP communication
From Resin 3.0
To monitor just the HTTP headers, enable the following debug logging
in $RESIN_HOME/resin.conf:
<resin xmlns="http://caucho.com/ns/resin"> ... <log path="stdout:"> <logger name='com.caucho.server.http' level='finer'/> <logger name='com.caucho.server.connection' level='finer'/> </log> ... </resin>
Intercepting and monitoring the raw data passed between a web browser and Resin can provide valuable insight. This raw data reveals the headers and content that are submitted by the browser, and the headers and content that are returned by Resin.
The Axis jar includes a utility "tcpmon" that can be used to intercept and monitor the communication between a browser and Resin. Using tcpmon, you specify a "listen port" and a "target host" and a "target port". For example, if you usually have Resin running on port 8080, you can start tcpmon with a "listen port" os 9090, and a target host of localhost and a target port of 8080. Now you will use a url http://localhost:9090 in your browser. This causes your browser to use tcpmon. tcpmon will log the request, pass it through to Resin (on port 8080), and log the response before returning it to the browser.