maven - ServerConfig is unsupported by arquillian -


using arquillian unittest , integration test of ejb in wilfly 8 application server. arquillian fails recognize property "serverconfig" choose server start configuration , missing in supported property names, starting configuration of "standalone.xml" in need run "standalone-full.xml", below warning capture while start test , supplied pom.xml , arquillian.xml, there dependency missing overcome this?

warning [org.jboss.arquillian.container.impl.mapobject] configuration contain properties not supported backing object org.jboss.as.arquillian.container.embedded.embeddedcontainerconfiguration unused property entries: {serverconfig=standalone-full.xml} supported property names: [managementaddress, modulepath, password, bundlepath, managementport, jbosshome, managementprotocol, cleanserverbasedir, username] 

arquillian.xml

<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" default="true">     <configuration>         <property name="jbosshome">d:/wildfly-8.1.0.final</property>         <property name="modulepath">d:/wildfly-8.1.0.final/modules</property>         <property name="serverconfig">standalone-full.xml</property>     </configuration> </container> 

pom.xml

<?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>com.mycompany</groupid> <artifactid>ejbtest</artifactid> <version>1.0-snapshot</version> <packaging>ejb</packaging>  <name>ejbtest</name>  <properties>     <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>     <project.build.sourceencoding>utf-8</project.build.sourceencoding>     <junit-version>4.11</junit-version>     <arquillian-version>1.1.4.final</arquillian-version>     <arquillian-wildfly-version>8.1.0.cr2</arquillian-wildfly-version>     <arquillian-transaction-version>1.0.1.final</arquillian-transaction-version> </properties> <dependencymanagement>     <dependencies>         <dependency>             <groupid>javax</groupid>             <artifactid>javaee-api</artifactid>             <version>${javaee-api-version}</version>         </dependency>         <!-- -junit-->         <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>${junit-version}</version>         </dependency>         <!-- rquillian itself-->         <dependency>             <groupid>org.jboss.arquillian</groupid>             <artifactid>arquillian-bom</artifactid>             <version>${arquillian-version}</version>             <scope>import</scope>             <type>pom</type>         </dependency>         <!-- in extention arquillian optional-->         <dependency>             <groupid>org.jboss.arquillian.extension</groupid>             <artifactid>arquillian-transaction-bom</artifactid>             <version>${arquillian-transaction-version}</version>             <type>pom</type>             <scope>import</scope>         </dependency>         <!-- container adapter wildfly-->         <dependency>             <groupid>org.wildfly</groupid>             <artifactid>wildfly-arquillian-container-embedded</artifactid>             <version>${arquillian-wildfly-version}</version>         </dependency>          <!-- wildfly emb.container - not blown emb.container-->         <dependency>             <groupid>org.wildfly</groupid>             <artifactid>wildfly-embedded</artifactid>                             <version>${arquillian-wildfly-version}</version>         </dependency>     </dependencies> </dependencymanagement>  <dependencies>     <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>4.10</version>         <scope>test</scope>     </dependency>     <dependency>         <groupid>javax</groupid>         <artifactid>javaee-api</artifactid>         <version>7.0</version>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.jboss.arquillian.junit</groupid>         <artifactid>arquillian-junit-container</artifactid>         <scope>test</scope>     </dependency>      <dependency>         <groupid>org.wildfly</groupid>         <artifactid>wildfly-arquillian-container-embedded</artifactid>         <scope>test</scope>     </dependency>      <dependency>         <groupid>org.wildfly</groupid>         <artifactid>wildfly-embedded</artifactid>         <scope>test</scope>     </dependency>      <dependency>         <groupid>org.jboss.arquillian.extension</groupid>         <artifactid>arquillian-transaction-jta</artifactid>         <scope>test</scope>     </dependency>    </dependencies>  <build>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>3.1</version>             <configuration>                 <source>1.7</source>                 <target>1.7</target>                 <compilerarguments>                     <endorseddirs>${endorsed.dir}</endorseddirs>                 </compilerarguments>             </configuration>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-ejb-plugin</artifactid>             <version>2.3</version>             <configuration>                 <ejbversion>3.1</ejbversion>             </configuration>         </plugin>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-dependency-plugin</artifactid>             <version>2.6</version>             <executions>                 <execution>                     <phase>validate</phase>                     <goals>                         <goal>copy</goal>                     </goals>                     <configuration>                         <outputdirectory>${endorsed.dir}</outputdirectory>                         <silent>true</silent>                         <artifactitems>                             <artifactitem>                                 <groupid>javax</groupid>                                 <artifactid>javaee-endorsed-api</artifactid>                                 <version>7.0</version>                                 <type>jar</type>                             </artifactitem>                         </artifactitems>                     </configuration>                 </execution>             </executions>         </plugin>         <plugin>             <artifactid>maven-dependency-plugin</artifactid>             <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.1.0.final</version>                                 <type>zip</type>                                 <overwrite>false</overwrite>                                 <outputdirectory>target</outputdirectory>                             </artifactitem>                         </artifactitems>                     </configuration>                 </execution>             </executions>         </plugin>          <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-surefire-plugin</artifactid>             <configuration>                 <!-- fork every test because launch separate instance -->                 <forkmode>always</forkmode>                 <systempropertyvariables>                     <java.util.logging.manager>org.jboss.logmanager.logmanager</java.util.logging.manager>                     <!--                     <jboss.home>${project.basedir}/target/wildfly-8.1.0.final</jboss.home>                     <module.path>${project.basedir}/target/wildfly-8.1.0.final/modules</module.path>                     -->                 </systempropertyvariables>                 <redirecttestoutputtofile>false</redirecttestoutputtofile>             </configuration>         </plugin>     </plugins> </build> 

solution

replaced dependency artifact id

<artifactid>wildfly-arquillian-container-embedded</artifactid> 

with

<artifactid>wildfly-arquillian-container-managed</artifactid> 

on closer examination, you're using embedded wildfly:

       <!-- container adapter wildfly-->     <dependency>         <groupid>org.wildfly</groupid>         <artifactid>wildfly-arquillian-container-embedded</artifactid>         <version>${arquillian-wildfly-version}</version>     </dependency>      <!-- wildfly emb.container - not blown emb.container-->     <dependency>         <groupid>org.wildfly</groupid>         <artifactid>wildfly-embedded</artifactid>                         <version>${arquillian-wildfly-version}</version>     </dependency> 

you should using either managed or remote if want use full profile.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -