0 Replies Latest reply on Aug 3, 2010 6:47 PM by michaelschuetz

    Different exceptions for missing transitive dependencies

    michaelschuetz

      Hi to all,

       

      whilst playing around with Arquillian/Shrinkwrap, I was struggling a bit with different type of exceptions I got for missing dependencies during deployment.

       

      This one is easy to spot:
        DEPLOYMENTS IN ERROR:
        Deployment "vfszip://GateIn-3.1.0-GA/server/sp/deploy/test.ear/" is in error due to the following reason(s): java.lang.ClassNotFoundException: my.test.AbstractDaoBean

       

      Same problem, but different exception: 
      Deployment "<UNKNOWN jboss.j2ee:ear=test.ear,jar=test.jar,name=MyServiceBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'Class:my.test.MyDao' **

       

      So, MyDao (EJB) was injected into dependent class but I forgot to add implementation class "MyDaoBean" to ShrinkWrap config.

       

      I think it's neither an issue with Arquillian or ShrinkWrap. It might be an issue how Microcontainer handles exceptions.

       

      See related posts within JBoss Microcontainer discussions:
      http://community.jboss.org/thread/150633
      http://community.jboss.org/thread/152725

       

       
      Regards
      Michael