EJB 3.1 FAQ

Version 1

    Summary

    This document describes some frequently asked question regarding EJB 3.1 deployments on JBoss AS.

    Applies To

    • JBoss AS 6.0.0 M2

    Why is my EJB packaged within a war not deployed?

    If you have a web.xml descriptor and it does not specify a web-app 3.0 namespace you're EJB 3.1 bean will not be deployed. The solution is to add the proper namespace.

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
          version="3.0">
       ...
    </web-app>