16.2 Preparing Portal for Remote Server Attach
In order to test and debug portlets remotely, some configuration is required.
-
First, stop any servers running on WebSphere Test Environment inside Studio.
-
Start the external WebSphere Application Server; click
Start -> Programs -> IBM WebSphere -> Application Server v5.0 -> Start the Server
.
-
Once WebSphere Application Server has started,
open
the Administrative Console. Click
Start -> Programs -> IBM WebSphere -> Application Server v5.0 -> Administrative Console
.
-
Log on to the Administrative Console with
user
ID wsadmin. Click
OK
.
Figure 16-3. WebSphere Application Server Administrative Console Login
-
Click
No
if you get the auto complete option message. It is not needed for this scenario.
-
Expand Servers and select
Application Servers -> WebSphere_Portal
.
Figure 16-4. Select WebSphere_Portal
-
In Additional Properties (Configuration page), scroll down and select
Process Definition
.
Figure 16-5. Select Process Definition
-
Select
Java Virtual Machine
(Additional Properties).
Figure 16-6. Java Virtual Machine
-
In General Properties:
-
Select the
Debug Mode
checkbox.
-
Verify that the following string is defined as the Debug arguments:
-Djava.compiler=NONE -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777
Note
: The address specifies the JVM debug port number; the default value is 7777.
-
Click
Apply
.
Figure 16-7. JVM parameter enabling debug
-
In the menu bar, click
Save
. Also, click
Save
in Save Master Configuration.
Figure 16-8. Save the JVM configuration
-
Stop the Application Server by clicking
Programs -> IBM WebSphere -> Application Server -> Stop the Server
.
-
Close the desktop browser.
|