AW: cannot use cayenneModeler

From: Michael Schuldt (m..scensys.de)
Date: Fri Jan 03 2003 - 12:33:19 EST

  • Next message: Dave Paules: "RE: error on 1:1 relationship - Some parts of PK are missing in s naps hot"

    Hi Andrus,

    sorry, I hope this is the right way to answer to a post. I couldn't find any
    hint on the website userlist. So I try to answer to your message (By the
    way: I received your mail two times? Is this correct?)

    Ok. Thx for your fast reply.

    >1. Did you restart the Modeler every time you made the changes to CLASSPATH
    and/or moved the JAR around?
    1.) Yes. I restarted the modeler every time.

    3. Do you have more than one JDK installed on your machine?
    3.) I removed an installed version of jdk1.3 from the java_home path.
    There's only the jdk1.4 directory left.

    >2. Any exceptions other than the one you quoted in
    $HOME/.cayenne/modeler.log?
    2.) I've got a warning in the log-file. Here it is followd by the rest until
    the error appears (Please look at the end of the text):

    CayenneModeler WARN [main 01-03 18:11:35] org.scopemvc.util.ScopeConfig:
    Can't load custom Scope config from scope.properties
    CayenneModeler INFO [main 01-03 18:11:36]
    org.objectstyle.cayenne.modeler.Editor: Started CayenneModeler.
    CayenneModeler INFO [AWT-EventQueue-0 01-03 18:11:38]
    org.objectstyle.cayenne.modeler.action.ProjectAction: Closed project.
    CayenneModeler INFO [AWT-EventQueue-0 01-03 18:11:59]
    org.objectstyle.cayenne.modeler.Editor: Main exception
    java.sql.SQLException: Can not load JDBC driver named
    'org.gjt.mm.mysql.Driver': org.gjt.mm.mysql.Driver
            at
    org.objectstyle.cayenne.conn.DriverDataSource.<init>(DriverDataSource.java:8
    5)
            at
    org.objectstyle.cayenne.conn.PoolDataSource.<init>(PoolDataSource.java:90)
            at org.objectstyle.cayenne.conn.PoolManager.<init>(PoolManager.java:131)
            at
    org.objectstyle.cayenne.access.DbGenerator.runGenerator(DbGenerator.java:222
    )
            at
    org.objectstyle.cayenne.modeler.datamap.GenerateDbDialog.generateDBSchema(Ge
    nerateDbDialog.java:234)
            at
    org.objectstyle.cayenne.modeler.datamap.GenerateDbDialog.actionPerformed(Gen
    erateDbDialog.java:221)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
            at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
    n.java:1817)
            at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
    19)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
            at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
    .java:245)
            at java.awt.Component.processMouseEvent(Component.java:5093)
            at java.awt.Component.processEvent(Component.java:4890)
            at java.awt.Container.processEvent(Container.java:1566)
            at java.awt.Component.dispatchEventImpl(Component.java:3598)
            at java.awt.Container.dispatchEventImpl(Container.java:1623)
            at java.awt.Component.dispatchEvent(Component.java:3439)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
            at java.awt.Container.dispatchEventImpl(Container.java:1609)
            at java.awt.Window.dispatchEventImpl(Window.java:1585)
            at java.awt.Component.dispatchEvent(Component.java:3439)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
            at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:197)
            at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :150)
            at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :140)
            at java.awt.Dialog.show(Dialog.java:538)
            at
    org.objectstyle.cayenne.modeler.action.GenerateDbAction.generateDb(GenerateD
    bAction.java:157)
            at
    org.objectstyle.cayenne.modeler.action.GenerateDbAction.performAction(Genera
    teDbAction.java:89)
            at
    org.objectstyle.cayenne.modeler.action.CayenneAction.actionPerformed(Cayenne
    Action.java:188)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
            at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
    n.java:1817)
            at
    javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
    19)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
            at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
            at
    javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
            at
    javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
    MenuItemUI.java:943)
            at java.awt.Component.processMouseEvent(Component.java:5093)
            at java.awt.Component.processEvent(Component.java:4890)
            at java.awt.Container.processEvent(Container.java:1566)
            at java.awt.Component.dispatchEventImpl(Component.java:3598)
            at java.awt.Container.dispatchEventImpl(Container.java:1623)
            at java.awt.Component.dispatchEvent(Component.java:3439)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
            at java.awt.Container.dispatchEventImpl(Container.java:1609)
            at java.awt.Window.dispatchEventImpl(Window.java:1585)
            at java.awt.Component.dispatchEvent(Component.java:3439)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
            at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
    va:197)
            at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
    :150)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

    I'd another problem while installing the struts files. I think that this
    couldn't be the reason for this problem because in the tutorial this step
    comes after the modeler-step. But who knows!

    I got the problem, that I couldn't find the files commons-services.jar as
    well as the configuration files struts-nested.jar and validator-rules.xml.

    Michael



    This archive was generated by hypermail 2.0.0 : Fri Jan 03 2003 - 12:31:50 EST