Quick Enquiry

Please type below


22 Apr 2016

How to launch Weblogic in Debug Mode

Sometimes we need to launch Weblogic in debug mode to be able to connect other ide`s like Eclipse with Weblogic in remote debug. To do this, we follow the next steps:

  • Open the start WebLogic file of your domain [domain_home]/startWebLogic.cmd and add the next line:

set DOMAIN_HOME=C:bea\user_projects\domains\papi_domain

set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=XXXX,server=y,suspend=n

call “%DOMAIN_HOME%bin\startWebLogic.cmd” %*

Where XXXX will be the port through which Weblogic will listen the input calls from Eclipse. If we don`t write this line, although Eclipse points to WebLogic, the step by step debugger will not work.

  • Now we will launch WebLogic in debug mode to listen to the remote calls through the port XXXX.
  • Check that in the WebLogic console are shown the next messages
  • Deploy WebLogic console and create a new Web Application. This new application will point directly to the war folder of our project. It means, where are located the resources compiled by Eclipse.
  • Run the application with WebLogic.


Write a Comment

No comment posted.