[jboss-user] [JBossCache] - Getting following error while trying to use JBoss Cache with

madhavsapre@yahoo.com do-not-reply at jboss.com
Fri Jun 22 11:28:17 EDT 2007


Hi,
I'm trying to configure JBoss POJOCache to be used with JBoss AS. I have configured POJOCache MBean in the jboss-service.xml as follows


        jboss:service=Naming
        jboss:service=TransactionManager
        REPEATABLE_READ
        REPL_ASYNC
        DefaultCluster
        5000
        10000
        15000
        org.jboss.cache.eviction.LRUPolicy
        
                
                        20
                        
                                10000
                                0
                        
                
        
   

I do not want to use CacheLoader as I want to have control over what goes into cache through our DAO layer. I get following exception when I 
start JBoss

org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.c
ache.aop.POJOCache; - nested throwable: (java.lang.ClassNotFoundException: No Cl
assLoaders found for: org.jboss.cache.aop.POJOCache)
        at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:196)
        at org.jboss.system.ServiceController.install(ServiceController.java:226
)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.install(Unknown Source)
        at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:490)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jbos
s.cache.aop.POJOCache
        at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryCl
assLoader.java:511)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassL
oader.java:405)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
1204)
        at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
286)
        at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
344)
        at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
        at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:449)
        at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:171)
        ... 36 more

I'm new to JBoss Cache. Can someone advise if I can use JBoss Cache with JBoss AS without specifying CacheLoader? If so, how do I configure
POJOCache MBean in jboss-service.xml?

Thanks in advance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056929#4056929

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056929



More information about the jboss-user mailing list