AnsweredAssumed Answered

WebLogic 8.1 Startup file with jdk 1.4

Question asked by sbastine on Jul 7, 2010
Latest reply on Jul 7, 2010 by Hiko_Davis
hi

i am facing an issue, i need to deploy wily on a production server with weblogic 8.1 with jdk 1.4, i dont know how to configure my statWebLogic.sh file and give parameters like Agent.jar and Introscopeagent.profile. The file is ->

[color=#2E29D7]#!/bin/sh

# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.

# *************************************************************************
# This script is used to start WebLogic Server for the domain in the
# current working directory. This script simply sets the SERVER_NAME
# variable and starts server.
#
# To create your own start script for your domain, all you need to set is
# SERVER_NAME, then starts the server.
#
# Other variables that startWLS takes are:
#
# WLS_USER - cleartext user for server startup
# WLS_PW - cleartext password for server startup
# PRODUCTION_MODE - true for production mode servers, false for
# development mode
# JAVA_OPTIONS - Java command-line options for running the server. (These
# will be tagged on to the end of the JAVA_VM and MEM_ARGS)
# JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
# -hotspot, etc.)
# MEM_ARGS - The variable to override the standard memory arguments
# passed to java
#
# For additional information, refer to the WebLogic Server Administration
# Console Online Help(/ConsoleHelp/startstop.html)
# *************************************************************************

# Initialize the common environment.

WL_HOME="/bea/weblogic81"

PRODUCTION_MODE="true"

JAVA_VENDOR="IBM"

JAVA_HOME="/usr/java14"

# Call commEnv here AFTER setting the java_vendor to get common environmental settings.

. ${WL_HOME}/common/bin/commEnv.sh

# Set SERVER_NAME to the name of the server you wish to start up.

SERVER_NAME="myserver"

CLASSPATH="${WEBLOGIC_CLASSPATH}:${POINTBASE_CLASSPATH}:${JAVA_HOME}/jre/lib/rt.jar:${WL_HOME}/server/lib/webservices.jar:${CLASSPATH}"
export CLASSPATH

# Call WebLogic Server

echo "."
echo "CLASSPATH=${CLASSPATH}"
echo "."
echo "PATH=${PATH}"
echo "."
echo "***************************************************"
echo "* To start WebLogic Server, use a username and *"
echo "* password assigned to an admin-level user. For *"
echo "* server administration, use the WebLogic Server *"
echo "* console at http://[hostname]:[port]/console *"
echo "***************************************************"
export MEM_ARGS="-Xms1024m -Xmx1800m"
export IBM_JAVA_HEAPDUMP_TEXT=true
#export LDR_CNTRL=MAXDATA=0x20000000
export LDR_CNTRL=MAXDATA=0XD0000000@DSA
${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" weblogic.Server[color]

please do let me know if someone having wily8.1 with jdk1.4, i need too know where i declare my wily arguments like '-javaagent:${WL_HOME}/wily/Agent.jar -Dcom.wily.introscope.agentProfile=${WL_HOME}/wily/IntroscopeAgent.profile -Dcom.wily.introscope.agent.agentName=${SERVER_NAME}'.

Also what is the difference b/w -javaagent and Xbootclasspath/p. which one do i need to use?

Thanks,
Sbastine.

Outcomes