weblogic启动报错异常解决

今天有兄弟告诉我,测试环境突然AdminServer启动不了了,大家无法测试,查看日志如下:
starting weblogic with Java version: 
Starting WLS with line: 
/usr/java/jdk1.6.0_29/bin/java -server -Xms2048m -Xmx2048m -Xmn768m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError -verbose:gc -Xloggc:./logs/AdminServer_gc.out -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Dweblogic.threadpool.MinPoolSize=100 -Dweblogic.threadpool.MaxPoolSize=300 -Dweblogic.Name=AdminServer -Djava.security.policy=/tpsys/weblogic/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -Djava.security.egd=file:///dev/urandom -da -Dplatform.home=/tpsys/weblogic/wlserver_10.3 -Dwls.home=/tpsys/weblogic/wlserver_10.3/server -Dweblogic.home=/tpsys/weblogic/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/tpsys/weblogic/patch_wls1036/profiles/default/sysext_manifest_classpath:/tpsys/weblogic/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic.Server 
<Oct 26, 2016 4:11:35 PM CST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
<Oct 26, 2016 4:11:35 PM CST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
<Oct 26, 2016 4:11:36 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.4-b02 from Sun Microsystems Inc.> 
<Oct 26, 2016 4:11:37 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 > 
<Oct 26, 2016 4:11:40 PM CST> <Critical> <WebLogicServer> <BEA-000362> 
<Server failed. Reason: [Management:141266]Parsing Failure in config.xml: failed to find method MethodName{methodName='setCacheInAppDirectory', paramTypes=[boolean]} on class weblogic.management.configuration.AppDeploymentMBeanImpl> 
<Oct 26, 2016 4:11:40 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED> 

<Oct 26, 2016 4:11:40 PM CST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down> 
<Oct 26, 2016 4:11:40 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>  

看到这个问题,第一反应就是config.xml被谁玩坏了,先检查下再说

结果发现这个文件最后的编辑日期是一周之前的,那么不是这个问题?(开始怀疑自己的判断了)

先上oracle官方看看,嘿还真有这个问题的解释,原文如下:

BEA-000362> <Server failed. Reason: [Management:141266]Parsing Failure in config.xml: 
failed to find method MethodName{methodName='setCacheInAppDirectory', paramTypes=[boolean]} on class weblogic.management.configuration.AppDeploymentMBeanImpl>".

Apparently Weblogic was not happy with a config.xml file parameter and the config file was corrupted. After digging at the config.xml file we found out that for every deployment, a new <cache-in-app-directory> parameter was added to the config file. Also the recent change made by partner was  rolling back a PSU that was applied to their Weblogic Server. 

 

看来第一反应还是挺正确的,在config.xml中找到了,一个server中多了一个参数<cache-in-app-directory>,删除后启动服务,正常~

 

参考:https://blogs.oracle.com/imc/entry/admin_server_startup_fails_with

猜你喜欢

转载自yuan29346.iteye.com/blog/2333372