3 Replies Latest reply on Feb 2, 2004 12:04 AM by Ben Wang

    how to run JbossCache

    raj_kumar Newbie

      i'm new in JbossCache ...when i tries to run the the sample
      examples i gets the following error ...

      java.lang.ClassNotFoundException: org.jboss.aop.AspectManager
      at org.jboss.aop.standalone.SystemClassLoader.loadClassLocally(SystemClassLoader.java:293)
      at org.jboss.aop.standalone.SystemClassLoader.install(SystemClassLoader.java:330)
      at org.jboss.aop.standalone.SystemClassLoader.(SystemClassLoader.java:118)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.SystemClassLoaderAction.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.lang.ClassLoader.initSystemClassLoader(Unknown Source)
      at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
      Caused by: java.lang.NoClassDefFoundError: org/jboss/util/loading/Translator
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at org.jboss.aop.standalone.SystemClassLoader.defineClassFromBytes(SystemClassLoader.java:250)
      at org.jboss.aop.standalone.SystemClassLoader.loadClassLocally(SystemClassLoader.java:289)
      ... 10 more
      Error occurred during initialization of VM
      java.lang.Error: Error initializing system classloader

      i even specifies the name of the the Jboss-aop jar in the rin time parameter then also i gets the following error .....ipls help


        • 1. Re: how to run JbossCache
          Ben Wang Master


          Did you download the jboss-cache-dist.zip, unpacked it, and run "sh build.sh run.aop.examples"?


          • 2. Re: how to run JbossCache
            raj_kumar Newbie

            i'm able to run the examples but when i makes my own
            programs and i tries to run it ...after the " TreeCache tree = new TreeCache();" sentence it dont give any out put .... i dont know
            what happens ...it completes the program and comes out from the runtime...

            TreeCache tree = new TreeCache();

            these are the 3 lines of my code

            and when i tries to compile and run the code it prints "raj1" but after the
            initilization of TREECACHE it dont executes the second println statement ...
            i dont know what to do in such situation...if u had any answer then tell me ...

            • 3. Re: how to run JbossCache
              Ben Wang Master


              You can look at either the unit test cases or *.bsh files under the jboss-cache directory (e.g., plain.bsh) to see how to instantiate TreeCache and its usage.