DX Application Performance Management

  • 1.  Can any one help me to configure Tomcat & Weblogic Agent ?

    Posted Mar 12, 2012 07:01 AM
    Hi .

    Can any one help me to configure Tomcat & Weblogic Agent ?

    I have Weblogic 10 application server installed on Windows2003 server .Also installed JavaAgent on the same server to monitor the application server.

    But I stuck at configuring the Autoprobe & startup class for the agent. any one can help me for the same ?


    For Tomcat Application server deployed on windows2003 server followed the mentioned steps in JavaAgent guide .but I faced the same problem for configuring Start up class
    I have pasted the original & configured catalina.bat file

    catalina.bat original


    ******************************************************************************************************************************************************************************************
    @echo off
    if "%OS%" == "Windows_NT" setlocal
    rem ---------------------------------------------------------------------------
    rem Start/Stop Script for the CATALINA Server
    rem
    rem Environment Variable Prequisites
    rem
    rem CATALINA_HOME May point at your Catalina "build" directory.
    rem
    rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions
    rem of a Catalina installation. If not present, resolves to
    rem the same directory that CATALINA_HOME points to.
    rem
    rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
    rem "stop", or "run" command is executed.
    rem
    rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory
    rem the JVM should use (java.io.tmpdir). Defaults to
    rem %CATALINA_BASE%\temp.
    rem
    rem JAVA_HOME Must point at your Java Development Kit installation.
    rem Required to run the with the "debug" argument.
    rem
    rem JRE_HOME Must point at your Java Development Kit installation.
    rem Defaults to JAVA_HOME if empty.
    rem
    rem JAVA_OPTS (Optional) Java runtime options used when the "start",
    rem "stop", or "run" command is executed.
    rem
    rem JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
    rem (JSSE) installation, whose JAR files will be added to the
    rem system class path used to start Tomcat.
    rem
    rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
    rem command is executed. The default is "dt_shmem".
    rem
    rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
    rem command is executed. The default is "jdbconn".
    rem
    rem $Id: catalina.bat 355227 2005-12-08 21:44:16Z keith $
    rem ---------------------------------------------------------------------------

    rem Guess CATALINA_HOME if not defined
    set CURRENT_DIR=%cd%
    if not "%CATALINA_HOME%" == "" goto gotHome
    set CATALINA_HOME=%CURRENT_DIR%
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    cd ..
    set CATALINA_HOME=%cd%
    cd %CURRENT_DIR%
    :gotHome
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    echo The CATALINA_HOME environment variable is not defined correctly
    echo This environment variable is needed to run this program
    goto end
    :okHome

    set JAVA_HOME=%SPECPATH%\Java
    set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/a:%JAVA_HOME%\jre\lib\heapdebug.jar
    rem set JAVA_OPTS=%JAVA_OPTS% -agentpath:%JAVA_HOME%/jre/bin/heapdebug.dll=%CATALINA_HOME%\bin\heap_debug_options
    set JAVA_OPTS=%JAVA_OPTS% -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -server

    rem Get standard environment variables
    if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"

    rem Get standard Java environment variables
    if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
    echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
    echo This file is needed to run this program
    goto end
    :okSetclasspath
    set BASEDIR=%CATALINA_HOME%
    call "%CATALINA_HOME%\bin\setclasspath.bat" %1
    if errorlevel 1 goto end

    rem Add common/lib/endorsed to JAVA_ENDORSED_DIRS
    set JAVA_ENDORSED_DIRS=%JAVA_ENDORSED_DIRS%;%CATALINA_HOME%\common\lib\endorsed

    rem Add on extra jar files to CLASSPATH
    if "%JSSE_HOME%" == "" goto noJsse
    set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
    :noJsse
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\jre\lib\heapdebug.jar

    if not "%CATALINA_BASE%" == "" goto gotBase
    set CATALINA_BASE=%CATALINA_HOME%
    :gotBase

    if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
    set CATALINA_TMPDIR=%CATALINA_BASE%\temp
    :gotTmpdir

    if not exist "%CATALINA_HOME%\bin\tomcat-juli.jar" goto noJuli
    set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
    :noJuli

    rem ----- Execute The Requested Command ---------------------------------------

    echo Using CATALINA_BASE: %CATALINA_BASE%
    echo Using CATALINA_HOME: %CATALINA_HOME%
    echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
    if ""%1"" == ""debug"" goto use_jdk
    echo Using JRE_HOME: %JRE_HOME%
    goto java_dir_displayed
    :use_jdk
    echo Using JAVA_HOME: %JAVA_HOME%
    :java_dir_displayed

    set EXECJAVA=%RUNJAVA%
    set MAINCLASS=org.apache.catalina.startup.Bootstrap
    set ACTION=start
    set SECURITY_POLICY_FILE=
    set DEBUG_OPTS=
    set JPDA=

    if not ""%1"" == ""jpda"" goto noJpda
    set JPDA=jpda
    if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
    set JPDA_TRANSPORT=dt_shmem
    :gotJpdaTransport
    if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
    set JPDA_ADDRESS=jdbconn
    :gotJpdaAddress
    shift
    :noJpda

    if ""%1"" == ""debug"" goto doDebug
    if ""%1"" == ""run"" goto doRun
    if ""%1"" == ""start"" goto doStart
    if ""%1"" == ""stop"" goto doStop
    if ""%1"" == ""version"" goto doVersion

    echo Usage: catalina ( commands ... )
    echo commands:
    echo debug Start Catalina in a debugger
    echo debug -security Debug Catalina with a security manager
    echo jpda start Start Catalina under JPDA debugger
    echo run Start Catalina in the current window
    echo run -security Start in the current window with security manager
    echo start Start Catalina in a separate window
    echo start -security Start in a separate window with security manager
    echo stop Stop Catalina
    echo version What version of tomcat are you running?
    goto end

    :doDebug
    shift
    set EXECJAVA=%RUNJDB%
    set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\jakarta-tomcat-catalina\catalina\src\share"
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd

    :doRun
    shift
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd

    :doStart
    shift
    if not "%OS%" == "Windows_NT" goto noTitle
    set EXECJAVA=start "Tomcat" %RUNJAVA%
    goto gotTitle
    :noTitle
    set EXECJAVA=start %RUNJAVA%
    :gotTitle
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd

    :doStop
    shift
    set ACTION=stop
    goto execCmd

    :doVersion
    %_EXECJAVA% -classpath "%CATALINA_HOME%\server\lib\catalina.jar" org.apache.catalina.util.ServerInfo
    goto end


    :execCmd
    rem Get remaining unshifted command line arguments and save them in the
    set CMD_LINE_ARGS=
    :setArgs
    if ""%1""=="""" goto doneSetArgs
    set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    shift
    goto setArgs
    :doneSetArgs

    rem Execute Java with the applicable properties
    if not "%JPDA%" == "" goto doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end

    :end

    ******************************************************************************************************************************************************************************************

    Catalina.bat updated requested to look into this



    ******************************************************************************************************************************************************************************************

    @echo off
    if "%OS%" == "Windows_NT" setlocal
    rem ---------------------------------------------------------------------------
    rem Start/Stop Script for the CATALINA Server
    rem
    rem Environment Variable Prequisites
    rem
    rem CATALINA_HOME May point at your Catalina "build" directory.
    rem
    rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions
    rem of a Catalina installation. If not present, resolves to
    rem the same directory that CATALINA_HOME points to.
    rem
    rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
    rem "stop", or "run" command is executed.
    rem
    rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory
    rem the JVM should use (java.io.tmpdir). Defaults to
    rem %CATALINA_BASE%\temp.
    rem
    rem JAVA_HOME Must point at your Java Development Kit installation.
    rem Required to run the with the "debug" argument.
    rem
    rem JRE_HOME Must point at your Java Development Kit installation.
    rem Defaults to JAVA_HOME if empty.
    rem
    rem JAVA_OPTS (Optional) Java runtime options used when the "start",
    rem "stop", or "run" command is executed.
    rem
    rem JSSE_HOME (Optional) May point at your Java Secure Sockets Extension
    rem (JSSE) installation, whose JAR files will be added to the
    rem system class path used to start Tomcat.
    rem
    rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
    rem command is executed. The default is "dt_shmem".
    rem
    rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
    rem command is executed. The default is "jdbconn".
    rem
    rem $Id: catalina.bat 355227 2005-12-08 21:44:16Z keith $
    rem ---------------------------------------------------------------------------

    rem Guess CATALINA_HOME if not defined
    set CURRENT_DIR=%cd%
    if not "%CATALINA_HOME%" == "" goto gotHome
    set CATALINA_HOME=%CURRENT_DIR%
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    cd ..
    set CATALINA_HOME=%cd%
    cd %CURRENT_DIR%
    :gotHome
    if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
    echo The CATALINA_HOME environment variable is not defined correctly
    echo This environment variable is needed to run this program
    goto end
    :okHome

    set JAVA_HOME=%SPECPATH%\Java
    set JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/a:%JAVA_HOME%\jre\lib\heapdebug.jar
    rem set JAVA_OPTS=%JAVA_OPTS% -agentpath:%JAVA_HOME%/jre/bin/heapdebug.dll=%CATALINA_HOME%\bin\heap_debug_options
    set JAVA_OPTS=%JAVA_OPTS% -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -server

    rem Get standard environment variables
    if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"

    rem Get standard Java environment variables
    if exist "%CATALINA_HOME%\bin\setclasspath.bat" goto okSetclasspath
    echo Cannot find %CATALINA_HOME%\bin\setclasspath.bat
    echo This file is needed to run this program
    goto end
    :okSetclasspath
    set BASEDIR=%CATALINA_HOME%
    call "%CATALINA_HOME%\bin\setclasspath.bat" %1
    if errorlevel 1 goto end

    rem Add common/lib/endorsed to JAVA_ENDORSED_DIRS
    set JAVA_ENDORSED_DIRS=%JAVA_ENDORSED_DIRS%;%CATALINA_HOME%\common\lib\endorsed

    rem Add on extra jar files to CLASSPATH
    if "%JSSE_HOME%" == "" goto noJsse
    set CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
    :noJsse
    set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\jre\lib\heapdebug.jar

    if not "%CATALINA_BASE%" == "" goto gotBase
    set CATALINA_BASE=%CATALINA_HOME%
    :gotBase

    if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
    set CATALINA_TMPDIR=%CATALINA_BASE%\temp
    :gotTmpdir

    if not exist "%CATALINA_HOME%\bin\tomcat-juli.jar" goto noJuli
    set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
    :noJuli

    rem ----- Execute The Requested Command ---------------------------------------

    echo Using CATALINA_BASE: %CATALINA_BASE%
    echo Using CATALINA_HOME: %CATALINA_HOME%
    echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
    if ""%1"" == ""debug"" goto use_jdk
    echo Using JRE_HOME: %JRE_HOME%
    goto java_dir_displayed
    :use_jdk
    echo Using JAVA_HOME: %JAVA_HOME%
    :java_dir_displayed

    set EXECJAVA=%RUNJAVA%
    set MAINCLASS=org.apache.catalina.startup.Bootstrap
    set ACTION=start
    set SECURITY_POLICY_FILE=
    set DEBUG_OPTS=
    set JPDA=

    if not ""%1"" == ""jpda"" goto noJpda
    set JPDA=jpda
    if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
    set JPDA_TRANSPORT=dt_shmem
    :gotJpdaTransport
    if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
    set JPDA_ADDRESS=jdbconn
    :gotJpdaAddress
    shift
    :noJpda

    if ""%1"" == ""debug"" goto doDebug
    if ""%1"" == ""run"" goto doRun
    if ""%1"" == ""start"" goto doStart
    if ""%1"" == ""stop"" goto doStop
    if ""%1"" == ""version"" goto doVersion

    echo Usage: catalina ( commands ... )
    echo commands:
    echo debug Start Catalina in a debugger
    echo debug -security Debug Catalina with a security manager
    echo jpda start Start Catalina under JPDA debugger
    echo run Start Catalina in the current window
    echo run -security Start in the current window with security manager
    echo start Start Catalina in a separate window
    echo start -security Start in a separate window with security manager
    echo stop Stop Catalina
    echo version What version of tomcat are you running?
    goto end

    :doDebug
    shift
    set EXECJAVA=%RUNJDB%
    set DEBUG_OPTS=-sourcepath "%CATALINA_HOME%\..\..\jakarta-tomcat-catalina\catalina\src\share"
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd

    :doRun
    shift
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd

    ::set WILY_ARGS=-javaagent:"%WILY_HOME%\Agent.jar"
    set WILY_HOME=C:\\win32app\\SPECTRUM\\tomcat\\wily

    set WILY_NAME=-Dcom.wily.introscope.agent.agentName=Tomcat Agent
    set WILY_OPTS=-Dcom.wily.introscope.agentProfile="%WILY_HOME%\IntroscopeAgent.profile"%WILY_NAME%
    echo Using WILY_HOME: %WILY_HOME%
    echo Using WILY_ARGS: %WILY_ARGS%
    echo Using WILY_NAME: %WILY_NAME%
    echo Using WILY_OPTS: %WILY_OPTS%
    :skipWilyVars


    ::Comment out the original start command
    ::%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -
    Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%

    ::Print the command line before executing it
    echo About to execute command: %_EXECJAVA% %WILY_ARGS% %WILY_OPTS%%JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%

    %_EXECJAVA% %WILY_ARGS% %WILY_OPTS% %JAVA_OPTS% %CATALINA_OPTS%%DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath"%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%"%MAINCLASS% %CMD_LINE_ARGS% %ACTION%

    ::doStart


    shift
    if not "%OS%" == "Windows_NT" goto noTitle
    set EXECJAVA=start "Tomcat" %RUNJAVA%
    goto gotTitle
    :noTitle
    set EXECJAVA=start %RUNJAVA%
    :gotTitle
    if not ""%1"" == ""-security"" goto execCmd
    shift
    echo Using Security Manager
    set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy
    goto execCmd

    :doStop
    shift
    set ACTION=stop
    goto execCmd

    :doVersion
    %_EXECJAVA% -classpath "%CATALINA_HOME%\server\lib\catalina.jar" org.apache.catalina.util.ServerInfo
    goto end


    :execCmd
    rem Get remaining unshifted command line arguments and save them in the
    set CMD_LINE_ARGS=
    :setArgs
    if ""%1""=="""" goto doneSetArgs
    set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
    shift
    goto setArgs
    :doneSetArgs

    rem Execute Java with the applicable properties
    if not "%JPDA%" == "" goto doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurity
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doJpda
    if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end
    :doSecurityJpda
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    goto end

    :end

    ***********************************************************************************************************************************************************************************************


  • 2.  RE: Can any one help me to configure Tomcat & Weblogic Agent ?
    Best Answer

    Posted Mar 20, 2012 01:49 AM
    which parameter is used when the startup.bat calls the catalina.sh . Does it use the "start" "run" or debug option .. I think by normally the start option is used .
    you have the made the changes in doRun . in case the start option is made ,you have to make the changes in doStart . similiarly if the debug option is used you have to
    make the changes id doDebug ...

    hope this helps