Sometimes we see application issues on standalone weblogic server which is not reproducible while running the same application in integerated weblogic server inside Jdeveloper..
The best option is remote debugging.. Its very simple to setup..
1. Open the file $DOMAIN_HOME/bin/setDomainEnv.cmd
a. set debugFlag = true
b. Disable assertions: search for -ea and replace it with -da (keep a backup to restore it)
c. Note down the debug_port (default is 8453).
d. Start weblogic server. Make sure that you see Listening for transport dt_socket at address: 8453 in the
Server log file.
2. On Jdeveloper:
Right click your project -> Project Properties
Run/Debug/Profile -> Edit
Select Remote debugging
On Same Window, Select Tool Settings -> Debugger -> Remote and have the following settings.
Protocol -> Attach to JPDA
Host: Host of your WLS Server
Port: WLS Debugger port, default is 8453.
Right click your project, Start Remote Debugger.
That's it.. Now you have connected your remote application in debug mode.. Put breakpoints on your code and see what's going on..
Happy Debugging :-)
Note : Please make sure that the code you have deployed in weblogic server and the code you have connected from jdeveloper are same.
The best option is remote debugging.. Its very simple to setup..
1. Open the file $DOMAIN_HOME/bin/setDomainEnv.cmd
a. set debugFlag = true
b. Disable assertions: search for -ea and replace it with -da (keep a backup to restore it)
c. Note down the debug_port (default is 8453).
d. Start weblogic server. Make sure that you see Listening for transport dt_socket at address: 8453 in the
Server log file.
2. On Jdeveloper:
Right click your project -> Project Properties
Run/Debug/Profile -> Edit
On Same Window, Select Tool Settings -> Debugger -> Remote and have the following settings.
Protocol -> Attach to JPDA
Host: Host of your WLS Server
Port: WLS Debugger port, default is 8453.
That's it.. Now you have connected your remote application in debug mode.. Put breakpoints on your code and see what's going on..
Happy Debugging :-)
Note : Please make sure that the code you have deployed in weblogic server and the code you have connected from jdeveloper are same.
Hey thanks for sharing the remote debugging...
ReplyDeletewelcome
DeleteCan we debug JCA adapters functionality.
ReplyDeleteI'm not sure Janardhan.
Deletegood post :). very usefull
ReplyDeleteThanks Ravi.
DeleteUseful*
DeleteCan we Debug Inbound BPEL process?
ReplyDeleteI'm not sure Janardhan
DeleteError... Do you have any idea what to make of it?
ReplyDelete<05/12/2017, 11:30:45,444 AM BRST>
<05/12/2017, 11:30:45,444 AM BRST>
<05/12/2017, 11:30:45,453 AM BRST>
<05/12/2017, 11:30:45,454 AM BRST>
<05/12/2017, 11:30:45,455 AM BRST>
<05/12/2017, 11:30:45,456 AM BRST>
<05/12/2017, 11:30:45,458 AM BRST>
<05/12/2017, 11:30:45,468 AM BRST>
<05/12/2017, 11:30:45,474 AM BRST>
Debugger failed to attach: handshake failed - received >ALSB-Handshake< - expected >JDWP-Handshake<
Debugger failed to attach: handshake failed - received >ALSB-Handshake< - expected >JDWP-Handshake<
Thanks for clarifying the less then complete instructions I found on Oracle's site!
ReplyDeleteI am getting this error:
ReplyDeleteDebugger attempting to connect to remote process at http://XXXXXXX.com/ 8453.
...........................................................................................Debugger unable to connect to remote process.
any suggestions?