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:
I'm a but stumped on this one, but now I've got some time (finished releasing http://subclipse.sourceforge.net check it out!) I'll get it fixed and hopefully release it shortly.
Thanks
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't seem to re-create this problem. Could you or (someone else with the problem) let me know their project setup. What is your classpath, where do your classes go, where is your source directory ..etc etc.
Thanks
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using WebSphere Application Developer 5.0 which uses Eclipse 2.0.2. I think some of the problems with connection may be due to the fact that many of the jars in Hibernator reference newer jars for Eclipse 2.1.0.
Does anyone know if you can update Eclipse inside of WSAD? That may take care of some of the problems.
If you have an older version of Eclipse you may want to see if you get these same errors, that may help me with my debugging.
Thanks
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-07-02
Anyone knows about it? I had the same problem using Oracle 8.0.
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'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The same problem using PostgreSQL 7.3.3, eclipse 2.1.1 M20030604.
The thrown exception is:
java.lang.IllegalArgumentException: Path must include project and resource name: /Hibernate-test
I can offer any information you need, just contact me on Jiri.Mares at svt.cz
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-07-12
Having the identical problem with Eclipse 2.1 AND Eclipse 2.0 and MySQL4.0 and Connector/J 3.0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-07-13
When I am adding a connector but do not select a project in the first window, I can connect to the database (same as in previous message).
I am not able to execute even the most simple query (SELECT column FROM table;). It gives a "Execution queryundefinied alias: column [SELECT column FROM table;]" error.
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)
I am getting the same error with MySQL. Is there any clarification on this?
Same error with:
eclipse 2.1, JDK 1.4.1 and MySQL/Postgre
The same thing happenig in:
Sybase 11.9.2
And
MS SQL Server 2000
I'm a but stumped on this one, but now I've got some time (finished releasing http://subclipse.sourceforge.net check it out!) I'll get it fixed and hopefully release it shortly.
Thanks
Daniel
I am having the same problems connecting. Has this been worked out yet?
I can't seem to re-create this problem. Could you or (someone else with the problem) let me know their project setup. What is your classpath, where do your classes go, where is your source directory ..etc etc.
Thanks
Daniel
I am using WebSphere Application Developer 5.0 which uses Eclipse 2.0.2. I think some of the problems with connection may be due to the fact that many of the jars in Hibernator reference newer jars for Eclipse 2.1.0.
Does anyone know if you can update Eclipse inside of WSAD? That may take care of some of the problems.
If you have an older version of Eclipse you may want to see if you get these same errors, that may help me with my debugging.
Thanks
Dan
Anyone knows about it? I had the same problem using Oracle 8.0.
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'
The same problem using PostgreSQL 7.3.3, eclipse 2.1.1 M20030604.
The thrown exception is:
java.lang.IllegalArgumentException: Path must include project and resource name: /Hibernate-test
I can offer any information you need, just contact me on Jiri.Mares at svt.cz
Having the identical problem with Eclipse 2.1 AND Eclipse 2.0 and MySQL4.0 and Connector/J 3.0
When I am adding a connector but do not select a project in the first window, I can connect to the database (same as in previous message).
I am not able to execute even the most simple query (SELECT column FROM table;). It gives a "Execution queryundefinied alias: column [SELECT column FROM table;]" error.
Solved. It was to do with projects that have the source/classes in the root dir of the project. The fix is in CVS and I will release shortly