码迷,mamicode.com
首页 > Web开发 > 详细

weblogic启动报错之Unrecognized option: -jrockit

时间:2015-07-15 12:45:13      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:

报错如下:

$ ./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.

解决办法:

进入~/Oracle/wlserver_10.3/common/bin目录,编辑commEnv.sh文件,将

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

修改成

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

然后重新启动。

 

weblogic启动报错之Unrecognized option: -jrockit

标签:

原文地址:http://www.cnblogs.com/Eivll0m/p/4647696.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!