0 Replies Latest reply on Feb 13, 2014 1:44 PM by eloi.rui

    Wildfly Beta 1 + WAB supports Faces?!

    eloi.rui

      So I created a WAR Bundle (WAB) but I can't use faces packages.

       

      Do I need to add something to the standalone-osgi.xml (a module extension maybe?)

       

      When I try adding the javaee-api version 6 with scope provided I get a error when deploying the WAB

       

      <dependency>
           <groupId>org.jboss.spec</groupId>
           <artifactId>jboss-javaee-6.0</artifactId>
           <version>2.0.0.Beta1</version>
           <type>pom</type>
           <scope>provided</scope>
       </dependency>
      

       

      18:34:28,338 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "Backoffice.Web.BI.Configurations.war" (runtime-
      name: "Backoffice.Web.BI.Configurations.war")
      18:34:31,218 INFO  [org.jboss.osgi.framework] (MSC service thread 1-8) JBOSGI011001: Bundle installed: pt.his.Backoffice.Web.BI.Configurations:1.0.0.SNAPSHOT
      18:34:31,228 WARN  [org.jboss.as.osgi] (MSC service thread 1-6) JBAS011910: Cannot resolve requirements: [XPackageRequirement[dirs={filter=(osgi.wiring.package=javax.faces.context)},[pt.his.Backoffice.Web.BI.Configurations:1.0.0.SNAPSHOT]]]
      
      18:34:31,228 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015970: Defer FIRST_MODULE_USE for Backoffice.Web.BI.Configurations.war makingit NEVER
      18:34:32,458 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "Backoffice.Web.BI.Configurations.war" (runtime-name : "Backoffice.Web.BI.Configurations.war")
      

       

      The WAR works fine if I don't package as a bundle.

       

      I can deploy successfully if I deploy javaee-api.jar to the Widlfly deployments but when opening a page I get Absent Code attribute in method that is not native or abstract in class file javax/faces/context/FacesContext

       

      So the main question is, is Faces compatible with JBOSS OSGI?

       

      Thanks