Cayenne1.0a6 and jFreeChart 0.9.6 - ToStringBuilder NoClassDefFoundError

From: Reinier Mostert (rendie..labo.co.za)
Date: Fri Apr 04 2003 - 19:55:08 EST

  • Next message: Andrus Adamchik: "Re: Cayenne1.0a6 and jFreeChart 0.9.6 - ToStringBuilder NoClassDefFoundError"

    Hi all,

    I'm trying to use Cayenne 1.0a6 together with jFreeChart 0.9.6 in a
    Tapestry 2.4-alpha5 application on Linux under Tomcat 4.1. However,
    I've hit an error which seems to be because of conclicts between 2 SAX
    libraries.

    Basically, when I try to start my app, I get the first error below:

    Looking back a bit further, I have (the second extract below):

    I've tried both cayenne.jar and cayenne-nodeps.jar. Removing
    gnujaxp.jar stops jFreeChart from working, but Cayenne (and the app)
    starts up correctly.

    Any ideas??

    Thanks for your consideration.

    reinier
            
    <--CUT HERE--------------------------------------------------->
    java.lang.RuntimeException: Error initializing shared Configuration
    at
    org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:217) at org.objectstyle.cayenne.conf.BasicServletConfiguration.initConfig(BasicServletConfiguration.java:82)
    <--CUT HERE--------------------------------------------------->

    <--CUT HERE--------------------------------------------------->
    ERROR Configuration: Error initializing shared Configuration
    java.lang.IllegalStateException: already parsing
            at gnu.xml.aelfred2.XmlReader.setContentHandler(XmlReader.java:106)
            at
    org.objectstyle.cayenne.util.AbstractHandler.<init>(AbstractHandler.java:112)
            at
    org.objectstyle.cayenne.conf.ConfigLoader$DomainsHandler.<init>(ConfigLoader.java:174)
            at
    org.objectstyle.cayenne.conf.ConfigLoader$RootHandler.startElement(ConfigLoader.java:150)
            at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:834)
            at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037)
            at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416)
            at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
            at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
            at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
            at
    org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:117)
            at
    org.objectstyle.cayenne.conf.Configuration.init(Configuration.java:260)
            at
    org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:214)
            at
    org.objectstyle.cayenne.conf.BasicServletConfiguration.initConfig(BasicServletConfiguration.java:82)
    <--CUT HERE--------------------------------------------------->

    -- 
    ------------------------------------------------------------------------------
         reinier.moster..igfoot.com      Linux - choice of a GNU
    generation!  
    

    The colder the X-ray table, the more of your body is required on it.

    -- Steven Wright



    This archive was generated by hypermail 2.0.0 : Fri Apr 04 2003 - 19:58:15 EST