85629

Weblogic 10.3.3.0 application debugging with eclipse

Question:

Hello I saw some 11g tutorials with a Google search:

<a href="http://saltnlight5.blogspot.com/2014/04/how-to-setup-remote-debug-with-weblogic.html" rel="nofollow">http://saltnlight5.blogspot.com/2014/04/how-to-setup-remote-debug-with-weblogic.html</a>

<a href="http://java.dzone.com/articles/how-setup-remote-debug" rel="nofollow">http://java.dzone.com/articles/how-setup-remote-debug</a>

They both specify adding something like: JAVA_OPTIONS="$JAVA_OPTIONS -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y"

Two questions I have is:

One, at my work we have domains/domainName/bin/setDomainEnv.sh and in the same "domainName" directory another folder called servers, with a bunch of our servers on it. I am not an expert in infrastructure but I am looking for a way to remotely debug an application on Weblogic through Eclipse that is located on one of the servers. What is the best way to sync up the one server and its application with Eclipse rather than effecting all of the severs (unless I am misunderstanding).

Second, is there not a way to set this up through the Weblogic Administration Console? I tried looking around for anything intuitive, but nothing stood out.

Answer1:

If you are starting your servers with NodeManager, you should be able to add the arguments to "Arguments" in the Weblogic Admin Console under:

<blockquote>

Environment -> Servers -> Your Server -> Configuration (tab) -> Server Start (sub-tab)

</blockquote>

Answer2:

setDomainEnv - set debugFlag="true" and every server you start will listen on the port specified, allowing remote debug connections. Inside of Eclipse, select, Run > Debug Configuration and then select Remote Java Application Choose the host your server runs on with the port from setDomainEnv

<ul><li>This will affect all servers, so if you have two running on the same host you will have a port conflict. You can do something simple like putting an if statement into setDomainEnv so the debug is only turned on for a specific SERVER_NAME</li> </ul>

<domain>/servers - this is the folder where weblogic caches security information, application information, startup params, etc for each server. You shouldn't be manipulating this directly on the file system

Another thing that may be of interest to you it the <a href="http://www.oracle.com/technetwork/developer-tools/eclipse/overview/index.html" rel="nofollow">Oracle Enterprise Pack for Eclipse (OEPE)</a>. It allows you to start/stop servers directly from Eclipse as well as additional debug support.

Sample from my setDomainEnv.sh:

debugFlag="true" export debugFlag JAVA_DEBUG="" export JAVA_DEBUG if [ "${debugFlag}" = "true" ] ; then JAVA_DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE" export JAVA_DEBUG JAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole..." export JAVA_OPTIONS fi

Recommend

  • I need help making a website crawler using php [closed]
  • Can't add iOS OpenCV Framework in a QT Project
  • Django trusted server for file processing-distributing-retrieving
  • How to perform an operation in scala's foreach?
  • How to edit text file data with c++
  • PHP mail use FROM of multiple mail client (Yahoo | Google | Hotmail | Rediff | Personal Mail domain)
  • C# DataGridView checkbox independant from row selection
  • How do I create a common component in Weblogic?
  • x86 multi-byte NOP and instruction prefix
  • How do I get bash to redirect stderr into a >( command substitution )?
  • How can I extract columns from a fixed-width format in Perl?
  • gulp: passing dependent task return stream as parameter
  • readyRead() signal of QextSerialPort (QIODevice) is not being called fast enough
  • WPF MVVM cancel window closing
  • Migrating from java 1.4 ,EJB 1 to Java 6 and EJB 3 [closed]
  • java.lang.IndexOutOfBoundsException occuring on ArrayList
  • Wrapping text in spinner android
  • Any nice way to generate a timeline view of commits from subversion?
  • Local Development, Apache vs Developer - file permissions
  • Servlet stops working on Tomcat server after some hits or time
  • Best way to dynamically load an xml configuration file into a Flex4/Flash movie at runtime?
  • Web.config system.webserver errors
  • How to match http request and response using Jersey ContainerRequestFilter and ContainerResponseFilt
  • PHP buffered output depending on server setting?
  • Custom validator control occupying space even though display set to dynamic
  • ImageMagick, replace semi-transparent white with opaque white
  • Why is an OPTIONS request sent to the server?
  • Update CALayer sublayers immediately
  • Is there any way to access browser form field suggestions from JavaScript?
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • How do I rollback to a specific git commit
  • How to get icons for entities from eclipse?
  • C# - Getting references of reference
  • How to set the response of a form post action to a iframe source?
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • reshape alternating columns in less time and using less memory