Weblogic 启动错误,异常如下:
<2014-11-20 下午03时49分56秒 CST> <Error> <Management> <BEA-141299> <An exception occurred during the registration of MBeans in the MBeanServer : java.lang.AssertionError: weblogic.management.provider.EditFailedException: java.io.IOException: [Management:141245]Schema validation error in C:\Users\wfzhang\.jdeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\config\config.xml. See the log for details. Schema validation can be disabled by starting the server with the command line option: -Dweblogic.configuration.schemaValidationEnabled=false..
java.lang.AssertionError: weblogic.management.provider.EditFailedException: java.io.IOException: [Management:141245]Schema validation error in C:\Users\{USER}\.jdeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\config\config.xml. See the log for details. Schema validation can be disabled by starting the server with the command line option: -Dweblogic.configuration.schemaValidationEnabled=false.
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService$SINGLETON.<init>(DomainRuntimeServerService.java:367)
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService$SINGLETON.getInstance(DomainRuntimeServerService.java:356)
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService.registerAllMBeans(DomainRuntimeServerService.java:206)
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService.access$100(DomainRuntimeServerService.java:65)
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService$1$1.run(DomainRuntimeServerService.java:301)
Truncated. see log file for complete stacktrace
Caused By: weblogic.management.provider.EditFailedException: java.io.IOException: [Management:141245]Schema validation error in C:\Users\{USER}\.jdeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\config\config.xml. See the log for details. Schema validation can be disabled by starting the server with the command line option: -Dweblogic.configuration.schemaValidationEnabled=false.
at weblogic.management.provider.internal.EditAccessImpl.ensureBeanTreeLoaded(EditAccessImpl.java:2174)
at weblogic.management.provider.internal.EditAccessImpl.getCurrentDomainBean(EditAccessImpl.java:252)
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService$SINGLETON.<init>(DomainRuntimeServerService.java:364)
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService$SINGLETON.getInstance(DomainRuntimeServerService.java:356)
at weblogic.management.mbeanservers.domainruntime.internal.DomainRuntimeServerService.registerAllMBeans(DomainRuntimeServerService.java:206)
set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.configuration.schemaValidationEnabled=false -Djava.util.logging.manager=oracle.core.ojdl.logging.ODLLogManager
set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%
set SAVE_CLASSPATH=%CLASSPATH%
保存,重启,异常消除。
另,如果在weblogic中配置了相应的Schema,则不会出现上述异常。