4 Replies Latest reply on Jul 12, 2004 10:08 AM by Bela Ban

    Error starting the demo

    Cristian Caprar Newbie

      Hi all,

      I am trying to run the simple demo (build run.demo) on Windows using JBoss Cache 1.02. I get the following output:

      ***************************************************
      F:\Java\jboss-cache_102>java -cp ./ant-dist/lib/ant.jar;./ant-dist/lib/optional.jar;./ant-dist/lib/junit.jar;f:\java\jdk1.4.2/lib/tools.jar org.apache.tools.ant.Main run.demo
      Buildfile: build.xml

      init:

      compile:
      [copy] Copying 2 files to F:\Java\jboss-cache_102\output\etc

      run.demo:
      [java] org.xml.sax.SAXParseException: Document root element is missing.
      [java] at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
      [java] at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
      [java] at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
      [java] at org.apache.crimson.parser.Parser2.parse(Unknown Source)
      [java] at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
      [java] at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      [java] at org.jboss.cache.PropertyConfigurator.loadDocument(PropertyConfigurator.java:92)
      [java] at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:169)
      [java] at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:153)
      [java] at org.jboss.cache.TreeCacheView2.main(TreeCacheView2.java:106)
      [java] java.lang.NullPointerException
      [java] at org.jboss.cache.PropertyConfigurator.getMBeanElement(PropertyConfigurator.java:114)
      [java] at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:170)
      [java] at org.jboss.cache.PropertyConfigurator.configure(PropertyConfigurator.java:153)
      [java] at org.jboss.cache.TreeCacheView2.main(TreeCacheView2.java:106)

      BUILD SUCCESSFUL
      Total time: 3 seconds
      ***************************************************

      Of course, nothig starts. This worked just fine with 1.01 (I just tried on this same machine).

      Any help is appreciated. Am I doing something wrong? From the tutorial, it does not seem so.

      Thanks,
      Cristi