Menu

Newbie question - cannot query

Help
Anonymous
2003-09-09
2003-09-11
  • Anonymous

    Anonymous - 2003-09-09

    I got eclipse 2.1.1 + Hibernate 2.0.3 + hibernator 0.9.5.I connect to a Msql-Server but I cannot query the db.Some classes are missed or not found in the classpath ( but there are).
    Here the eclipse log
    !ENTRY org.eclipse.ui 4 4 Sep 08, 2003 10:16:05.247
    !MESSAGE Unhandled exception caught in event loop.
    !ENTRY org.eclipse.ui 4 0 Sep 08, 2003 10:16:05.247
    !MESSAGE java.lang.NoClassDefFoundError
    !STACK 0
    java.lang.NoClassDefFoundError
        at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:152)
        at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:155)
        at net.sf.hibernator.views.ConnectionView.connect(ConnectionView.java:185)
        at net.sf.hibernator.views.ConnectionView.access$4(ConnectionView.java:180)
        at net.sf.hibernator.views.ConnectionView$6.run(ConnectionView.java:164)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
        at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
        at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1838)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1545)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
        at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
        at org.eclipse.core.launcher.Main.run(Main.java:747)
        at org.eclipse.core.launcher.Main.main(Main.java:583)

    Which are the jars required to work?
    Thanks

     
    • Daniel Bradby

      Daniel Bradby - 2003-09-11

      All the required jars come with Hibernator (unless you downloaded the nolib version). What is probably missing is some class that your mapped classes require to compile. Maybe some mapped class relies on a library that is contained in another project and Hibernator isn't picking up this dependancy correctly through the Eclipse project config.

      Can you give me some more info?

      Thanks

      Daniel

       
    • Anonymous

      Anonymous - 2003-09-11

      I fix this problem exporting the classpath that contains hibernator libraries.Now nothing in result view when I try to make simple select(No eclise logs and rows return).

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.