Unrecognized option of Weblogic startup error: – JRockit

Errors are reported as follows:

$ ./startWebLogic.sh 
.
.
JAVA Memory arguments: -Xms512m -Xmx512m
.
WLS Start Mode=Production
.
CLASSPATH=/app/weblogic/Oracle/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/app/weblogic/Oracle/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/app/weblogic/jdk1.7.0_79/lib/tools.jar:/app/weblogic/Oracle/wlserver_10.3/server/lib/weblogic_sp.jar:/app/weblogic/Oracle/wlserver_10.3/server/lib/weblogic.jar:/app/weblogic/Oracle/modules/features/weblogic.server.modules_10.3.3.0.jar:/app/weblogic/Oracle/wlserver_10.3/server/lib/webservices.jar:/app/weblogic/Oracle/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/app/weblogic/Oracle/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/app/weblogic/Oracle/wlserver_10.3/common/derby/lib/derbyclient.jar:/app/weblogic/Oracle/wlserver_10.3/server/lib/xqrl.jar:.:/root/jdk1.7/lib/dt.jar:/root/jdk1.7/lib/tools.jar:/root/jdk1.7/lib:/root/jdk1.7/jre/lib
.
PATH=/app/weblogic/Oracle/wlserver_10.3/server/bin:/app/weblogic/Oracle/modules/org.apache.ant_1.7.1/bin:/app/weblogic/jdk1.7.0_79/jre/bin:/app/weblogic/jdk1.7.0_79/bin:/app/weblogic/jdk1.7.0_79/bin:/root/jdk1.7/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/app/weblogic/bin:/app/weblogic/bin
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
Unrecognized option: -jrockit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Starting WLS with line:
/app/weblogic/jdk1.7.0_79/bin/java -jrockit   -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/app/weblogic/Oracle/wlserver_10.3/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true   -da -Dplatform.home=/app/weblogic/Oracle/wlserver_10.3 -Dwls.home=/app/weblogic/Oracle/wlserver_10.3/server -Dweblogic.home=/app/weblogic/Oracle/wlserver_10.3/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/app/weblogic/Oracle/patch_wls1033/profiles/default/sysext_manifest_classpath:/app/weblogic/Oracle/patch_ocp353/profiles/default/sysext_manifest_classpath  weblogic.Server
Unrecognized option: -jrockit
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Solution:

Enter ~/Oracle/wlserver_10.3/common/bin directory, edit the commonv.sh file, and

Oracle)
    JAVA_VM=-jrockit
    MEM_ARGS="-Xms128m -Xmx256m"
  ;;

Modified into

Oracle)
    JAVA_VM=-server
    MEM_ARGS="-Xms128m -Xmx256m"
  ;;

Then restart

 

Similar Posts: