maven - Arquillian no HTTPContext found when launching in embedded Weld EE container -


i'm using maven , eclipse launch container tests. maven config setup using archetype: jboss-javaee6-webapp-ear-blank-archetype

i can launch arquillian tests no problem in jboss as7.

but when try launch using embedded weld ee container following exception:

java.lang.illegalargumentexception: no org.jboss.arquillian.container.spi.client.protocol.metadata.httpcontext found in org.jboss.arquillian.container.spi.client.protocol.metadata.protocolmetadata. servlet protocol can not used 

what causing org.jboss.arquillian.container.spi.client.protocol.metadata.httpcontext found error , how can fix it?

i setup 2 different profiles in pom, 1 jboss as7 (works) , 1 embedded weld ee (not working):

<profile>     <id>arq-weld-ee-embedded</id>           <activation>               <activebydefault>true</activebydefault>           </activation>     <dependencies>         <dependency>             <groupid>org.jboss.spec</groupid>             <artifactid>jboss-javaee-6.0</artifactid>             <version>1.0.0.final</version>             <type>pom</type>             <scope>provided</scope>         </dependency>         <dependency>             <groupid>org.jboss.arquillian.container</groupid>             <artifactid>arquillian-weld-ee-embedded-1.1</artifactid>             <version>1.0.0.cr3</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>org.jboss.weld</groupid>             <artifactid>weld-core</artifactid>             <version>1.1.5.final</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-simple</artifactid>             <version>1.6.4</version>             <scope>test</scope>         </dependency>     </dependencies> </profile>  <profile>     <!-- optional arquillian testing profile executes tests in          jboss instance -->     <!-- profile start new jboss instance, , execute          test, shutting down when done -->     <!-- run with: mvn clean test -parq-jbossas-managed -->     <id>arq-jbossas-managed</id>     <dependencies>         <dependency>             <groupid>org.jboss.as</groupid>             <artifactid>jboss-as-arquillian-container-managed</artifactid>             <scope>test</scope>         </dependency>     </dependencies> </profile> 

in arquillian.xml file had line:

<defaultprotocol type="servlet 3.0" /> 

upon research found out the embedded weld ee container not support servlet 3.0 protocol

to fix problem removed defaultprotocol config , setup protocol on per-container basis.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -