首页

配置Weblogic10的config.xml文件解决各种错误异常,导致weblogic无法正常启动

标签:weblogic,参考样例,EncryptionServiceException,InvocationTargetException,JSAFE_PaddingException,ClassNotFoundException,AssertionError,NoClassDefFoundError,ManagementException,DescriptorValidateException     发布时间:2016-07-19   

一、标准配置文档(user_project/domain/../config/config.xml)

<?xml version="1.0" encoding="UTF-8"?>@b@<domain xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd" xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">@b@  <name>base_domain2</name>@b@  <domain-version>10.3.5.0</domain-version>@b@  <security-configuration xmlns:xacml="http://xmlns.oracle.com/weblogic/security/xacml" xmlns:pas="http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator">@b@    <name>base_domain2</name>@b@    <realm>@b@      <sec:authentication-provider xsi:type="wls:default-authenticatorType"/>@b@      <sec:authentication-provider xsi:type="wls:default-identity-asserterType">@b@        <sec:active-type>AuthenticatedUser</sec:active-type>@b@      </sec:authentication-provider>@b@      <sec:role-mapper xsi:type="xacml:xacml-role-mapperType"/>@b@      <sec:authorizer xsi:type="xacml:xacml-authorizerType"/>@b@      <sec:adjudicator xsi:type="wls:default-adjudicatorType"/>@b@      <sec:credential-mapper xsi:type="wls:default-credential-mapperType"/>@b@      <sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"/>@b@      <sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>@b@      <sec:name>myrealm</sec:name>@b@      <sec:password-validator xsi:type="pas:system-password-validatorType">@b@        <sec:name>SystemPasswordValidator</sec:name>@b@        <pas:min-password-length>8</pas:min-password-length>@b@        <pas:min-numeric-or-special-characters>1</pas:min-numeric-or-special-characters>@b@      </sec:password-validator>@b@    </realm>@b@    <default-realm>myrealm</default-realm>@b@    <credential-encrypted>{AES}ObwCTiOOD20khk933WrL8GDsHxk34HuxlHs5/bc/lyh1rjNFfRRFjPC7geoHZ+cOsnFE6UjlV0/xMFyNS2+mlcFvoqITVBxrhSLvk4WHwpLy3nSawQvN5hxKXiAowNKE</credential-encrypted>@b@    <node-manager-username>weblogic</node-manager-username>@b@    <node-manager-password-encrypted>{AES}B2mtEB7eNgGp/Rp+HiE1ch5Lj+lYm4VmdtnOLgdyLNw=</node-manager-password-encrypted>@b@  </security-configuration>@b@  <server>@b@    <name>AdminServer</name>@b@    <listen-address/>@b@  </server>@b@  <embedded-ldap>@b@    <name>base_domain2</name>@b@    <credential-encrypted>{AES}HM4ftJ1q87FkExxA7jxas5dGY+gBaEG4iU8ofqRb9rRJsWBhvjoIDgQ9q7sd5/+O</credential-encrypted>@b@  </embedded-ldap>@b@  <configuration-version>10.3.5.0</configuration-version>@b@  <admin-server-name>AdminServer</admin-server-name>@b@</domain>

二、异常及解决方法

1.ClassNotFoundException异常,详情如下

<Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141266]Parsing Failure in config.xml: java.lang.AssertionError: java.lang.ClassNotFoundException: com.bea.wcp.sip.management.descriptor.beans.SipServerBean> @b@<Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED> @b@<Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down> @b@<Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

解决方法:去除config.xml中custom-resource节点

2.DescriptorValidateException异常,weblogic异常详情如下

<2016-7-8 下午06时34分04秒 CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: @b@@b@There are 1 nested errors:@b@@b@weblogic.management.ManagementException: [Management:141266]Parsing Failure in config.xml: The following failures occurred:@b@-- Unresolved reference to WseeJmsServer by [base_domain]/JMSSystemResources[WseeJmsModule]/SubDeployments[BEA_JMS_MODULE_SUBDEPLOYMENT_WSEEJMSServer]/Targets@b@-- Unresolved reference to WseeJaxwsJmsServer by [base_domain]/JMSSystemResources[WseeJaxwsJmsModule]/SubDeployments[WseeJaxwsJmsServerSub]/Targets@b@@b@	at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:127)@b@	at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:41)@b@	at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)@b@	at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)@b@	at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:881)@b@	at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:568)@b@	at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)@b@	at weblogic.Server.main(Server.java:71)@b@Caused by: weblogic.descriptor.DescriptorValidateException: The following failures occurred:@b@-- Unresolved reference to WseeJmsServer by [base_domain]/JMSSystemResources[WseeJmsModule]/SubDeployments[BEA_JMS_MODULE_SUBDEPLOYMENT_WSEEJMSServer]/Targets@b@-- Unresolved reference to WseeJaxwsJmsServer by [base_domain]/JMSSystemResources[WseeJaxwsJmsModule]/SubDeployments[WseeJaxwsJmsServerSub]/Targets@b@@b@	at weblogic.descriptor.internal.ReferenceManager.resolveReferences(ReferenceManager.java:310)@b@	at weblogic.descriptor.internal.DescriptorImpl.validate(DescriptorImpl.java:322)@b@	at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:332)@b@	at weblogic.management.provider.internal.DescriptorManagerHelper.loadDescriptor(DescriptorManagerHelper.java:68)@b@	at weblogic.management.provider.internal.RuntimeAccessImpl$IOHelperImpl.parseXML(RuntimeAccessImpl.java:690)@b@	at weblogic.management.provider.internal.RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:270)@b@	at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:115)@b@	... 7 more@b@>

解决方法:去除config.xml中server节点的子节点ssl

3.InvocationTargetException、JSAFE_PaddingException异常,详情如下

<Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: java.lang.reflect.InvocationTargetException@b@java.lang.AssertionError: java.lang.reflect.InvocationTargetException@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityProxy._invokeServiceMethod(DescriptorManager.java:175)@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityProxy.decrypt(DescriptorManager.java:192)@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl.decrypt(DescriptorManager.java:114)@b@	at weblogic.descriptor.internal.AbstractDescriptorBean._decrypt(AbstractDescriptorBean.java:1092)@b@	at weblogic.management.configuration.SecurityConfigurationMBeanImpl.getCredential(SecurityConfigurationMBeanImpl.java:736)@b@	Truncated. see log file for complete stacktrace@b@Caused By: java.lang.reflect.InvocationTargetException@b@	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)@b@	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)@b@	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)@b@	at java.lang.reflect.Method.invoke(Method.java:597)@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityProxy._invokeServiceMethod(DescriptorManager.java:173)@b@	Truncated. see log file for complete stacktrace@b@Caused By: weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:136)@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:184)@b@	at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96)@b@	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)@b@	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)@b@	Truncated. see log file for complete stacktrace@b@Caused By: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.@b@	at com.rsa.jsafe.c.a(Unknown Source)@b@	at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source)@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:124)@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:184)@b@	at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96)@b@	Truncated. see log file for complete stacktrace@b@>

解决方法:去除config.xml中file-store、saf-agent节点

4.ManagementException异常,详情如下

<Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: @b@There are 1 nested errors:@b@weblogic.management.ManagementException: There is an attempt to boot Admin Server. However Admin Server Name is not specified in config.xml Please fix your config.xml before starting the Admin Server@b@	at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:60)@b@	at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)@b@	at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)@b@	at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:881)@b@	at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:568)@b@	at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)@b@	at weblogic.Server.main(Server.java:71)@b@>

解决方法:参考标准配置

5.JSAFE_PaddingException异常,详情如下

<Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: java.lang.reflect.InvocationTargetException@b@java.lang.AssertionError: java.lang.reflect.InvocationTargetException@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityProxy._invokeServiceMethod(DescriptorManager.java:175)@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityProxy.decrypt(DescriptorManager.java:192)@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl.decrypt(DescriptorManager.java:114)@b@	at weblogic.descriptor.internal.AbstractDescriptorBean._decrypt(AbstractDescriptorBean.java:1092)@b@	at weblogic.management.configuration.SecurityConfigurationMBeanImpl.getCredential(SecurityConfigurationMBeanImpl.java:736)@b@	Truncated. see log file for complete stacktrace@b@Caused By: java.lang.reflect.InvocationTargetException@b@	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)@b@	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)@b@	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)@b@	at java.lang.reflect.Method.invoke(Method.java:597)@b@	at weblogic.descriptor.DescriptorManager$SecurityServiceImpl$SecurityProxy._invokeServiceMethod(DescriptorManager.java:173)@b@	Truncated. see log file for complete stacktrace@b@Caused By: weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:136)@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:184)@b@	at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96)@b@	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)@b@	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)@b@	Truncated. see log file for complete stacktrace@b@Caused By: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte.@b@	at com.rsa.jsafe.c.a(Unknown Source)@b@	at com.rsa.jsafe.JSAFE_SymmetricCipher.decryptFinal(Unknown Source)@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptBytes(JSafeEncryptionServiceImpl.java:124)@b@	at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.decryptString(JSafeEncryptionServiceImpl.java:184)@b@	at weblogic.security.internal.encryption.ClearOrEncryptedService.decrypt(ClearOrEncryptedService.java:96)@b@	Truncated. see log file for complete stacktrace@b@>

解决方法:参考标准配置

<<热门下载>>