0 Replies Latest reply on Aug 6, 2009 6:51 PM by Jan Geysen

    java.lang.NoClassDefFoundError: org/jboss/cache/Cache ON jbo

    Jan Geysen Newbie

      Strange

      My sar deploys Mbeans, the one who gives the error
      java.lang.NoClassDefFoundError: org/jboss/cache/Cache

      depends on a TreeCache mbean

      Note that I'm running on Jboss 4.2.3 which still works with the old Jboss Cache (1.4) , hence org.jboss.cache.Cache does not even exist as far as I know


      framework:service=FwTreeCache




      LOCAL
      jboss:service=Naming
      jboss:service=TransactionManager


      here is the top part of the stack trace

      0:38:42,973 WARN [BasicMBeanRegistry] preRegister() failed for framework:service=FwStartup:
      java.lang.NoClassDefFoundError: org/jboss/cache/Cache
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
      at java.lang.Class.privateGetPublicMethods(Class.java:2519)
      at java.lang.Class.getMethods(Class.java:1406)
      at org.jboss.mx.server.MethodMapper.createMap(MethodMapper.java:290)
      at org.jboss.mx.server.MethodMapper.(MethodMapper.java:212)
      at org.jboss.mx.server.AbstractMBeanInvoker.initDispatchers(AbstractMBeanInvoker.java:1074)
      at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:652)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)