Ok.  Some of my mistakes with weak responses/tips from the Tools/IDE 
component(s).

I right-clicked my project name in the Hibernate Configurations view and 
selected edit config.  What do I need to select for persistence unit?  why 
isn't that a drop-down??  I entered 'boBETS' which is in 
BETS\resources\META-INF\persistence.xml as follows:

<?xml version="1.0" encoding="UTF-8"?>
  | <!-- Persistence deployment descriptor for dev profile -->
  | <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="boBETS">
  |       <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |       <jta-data-source>java:/boBETSDatasource</jta-data-source>
  |       <properties>
  |          <property name="hibernate.dialect" 
value="org.hibernate.dialect.SQLServerDialect"/>
  |          <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/>   
-->
  |          <property name="hibernate.show_sql" value="true"/>
  |          <property name="hibernate.format_sql" value="true"/>
  |          <property name="jboss.entity.manager.factory.jndi.name" 
value="java:/boBETSEntityManagerFactory"/>
  |          <property name="hibernate.default_catalog" value="boBETS"/>
  |          <property name="hibernate.default_schema" value="dbo"/>
  |       </properties>
  |    </persistence-unit>
  | 
  | </persistence>

when I rebuild config I get this in my error log:

severity: error
  | 
  | message: org.hibernate.console.HibernateConsoleRuntimeException: 
Persistence unit not found: 'boBETS'.
  | 
  | exception stack trace: 
org.hibernate.console.HibernateConsoleRuntimeException: Persistence unit not 
found: 'boBETS'.
  |     at 
org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:148)
  |     at 
org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:541)
  |     at 
org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:526)
  |     at 
org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:222)
  |     at 
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
  |     at 
org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:204)
  |     at 
org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:111)
  |     at 
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:40)
  |     at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
  |     at 
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
  |     at 
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
  |     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | 

hibernate-console.properties:

#File used by hibernate tools to override <datasource> and other container 
specific settings in persistence.xml
  | hibernate.connection.password=JavaTestAcct
  | hibernate.connection.username=_AppUser_JavaTestAcct
  | 
hibernate.connection.driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver
  | hibernate.dialect=org.hibernate.dialect.SQLServerDialect
  | 
hibernate.connection.url=jdbc:sqlserver://CORG0DB901:1433;databaseName=boBETS
  | 
  | 
hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
  | hibernate.datasource=
  | hibernate.transaction.manager_lookup_class=
  | 

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

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

Reply via email to