Re: problems with cayenne-cmd-app tutorial

From: Cheryl Norsworthy (cheryl_a_norsworth..aytheon.com)
Date: Fri Jun 10 2005 - 17:05:20 EDT

  • Next message: Gentry, Michael \(Contractor\): "RE: problems with cayenne-cmd-app tutorial"

    Andrus,

    Yes, I saw the problems with the jar file, I actually had to add the org
    and com directory to the preferences, datasources tab in the modeler,
    I'll try the earlier version and see what happens.

    Thanks

    -cheryl

    Andrus Adamchik wrote:

    >I haven't used 3.1 driver yet, however doing a search on google shows that
    >this is a rather common problem -
    >http://www.google.com/search?q=java.lang.NoClassDefFoundError%3A++org%2Faspectj%2Flang%2FSignature
    >
    >Didn't have time to read all the threads, but it looks like out of the two
    >jars that ship with the driver (mysql-connector-java-3.1.8-bin.jar and
    >mysql-connector-java-3.1.8-bin-g.jar), only the first one should be used:
    >
    >http://forums.mysql.com/read.php?39,22579,27226#msg-27226
    >
    >Cheryl - you need to make sure that the *bin-g.jar file IS NOT in the
    >CLASSPATH. If this doesn't work, try downgrading the driver to the latest
    >3.0 :-)
    >
    >Andrus
    >
    >
    >
    >>Are you using Cayenne 1.1? Could you add your Cayenne .xml files, too
    >>(stripping your DB password out, of course)?
    >>
    >>Thanks,
    >>
    >>/dev/mrg
    >>
    >>
    >>-----Original Message-----
    >>From: Cheryl Norsworthy [mailto:cheryl_a_norsworth..aytheon.com]
    >>Sent: Friday, June 10, 2005 4:18 PM
    >>To: cayenne-use..bjectstyle.org
    >>Subject: problems with cayenne-cmd-app tutorial
    >>
    >>
    >>I've had a bunch of problems but am at the point of running with
    >>
    >>java test.Main metro
    >>
    >>and I get the following
    >>java test.Main metro
    >>INFO QueryLogger: Created connection pool:
    >>jdbc:mysql://localhost/test_cayenne
    >> Driver class: com.mysql.jdbc.Driver
    >> Min. connections in the pool: 1
    >> Max. connections in the pool: 1
    >>Exception in thread "main" java.lang.NoClassDefFoundError:
    >>org/aspectj/lang/Signature
    >> at java.lang.Class.forName0(Native Method)
    >> at java.lang.Class.forName(Class.java:164)
    >> at
    >>org.objectstyle.cayenne.conn.DriverDataSource.<init>(DriverDataSource.ja
    >>va:93)
    >> at
    >>org.objectstyle.cayenne.conn.PoolManager.<init>(PoolManager.java:147)
    >> at
    >>org.objectstyle.cayenne.conf.DriverDataSourceFactory.getDataSource(Drive
    >>rDataSourceFactory.java:128)
    >> at
    >>org.objectstyle.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(Runt
    >>imeLoadDelegate.java:438)
    >> at
    >>org.objectstyle.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.
    >>java:377)
    >> at
    >>org.objectstyle.cayenne.conf.ConfigLoader$DomainHandler.startElement(Con
    >>figLoader.java:264)
    >> at
    >>com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElemen
    >>t(AbstractSAXParser.java:533)
    >> at
    >>com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanSta
    >>rtElement(XMLNSDocumentScannerImpl.java:330)
    >> at
    >>com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
    >>ragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:16
    >>93)
    >> at
    >>com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
    >>canDocument(XMLDocumentFragmentScannerImpl.java:368)
    >> at
    >>com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
    >>1Configuration.java:834)
    >> at
    >>com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
    >>1Configuration.java:764)
    >> at
    >>com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
    >>a:148)
    >> at
    >>com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
    >>actSAXParser.java:1242)
    >> at
    >>org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:
    >>114)
    >> at
    >>org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConf
    >>iguration.java:185)
    >> at
    >>org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration
    >>(Configuration.java:296)
    >> at
    >>org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration
    >>(Configuration.java:278)
    >> at
    >>org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration
    >>(Configuration.java:261)
    >> at
    >>org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Config
    >>uration.java:224)
    >> at test.Main.createContext(Main.java:47)
    >> at test.Main.<init>(Main.java:34)
    >> at test.Main.main(Main.java:29)
    >>
    >>
    >>I've tried all sorts of classpath changes, I am using
    >>/mysql-connector-java-3.1.8 as the jdbc driver for mysql and can
    >>successfully test from preferences tab
    >>
    >>any ideas ?
    >>
    >>-cheryl
    >>
    >>
    >>
    >>
    >>
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Jun 10 2005 - 17:03:49 EDT