I am using Eclipse Sdk Version: 3.1.2
IBM websphere 6.0
I set debug value to "true" in my application.xml
I have a .ear file of my application deployed on the websphere appserver. Currently I can test my application in nobebug mode.
values of environment variables are -
JAVA_HOME - C:\DEV\IBMJDK142; C:\Program Files\Java\jre1.6.0_03
PATH - C:\DEV\IBMJDK142\bin; C:\Program Files\IBM\WebSphere MQ\Java\lib;C:\DEV\IBMJDK142\bin;%SystemRoot%\system32;%SystemRoot%;
I want to test the application in debug mode.
I am using default server on websphere, which is server1.
In Admin-console of webshere I went to
server-->Application server-->choose server1-->Debugging Service ---->checked the checkbox "Enable service at server startup"
Here value of my JVM debug port is 7777.
next In Eclipse env I chose Run---->Debug....--->Remote Java Application ----> created a new application with the name of my application and set the connection properties to -
Host - localhost
Eclipse----> Windows----->Preferences---->Server----->Installed Runtime---->Add---->selected values such as -
JRE - default JRE(JDK 1.4)
IBM Websphere Installation Directory - C:/DEV/WebSphere/AppServer
Now in debug perspective, I created a new server with selection/values such as -
IBM--->IBM Websphere v6---->
port - 9081
server profile directory - C:/DEV/WebSphere/AppServer/profiles/default
cell - GCWSNTRANode01Cell
node - GCWSNTRANode01
server - server1
Next---->Added the project to configured project ----->FINISH
Closed Eclipse to save env settings.
Started the default server (server1)
opened eclipse - desired project--->debug perspective ---->choose server--->Right Click----Start/Debug
mesg "Starting ServerI BM Websphere 6 - IBM Websphere 6 failed to start"
can some one please tell me what I am missing here.
Why did you created IBM server instance since your application is Remote Application (remote to eclipse), the following step is not needed:
Now in debug perspective, I created a new server with selection/values such as - IBM--->IBM Websphere v6----> port - 9081 server profile directory - C:/DEV/WebSphere/AppServer/profiles/default cell - GCWSNTRANode01Cell node - GCWSNTRANode01 server - server1 Next---->Added the project to configured project ----->FINISH
after creating remote application, just go and start server1 from web sphere console which will start your application deployed in server1, and in eclipse just debug your application like Run -> Debug ->Remote Java Application -><your application name> -> Debug or else you can just select application from Debug Dropdownlist from debug perspective, this will start in debug mode.
If still face any problems let me know I ll add screen shots.
I did all things as your comment, but my portlet project still not debug.
The remote application is running but when I try set break point and click some button on portlet the application still not go to debug mode.
Can you add screen shot please? Thanks for you advance.