That workaround did the trick. My arquillian.xml file is...
<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="tomee" default="true">
<configuration>
<property name="httpPort">19876</property>
<property name="stopPort">19875</property>
<property name="version">1.5.1</property>
<property name="classifier">plus</property>
<property
name="properties">openejb.provider.default=org.apache.tomee</property>
</configuration>
</container>
</arquillian>
and now my test cases work using tomee-embeded!
I managed to reduce my pom.xml dependencies slightly. Note that i needed to
explicitly include tomee-jaxrs to get jaxrs services enabled. For
tomee-embedded is seems that the tomee.classifier property is not used. My
pom.xml is now...
<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>
<parent>
<groupId>com.thc.lc</groupId>
<artifactId>lemonade-cloud-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>lemonade-cloud-app</artifactId>
<packaging>war</packaging>
<name>lemonade-cloud-app</name>
<description>The actual web application. This project would contain all
the
html, jsp and javascript. This would be deployed by the application
container (tomee, glassfish, weblogic etc) and make use of the servlets and
jax-rs classes in the lemonade-cloud-web layer.</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<openejb.version>4.5.1</openejb.version>
<tomee.version>1.5.1</tomee.version>
<tomee.classifier>plus</tomee.classifier>
<arquillian.version>1.0.3.Final</arquillian.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.0.3.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.thc.lc</groupId>
<artifactId>lemonade-cloud-web</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>2.6.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>arquillian-tomee-embedded</artifactId>
<version>${tomee.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>tomee-jaxrs</artifactId>
<version>${tomee.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>LemonadeCloud</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<systemPropertyValues>
<tomee.classifier>${tomee.classifier}</tomee.classifier>
<tomee.version>${tomee.version}</tomee.version>
</systemPropertyValues>
</configuration>
<executions>
<execution>
<id>surefire-it</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<systemPropertyValues>
<tomee.classifier>${tomee.classifier}</tomee.classifier>
<tomee.version>${tomee.version}</tomee.version>
<openejb.provider.default>org.apache.tomee</openejb.provider.default>
</systemPropertyValues>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
--
View this message in context:
http://openejb.979440.n4.nabble.com/Security-issue-using-arquillian-tomee-embedded-tp4661417p4661468.html
Sent from the OpenEJB User mailing list archive at Nabble.com.