gpt4 book ai didi

java - Capedwarf:javax.xml.stream.XMLStreamException:[行,列]处的ParseError:[3,1]

转载 作者:行者123 更新时间:2023-12-01 09:16:53 25 4
gpt4 key购买 nike

我正在尝试在 Debug模式下运行我的应用程序,如 Debuggin an application in Wildfly with Eclipse 中所述。和 JBoss Tools - Debugging an Externally launched WildFly但是,当我执行 ./standalone.sh --debug --server-config=standalone.xml 命令时,我收到此错误:

user@user:~/wildfly-8.1.0.CR1/bin$ ./standalone.sh --debug --server-config=standalone-capedwaf-modules.xml

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /home/giacomo/wildfly-8.1.0.CR1

JAVA: java

JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n

================================================== ========================= 监听传输 dt_socket 地址:8787 11:11:47,210 INFO [org.jboss.modules](主要)JBoss 模块版本 1.3.3.Final 11:11:47,415 INFO [org.jboss.msc](主要)JBoss MSC 版本 1.2.2.Final 11:11:47,490 INFO [org.jboss.as](MSC 服务线程 1-8)JBAS015899:JBoss Capedwarf 2.0.1.Final(WildFly 8.1.0.CR1)开始 11:11:47,812 错误 [org.jboss.as.server]( Controller 启动线程) JBAS015956:启动期间捕获异常: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676:无法解析配置 org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:112) [wildfly-controller-8.1.0.CR1.jar:8.1.0.CR1] 在 org.jboss.as.server.ServerService.boot(ServerService.java:331) [wildfly-server-8.1.0.CR1.jar:8.1.0.CR1] 在 org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:256) [wildfly-controller-8.1.0.CR1.jar:8.1.0.CR1] 在 java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80] 原因: javax.xml.stream.XMLStreamException:[行,列]处的解析错误:[3,1] 消息:意外元素“{urn:jboss:domain:2.2}server”位于 org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108) [staxmapper-1.1.0.Final.jar:1.1.0.Final] 在 org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final] 在 org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:104) [wildfly-controller-8.1.0.CR1.jar:8.1.0.CR1] ... 3 个以上 11:11:47,814 FATAL [org.jboss.as.server]( Controller 启动线程)JBAS015957:服务器启动以不可恢复的方式失败; 退出。有关详细信息,请参阅之前的消息。

我知道错误出现在我的standalone.xml 的[row,col]:[3,1] 处,但我不知道出了什么问题。在我的 .xml 下方:

<?xml version='1.0' encoding='UTF-8'?>

<server xmlns="urn:jboss:domain:2.1">

<extensions>
<extension module="org.jboss.as.capedwarf"/>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.clustering.jgroups"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jaxrs"/>
<extension module="org.jboss.as.jmx"/>
<extension module="org.jboss.as.jpa"/>
<extension module="org.jboss.as.jsf"/>
<extension module="org.jboss.as.logging"/>
<extension module="org.jboss.as.mail"/>
<extension module="org.jboss.as.messaging"/>
<extension module="org.jboss.as.naming"/>
<extension module="org.jboss.as.remoting"/>
<extension module="org.jboss.as.security"/>
<extension module="org.jboss.as.transactions"/>
<extension module="org.jboss.as.weld"/>
<extension module="org.wildfly.extension.io"/>
<extension module="org.wildfly.extension.undertow"/>
</extensions>





<management>
<security-realms>
<security-realm name="ManagementRealm">
<authentication>
<local default-user="$local"/>
<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization map-groups-to-roles="false">
<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
<security-realm name="ApplicationRealm">
<authentication>
<local default-user="$local" allowed-users="*"/>
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
<authorization>
<properties path="application-roles.properties" relative-to="jboss.server.config.dir"/>
</authorization>
</security-realm>
</security-realms>
<management-interfaces>
<native-interface security-realm="ManagementRealm">
<socket-binding native="management-native"/>
</native-interface>
<http-interface security-realm="ManagementRealm" http-upgrade-enabled="true">
<socket-binding http="management-http"/>
</http-interface>
</management-interfaces>
</management>



<profile>
<subsystem xmlns="urn:jboss:domain:capedwarf:1.0"/>
<subsystem xmlns="urn:jboss:domain:logging:2.0">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
</subsystem>
<subsystem xmlns="urn:jboss:domain:datasources:2.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS"

enabled="true" use-java-context="true"> jdbc:h2:mem:test;DB_CLOSE_DELAY=-1 h2 sa sa org.h2.jdbcx.JdbcDataSource false true

你能帮我吗?谢谢。

最佳答案

您的命令行中有一个拼写错误:

./standalone.sh --debug --server-config=standalone-capedwaf-modules.xml

capedwaf 应该是 capedwarf

关于java - Capedwarf:javax.xml.stream.XMLStreamException:[行,列]处的ParseError:[3,1],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40485446/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com