forge / plugin-arquillian

Forge Arquillian Plugin
http://www.jboss.org/arquillian
19 stars 16 forks source link

Configure protocol when setting up container #17

Open mojavelinux opened 12 years ago

mojavelinux commented 12 years ago

The setup command should provide an option set setup the protocol. In particular, this feature is aimed at configuring the Servlet 3.0 protocol for JBoss AS 7, which is not the default.

The protocol should be configured in the container configuration, since it does not apply to all containers (such as Weld Embedded).

<container qualifier="jbossas-managed-7">
    <protocol type="Servlet 3.0"/>
</container>

^^^ However, this is not currently support in Arquillian. For now, you need to set the default protocol globally:

<defaultProtocol type="Servlet 3.0"/>

You also need to add the Servlet protocol library to the Maven profile for the adapter:

<dependency>
    <groupId>org.jboss.arquillian.protocol</groupId>
    <artifactId>arquillian-protocol-servlet</artifactId>
    <scope>test</scope>
</dependency>
mojavelinux commented 12 years ago

I want to add that this is a real pain point for developers right now, so Forge could really help smooth this out.

mojavelinux commented 12 years ago

Here's the issue tracking support for setting the protocol at the container level: https://issues.jboss.org/browse/ARQ-579