java - Capedwarf: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,1] -
i'm trying run application in debug mode described in debuggin application in wildfly eclipseand jboss tools - debugging externally launched wildfly but, when execute ./standalone.sh --debug --server-config=standalone.xml command, error:
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
========================================================================= listening transport dt_socket @ address: 8787 11:11:47,210 info [org.jboss.modules] (main) jboss modules version 1.3.3.final 11:11:47,415 info [org.jboss.msc] (main) jboss msc version 1.2.2.final 11:11:47,490 info [org.jboss.as] (msc service thread 1-8) jbas015899: jboss capedwarf 2.0.1.final (wildfly 8.1.0.cr1) starting 11:11:47,812 error [org.jboss.as.server] (controller boot thread) jbas015956: caught exception during boot: org.jboss.as.controller.persistence.configurationpersistenceexception: jbas014676: failed parse configuration @ 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] caused by: javax.xml.stream.xmlstreamexception: parseerror @ [row,col]:[3,1] message: unexpected element '{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 more 11:11:47,814 fatal [org.jboss.as.server] (controller boot thread) jbas015957: server boot has failed in unrecoverable manner; exiting. see previous messages details.
i understan error in standalone.xml @ [row,col]:[3,1] don't know wrong. below .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
could me? thanks.
how using / building capedwarf extension?
as see you're using upstream master -- (unfortunately) never released 2.0.1.final ... :-(
since capedwarf-jboss-as using wf 8.2.1.final: https://github.com/capedwarf/capedwarf-jboss-as/blob/master/pom.xml#l57
i suggest use capedwarf 2.0.0.final official download.
and if still have issues, let me know, , i'll try new release fixes. ;-)
Comments
Post a Comment