在启动ConfigurationPersistenceException期间捕获到异常



环境:

  • Ubuntu 14.04
  • Netbeans 8.0.2
  • 野蝇8.2.1
  • JDK 1.8.0_60

我可以在没有错误的情况下进行构建,但当我尝试运行项目时,我会遇到这个错误,但我还没有任何持久性配置。

错误日志

11:47:56,871 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
11:47:57,070 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
11:47:57,144 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.2.1.Final "Tweek" starting
11:47:57,534 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:112)
    at org.jboss.as.server.ServerService.boot(ServerService.java:331)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:259)
    at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,1]
Message: Unexpected element '{urn:jboss:domain:3.0}server'
    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108)
    at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:104)
    ... 3 more
11:47:57,535 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
11:47:57,545 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015950: WildFly 8.2.1.Final "Tweek" stopped in 3ms

我该怎么解决这个问题?

您的服务器无法启动,因为您的服务器配置有问题。根据您的错误消息,您的配置从以下内容开始:

<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:3.0">
...

但据我所知,wildfly8.2.1支持2.2版的服务器配置,您的配置应该是这样的:

<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:2.2">
...

这怎么会发生?最有可能的是,您错误地配置了IDE或环境属性,所以Wildfly在错误的位置进行配置。检查JBOSS_HOME环境属性,在大多数情况下您不需要它,所以取消设置。

$ env | grep JBOSS_HOME

否则,请仔细查看Netbeans中的服务器配置。

相关内容

  • 没有找到相关文章

最新更新