When I try to actualy connect using Eclipse 2.1.0 and hibernator 0.9.5, the log shows it just sitting on the adding mapping file.
In looking at the eclipse log, this is the error that is produce when you try to connect:
!SESSION Aug 26, 2003 13:00:54.390 ---------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/DEVEL/ide/eclipse/
!ENTRY org.eclipse.ui 4 4 Aug 26, 2003 13:00:54.390
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Aug 26, 2003 13:00:54.406
!MESSAGE org/apache/log4j/Layout
!STACK 0
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at net.sf.hibernate.util.XMLHelper.<clinit>(XMLHelper.java:28)
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:845)
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)
Now, I have version 1.2.8 of log4j (log4j-1.2.8.jar). Inside of it, there exists an org/apache/log4j/Layout file.
I am guessing that perhaps you have a different version of log4j installed? Can you check into your log4j file. My Layout.class in there is dated 2/20/2003 at 2:07 AM and is 994 bytes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am suprised you didn't get a dialog box saying there was a problem ... hmmm
Hibernator doesn't come with log4j so this might make sense if there is a commons-logging.properties and/or a log4j.properties somewhere in your classpath. If you also have log4j.jar in your classpath then maybe there is some Classloader problem here.
Can you send me more info on your project layout and what is in the Hibernator log?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I try to actualy connect using Eclipse 2.1.0 and hibernator 0.9.5, the log shows it just sitting on the adding mapping file.
In looking at the eclipse log, this is the error that is produce when you try to connect:
!SESSION Aug 26, 2003 13:00:54.390 ---------------------------------------------
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/DEVEL/ide/eclipse/
!ENTRY org.eclipse.ui 4 4 Aug 26, 2003 13:00:54.390
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Aug 26, 2003 13:00:54.406
!MESSAGE org/apache/log4j/Layout
!STACK 0
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
at net.sf.hibernate.util.XMLHelper.<clinit>(XMLHelper.java:28)
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:845)
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)
Now, I have version 1.2.8 of log4j (log4j-1.2.8.jar). Inside of it, there exists an org/apache/log4j/Layout file.
I am guessing that perhaps you have a different version of log4j installed? Can you check into your log4j file. My Layout.class in there is dated 2/20/2003 at 2:07 AM and is 994 bytes.
I am suprised you didn't get a dialog box saying there was a problem ... hmmm
Hibernator doesn't come with log4j so this might make sense if there is a commons-logging.properties and/or a log4j.properties somewhere in your classpath. If you also have log4j.jar in your classpath then maybe there is some Classloader problem here.
Can you send me more info on your project layout and what is in the Hibernator log?
Thanks