Server User Manual

Table Of Contents
Chapter 5: Using JBuilder with Borland servers 43
Web module workarounds
Remote debugging in JBuilder
Once either edition of the Borland Enterprise Server AppServer and the partition have
been started, follow these steps from within JBuilder:
1 In the project from which you want to launch the remote debug session, choose
Run|Configurations. If you have not yet created a Server type run configuration,
click New. In the New Runtime Configuration dialog box, set the Type to Server. If
you have already created a Server run configuration, select it and choose Edit.
2 Select the Debug|Remote node.
3 Check the Enable Remote Debugging option.
4 Select the Attach option.
5 Enter the name of the machine on which the server is running in the Host Name
field.
6 Make sure the Transport Type is set to dt_socket and the Address is set to 3999.
The dialog box will look similar to this:
7 Click OK to close the dialog box.
8 Set a breakpoint in the process you want to debug.
9 Deploy that process to the running partition.
10 Click the down arrow next to the Debug Project button on the toolbar and select the
Server configuration you just created or edited. The debugger launches, attaches to
the partition running remotely, and stops at the breakpoint.
Web module workarounds
The default application server install includes ROOT.war, which contains the default
context. If you deploy an EAR that contains a default context, you must delete
ROOT.war
(or rename its extension) so that it does not load and cause a conflict. If deploying
WARs (with the container classloader policy), the resulting WAR is automatically
copied to the partition as
ROOT.war, in which case there is no conflict. Please note that it
is the
<context-root>!ROOT!</context-root> element in the web-borland.xml file that
designates the context as root, not the file name.