Using Hibernator 0.9.5, eclipse 2.1,Oracle database
after creating my connection it fails to connect with the error
Error in config of database and Mappings Path must include project and resource name: 'gives name of eclipse project'
Log shows:-
Output location is in source location: /RUNNING
java.lang.IllegalArgumentException: Path must include project and resource name: /RUNNING
at org.eclipse.core.internal.utils.Assert.isLegal(Assert.java:55)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1442)
at org.eclipse.core.internal.resources.Container.getFolder(Container.java:129)
at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:130)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using Hibernator 0.9.5, eclipse 2.1,Oracle database
after creating my connection it fails to connect with the error
Error in config of database and Mappings Path must include project and resource name: 'gives name of eclipse project'
Log shows:-
Output location is in source location: /RUNNING
java.lang.IllegalArgumentException: Path must include project and resource name: /RUNNING
at org.eclipse.core.internal.utils.Assert.isLegal(Assert.java:55)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1442)
at org.eclipse.core.internal.resources.Container.getFolder(Container.java:129)
at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:130)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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)
See above thread on the same topic