Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5226

CDI integration fails in Glassfish 4.0 with WELD-000070

    XMLWordPrintableJSON

Details

    Description

      When CDI is configured in the Application and a page has a non-static inner class the page throws exception, regardless of whether there are any injected fields.

      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] private class com.inversebit.HomePage$AForm cannot be a non-static inner class
      at org.jboss.weld.injection.producer.BasicInjectionTarget.checkType(BasicInjectionTarget.java:81)
      at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:69)
      at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:52)
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:95)
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:78)
      ... 65 more

      Attachments

        1. cditest.zip
          45 kB
          Phill Ashworth
        2. WELD-000070_1.txt
          14 kB
          Phill Ashworth
        3. cditest_2.zip
          68 kB
          Phill Ashworth

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              leadseeker Phill Ashworth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: