当前位置:   article > 正文

java.io.IOException: [Management:141245]Schema validation error 的解决方法_schema validation can be disabled by starting the

schema validation can be disabled by starting the server with the command li

Weblogic 启动错误,异常如下:

<2014-11-20 下午034956秒 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)

打开依次找到domain\bin,找到StartWeblogic.cmd,在JAVA_OPTION中添加 -Dweblogic.configuration.schemaValidationEnabled=false

  1. set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.configuration.schemaValidationEnabled=false -Djava.util.logging.manager=oracle.core.ojdl.logging.ODLLogManager
  2. set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%
  3. set SAVE_CLASSPATH=%CLASSPATH%
保存,重启,异常消除。

另,如果在weblogic中配置了相应的Schema,则不会出现上述异常。



声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号