2 Replies Latest reply on Dec 13, 2010 11:05 PM by jaikiran pai

    Help with EJB deployment / configuration

    tbbs tny Newbie

      I have an EAR which contains a JAR and WAR.  The JAR contain EJBs.  I've been using entries like the following in my WAR web.xml so far, and have not had any real problems until recently.  (FWIW, I'm using 5.1.0 GA)




      Recently, I have been trying to integrate OpenEJB into my JAR (ejb land) for unit testing.  In order to do this, I've been instructed to include inside

      the JAR a META-INF/ejb-jar.xml file with this entry.




      Including this file makes my unit tests run, but now JBoss will not load my EAR.  Simply by including this one line and one file in my ejb JAR, JBoss fails to load my EAR and reports the following exception.  I have found that this in this case the ShortcutFacade is the first <ejb-local-ref> in my web.xml file.  If I rearrange entries and make something else the first, the exception will the new EJB's interface class instead.



      org.jboss.deployers.spi.DeploymentException: java.lang.IllegalStateException: Failed to find ContainerDependencyMetaData for interface: com.dstsystems.walletshare.ejb.facade.ShortcutFacadeLocal


      I have googled, asked coworkers, asked in OpenEJB forums, but have not found a solution.  I susspect there is some sort of configuration conflict between these two files and the JAR and WAR.  I'm new to JBoss and EJB, and did not grow up in the Java world.  I am not even sure what I am suppose to be looking for at this point.


      Please, any guidance on this would be greatly appreciated.