Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Websphere works when run but fails when debug

I'm using Intellij with WebSphere 8. When I run from within IDE the server works normally. When I try to run it in debug mode however, it fails with the following error:

C:\IBM\WebSphere\AppServer\profiles\AppSrv01\bin\generated_websphere_server_start_script.cmd
C:\IBM\WebSphere\AppServer\java\bin\java -Dfile.encoding=windows-1252 -classpath "C:\IBM\WebSphere\AppServer\runtimes\com.ibm.ws.admin.client_8.5.0.jar;C:\IBM\WebSphere\AppServer\plugins\com.ibm.ws.security.crypto.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.3\plugins\webSphereIntegration\lib\webSphereIntegration.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.3\plugins\JavaEE\lib\javaee-impl.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.3\lib\openapi.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.1.3\plugins\webSphereIntegration\lib\specifics\webSphereClientImpl.jar" com.intellij.javaee.oss.process.JavaeeProcess 62847 com.intellij.j2ee.webSphere.agent.WebSphereAgent
Error: JDWP agent already loaded - please check java command line options
[2014-08-11 01:58:59,248] Artifact x.ear: Server is not connected. Deploy is not available.
JVMJ9TI064E Agent initialization function Agent_OnLoad failed for library jdwp, return code -1
Detected server admin port: 8880
JVMJ9VM015W Initialization error for library j9jvmti26(-3): JVMJ9VM009E J9VMDllMain failed
Detected server http port: 9080
Disconnected from server

I tried almost everything I have no idea what the problem is. I did google it for several hours with no luck.

Do anyone know what this all is about and how can it be fixed?

Here is my server configuration: firstsecond

like image 426
kboom Avatar asked Aug 11 '14 13:08

kboom


People also ask

How do I start WebSphere in debug mode?

To start debugging, you need to start the WebSphere Application Server in debug mode and make note of the JVM debug port. The default value of the JVM debug port is 7777. When the server is started, switch to the debug perspective by selecting Window > Open Perspective > Debug.

How do I enable trace in WebSphere?

Enabling diagnostic traceIn the WebSphere Application Server administrative console, click Troubleshooting > Logs and Trace > server-name > Diagnostic Trace > Change Log Detail Levels, where server-name is the name of the application server on which you want to enable trace.

Was server is not starting?

Enable the security from administrative console. Once the needed corrections are made, you can re-enable security in the admin console and then restart WebSphere. NOTE: To restart the servers, you will first need to manually kill the java process since security is still enabled in the currently running process.


1 Answers

Solution 1 unchecked the Pass environment variables check box and restart the server in debug mode. it should work properly.

Run --> Edit Configuration --> websphere server --> Startup/Conections tab select debug, you will see the Pass environment variables check box. it need to be unchecked for debug to work.

Solution 2 if debug mode of websphere is working in eclipse and not working in intellij that reason i found out is debugging serverice on the websphere is already started and intellij is again trying to start the debggin service. so stop the service from websphere console (Servers > Server Types > WebSphere application servers > [serverName] > Debugging Service) and all the default configurations in intellij should work.

like image 196
Kishore Tulsiani Avatar answered Oct 02 '22 04:10

Kishore Tulsiani