Server User Manual

Table Of Contents
72 Developing Applications for J2EE Servers
Updating projects with the latest server settings
4 Launch the WebLogic server with debug parameters. To do this, modify
startWebLogic.sh in your domain directory and add the following parameters to the
JAVA_OPTIONS variable:
-Xdebug
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,address=3999,suspend=n
Note that these steps can be done on a local machine provided WebLogic is set up
and configured in JBuilder.
On the local machine, follow these steps:
1 Transfer the project to the local machine where you wish to debug the JSP and
open the project in JBuilder.
2 Under the source path for the project (normally <PROJECT_ROOT>/src), create a
directory named
jsp_servlet. If you need to use a source path other than the
default, you can obtain this setting from the General page of the Project Properties
dialog box.
3 Copy the JSP(s) you want to debug to the directory you just specified.
4 Open the JSP(s) and set breakpoints where required.
5 Choose Run|Configurations.
6 Click the New button, select the Application from the drop-down list, and click the
Debug tab.
7 Check the Enable Remote Debugging option.
8 Enter the host name of the remote server in the Host Name field and set the Build
Target to None. Accept all other default settings.
9 Attach to the remote server by clicking on the debug project icon in the toolbar.
10 Load your JSP in a web browser. The debugger stops at breakpoints in the JSP.
Updating projects with the latest server settings
Every time you open a project, JBuilder updates it with the latest server settings for the
projects selected server(s). So, for example, if you have modified server settings for
one project and you have others that use the same server configuration, the next time
you open those other projects, your modified server settings will be in force
automatically. If you want to use a similar but unique server configuration for a
particular project, create a duplicate configuration using the Copy button, and use the
Copy Servers wizard to edit it to your needs.
Be aware that this automatic updating of projects with the latest server settings can
occur only with server configurations modified in JBuilder 9. If you attempt to transfer
server libraries from a previous JBuilder version, your projects wont be updated with
them. You can still tell JBuilder to update the project manually:
1 Right-click the project node of the project you want to update in the project pane and
choose Properties.
2 Select the Servers page.
3 Click the ellipsis () button next to your selected single server or the separate
service servers and make your changes.
4 Click OK to close the dialog box.