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

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Sat Dec 9 21:02:04 EST 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-835?page=comments#action_25601 ] 

Max Rydahl Andersen commented on HBX-835:
-----------------------------------------

the wizard would need to "run" the full configurtion discovery to "complain" plus it can happen if you rename or removes the hibernate.cfg.xml after you created the configuation.

thus what do you expect besides an error dialog with info about the file not being found ?

> 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