WebSphere 8 debug mode



I am trying to use IJ 11.1.3 to deploy an application to WebSphere 8 with java 64-bit. Running it is ok, but when debugging, the server won't start up and gives the following error message:

D:\Programs\IBM\WebSphere_85\AppServer\java\bin\java -Dfile.encoding=windows-1252 -classpath "D:\Programs\IBM\WebSphere_85\AppServer\runtimes\com.ibm.ws.admin.client_8.5.0.jar;D:\Programs\IBM\WebSphere_85\AppServer\plugins\com.ibm.ws.security.crypto.jar;D:\software\JetBrains\IntelliJ IDEA 11.1.3\plugins\webSphereIntegration\lib\webSphereIntegration.jar;D:\software\JetBrains\IntelliJ IDEA 11.1.3\plugins\webSphereIntegration\lib\specifics\webSphereClientImpl.jar;D:\software\JetBrains\IntelliJ IDEA 11.1.3\plugins\JavaEE\lib\javaee-impl.jar" com.intellij.javaee.oss.process.JavaeeProcess 61316 com.intellij.j2ee.webSphere.agent.WebSphereAgent
Error: JDWP agent already loaded - please check java command line options
JVMJ9TI064E Agent initialization function Agent_OnLoad failed for library jdwp, return code -1
JVMJ9VM015W Initialization error for library j9jvmti26(-3): JVMJ9VM009E J9VMDllMain failed
Disconnected from server
Connected to server

IJ then shows:
Error running WebSphere 8.0:
Unable to open debugger port: java.net.SocketException "socket closed"

Any idea what could be the cause? I guess it has something to do with WebSphere. Is there a way to see the generated debug startup script? After the error occures the script is gone.

Comment actions Permalink

i am also getting same error in IDEA 13 for websphere 8 ,any one know root cause for this issue.
Ok here is the root cause :

This is probably too late to help you, but maybe it will help somebody else.  The answer is based on a posting by Aleksei Sosnovski.
This can happen when your JAVA_OPTS contains 2 -Xrunjdwp arguments,  e.g., one of these arguments might come from the server start script  invoked by IntelliJ to start the container, and another may be added by  IntelliJ itself. You can check by looking at JAVA_OPTS in log when  launching the container without debug. If you see an -Xrunjdwp pargument  just find where it is set in the container startup script and remove  it.
the above asnwer is from SO : http://stackoverflow.com/questions/5993359/running-project-from-intellij-idea

Thank You

Comment actions Permalink

This might be it - might help who have reached this page: https://intellij-support.jetbrains.com/hc/en-us/requests/1395099

Comment actions Permalink

The link above is visible only to JetBrains support and the reporter, please go to https://youtrack.jetbrains.com/issue/IDEA-193580 instead.


Please sign in to leave a comment.