problems with cayenne-cmd-app tutorial

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

  • Next message: Gentry, Michael \(Contractor\): "RE: 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.java:93)
            at
    org.objectstyle.cayenne.conn.PoolManager.<init>(PoolManager.java:147)
            at
    org.objectstyle.cayenne.conf.DriverDataSourceFactory.getDataSource(DriverDataSourceFactory.java:128)
            at
    org.objectstyle.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(RuntimeLoadDelegate.java:438)
            at
    org.objectstyle.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.java:377)
            at
    org.objectstyle.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigLoader.java:264)
            at
    com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
            at
    com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
            at
    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
            at
    com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
            at
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
            at
    com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
            at
    com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
            at
    com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
            at
    org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:114)
            at
    org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.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(Configuration.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 - 16:16:19 EDT