2 Replies Latest reply on May 10, 2007 11:19 AM by khelenek

    where to put ehcache in 4.0.5.GA now that its in lib dir

    khelenek

      Hi, i just upgraded to 4.0.5.GA with ejb3 support, and I deployed my ear file with ehcache.xml in the ear root. However i get the error that ehcache.xml is not found and that it is defaulting to /server/default/lib/ehcache-1.2.jar/ehcache-failsafe.xml.

      So it looks like ehcache is now bundled with jboss, and so the classloader that loads it is above the classloader of the ear and will not find xml configurations inside the ear? Is there somewhere else I can put my ehcache.xml file that it will find it? Does jboss need ehcache for something or can i remove it from the lib directory?

      Thanks,
      kh

        • 1. Re: where to put ehcache in 4.0.5.GA now that its in lib dir
          khelenek

          Woops - technically i made a mistake. I think it was actually I who put ehcache.jar into the server/default/lib folder; but that doesn't change the basis of the classloader issue I am having.

          I put the ehcache jar into that directory because that is where the hibernate jars are, and if i put it anywhere else hibernate could not see it. And *then* i have the problem stated above, where I cannot figure out where to put the ehcache.xml file since my apps are below it on the classloader hierarchy.

          Please advise! Thanks,
          k

          • 2. Re: where to put ehcache in 4.0.5.GA now that its in lib dir
            khelenek

            Please, all i need to know from anyone who is successfully using ehcache with ejb 3.0 right now, where did you put the ehcache.jar file, and where also did you put the ehcache.xml file?