If you use the Debug on Server dialog box to execute debugging, you can simultaneously start the J2EE server, publish the project on the J2EE server, and access the Web browser, and can efficiently execute the debugging.
To debug with the Debug on Server dialog box when the server already exists:
Item name | Specified value |
---|---|
Select the server that you want to use | Specify the registered J2EE server. Specify Cosminexus J2EE server. |
Always use this server when running this project | Specify whether to use the J2EE server selected in Select the server that you want to use when this project is executed.
|
The following table describes the resources targeted for debugging when you debug with the Debug on Server dialog box:
Resource | Browser display | Explanation |
---|---|---|
Enterprise application project | X | When the dynamic Web project is available in the module project, the URL of that context root is displayed in the Web browser. # For multiple dynamic Web projects, the first dynamic Web project in the alphabetical sequence of project names is displayed on the Web browser. If you want to target a dynamic Web project other than the first dynamic Web project, select that dynamic Web project and execute debug. For example: http://localhost/context-root/ The web browser is not displayed if a dynamic Web project is not available in the module project. |
EJB Project | N | The web browser is not displayed. |
Dynamic Web project | Y | The context root URL of the specified project is displayed in the Web browser. # For example: http://localhost/context-root/ |
JSP or HTML files under the contents directory of the dynamic Web project | Y | The selected file is displayed in the Web browser. For example: http://localhost/context-root/file-path |
Servlet classes under the Java source directory of the dynamic Web project | Y | The selected servlet class is displayed in the Web browser. For example:
|
Other | N | Resources other than those mentioned above are not debugged. |
Note the following points when you debug J2EE applications: