[hibernate-issues] [Hibernate-JIRA] Created: (HBX-835) HibernateException when configuration file is missing

Mike haller (JIRA) noreply at atlassian.com
Tue Dec 5 06:56:04 EST 2006


HibernateException when configuration file is missing
-----------------------------------------------------

         Key: HBX-835
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-835
     Project: Hibernate Tools
        Type: Bug

    Versions: 3.2beta9    
    Reporter: Mike haller
    Priority: Minor


1) Add configuration
2) Slect existing Java project
3) Do not specify hibernate configuration (Wizard does not complain)
4) Click finish
5) Open created configuration

Error
Tue Dec 05 12:53:09 CET 2006
org.hibernate.HibernateException: /hibernate.cfg.xml not found

org.hibernate.HibernateException: /hibernate.cfg.xml not found
	at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
	at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
	at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
	at org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:256)
	at org.hibernate.console.ConsoleConfiguration.configureStandardConfiguration(ConsoleConfiguration.java:479)
	at org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:460)
	at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:441)
	at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:166)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
	at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:158)
	at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:110)
	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:88)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:94)
	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:207)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list