1 Reply Latest reply on Sep 14, 2011 2:02 PM by jharting

    Stereotype with Stateless annotation

    marx3

      I'm trying to make such a stereotype:




      @Stateless
      @LocalBean
      @Documented
      @Stereotype
      @Target({ TYPE })
      @Retention(RUNTIME)
      public @interface DAO {
      }
      




      After deploy on JBoss AS6 I'm getting an error:


      .weld.exceptions.DefinitionException: WELD-000816 Cannot determine constructor to use for public abstract interface@Retention @LocalBean @Documented @Target @Stereotype @Stateless class xxx.DAO


      It seems that Weld try to instantiate my annotation as a bean. Is it ok?