Re: Fw: command-line tutorial not working in 1.0a6 and 1.0a5

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Feb 19 2003 - 11:24:55 EST

  • Next message: David Solis: "Hollow state"

    Hi Brandon,

    Please check that you don't have any 3rd party XML parsers (like Xerces)
    in your CLASSPATH or lib/ext. Also is it possible that you also have JDK
    1.3 installed on the same machine, and when you run the tutorial, you
    actually invoke 1.3?

    Try "java -version" to check that.

    Andrus

    > I am new to Cayenne and have started working with the tutorial
    > "Command-line" application. I have tried running the tutorial on
    > release 1.0a6 and 1.0a5 and in both versions I am getting this
    > stacktrace:
    >
    > Exception in thread "main" java.lang.NoSuchMethodError
    > at
    > org.objectstyle.cayenne.util.Util.createXmlReader(Util.java:253)
    > at
    > org.objectstyle.cayenne.conf.DomainHelper.<init>(DomainHelper.java:133)
    > at
    > org.objectstyle.cayenne.conf.Configuration.init(Configuration.java:243)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:211)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:203)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:186)
    > at
    > org.objectstyle.cayenne.conf.Configuration.getSharedConfig(Configuration.java:159)
    > at test.Main.createContext(Main.java:48)
    > at test.Main.<init>(Main.java:35)
    > at test.Main.main(Main.java:30)
    > ---------------------
    > I am running jdk 1.4.1-b21 and I am running the app on Windows 2000
    > through the command line. ---------------------
    >
    > I would appreciate any help or advice that someone could offer. I did
    > notice that there is not a org.objectstyle.cayenne.util.Util package,
    > there is however a Util class in the util directory. I don't know if
    > that matters or helps but I would like to be able to see the tutorial
    > application in action if possible.
    >
    > Thanks in advance!
    >
    > Brandon Fouts



    This archive was generated by hypermail 2.0.0 : Wed Feb 19 2003 - 11:24:55 EST