2 Replies Latest reply on May 23, 2005 8:46 PM by sarvjeet

    Problems in tutorial

    sarvjeet

      I am trying to run the tutorial given at:
      http://docs.jboss.org/jbcache/current/tutorial/html/

      When I get to 7. and execute sourceRelative("plain.bsh"); I am getting this exception:

      bsh % sourceRelative("plain.bsh");
      [error] Failed to aspectize class org.jboss.cache.TreeCache. Could not find class it references org.jboss.system.ServiceMBeanSupport It may not be in your classpath and you may not be getting field and constructor weaving for this class... Do verbose mode if you want full stack trace.
      // Error: // Uncaught Exception: Method Invocation this.interpreter.source : at Line: 19 : in file: /bsh/commands/sourceRelative.bsh : this .interpreter .source ( path , this .caller .namespace )
      
      Called from method: sourceRelative : at Line: 1 : in file: <unknown file> : sourceRelative ( "plain.bsh" )
      Target exception: java.lang.Error: Error transforming the class org.jboss.cache.TreeCache: org.jboss.aop.instrument.TransformationException: Failed to aspectize class org.jboss.cache.TreeCache. Could not find class it references org.jboss.system.ServiceMBeanSupport It may not be in your classpath and you may not be getting field and constructor weaving for this class.
      
      java.lang.Error: Error transforming the class org.jboss.cache.TreeCache: org.jboss.aop.instrument.TransformationException: Failed to aspectize class org.jboss.cache.TreeCache. Could not find class it references org.jboss.system.ServiceMBeanSupport It may not be in your classpath and you may not be getting field and constructor weaving for this class.
       at org.jboss.aop.standalone.SystemClassLoader.loadClass(SystemClassLoader.java:191)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:207)
       at bsh.classpath.ClassManagerImpl.plainClassForName(Unknown Source)
       at bsh.classpath.ClassManagerImpl.classForName(Unknown Source)
       at bsh.NameSpace.classForName(Unknown Source)
       at bsh.NameSpace.getImportedClassImpl(Unknown Source)
       at bsh.NameSpace.getClassImpl(Unknown Source)
       at bsh.NameSpace.getClass(Unknown Source)
       at bsh.Name.consumeNextObjectField(Unknown Source)
       at bsh.Name.toObject(Unknown Source)
       at bsh.BSHAmbiguousName.toObject(Unknown Source)
       at bsh.BSHAllocationExpression.objectAllocation(Unknown Source)
       at bsh.BSHAllocationExpression.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.BSHAssignment.eval(Unknown Source)
       at bsh.Interpreter.eval(Unknown Source)
       at bsh.Interpreter.source(Unknown Source)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at bsh.Reflect.invokeOnMethod(Unknown Source)
       at bsh.Reflect.invokeObjectMethod(Unknown Source)
       at bsh.Name.invokeMethod(Unknown Source)
       at bsh.BSHMethodInvocation.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.BSHReturnStatement.eval(Unknown Source)
       at bsh.BSHBlock.evalBlock(Unknown Source)
       at bsh.BSHBlock.eval(Unknown Source)
       at bsh.BshMethod.invokeImpl(Unknown Source)
       at bsh.BshMethod.invoke(Unknown Source)
       at bsh.BshMethod.invoke(Unknown Source)
       at bsh.Name.invokeLocalMethod(Unknown Source)
       at bsh.Name.invokeMethod(Unknown Source)
       at bsh.BSHMethodInvocation.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.BSHPrimaryExpression.eval(Unknown Source)
       at bsh.Interpreter.run(Unknown Source)
       at bsh.Interpreter.main(Unknown Source)
      bsh %
      


      What am I doing wrong ??

      Thanks,
      S