1 Reply Latest reply on Jun 25, 2013 10:58 PM by navssurtani

    How can I lookup infinispan which is embedded in JBoss AS 6?

    rehanfa

      Hi ,

      I have simple web application which try to access the DefaultCacheManager. It is running fine in JBoss AS 7 as I added  "Dependencies: org.infinispan export" in MANIFEST.MF of web application. But same web application gets an exception java.lang.NoClassDefFoundError: org/infinispan/manager/DefaultCacheManager in JBoss AS 6. Please suggest how to make builtin infinispan libs available for web application in JBoss AS 6.

       

      Code that instantiate the DefaultCacheManager  :

      DefaultCacheManager m = new DefaultCacheManager();

      Cache<String, String> cache = m.getCache();

       

      Contents of MANIFEST.MF :

       

      Manifest-Version: 1.0

      Dependencies: org.infinispan export

       

       

      Versions are:

       

      Product
      Version
      JBoss6.1.0 Final
      Infinispanprovided with AS
      Javajava version "1.6.0_43"

       

       

      Regards,

      Rehan Farooq