PDFs

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved step 2&3 after step 6 in To install the Java Agent on JBoss Standalone and added a note - Step 5 and Step 6 are required only if the log manger errors manifest. Also, repeat Step 4 after this change.

...

To install the Java Agent on JBoss Standalone:
  1. Open the bin/standalone.conf file.

  2. Add the following to the end of the standalone.conf file in the JAVA_OPTS section.

    Code Block
    -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:<path_to_jboss_logmanager>/jboss-logmanager-<version>.jar
  3. Replace <path_to_jboss_logmanager> and <version> with the path and log manager JAR filename for your system. See Making the LogManager Location Dynamic for information on making the path dynamic.

  4. In the standalone.sh file, add the following javaagent argument.

    Code Block
    export JAVA_OPTS="$JAVA_OPTS -javaagent:/agent_install_dir/javaagent.jar"
  5. Put the argument above the following section of standalone.sh

    Code Block
    ...
    while true;do
    if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "X" ]; then
       # Execute the JVM in the foreground
          eval \"$JAVA\" -D\"[Standalone]\"$JAVA_OPTS \
         \"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/boot.log\" \
         \"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \
          -jar \"$JBOSS_HOME/jboss-modules.jar\" \
  6. Restart the application server. 

  7. Add the following to the end of the standalone.conf file in the JAVA_OPTS section.

    Code Block
    -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Xbootclasspath/p:<path_to_jboss_logmanager>/jboss-logmanager-<version>.jar
  8. Replace <path_to_jboss_logmanager> and <version> with the path and log manager JAR filename for your system. See Making the LogManager Location Dynamic for information on making the path dynamic.

    Info
    titleNote

    Step 5 and Step 6 are required only if the log manger errors manifest. Also, repeat Step 4 after this change.

Anchor
globlogmanagerpathname
globlogmanagerpathname
Dynamic LogManager Location

...