7 Replies Latest reply on Nov 22, 2010 4:54 PM by Marek Dec

    EJB 3.1 beans in jars in a war packaged app do not get deployed

    Marek Dec Newbie

      Hi,

       

      I have a simple app, structured more or less as follows:


      app.war

      META-INF

           ...

      WEB-INF

          web.xml

           classes

                TestService.class

           lib

                jarwithejb.jar

                     AnotherService.class

       

      Both TestService and AnotherService are annotated with the @Stateful annotation. The thing is, when starting my JBoss AS 6.0.0.M5 only the TestService is recognized as an EJB (EJB 3.1 no-interface view), the one packaged within the jarwithejb.jar gets skipped (note that AnotherService lives within the jarwithejb archive).

       

      According to the http://community.jboss.org/wiki/EJB31inAS600M2 article, both WEB-INF/classes and WEB-INF/libs/some.jar are valid locations for an EJB.

       

      Am I missing something? Is there any other requirement a jar has to fulfill in order to provide no-interface EJBs?

       

      Thanks for you help,
      Marek

       

      Message was edited by: Marek Dec. Changed the libs to lib.