Installation


http://swik.net/Hibernate/Hibernate+GroupBlog/Get+running+on+CDI+&+JSF+2+in+a+jiffy+using+Maven+archetypes/dfzc3


   <!-- This is an optional parameter, but it makes troubleshooting errors much easier -->
   <!-- You are advised to remove this context parameter before a production deployment -->
    <context-param>
        <param-name>facelets.DEVELOPMENT</param-name>
        <param-value>true</param-value>
    </context-param>

   <!-- Weld Jetty/Tomcat specific configuration parameters -->
   <!-- *** The <listener> and <resource-env-ref> elements can be deleted when running in a Java EE 6 container *** -->
    <listener>
        <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
    </listener>

    <resource-env-ref>
        <description>Object factory for the CDI Bean Manager</description>
        <resource-env-ref-name>BeanManager</resource-env-ref-name>
        <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
    </resource-env-ref>


Comments