1. Hibernate cfg xml and Eclipse problem coderanch.comI have Eclipse Europa and am trying to do a hibernate example in it. I am trying to simply add an entry to the database. My hibernate.cfg.xml file is as follows: |
2. hibernate.cfg.xml not found on Eclipse forum.hibernate.orgYou need to add a log4j.xml file in CP root. There are plenty of samples of log4j.xml on the net. Code: |
3. Eclipse 3.0 plugin can't find hibernate.cfg.xml forum.hibernate.orgI'm having problems with Eclipse 3.0 plug finding the hibernate.cfg.xml document. I've looked and found plenty of references, but none help. Hibernate.cfg.xml is in the root of the src folder right beside the packages like this src +package +anotherpackage +yetanotherpackage hibernate.cfg.xml. log4j.properties I am told that 3.1 has a method, but I'm running Win98 yet and 3.1 simply crashes within a ... |
4. error creating hibernate.cfg.xml in eclipse forum.hibernate.orgjava.lang.NullPointerException at org.jboss.tools.common.editor.TreeFormPage.initialize(TreeFormPage.java:141) at org.jboss.tools.hibernate.ui.xml.editor.HibConfig3CompoundEditor.doCreatePages(HibConfig3CompoundEditor.java:33) at org.jboss.tools.common.editor.ObjectMultiPageEditor.createPages(ObjectMultiPageEditor.java:234) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:283) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:263) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2739) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651) at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2565) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603) at org.hibernate.eclipse.console.wizards.NewConfigurationWizard$2.run(NewConfigurationWizard.java:198) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:158) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:326) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934) at org.hibernate.eclipse.console.wizards.NewConfigurationWizard.performFinish(NewConfigurationWizard.java:141) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618) ... |