1 Reply Latest reply on Sep 6, 2011 9:41 AM by jaikiran pai

    Deploy standard jar project with dependency

    Michal Glowacki Novice

      I use in my EJB and WAR files jboss cache (now I migrate it to Infinispan). As this is common part of the code for those projects, I put it into separate project (non-ejb, not web app): my-commons.jar. When I deploy it to standalone/lib (via jboss management) or in deployments it is ok. However my WAR file (web application using this jar) is not deploying with those infos:

       

      java.lang.ClassNotFoundException: org.infinispan.manager.EmbeddedCacheManager from [Module "deployment.my-commons.jar:main" from Service Module Loader

       

      OK, the problem is clearly described in migration guide. So I added org.infinispan to my WAR's META-INF, I did also to the my-commons.jar

       

      And I have org.infinispan.main under modules in jboss7 folder.

       

      I run out ideas what to try more. The only thing I can imagine is to copy those classes from my-commons.jar to each WAR or EJB using it :/