0 Replies Latest reply on Aug 29, 2013 5:06 AM by Björn Forslund

    EJB annotated classes in /lib (EAR) are loaded as EJB's

    Björn Forslund Newbie



      I have a problem with the way JBoss (AS 7) loads the library files in an .ear. The ear contains an application.xml file with a reference to the ejb that i want it to load:


      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE application PUBLIC

        "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"









      The ear also contains some libraries and some of those libraries are used as separate ejb/webservices which means that they contain @Stateless annotations.

      The problem is that application server tries load these classes as EJB's rather then just as simple pojos.


      Is there a way to configure this so that Jboss doesn't do this ?