![无法在 Oracle Weblogic 10.3.2 中启动托管服务器](https://linux22.com/image/508579/%E6%97%A0%E6%B3%95%E5%9C%A8%20Oracle%20Weblogic%2010.3.2%20%E4%B8%AD%E5%90%AF%E5%8A%A8%E6%89%98%E7%AE%A1%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
我安装了 Oracle SOA Suite 11g。
我成功启动了 NodeManager。
我成功启动了 AdminServer。当我启动 soa serve (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 &
你知道发生了什么吗?如果你需要更多信息,请直接询问。
提前致谢
答案1
我的节点管理器作为守护进程服务启动,并且 NODEMGR_HOME 变量也正确设置,但错误仍然相同。
对我来说,解决方案是使用附加参数至少运行托管服务器一次:
arg="参数=\" -Dweblogic.management.server=localhost:7001\"" prps=makePropertiesObject(参数) nmStart(托管服务器名称,props=prps)
Nodemanager 存储参数,下次简单就nmStart(ManagedServerName)
可以正常工作。
通过执行以下步骤(此操作只需执行一次即可)可以实现相同的结果(由 nodemanager 存储的附加参数):
- 1. 运行节点管理器
- 2. 运行管理服务器
- 3. 进入管理/控制台并从那里运行托管服务器
- 3.a(或 wlst:连接到管理员并运行管理)
但在这种情况下,你的域必须配置为使用该节点管理器
光盘('/') 创建(机器名称,'机器') cd('机器/' + 机器名称) 创建(MachineName,'NodeManager') cd('节点管理器/' + 机器名称) 设置('ListenAddress',MachineIP) 光盘('/') cd('服务器/' + 托管服务器名称) 设置('机器',Machine1Name)
答案2
问题是我从主目录运行 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