无法启动WebLogic 之 Unrecognized option: -jrockit

    当你试着启动WebLogic时(假设已经创建了名称为web_domain的域,我的目录路径 H:\Oracle\Middleware\user_projects\domains\web_domain),双击startWebLogic.cmd(Linux 是 startWebLogic.sh)。

    如果出现了此图,或者控制台出现后马上消失的情况(可以在bin目录里下的startWebLogic.cmd里任意行加上pause>nul进行调试排错)



------------------------------------------------------------------------------------------------------------------------------------------------


    如果出现上述问题,是因为从Oracle公司下载JDK的java命令不含-jrockit参数命令。

   而WebLogic自带的jrockit里的java命令则含有该参数。

    解决办法是在安装WebLogic时指定JDK时选择jrockit,并且在创建域时选择jrockit。

    关键步骤截图:

安装 WebLogic时 在JDK选择界面绑定Oracle Jrockit 1.*_*_** SDK


无法启动WebLogic 之 Unrecognized option: -jrockit_第1张图片


创建域时选择Oracle JRockit SDK


无法启动WebLogic 之 Unrecognized option: -jrockit_第2张图片


然后在自己建的域里找到(我的在 H:\Oracle\Middleware\user_projects\domains\web_domain)startWebLogic.cmd


运行情况:

.
.
JAVA Memory arguments: -Xms512m -Xmx512m
.
WLS Start Mode=Development
.
CLASSPATH=h:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpa
th\weblogic_patch.jar;h:\Oracle\MIDDLE~1\patch_ocp353\profiles\default\sys_manif
est_classpath\weblogic_patch.jar;h:\Oracle\MIDDLE~1\JROCKI~1.0-6\lib\tools.jar;H
:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;H:\Oracle\MIDDLE~1\WLSER
V~1.3\server\lib\weblogic.jar;h:\Oracle\MIDDLE~1\modules\features\weblogic.serve
r.modules_10.3.3.0.jar;H:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;
h:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;h:\Oracle\MIDDLE~1\modules
\NETSFA~1.0_1/lib/ant-contrib.jar;H:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib
\derbyclient.jar;H:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
.
PATH=h:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;h:\Oracle\MIDDLE~1
\patch_ocp353\profiles\default\native;H:\Oracle\MIDDLE~1\WLSERV~1.3\server\nativ
e\win\32;H:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;h:\Oracle\MIDDLE~1\modules\ORG
APA~1.1\bin;h:\Oracle\MIDDLE~1\JROCKI~1.0-6\jre\bin;h:\Oracle\MIDDLE~1\JROCKI~1.
0-6\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\Syste
m32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_07\bin;h:\Program Fil
es\Tencent\QQPCMgr\6.8.2396.401;H:\android-sdk\tools;H:\Oracle\MIDDLE~1\WLSERV~1
.3\server\native\win\32\oci920_8
.
***************************************************
*  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:
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Oracle JRockit(R) (build R28.0.0-679-130297-1.6.0_17-20100312-2123-windows-ia32,
 compiled mode)
Starting WLS with line:
h:\Oracle\MIDDLE~1\JROCKI~1.0-6\bin\java -jrockit   -Xms512m -Xmx512m -Dweblogic
.Name=AdminServer -Djava.security.policy=H:\Oracle\MIDDLE~1\WLSERV~1.3\server\li
b\weblogic.policy  -Xverify:none  -da -Dplatform.home=H:\Oracle\MIDDLE~1\WLSERV~
1.3 -Dwls.home=H:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=H:\Oracle\MI
DDLE~1\WLSERV~1.3\server   -Dweblogic.management.discover=true  -Dwlw.iterativeD
ev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=h:\Oracle\M
IDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath;h:\Oracle\MIDDL
E~1\patch_ocp353\profiles\default\sysext_manifest_classpath  weblogic.Server
<2012-9-17 下午01时50分18秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting
WebLogic Server with Oracle JRockit(R) Version R28.0.0-679-130297-1.6.0_17-20100
312-2123-windows-ia32 from Oracle Corporation>
<2012-9-17 下午01时50分20秒 CST> <Info> <Management> <BEA-141107> <Version: WebL
ogic Server 10.3.3.0  Fri Apr 9 00:05:28 PDT 2010 1321401 >
<2012-9-17 下午01时50分23秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to STARTING>
<2012-9-17 下午01时50分23秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing
 self-tuning thread pool>
<2012-9-17 下午01时50分25秒 CST> <Notice> <LoggingService> <BEA-320400> <The log
 file H:\Oracle\Middleware\user_projects\domains\web_domain\servers\AdminServer\
logs\AdminServer.log will be rotated. Reopen the log file if tailing has stopped
. This can happen on some platforms like Windows.>
<2012-9-17 下午01时50分25秒 CST> <Notice> <LoggingService> <BEA-320401> <The log
 file has been rotated to H:\Oracle\Middleware\user_projects\domains\web_domain\
servers\AdminServer\logs\AdminServer.log00001. Log messages will continue to be
logged in H:\Oracle\Middleware\user_projects\domains\web_domain\servers\AdminSer
ver\logs\AdminServer.log.>
<2012-9-17 下午01时50分25秒 CST> <Notice> <Log Management> <BEA-170019> <The ser
ver log file H:\Oracle\Middleware\user_projects\domains\web_domain\servers\Admin
Server\logs\AdminServer.log is opened. All server side log events will be writte
n to this file.>
<2012-9-17 下午01时50分31秒 CST> <Notice> <Security> <BEA-090082> <Security init
ializing using security realm myrealm.>
<2012-9-17 下午01时50分40秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to STANDBY>
<2012-9-17 下午01时50分40秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to STARTING>
<2012-9-17 下午01时50分41秒 CST> <Notice> <LoggingService> <BEA-320400> <The log
 file H:\Oracle\Middleware\user_projects\domains\web_domain\servers\AdminServer\
logs\web_domain.log will be rotated. Reopen the log file if tailing has stopped.
 This can happen on some platforms like Windows.>
<2012-9-17 下午01时50分41秒 CST> <Notice> <LoggingService> <BEA-320401> <The log
 file has been rotated to H:\Oracle\Middleware\user_projects\domains\web_domain\
servers\AdminServer\logs\web_domain.log00001. Log messages will continue to be l
ogged in H:\Oracle\Middleware\user_projects\domains\web_domain\servers\AdminServ
er\logs\web_domain.log.>
<2012-9-17 下午01时50分41秒 CST> <Notice> <Log Management> <BEA-170027> <The Ser
ver has established connection with the Domain level Diagnostic Service successf
ully.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to ADMIN>
<2012-9-17 下午01时50分42秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to RESUMING>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[3]" is now listening on 172.22.32.78:7001 for protocols iiop, t3, ldap, snmp,
http.>
<2012-9-17 下午01时50分42秒 CST> <Warning> <Server> <BEA-002611> <Hostname "tsw-
PC", maps to multiple IP addresses: 115.200.45.216, 172.22.32.78, fe80:0:0:0:351
e:f23d:544c:20e%11, fe80:0:0:0:10b4:cb1:8c37:d227%22, 2002:73c8:2dd8:0:0:0:73c8:
2dd8, 2001:0:9d38:6ab8:10b4:cb1:8c37:d227>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[4]" is now listening on fe80:0:0:0:200:5efe:73c8:2dd8:7001 for protocols iiop,
 t3, ldap, snmp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[6]" is now listening on fe80:0:0:0:0:5efe:ac16:204e:7001 for protocols iiop, t
3, ldap, snmp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[5]" is now listening on fe80:0:0:0:10b4:cb1:8c37:d227:7001 for protocols iiop,
 t3, ldap, snmp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[1]" is now listening on 2001:0:9d38:6ab8:10b4:cb1:8c37:d227:7001 for protocols
 iiop, t3, ldap, snmp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[10]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, sn
mp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[2]" is now listening on 2002:73c8:2dd8:0:0:0:73c8:2dd8:7001 for protocols iiop
, t3, ldap, snmp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[7]" is now listening on fe80:0:0:0:9570:597f:3c04:af2e:7001 for protocols iiop
, t3, ldap, snmp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[9]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, htt
p.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t" is now listening on 115.200.45.216:7001 for protocols iiop, t3, ldap, snmp, h
ttp.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <Server> <BEA-002613> <Channel "Defaul
t[8]" is now listening on fe80:0:0:0:351e:f23d:544c:20e:7001 for protocols iiop,
 t3, ldap, snmp, http.>
<2012-9-17 下午01时50分42秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started
 WebLogic Admin Server "AdminServer" for domain "web_domain" running in Developm
ent Mode>
<2012-9-17 下午01时50分42秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server
state changed to RUNNING>
<2012-9-17 下午01时50分42秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server
started in RUNNING mode>


备注-------------------------------------------------------------------


可在开始菜单目录里找到 Configuration Wizard创建域

无法启动WebLogic 之 Unrecognized option: -jrockit_第3张图片

问题关键在setDomainEnv.cmd


set WL_HOME=H:\Oracle\Middleware\wlserver_10.3
for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi

set BEA_JAVA_HOME=h:\Oracle\Middleware\jrockit_160_17_R28.0.0-679

set SUN_JAVA_HOME=h:\Oracle\Middleware\jdk160_18

if "%JAVA_VENDOR%"=="Oracle" (
	set JAVA_HOME=%BEA_JAVA_HOME%
) else (
	if "%JAVA_VENDOR%"=="Sun" (
		set JAVA_HOME=%SUN_JAVA_HOME%
	) else (
		set JAVA_VENDOR=Oracle
		set JAVA_HOME=h:\Oracle\Middleware\jrockit_160_17_R28.0.0-679
	)
)

相关Blog:   点击打开链接


你可能感兴趣的:(java,oracle,server,weblogic,domain,protocols)