Question

I have looked everywhere and tried to get to the root of this error but am Having no luck. I have Eclipse STS with Dali JPA Tools installed. I have a project with a connected HSQLDB and entities. When I go to the JPA perspective I have this error in my error console :

Console configuration "" does not exist.

What does this mean?

Thanks.

Was it helpful?

Solution

I also had this problem once. Arises when you check-out a project from a source control repository and some of the configurations held by the project creator are not shared among team members. By chance, are you using HibernateJPA as the JPA implementation? In that case, check the following:

Go to your project Properties > Hibernate Settings, once there, check the combobox below the "Default Hibernate Console Configuration" label and select a console configuration. If none console configuration exists, go to Run > Run Configurations ... and under Hibernate Console Configuration create a new Configuration, specify the project name, in the "Database connection:" combobox select "[JPA Project Configured Connection]", click Apply and return to the "Hibernate Settings" settings page of your project configuration.

Select a console configuration in your Hibernate settings

enter image description here

Once everything is done, clean your project (maybe it has be done a couple of times before the error dissapears though, due to some eclipse issues), if the project doesn't refresh properly, restart Eclipse (yes, it's kind of extreme but sometimes it just works).

If you're using Maven and the m2e plugin, right-click in your project and goto to Maven > Update Project Configuration... and wait for the project to been refreshed. enter image description here

OTHER TIPS

In case the Hibernate Console Configuration ist not shown, disable the Hibernate Support for the project and re-enable again.

Sometimes if there is no console configuration with the name of your project, and disabling and re-enabling hibernate support doesn't cause one to appear, you have to create one. This can be done with Run->Run Configurations. However, if you get the error that "console configuration [name] already exists" when you try to create a new hibernate console configuration with the same name as your project, it might be because you have a Java Application run configuration with that name. In that case, you need to delete the Java Application run configuration first, then you can create the Hibernate run configuration.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top