Servlet Tracing

Servlet tracing is enabled by setting Trace Flag to ON in the General tab of the ReportCaster Server Configuration tool, or by selecting the Servlet Traces menu option. Once you have enabled servlet tracing, you can use the Trace File setting in the General tab of the ReportCaster Server Configuration tool to specify the path and file name on the Web server where the servlet tracing statements will be written. You must type the fully qualified path of a location accessible on the Application Server/Servlet Engine. The Trace File setting is ignored if the Trace Flag setting is OFF.

Servlet tracing enables tracing for all servlets executed by ReportCaster, including the ReportCaster API. Servlet tracing provides information about queries to, and maintenance of, the ReportCaster Repository. This includes events that occur during the scheduling of a job.

Note: You should also view the Application Server log files. By default, Apache Tomcat trace files are located in the C:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\ directory. If ReportCaster is configured with Managed Reporting, you should also view the WebFOCUS Client servlet trace files. In the WebFOCUS Administration Console, you can access these trace files by clicking Configuration, Diagnostics, Traces, WFServlet.


Top of page

Example: Using Servlet Tracing

The following is an excerpt from a servlet.trc trace file. It shows initialization parameters, the servlet request, and the servlet activity associated with a scheduled job. Note that the beginning of the trace file shows the system properties (for example, Java classpath and platform information), while the cookie information (not shown) follows this section.

Tue Feb 18 20:59:30 EST 2003: Initialization Parameter - [AGENT_NODE]: 
localhost
Tue Feb 18 20:59:30 EST 2003: Initialization Parameter - [AGENT_PORT]: 
8200
Tue Feb 18 20:59:30 EST 2003: Initialization Parameter - [CODE_PAGE]: 
Tue Feb 18 20:59:30 EST 2003: Begin to Add DataServer EDASERVE to 
DataServer Manager
Tue Feb 18 20:59:30 EST 2003: Added DataServer to DataServer Manager 
successfully.
Tue Feb 18 20:59:30 EST 2003: Begin to locate, load and link the class 
ibi.jlink.EdaDriver
Tue Feb 18 20:59:30 EST 2003: Located, loaded and linked the class 
successfully.
Tue Feb 18 20:59:30 EST 2003: Begin to register JDBC driver 
ibi.jlink.EdaDriver for EDASERVE
Tue Feb 18 20:59:30 EST 2003: Registered JDBC driver successfully.
Tue Feb 18 20:59:30 EST 2003: Begin to Add DataServer Repository to 
DataServer Manager
Tue Feb 18 20:59:30 EST 2003: Added DataServer to DataServer Manager 
successfully.
Tue Feb 18 20:59:30 EST 2003: Begin to locate, load and link the class 
COM.ibm.db2.jdbc.app.DB2Driver
Tue Feb 18 20:59:34 EST 2003: Located, loaded and linked the class 
successfully.
Tue Feb 18 20:59:34 EST 2003: Begin to register JDBC driver 
COM.ibm.db2.jdbc.app.DB2Driver for Repository
Tue Feb 18 20:59:34 EST 2003: Registered JDBC driver successfully.
Tue Feb 18 20:59:34 EST 2003: Begin to Get the ConnectionManager for 
DataServer Repository
Tue Feb 18 20:59:34 EST 2003: Got ConnectionManager successfully.
Tue Feb 18 20:59:34 EST 2003: Begin to create a new connection in 
Repository
Tue Feb 18 20:59:34 EST 2003:    [URL]: jdbc:db2:rc77
Tue Feb 18 20:59:34 EST 2003:    [User]: db2admin
Tue Feb 18 20:59:34 EST 2003:    [Password]: ********
Tue Feb 18 20:59:37 EST 2003: Created the connection successfully.
Tue Feb 18 20:59:37 EST 2003: Begin to close the connection in Repository 
for user: db2adminTue Feb 18 20:59:37 EST 2003: Closed the connection 
successfully.
Tue Feb 18 20:59:37 EST 2003: Begin to Free the ConnectionManager for 
DataServer Repository to DataServerManager
Tue Feb 18 20:59:37 EST 2003: Freed the ConnectionManager successfully.
Tue Feb 18 20:59:37 EST 2003: =================== Servlet Request =======
 
Tue Feb 18 20:59:37 EST 2003: Request Property - [HTTP Method]: GET
Tue Feb 18 20:59:37 EST 2003: Request Property - [Request URI]: /rcaster/
servlet/DSTRCServlet
Tue Feb 18 20:59:37 EST 2003: Request Property - [Servlet Path]: /
servlet/DSTRCServlet
Tue Feb 18 20:59:37 EST 2003: Request Property - [Context Path]: /rcaster

WebFOCUS