4 Replies Latest reply on Sep 26, 2005 9:49 PM by tsmohan

    Demo does not work for me

    tsmohan

      I am trying to run the demo for JBossCache 1.2.3 on windows xp using
      1. runShellDemo.bat
      2.runShellDemo.sh using CYG but it is not working for me...

      Please smeone help me run these demos....

      bsh % sourceRelative("plain.bsh");
      // 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.ExceptionInInitializerError

      java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: java.lang.reflect.InvocationTargetException

      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)

      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)

      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)

      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)

      at org.jboss.cache.transaction.DummyTransactionManager.(DummyTransactionManager.java:19)

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(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.Name.toObject(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.eval(Unknown Source)

      at bsh.Interpreter.source(Unknown Source)

      at java.lang.reflect.Method.invoke(Native Method)

      at bsh.Reflect.invokeMethod(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.BSHMbsh % ethodInvocation.eval(Unknown Source)

      at bsh.BSHPrimaryExpression.eval(Unknown Source)

      at bsh.BSHPrimaryExpression.eval(Unknown Source)

      at bsh.Interpreter.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)

        • 1. Re: Demo does not work for me
          brian.stansberry

          Commons Logging is not able to instantiate the logger. Is log4j.jar in the lib folder of your distribution?

          • 2. Re: Demo does not work for me
            tsmohan

            YES, I did not change anything from the download files for 1.2.3

            I have the following jars in ./lib

            bsh-2.0b4.jar
            commons-logging.jar
            concurrent.jar
            javassist.jar
            jboss-aop.jar
            jboss-cache.jar
            jboss-common.jar
            jboss-j2ee.jar
            jboss-jmx.jar
            jboss-minimal.jar
            jboss-system.jar
            jgroups.jar
            junit.jar
            log4j.jar
            qdox.jar
            trove.jar

            I tried the 1.2.4 and got the same error...

            • 3. Re: Demo does not work for me

              What about your own classpath? Does it have other logging jar in there?

              -Ben

              • 4. Re: Demo does not work for me
                tsmohan

                I don't have anything in my classpath.. I have added the following line in runShellDemo.sh:

                echo $CP $ARGS $JAVA_OPTS

                and here is what I got:

                $ sh runShellDemo.sh
                lib\commons-logging.jar;lib\bsh-2.0b4.jar;lib\jboss-aop.jar;lib\jboss-j2ee.jar;l
                ib\jgroups.jar;lib\jboss-cache.jar;lib\jboss-jmx.jar;lib\trove.jar;lib\javassist
                .jar;lib\jboss-minimal.jar;lib\jboss-common.jar;lib\jboss-system.jar;lib\log4j.j
                ar;lib\concurrent.jar;lib\je.jar;lib\jboss-remoting.jar;output\etc;output\build
                -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader -Dlog4j.co
                nfiguration=file:output\etc\log4j.xml