Server User Manual
Table Of Contents
- Developing Applications for J2EE™ Servers
- Contents
- Ch 1: Introduction
- Ch 2: Programming for the Java 2 Platform, Enterprise Edition
- Ch 3: Creating applications with J2EE technologies
- Ch 4: Configuring the target server settings
- Ch 5: Using JBuilder with Borland servers
- Configuring Borland servers in JBuilder
- Making the ORB available to JBuilder
- Configurations, partitions, partition services, and J2EE APIs
- Starting the configuration or server
- Remote deploying
- Remote debugging
- Web module workarounds
- Displaying the Borland Management Console in JBuilder
- International issues
- Borland servers and JDataStore 7.0
- Ch 6: Using JBuilder’s CORBA tools
- Ch 7: Using JBuilder with BEA WebLogic servers
- Ch 8: Using JBuilder with IBM WebSphere servers
- Ch 9: Using JBuilder with JBoss servers
- Ch 10: Using JBuilder with Tomcat
- Ch 11: Editing J2EE deployment descriptors
- Ch 12: Integrating with Enterprise Information Systems
- Ch 13: Building J2EE modules
- J2EE modules
- Setting module build properties
- Adding custom file types
- Sample build scenarios
- EJB JAR without any bean classes
- EJB JAR with custom files
- EJB JAR without EJB designer XML descriptors
- WAR with custom descriptor(s) in the WEB-INF directory
- WAR without any classes
- WAR with custom class filters
- WAR with custom file types
- EAR with custom files
- RAR with classes and dependencies
- Application client module with classes and dependencies
- Improving module build performance
- Index
![](/manual/borland-software/jbuilder-2005/server-user-manual/images/img-71.png)
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
project’s 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 won’t 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.