I installed hibernate tools from the update site (
http://download.jboss.org/jbosside/updates/development/) including all the jboss stuff. I already have all the other stuff GEF, etc installed and I know it works because I have Spring IDE working just great. After using the New Hibernate Console Configuration wizard and successfully having the sessionFactory created and I'm able to browse all my mappings, database tables and then I exit eclipse 3.1.1 and get this error:
Code:
!ENTRY org.eclipse.ui.ide 4 4 2006-01-18 23:07:53.744
!MESSAGE Problems saving workspace
Problems saving workspace
Reason:
!ENTRY org.eclipse.ui.ide 2 1 2006-01-18 23:07:53.745
!MESSAGE Problems occurred while trying to save the state of the workbench.
!SUBENTRY 1 org.eclipse.core.resources 2 566 2006-01-18 23:07:53.746
!MESSAGE Problems occurred during save.
!STACK 0
org.hibernate.console.HibernateConsoleRuntimeException: Could not write state
at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:232)
at org.hibernate.eclipse.console.HibernateConsolePlugin.writeStateTo(HibernateConsolePlugin.java:206)
at org.hibernate.eclipse.console.HibernateConsoleSaveParticipant.saving(HibernateConsoleSaveParticipant.java:42)
at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:324)
at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:153)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:156)
at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:957)
at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:1753)
at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor$2.run(IDEWorkbenchAdvisor.java:291)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:/Users/corcutt/work/.metadata/.plugins/org.hibernate.eclipse.console/hibernate-console.xml-1 (No such file or directory)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
at org.hibernate.console.KnownConfigurations.writeXml(KnownConfigurations.java:249)
at org.hibernate.console.KnownConfigurations.writeStateTo(KnownConfigurations.java:226)
... 11 more
Caused by: java.io.FileNotFoundException: file:/Users/corcutt/work/.metadata/.plugins/org.hibernate.eclipse.console/hibernate-console.xml-1 (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:235)
... 14 more
Problems occurred while trying to save the state of the workbench.
The wizard creates .metadata/.plugins/org.hibernate.eclipse.console directory but there is no hibernate-console.xml created and for some reason instead its trying to create the SAVENAME + "-" + Integer.toString(saveNumber) instead of just the SAVENAME.
Anyone know how to fix this?
(I'm running Java 5 on eclipse 3.1.1 on OSX 10.4.3 with a postgres db)