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

JBT 3.2 (beta 1) saying weld archetypes are not JSR 299 compliant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.2.0.CR1
    • 3.2.0.Beta1
    • cdi, maven
    • None
    • Hide

      Create a new maven project using weld-jsf-jee archetype

      Show
      Create a new maven project using weld-jsf-jee archetype
    • Workaround Exists
    • Hide

      Turn off the corresponding validation rules in Preferences->JBoss Tools->Web->CDI->Validation.

      Show
      Turn off the corresponding validation rules in Preferences->JBoss Tools->Web->CDI->Validation.

    Description

      Hi

      so, using JBoss Tools 3.2.0 beta 1, I got these errors when creating a project using the weld-jsf-jee archetype :

      WidgetRepositoryProducer.java L19 : Non-static method of a session bean class has a parameter annotated @Disposes, and the method is not a business method of the session bean [JSR-299 §3.3.6]

      WidgetRepositoryProducer.java L 15 : Non-static method of a session bean class is annotated @Produces, and the method is not a business method of the session bean [JSR-299 §3.3.2]

      WidgetListProducer.java L 17: Producer method with a parameterized return type with a type variable must be @Dependent scoped [JSR-299 §3.3]

      WidgetRepository.java L 11 : Qualifier annotation type must be annotated with @Target(

      {TYPE, METHOD, FIELD, PARAMETER}

      ) or @Target(

      {METHOD, FIELD}

      ) [JSR-299 §2.3.2, §10.1]

      Dan Allen assures me the archetypes are fully compliant, so the validation implementation must be off, somehow.

      Maybe this behavior has changed in JBT 3.2 beta 2, in which case I apologize for the noise.

      Regards,

      Fred Bricon

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: