InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.28: Administering IBM Distributed Debugger and OLT >
6.6.28.2: Using Debugger and OLT
6.6.28.2: Using Debugger and OLT
This article provides instructions for using IBM Distributed Debugger
and Object Level Trace (OLT) in a WebSphere Application Server
environment.
When compiling code, be sure to include debugging information by using
the -g command line argument. For example:
javac -g myClass.java
Here is an overview of the procedure for using tracing and debugging,
with steps that link to detailed instructions below:
-
Configure the application server Debug properties
-
Start the application server
-
Optionally, minimize the WebSphere Administrative Console
-
Start the Web server
-
Start the OLT or Debugger/OLT client and adjust settings
For a JSP .91 file, copy the file to Web server
HTML directory
-
Access the application or Java component that you are tracing or debugging
-
Trace or debug the code in the Debugger/OLT
To reiterate, the steps must be performed in order. Specifically:
-
Configure an application server's debugging properties and start it
-
Start the OLT executable on the machine where you want to view OLT,
debug output
-
Request a resource or application deployed in the application server
Each step in the procedure is now discussed in detail.
Step |
Description |
1: Configure the application server Debug properties |
To trace or debug code running on an application server, you must
enable tracing or debugging on the server. The OLT and debug enabled
buttons are on the Debug tab.
-
Click the Topology tab to display the Topology tree.
-
Click the application server whose OLT tracing and debugging settings
you want to specify. The server properties are displayed on the right
side of the console.
-
Configure the application server:
-
Save the property changes.
Now you will be able to trace or debug all
servlets and JavaServer Pages (JSP) files
deployed in the application server, according to the application server
Debug properties you specified.
|
2: Start the application server |
-
Display the Topology tree view.
-
Expand the tree to locate the application server on which to perform
tracing or debugging.
-
Right-click the server and click Start.
|
3: Optionally, minimize the WebSphere
Administrative Console |
When finished configuring and starting the application servers in the
WebSphere Administrative Console, you can minimize the console because
the rest of the tracing or debugging procedure is
conducted outside of the console.
|
4: Start the Web server |
Tracing and debugging in the Debugger and OLT client interfaces begin when
the Java component being traced
is accessed by a user at a Web browser. Your Web server must be
started in order for this to work correctly.
|
5: Start the Debugger/OLT client and adjust settings |
To start the client interface:
-
Open a system command window.
-
Issue the command: olt
Ensure that the default execution mode is set to trace and debug in the Client
Controller. Set the checkbox to use the default settings.
|
6: Access the application or Java component that you are tracing or debugging |
Make a request for Java component or application that you are tracing or
debugging, as though you are a
typical user. Information is sent to the Debugger/OLT.
|
7: Trace or debug the code in the Debugger/OLT
client interfaces |
When the Debugger/OLT clients are first displayed, you are prompted to
provide the location of the source code for the Java component or
application you are tracing or debugging. After you supply the
information, you can start tracing or debugging the code in the Debugger/OLT
clients.
|
Debugging the Snoop servlet -- local Debugger/OLT client
-
Configure the application server containing Snoop servlet for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Debug
enabled and Object Level Trace enabled check boxes.
-
Click Apply.
- Start the application server:
- In the Topology tree, make sure the Default Server
(or other application server you are using) is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the debugging interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command: olt
This starts the OLT daemon, which listens on a port and displays the
debugger interface when a request arrives.
Ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
In a Web browser, request the Snoop servlet: http://localhost/servlet/snoop
-
Use the Debugger/OLT:
- Watch for the Debugger/OLT. The debugger interface
is displayed in response to your requesting a servlet running on an
application server (default server) for which debugging is enabled.
When the interface is displayed, make sure that Options -> Step by Step debugging mode is set.
The debugger will find source files that are in the classpath of the
JVM running the code being debugged. It does not find a source
file, it will prompt you for the location of the file,
HttpServlet.java in this case.
HttpServlet is the parent class of the Snoop servlet, and is the
class in which the service() method is implemented. Starting with the
requested servlet, the debugger will look for the first service()
method implementation it can find. Because Snoop does not implement
service(), the debugger looked in Snoop's parent class, HttpServlet.
-
When prompted for the source path, browse <server root>/hosts/default_host/default_app/servlets.
-
Watch the Debugger/OLT, which should stop in the service() method.
To step into the Snoop servlet, perform a series of step
overs until you get to the doGet() method call. Do a step
into on this method to reach Snoop.
-
Watch for the debugger to break in the service method of the Snoop
servlet. You can step debug, or simply click Run to
complete the request.
Debugging very_simple.jsp (JSP .91) -- local
OLT client
-
Configure the application server containing the JSP file for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Debug
enabled and Object Level Trace enabled check boxes.
-
Click Apply.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the debugging interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command: olt
This starts the OLT daemon, which listens on a port and displays the
debugger interface when a request arrives.
Ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
Copy the file
<install_root>/hosts/default_host/default_app/web/very_simple.jsp
to the document root of the Web server.
-
In a Web browser, request the very_simple JavaServer Pages (JSP) file: http://localhost/very_simple.jsp -
Use the Debugger/OLT:
- Watch for the Debugger/OLT.
When the interface is displayed, make sure that Options -> Step by Step debugging mode is set.
You will likely be prompted for the location of the source file pagecompile/_very_simple_xjsp.java.
-
Browse for and select the file, which is located in the directory <install_root>/hosts/default_host/default_app/web/very_simple_jsp.java
-
Watch for the debugger to break in the service method of the
very_simple.jsp. You can step debug, or simply click Run
to complete the request.
Debugging very_simple.jsp (JSP 1.0) -- local
OLT client
-
Configure the application server containing the JSP file for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Debug
enabled and Object Level Trace enabled check boxes.
-
Click Apply.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the debugging interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command: olt
This starts the OLT daemon, which listens on a port and displays the
debugger interface when a request arrives.
Ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
Copy the file
<install_root>/hosts/default_host/default_app/web/very_simple.jsp
to the document root of the Web server.
-
In a Web browser, request the very_simple JavaServer Pages (JSP) file: http://localhost/very_simple.jsp -
Use the Debugger/OLT:
- Watch for the Debugger/OLT.
When the interface is displayed, make sure that Options -> Step by Step debugging mode is set.
You will likely be prompted for the location of the source file pagecompile/_very_simple_xjsp.java.
-
Browse for and select the file, which is located in the directory <install_root>/hosts/default_host/default_app/pagecompile/_very_simple_xjsp.java
-
Watch for the debugger to break in the service method of the
very_simple.jsp. You can step debug, or simply click Run
to complete the request.
Debugging the Hello enterprise bean -- local
OLT client
-
Configure the application server containing the enterprise bean for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Debug
enabled and Object Level Trace enabled check boxes.
-
Save the properties.
-
If you have not already done so, install and deploy the Hello
enterprise bean:
- In the Topology tree, find and right-click the
Default Container in the Default Server.
-
In the resulting menu, click Create -> Enterprise Bean.
-
In the resulting window, click Browse.
-
In the Browse dialog, browse for
<install_root>/deployableEJBs/Hello.jar. Double-click it to
display its deployment descriptor. Click the deployment descriptor
and exit the Browse dialog.
-
Back in the dialog window for creating an enterprise bean, click Create.
-
When the deployment process is complete, verify that the Hello
enterprise bean now is displayed in the Default Container on the
Topology tree.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command: olt
-
This starts the OLT daemon, which listens on a port and displays the
debugger interface when a request arrives.
Ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
Run the Hello sample. On Windows NT, click Start -> Programs ->
IBM WebSphere -> Application Server version 3.x.0 -> Samples,
then select the Hello enterprise bean.
-
Use the Debugger/OLT:
- Watch for the Debugger/OLT.
When the interface is displayed, make sure that Options -> Step by Step debugging mode is set.
You will likely be prompted for the location of the source file _WebSphereSamples/_EJBs/_HelloEJB/_HelloEJB_jsp.
-
Browse for and select the file, which is located in the directory <install_root>/WebSphereSamples/EJBs/HelloEJB/HelloEJB.jsp
-
Watch for the debugger to break in the service method of the
HelloEJB.jsp. You can step debug, or simply click Run to
complete the request.
Tracing the Snoop servlet -- local Debugger/OLT client
-
Configure the application server containing Snoop servlet for tracing:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
-
Click Apply.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command to start the Debugger/OLT: olt
This starts the Debugger/OLT, which will display the trace
information generated by the objects that service your request.
-
Adjust the Debugger/OLT settings. When the interface is displayed,
ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
In a Web browser, request the Snoop servlet:
http://localhost/servlet/snoop
-
Watch the Debugger/OLT for a line representing Snoop servlet. It
will be labeled HttpServlet because that is the class
that implements the service method. (HttpServlet is the parent class
of Snoop servlet). On the line, you should see circles that represent
the beginning and end of the service method.
Tracing very_simple.jsp (JSP .91) -- local Debugger/OLT client
-
Configure the application server containing the JSP file for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
-
Click Apply.
- Start the application server:
-
In the Topology tree, make sure the Default Server is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command to start the debugger daemon: olt
-
Adjust the Debugger/OLT settings. When the interface is displayed,
ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
Copy the file
<install_root>/hosts/default_host/default_app/web/very_simple.jsp
to the document root of your Web server.
-
In a Web browser, request the very_simple JSP file: http://localhost/very_simple.jsp -
Watch the Debugger/OLT for a line representing very_simple.jsp. On
the line, you should see circles that represent the beginning and end
of the service method.
Tracing very_simple.jsp (JSP 1.0) -- local Debugger/OLT client
-
Configure the application server containing the JSP file for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
-
Click Apply.
- Start the application server:
In the Topology tree, make sure the Default Server is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command to start the debugger daemon: olt
-
Adjust the Debugger/OLT settings. When the interface is displayed,
ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
Copy the file
<install_root>/hosts/default_host/default_app/web/very_simple.jsp
to the document root of your Web server.
-
In a Web browser, request the very_simple JSP file: http://localhost/admin/very_simple.jsp -
Watch the Debugger/OLT for a line representing very_simple.jsp. On
the line, you should see circles that represent the beginning and end
of the service method.
Tracing the Hello enterprise bean sample --
local Debugger/OLT client
-
Configure the application server containing the enterprise bean for tracing:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
-
Click Apply.
-
If you have not already, install and deploy the Hello enterprise bean:
- In the Topology tree, find and right-click the
Default Container in the Default Server.
-
In the resulting menu, click Create -> Enterprise Bean.
-
In the resulting window, click Browse.
-
In the Browse dialog, browse for
<install_root>/deployableEJBs/Hello.jar. Double-click it to
display its deployment descriptor. Click the deployment descriptor
and exit the Browse dialog.
-
Back in the dialog window for creating an enterprise bean, click Create.
-
When the deployment process is complete, verify that the Hello
enterprise bean now is displayed in the Default Container on the
Topology tree.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command to start the debugger daemon: olt
-
Adjust the Debugger/OLT settings. When the interface is displayed,
ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
Run the Hello sample. On Windows NT, click Start -> Programs ->
IBM WebSphere -> Application Server version 3.x.0 -> Samples,
then select the Hello enterprise bean.
-
Watch the Debugger/OLT for lines representing the HelloEJB JSP file
and the Hello enterprise bean itself.
Debugging snoop servlet from a remote machine
-
Configure the application server containing the servlet for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed in the right side of the console.
-
For the default server's debugging properties, select Debug enabled
and OLT enabled check boxes.
-
Set the OLT server host to the hostname of the remote machine on which
OLT will be running.
-
Click Apply.
-
Start the application server.
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window on the remote machine.
-
Issue the command to start the debugger daemon: olt
This starts the OLT daemon, which listens on a port and displays the
debug user interface when a request arrives.
-
Adjust the Debugger/OLT settings. When the interface is displayed,
ensure that the default execution mode is set to trace and debug
in the Client Controller page. Set the check box to use the default
settings.
-
In a Web browser, request the Snoop servlet: http://your.server.name/servlet/snoop -
Use the Debugger/OLT:
- Watch for the Debugger/OLT. When the interface is displayed, make sure that
Options -> Step by Step debugging mode is set.
The debugger interface
is displayed in response to your requesting a servlet running on an
application server (default server) for which debugging is enabled.
The debugger will find source files that are in the classpath of the
JVM running the code being debugged. It does not find a source
file, it will prompt you for the location of the file,
HttpServlet.java in this case.
HttpServlet is the parent class of the Snoop servlet, and is the
class in which the service() method is implemented. Starting with the
requested servlet, the debugger will look for the first service()
method implementation it can find. Because Snoop does not implement
service(), the debugger looked in Snoop's parent class, HttpServlet.
-
Browse for and select HttpServlet, which is located in the directory <install_root>/classes/com/javax/http
-
Watch the Debugger/OLT, which should stop in the service() method.
To step into the Snoop servlet, perform a series of step
overs until you get to the doGet() method call. Do a step
into on this method to reach Snoop.
-
Watch for the debugger to break in the service method of the Snoop
servlet. You can step debug, or simply click Run to
complete the request.
Debugging very_simple.jsp (JSP .91) from a
remote machine
-
Configure the application server containing the JSP page for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
- Set the OLT server host to the hostname of the remote machine
on which OLT will be running.
-
Click Apply.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start Task toolbar button or
use the Start option on the server's right-click menu.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a command window on the remote machine.
-
Run the following command to start the OLT daemon: olt
This starts the OLT daemon, which listens on a port and displays the
debugger interface when a request arrives.
-
Adjust the Debugger/OLT settings. Ensure that the default execution mode
is set to trace and debug in the Client Controller page. Set the check box to use the default
settings.
-
Copy the file install_root\hosts\default_host\default_app\web\very_simple.jsp
to the document root of your Web server.
-
In a Web browser, request the very_simple JSP file: http://your.server.name/very_simple.jsp. -
Use the Debugger/OLT:
- When the Debugger/OLT interface is displayed, make sure that
Options -> Step by Step debugging mode is set.
- You will likely be prompted for the location of the
source file pagecompile\_very__simple.java.
-
Browse for and select the file, which is located in the directory <install_root>\hosts\default_host\default_app\web\very__simple.jsp.
You must install the source on the machine where you are running the
debugger user interface.
-
Watch for the debugger to break in the service method of the
very_simple.jsp. You can step debug, or simply click Run
to complete the request.
Debugging very_simple.jsp (JSP 1.0) from a
remote machine
-
Configure the application server containing the JSP page:
- In the Topology tree, locate the click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Debug
enabled and OLT enabled check boxes.
- Set the OLT server host to the hostname of the remote machine
on which OLT will be running.
-
Click Apply.
-
Start the application server:
-
In the Topology tree, make sure the Default Server is selected.
-
Start it. Either click the Start Task toolbar button or
use the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the debugging interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a command window on the remote machine.
-
Run the following command to start the OLT daemon: olt
This starts the OLT daemon, which listens on a port and displays the
debugger user interface when a request arrives.
- Ensure that the default execution mode is set to trace and debug in the
Client Controller page. Set the check box to use the default settings.
-
Copy the file <install_root>\hosts\default_host\default_app\web\very_simple.jsp
to the document root of your Web server.
-
In a Web browser, request the JSP page: http://your.server.name/very_simple.jsp -
Use the Debugger/OLT:
- Watch for the Debugger/OLT.
When the interface is displayed, make sure that Options -> Step by Step debugging mode is set.
You will likely be prompted for the location of the source
pagecompile\_very__simple_jsp_1. You must install the source on the
machine where you are running the debugger user interface.
-
Browse for and select the file, which is located in the directory <install_root>\temp\default_host\default_app\pagecompile\_very__simple_xjsp.java.
-
Watch for the debugger to break in the service method of the
very_simple.jsp. You can step debug, or simply click Run
to complete the request.
Debugging the Hello enterprise bean sample
from a remote machine
-
Configure the application server containing the enterprise bean file:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the server's debugging properties, select the Debug enabled and
Object Level Trace enabled check boxes.
- Set the OLT server host to the hostname of the remote machine
on which OLT will be running.
-
Click Apply.
If you have not already done so, install and deploy the Hello
enterprise bean:
-
Select the Default Server.
-
Select Default Container and right click.
-
Select Create, Enterprise bean.
-
In the window that appears, click browse. Go to AS_root\deployableEJBs\Hello.jar.
-
Double click on the Hello.jar and select the deployment descriptor.
-
Select Create to start the deployment process. An icon representing
the Hello enterprise bean should appear in the Default Container.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the green Start Task toolbar
button or use the Start option on the server's right-click menu.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a command window on the remote machine.
-
Run the following command to start the OLT daemon: olt
This starts the OLT daemon, which listens on a port and displays the
debugger user interface when a request arrives.
Ensure that the default execution mode is set to trace and debug in the
Client Controller page. Set the check box to use the default settings.
-
Run the enterprise bean sample. Use your Web browser to open: http://your.server.name/WebSphereSamples/index.html
Click Enterprise beans, click Hello, and then run Hello.
-
Use the debugger interface:
- Watch for the debugger interface.
When the interface is displayed, make sure that Options -> Step by Step debugging mode is set.
You will likely be prompted for the location of the source file. The
debugger will automatically find and display any source that is in
the classpath of the JVM being debugged. The debugger will prompt for
any source that is not in the JVM classpath. The source for HelloEJB
JSP is probably not in the classpath, so the debugger will prompt you
for the location of the source _WebSphereSamples\_EJBs\_HelloEJB\_HelloEJB_jsp.
-
Browse for and select the file, which is located in the directory <install_root>\WebSphereSamples\EJBs\HelloEJB\HelloEJB.jsp.
-
The debugger should break in the service method of HelloEJB.jsp. You
can step debug, or simply click Run to complete the request.
Trace Snoop servlet from a remote machine
-
Configure the application server containing the servlet:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Debug
enabled and Object Level Trace enabled check boxes.
- Set the OLT server host to the hostname of the remote machine
on which OLT will be running.
-
Click Apply.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the green Start Task toolbar
button or use the Start option on the server's right-click menu.
-
Optionally, minimize (but do not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a command window on the remote machine.
-
Issue the command to start the OLT daemon: olt
This starts the Debugger/OLT, which will display the trace
information generated by the objects that service your request.
-
Adjust the Debugger/OLT settings. When the interface is displayed,
ensure that the default execution mode is set to trace only in the
Client Controller page. Set the check box to use the default settings.
-
In a Web browser, request the servlet: http://your.server.name/servlet/snoop -
Watch the Debugger/OLT for a line representing Snoop servlet. It
will be labeled HttpServlet because that is the class
that implements the service method. On the line, you should see
circles on the line representing the beginning and end of the service method.
Trace very_simple.jsp (JSP .91) from a remote machine
-
Configure the application server containing the JSP file for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
- Set the OLT server host to the hostname of the remote machine on which
OLT will be running.
-
Click Apply.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command to start the debugger daemon: olt
- Ensure that the default execution mode is set to trace only in
the Client Controller page. Set the check box to use the default settings.
-
Copy the file <install_root>\hosts\default_host\default_app\web\very_simple.jsp
to the document root of your Web server.
-
In a Web browser, request the JSP file: http://your.server.name/very_simple.jsp -
Watch the Debugger/OLT for a line representing very_simple.jsp. On
the line, you should see circles representing the beginning and end
of the service method.
Trace very_simple.jsp (JSP 1.0) from a remote machine
-
Configure the application server containing the JSP file for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
- Set the OLT server host to the hostname of the remote machine
on which OLT will be running.
- Click Apply.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command to start the debugger daemon: olt
- Adjust the Debugger/OLT settings. When the interface is displayed, ensure that the default
execution mode is set to trace only in the Client Controller page. Set the check box to
use the default settings.
-
Copy the file <install_root>\hosts\default_host\default_app\web\very_simple.jsp
to the document root of your Web server.
-
In a Web browser, request the JSP file: http://your.server.name/very_simple.jsp -
Watch the Debugger/OLT for a line representing very_simple.jsp. On
the line, you should see circles representing the beginning and end
of the service method.
Trace Hello enterprise bean WebSphereSample
from a remote machine
-
Configure the application server containing the enterprise bean for debugging:
- In the Topology tree, locate and click the Default
Server, which is the default application server. Its properties will
be displayed on the right side of the console.
-
For the default server's debugging properties, select the Object
Level Trace enabled check box.
- Set the OLT server host to the hostname of the remote machine
on which OLT will be running.
- Click Apply.
-
If you have not already, install and deploy the Hello enterprise bean:
- In the Topology tree, find and right-click the
Default Container in the Default Server.
-
In the resulting menu, click Create -> Enterprise Bean.
-
In the resulting window, click Browse.
-
In the Browse dialog, browse for
<install_root>/deployableEJBs/Hello.jar. Double-click it to
display its deployment descriptor. Click the deployment descriptor
and exit the Browse dialog.
-
Back in the dialog window for creating an enterprise bean, click Create.
-
When the deployment process is complete, verify that the Hello
enterprise bean now is displayed in the Default Container on the
Topology tree.
-
Start the application server:
- In the Topology tree, make sure the Default Server
is selected.
-
Start it. Either click the Start toolbar button or use
the Start option on the server's right-click menu.
-
Optionally, minimize (but not close) the WebSphere Administrative
Console to allow more space on your desktop for the tracing interface.
-
Make sure your Web server is started.
-
Start the Debugger/OLT:
- Open a system command window.
-
Issue the command to start the debugger daemon: olt
- Adjust the Debugger/OLT settings. When the interface is displayed,
ensure that the default execution mode is set to trace only in the
Client Controller page. Set the check box to use the default settings.
-
Run the Hello sample. On Windows NT, click Start -> Programs ->
IBM WebSphere -> Application Server version 3.x.0 -> Samples,
then select the Hello enterprise bean.
-
Watch the Debugger/OLT for lines representing the HelloEJB JSP file
and the Hello enterprise bean itself.
See the prerequisites and limitations for
known limitations, problems, and workarounds.
|
|