java - Arquillian wildfly8.2 embedded : JBAS014670: Failed initializing module org.jboss.as.logging -


i'm trying set project uses arquillian kind of integration testing. went through tutorials can't test running. exception is:

cannot not load jboss logmanager. logmanager has been accessed prior initialization. jul 14, 2015 10:30:37 org.jboss.msc.service.servicecontainerimpl <clinit> info: jboss msc version 1.2.2.final jul 14, 2015 10:30:37 org.jboss.as.server.applicationserverservice start info: jbas015899: wildfly 8.2.0.final "tweek" starting jul 14, 2015 10:30:38 org.jboss.as.controller.abstractoperationcontext executestep error: jbas014612: operation ("parallel-extension-add") failed - address: ([]) java.lang.runtimeexception: jbas014670: failed initializing module org.jboss.as.logging     @ org.jboss.as.controller.extension.parallelextensionaddhandler$1.execute(parallelextensionaddhandler.java:111)     @ org.jboss.as.controller.abstractoperationcontext.executestep(abstractoperationcontext.java:660)     @ org.jboss.as.controller.abstractoperationcontext.docompletestep(abstractoperationcontext.java:501)     @ org.jboss.as.controller.abstractoperationcontext.completestepinternal(abstractoperationcontext.java:298)     @ org.jboss.as.controller.abstractoperationcontext.executeoperation(abstractoperationcontext.java:293)     @ org.jboss.as.controller.modelcontrollerimpl.boot(modelcontrollerimpl.java:324)     @ org.jboss.as.controller.abstractcontrollerservice.boot(abstractcontrollerservice.java:297)     @ org.jboss.as.server.serverservice.boot(serverservice.java:356)     @ org.jboss.as.server.serverservice.boot(serverservice.java:331)     @ org.jboss.as.controller.abstractcontrollerservice$1.run(abstractcontrollerservice.java:259)     @ java.lang.thread.run(unknown source) caused by: java.util.concurrent.executionexception: java.lang.illegalstateexception: jbas011592: logging subsystem requires log manager org.jboss.logmanager.logmanager. subsystem has not initialized , cannot used. use jboss log manager must add system property "java.util.logging.manager" , set "org.jboss.logmanager.logmanager"     @ java.util.concurrent.futuretask.report(unknown source)     @ java.util.concurrent.futuretask.get(unknown source)     @ org.jboss.as.controller.extension.parallelextensionaddhandler$1.execute(parallelextensionaddhandler.java:103)     ... 10 more caused by: java.lang.illegalstateexception: jbas011592: logging subsystem requires log manager org.jboss.logmanager.logmanager. subsystem has not initialized , cannot used. use jboss log manager must add system property "java.util.logging.manager" , set "org.jboss.logmanager.logmanager"     @ org.jboss.as.logging.loggingextension.initialize(loggingextension.java:122)     @ org.jboss.as.controller.extension.extensionaddhandler.initializeextension(extensionaddhandler.java:98)     @ org.jboss.as.controller.extension.parallelextensionaddhandler$extensioninitializetask.call(parallelextensionaddhandler.java:139)     @ org.jboss.as.controller.extension.parallelextensionaddhandler$extensioninitializetask.call(parallelextensionaddhandler.java:125)     @ java.util.concurrent.futuretask.run(unknown source)     @ java.util.concurrent.threadpoolexecutor.runworker(unknown source)     @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source)     @ java.lang.thread.run(unknown source)     @ org.jboss.threads.jbossthread.run(jbossthread.java:122)  jul 14, 2015 10:30:38 org.jboss.as.server.serverservice boot fatal: jbas015957: server boot has failed in unrecoverable manner; exiting. see previous messages details. 

my pom.xml looks this:

<?xml version="1.0" encoding="utf-8"?> <project xmlns="http://maven.apache.org/pom/4.0.0"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="         http://maven.apache.org/pom/4.0.0         http://maven.apache.org/xsd/maven-4.0.0.xsd">     <modelversion>4.0.0</modelversion>      <groupid>org.jboss.arquillian.examples</groupid>     <artifactid>arquillian-tutorial</artifactid>     <version>1.0.0-snapshot</version>     <packaging>jar</packaging>      <name>arquillian-tutorial</name>     <url>http://arquillian.org/guides/getting_started/</url>      <properties>         <project.build.sourceencoding>utf-8</project.build.sourceencoding>     </properties>      <build>         <plugins>             <plugin>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>2.3.2</version>                 <configuration>                     <source>1.8</source>                     <target>1.8</target>                 </configuration>             </plugin>             <plugin>                 <artifactid>maven-surefire-plugin</artifactid>                 <version>2.12</version>             </plugin>         </plugins>     </build>     <dependencymanagement>         <dependencies>             <dependency>                 <groupid>org.jboss.arquillian</groupid>                 <artifactid>arquillian-bom</artifactid>                 <version>1.1.8.final</version>                 <scope>import</scope>                 <type>pom</type>             </dependency>         </dependencies>     </dependencymanagement>     <dependencies>         <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>4.8.1</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>org.jboss.arquillian.junit</groupid>             <artifactid>arquillian-junit-container</artifactid>             <scope>test</scope>         </dependency>     </dependencies>     <profiles>         <profile>             <id>arquillian-wildfy82-embedded</id>             <activation>                 <activebydefault>true</activebydefault>             </activation>             <build>                 <plugins>                     <plugin>                         <artifactid>maven-dependency-plugin</artifactid>                         <version>2.8</version>                         <executions>                             <execution>                                 <id>unpack</id>                                 <phase>process-test-classes</phase>                                 <goals>                                     <goal>unpack</goal>                                 </goals>                                 <configuration>                                     <artifactitems>                                         <artifactitem>                                             <groupid>org.wildfly</groupid>                                             <artifactid>wildfly-dist</artifactid>                                             <version>8.2.0.final</version>                                             <type>zip</type>                                             <overwrite>false</overwrite>                                             <outputdirectory>target</outputdirectory>                                         </artifactitem>                                     </artifactitems>                                 </configuration>                             </execution>                         </executions>                     </plugin>                     <plugin>                         <artifactid>maven-surefire-plugin</artifactid>                         <version>2.18.1</version>                         <configuration>                             <!--forkmode>once</forkmode-->                             <forkcount>1</forkcount>                             <systempropertyvariables>                                 <jboss.home>${project.basedir}/target/wildfly-8.2.0.final</jboss.home>                                 <module.path>${project.basedir}/target/wildfly-8.2.0.final/modules</module.path>                                 <arquillian.launch>arquillian-wildfly-embedded</arquillian.launch>                             </systempropertyvariables>                             <redirecttestoutputtofile>false</redirecttestoutputtofile>                             <argline>-xmx512m -xx:maxpermsize=256m -djava.util.logging.manager=org.jboss.logmanager.logmanager -djboss.socket.binding.port-offset=100</argline>                         </configuration>                     </plugin>                 </plugins>             </build>             <dependencies>                 <dependency>                     <groupid>org.wildfly</groupid>                     <artifactid>wildfly-arquillian-container-embedded</artifactid>                     <version>8.2.0.final</version>                 </dependency>                 <dependency>                     <groupid>org.wildfly</groupid>                     <artifactid>wildfly-embedded</artifactid>                     <version>8.2.0.final</version>                 </dependency>             </dependencies>         </profile>     </profiles> </project> 

and arquillian.xml:

<?xml version="1.0" encoding="utf-8"?> <arquillian xmlns="http://jboss.org/schema/arquillian"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="         http://jboss.org/schema/arquillian         http://jboss.org/schema/arquillian/arquillian_1_0.xsd">      <container qualifier="wildfly-embedded" default="true">         <configuration>             <property name="jbosshome">target/wildfly-8.2.0.final</property>             <property name="modulepath">target/wildfly-8.2.0.final/modules</property>         </configuration>     </container>  </arquillian> 

for reason, maven eclipse settings not working: in eclipse: go jvm settings of unit test(s) want run,

right click on unit test file -->run -->run configuration -->junit -->arguments

and add below line in vm arguments section

-djava.util.logging.manager=org.jboss.logmanager.logmanager


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -