Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wildfly: Unexpected element '{urn:jboss:domain:4.2}server'

Error:

17:42:50,333 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
17:42:50,732 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
    at org.jboss.as.server.ServerService.boot(ServerService.java:356)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
    at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1]
Message: Unexpected element '{urn:jboss:domain:4.2}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:123)
    ... 3 more

17:42:50,733 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.

I'm getting this error from the beginning of my standalone-full.xml. I've used an xml validator on the file and its syntax is correct. I assume it's a problem with my environment.

like image 206
0xCA2 Avatar asked Nov 28 '25 11:11

0xCA2


2 Answers

The 4.2 version of the server URN is for WildFly 10.1.0.Final. It looks like you're using WildFly 10.0.0.Final. You'd need to use version 4.0 of the URN or upgrade your WildFly server to 10.1.0.Final.

like image 147
James R. Perkins Avatar answered Dec 01 '25 19:12

James R. Perkins


Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[2,1] Message: Unexpected element '{urn:jboss:domain:4.2}server'

Remove server from {urn:jboss:domain:4.2}server line number 2 in standalone-full.xml and try to start server.

like image 27
Varsha Avatar answered Dec 01 '25 20:12

Varsha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!