Install Guide for Wildfly

Note: This guide is not relevant any more. Today Eclipse Krazo supports Wildfly using the RESTEasy integration module. However, we decided to keep this guide alive.

The MVC implementation Eclipse Krazo is based on Jersey. This makes is a little bit tricky to get MVC running on Wildfly, because Wildfly provides with RESTEasy, a competing JAX-RS implementation.

To get Eclipse Krazo running together with Wildfly first you need to add the Eclipse Krazo implementation together with the Jersey dependencies to your project. The the following pom.xml example showing the dependency configuration:

<!-- Java EE dependencies -->

<!-- MVC dependencies -->

The important part here is to deactivate Jersey hibernate-validation. This can be don with the ‘exclusion’ tag of maven.

In the next step you need to provide two Wildfly deployment descriptors to ensure that the RESTEasy subsystem is deactivated.

1. Deactivate Wildfly JAX-RS RestEasy Subsystem

To deactivate RESTEasy add the file *jboss-deployment-structure.xml* into the WEB-INF folder with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
            <subsystem name="jaxrs" />

2. Prevent implizit bean archives without beans.xml

To deactivate bean archives with a beans.xml add the file *jboss-all.xml* into the WEB-INF folder with the following content:

<jboss xmlns="urn:jboss:1.0">
     <weld xmlns="urn:jboss:weld:1.0" require-bean-descriptor="true"/>

See also:

3. Add the bean.xml file

Finally make sure that your web project contain an empty beans.xml file in the WEB-INF folder:

<?xml version="1.0"?>
<beans xmlns="" xmlns:xsi=""
       version="1.1" bean-discovery-mode="all">