I encounter problem with adding configuration in Hibernate Configurations view.

When I try to add new Configuration then following exception is thrown:

org.hibernate.console.HibernateConsoleRuntimeException: Persistence unit not 
found: 'userDatabase'.
  |     at 
org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:134)
  |     at 
org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:496)
  |     at 
org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:484)
  |     at 
org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:203)
  |     at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
  |     at 
org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:185)
  |     at 
org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:106)
  |     at 
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
  |     at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:97)
  |     at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  |     at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  |     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I have tried to add persistence.xml to src/META-INF but got same exception.
Project was created as usual project in Eclipse (not SEAM project), but have 
enabled SEAM support.

persistence.xml:

<?xml version="1.0" encoding="UTF-8"?>
  | <persistence xmlns="http://java.sun.com/xml/ns/persistence";
  |              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |              xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
  |              version="1.0">
  |     <persistence-unit name="userDatabase">
  |         <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |         <jta-data-source>java:/project</jta-data-source><!-- DefaultDS -->
  |     </persistence-unit>
  | </persistence>

I there somtihgi have missed?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112852#4112852

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112852
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to