Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8962

Creating a maven project from the jboss-javaee6-webapp fails due to unsatisfied constraints for CDI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M2
    • 3.3.0.M1
    • maven
    • None
    • Hide

      Create a new maven project, it'll open the new Maven Project Wizard
      Choose the jboss-javaee6-webapp archetype
      Fill in the required informations
      Click on finish
      An error popups by the end of the project creation

      Show
      Create a new maven project, it'll open the new Maven Project Wizard Choose the jboss-javaee6-webapp archetype Fill in the required informations Click on finish An error popups by the end of the project creation
    • Workaround Exists
    • Hide

      Manually add the web or EJB facet before triggering an Maven > Update Project configuration

      Show
      Manually add the web or EJB facet before triggering an Maven > Update Project configuration

      Create a new maven project using the jboss-javaee6-webapp archetype fails with the following error :

       One or more constraints have not been satisfied.
      Constraints for CDI (Contexts and Dependency Injection) 1.0 have not been met. 
      

      The CDI Facet depends on the Web Module OR the EJB Module Facet. The CDI configurator is declared as secondary to the Java configurator AND the wtp configurator. So it's called BEFORE the WTP configurator, which is responsible for adding the Web or EJB facets.

      It needs to try adding the CDI facet only if Web or EJB is already configured, instead of just logging an exception.

            fbricon@redhat.com Fred Bricon
            fbricon@redhat.com Fred Bricon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: