Oracle-11g

無法在 Oracle Weblogic 10.3.2 中啟動託管伺服器

  • December 28, 2010

我安裝了 Oracle SOA 套件 11g。

我成功啟動了 NodeManager。

我成功啟動了 AdminServer。當我啟動 soa 服務 (soa_server1) 時,我得到以下輸出:

NMProcess: <Mar 15, 2010 3:33:30 PM> <WARNING> <Exception while starting server 'soa_server1'>  
NMProcess: java.io.IOException: Server failed to start up. See server output log for more details.  
NMProcess:      at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)    
NMProcess:      at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)  
NMProcess:      at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:116)  
NMProcess:      at weblogic.nodemanager.server.Handler.run(Handler.java:70)  
NMProcess:      at java.lang.Thread.run(Thread.java:619)  
NMProcess:
NMProcess: Mar 15, 2010 3:33:30 PM weblogic.nodemanager.server.Handler handleStart  
NMProcess: WARNING: Exception while starting server 'soa_server1'  
NMProcess: java.io.IOException: Server failed to start up. See server output log for more details.  
NMProcess:      at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)  
NMProcess:      at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)  
NMProcess:      at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:116)  
NMProcess:      at weblogic.nodemanager.server.Handler.run(Handler.java:70)   
NMProcess:      at java.lang.Thread.run(Thread.java:619)  
Error Starting server soa_server1: weblogic.nodemanager.NMException: Exception while starting server 'soa_server1'  

在日誌文件中我有這個:

<Mar 15, 2010 3:33:27 PM> <INFO> <NodeManager> <Starting WebLogic server with command line: /usr/java/jdk1.6.0_18/jre/bin/java -Dweblogic.Name=soa_server1 -Djava.security.policy=null -Djava.library.path="/usr/java/jdk1.6.0_18/jre/lib/amd64 server:/usr/java/jdk1.6.0_18/jre/lib/amd64:/usr/java/jdk1.6.0_18/jre/../lib/amd64:/u01/app/oracle/product/11.1.1/mw/patch_wls1032/profiles/default/native:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/native/linux/x86_64:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/native/linux/x86_64/oci920_8:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib" -Djava.class.path=/usr/java/jdk1.6.0_18/jre/lib/rt.jar:/usr/java/jdk1.6.0_18/jre/lib/i18n.jar:/u01/app/oracle/product/11.1.1/mw/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/jdk1.6.0_18/lib/tools.jar:/u01/app/oracle/product/11.1.1/mw/utils/config/10.3/config-launch.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/product/11.1.1/mw/modules/features/weblogic.server.modules_10.3.2.0.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/product/11.1.1/mw/modules/org.apache.ant_1.7.0/lib/ant-all.jar:/u01/app/oracle/product/11.1.1/mw/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/eval/pointbase/lib/pbembedded57.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/eval/pointbase/lib/pbtools57.jar -Dweblogic.nodemanager.ServiceEnabled=true weblogic.Server >  
<Mar 15, 2010 3:33:27 PM> <INFO> <NodeManager> <Working directory is '/u01/app/oracle/user_projects/domains/soa_domain2'>  
<Mar 15, 2010 3:33:27 PM> <INFO> <NodeManager> <Server output log file is '/u01/app/oracle/user_projects/domains/soa_domain2/servers/soa_server1/logs/soa_server1.out'>  
<Mar 15, 2010 3:33:28 PM ART> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 16.0-b13 from Sun Microsystems Inc.>  
<Mar 15, 2010 3:33:28 PM ART> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.2.0  Tue Oct 20 12:16:15 PDT 2009 1267925 >  
<Mar 15, 2010 3:33:30 PM ART> <Info> <Security> <BEA-090065> <Getting boot identity from user.>  
Enter username to boot WebLogic server:Enter password to boot WebLogic server:  
<Mar 15, 2010 3:33:30 PM ART> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:  

There are 1 nested errors:  

weblogic.management.ManagementException: Booting as admin server, but servername, soa_server1, does not match the admin server name, AdminServer  
   at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:67)  
   at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)  
   at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)  
   at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:749)  
   at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:488)  
   at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)  
   at weblogic.Server.main(Server.java:67)  

>  
<Mar 15, 2010 3:33:30 PM ART> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>  
<Mar 15, 2010 3:33:30 PM ART> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>  
<Mar 15, 2010 3:33:30 PM ART> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>  
<Mar 15, 2010 3:33:30 PM> <FINEST> <NodeManager> <Waiting for the process to die: 31144>  
<Mar 15, 2010 3:33:30 PM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>  
<Mar 15, 2010 3:33:30 PM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>  

啟動伺服器的命令和每個結果是:

$wlst.sh  
>startNodeManager()  
Successfully started  
>nmConnect(......)  
Successfully connected  
>nmStart('AdminServer')  
Successfully started  
>nmStart('soa_server1')  
Given error...  

當我使用腳本啟動伺服器時,它可以正常工作:

$nohup $WL_HOME/server/bin/startNodeManager.sh > nodemanager.out &  
$nohup $MW_HOME/user_projects/domains/soa_domain/startWebLogic.sh > adminserver.out &  
$nohup $MW_HOME/user_projects/domains/soa_domain/bin/startManagedServer.sh soa_server > soa_server.out &    

你有什麼線索嗎?如果您需要更多資訊,請索取。

提前致謝

問題是我從我的主目錄執行 wlst.sh。wlst.sh 必須從 $WL_HOME/common/nodemanager 目錄執行,因為它使用目前目錄中的 nodemanager.properties。

解決我的問題的 nodemanager.properties 如下所示:

DomainsFile=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager/nodemanager.domains  
LogLimit=0  
PropertiesVersion=10.3  
AuthenticationEnabled=true  
NodeManagerHome=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager  
JavaHome=/u01/app/oracle/jrmc-3.1.2-1.6.0/jre  
#JavaHome=/usr/java/jdk1.6.0_18  
#LogLevel=INFO  
DomainsFileEnabled=true  
StartScriptName=startWebLogic.sh  
ListenAddress=  
NativeVersionEnabled=true  
ListenPort=5556  
LogToStderr=true  
SecureListener=true  
LogCount=1  
StopScriptEnabled=false  
QuitEnabled=false  
#LogAppend=true  
LogAppend=false  
StateCheckInterval=500  
#CrashRecoveryEnabled=false  
CrashRecoveryEnabled=true  
StartScriptEnabled=true  
LogFile=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager/nodemanager.log  
LogFormatter=weblogic.nodemanager.server.LogFormatter  
ListenBacklog=50  

引用自:https://serverfault.com/questions/122741