2 Replies Latest reply on Jul 21, 2009 3:19 AM by Rakesh Mistry

    using the cache on any app server?

    Rakesh Mistry Newbie

      Hi all,

      I am new to the forums as well as to the JBoss Cache. I would really appreciate some guidance on how to implement the cache generically so I can use it within any app server.

      Currently, I am trying to include the cache into my struts application. I would like to use it to cache the database result sets that are quite resource intensive. It is running on a glassfish app server.

      I have added the cache as a plugin into struts. However, when I try to create the cache, it fails. This is what I am trying to do:

      CacheFactory factory = new DefaultCacheFactory();
      cache = factory.createCache(configFile);
      


      The exception I am getting is :

      PWC1412: WebModule[/PPHWorkflowMonitoring] ServletContext.log():PWC1409: Marking servlet action as unavailable
      WebModule[/PPHWorkflowMonitoring]PWC1396: Servlet /PPHWorkflowMonitoring threw load() exception
      javax.servlet.UnavailableException: org/jboss/util/xml/JBossEntityResolver
       at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
       at javax.servlet.GenericServlet.init(GenericServlet.java:254)
       at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1178)
       at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1007)
       at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4808)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:5196)
       at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
       at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
       at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
       at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
       at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
       at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1676)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
       at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
       at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
       at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
       at java.lang.Thread.run(Thread.java:619)
      WEB0207: Error starting web context StandardEngine[com.sun.appserv].StandardHost[server].StandardContext[/PPHWorkflowMonitoring] on virtual server server
      LifecycleException: javax.servlet.UnavailableException: org/jboss/util/xml/JBossEntityResolver
       at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4818)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:5196)
       at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
       at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
       at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
       at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
       at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
       at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1676)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
       at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
       at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
       at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
       at java.lang.Thread.run(Thread.java:619)
      
      


      Any help will be apperciated.

      Thanks
      Rax