Ok, where am I going wrong here?:

hibernate.har/META-INF/hibernate-service.xml

  | <server>
  |     <mbean code="org.jboss.hibernate.jmx.Hibernate" 
name="jboss.har:service=Hibernate">
  |                 <depends>jboss.jca:service=RARDeployer</depends>
  |         <depends>jboss.jca:service=LocalTxCM,name=PostgresDS</depends>
  |         <attribute 
name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
  |         <attribute name="DatasourceName">java:/PostgresDS</attribute>
  |         <attribute 
name="Dialect">org.hibernate.dialect.PostgreSQLDialect</attribute>
  |         <attribute 
name="CacheProviderClass">org.hibernate.cache.EhCacheProvider</attribute>
  |         <!-- Turn this on and set the value to update if you want all the 
tables to be updated by hibernate -->
  |         <!-- or create-drop if you want the tables to be re-generated -->
  |         <attribute name="Hbm2ddlAuto"></attribute>
  |         <attribute name="ShowSqlEnabled">true</attribute>
  |         <attribute name="JdbcBatchSize">25</attribute>
  |     </mbean>
  | </server>
  | 

During startup there is no mention of any hibernate mapping occuring between 
the *.hbm.xml and *.class files. I have placed my hibernate.har folder, which 
worked fine in 4.0.0, in the deploy directory of 4.0.2. The only changes I have 
made, as show above, is to change the package reference from net.sf.hibernate 
to org.hibernate.

My postgres-ds.xml is as follows:


  | <datasources>
  |   <local-tx-datasource>
  |     <jndi-name>PostgresDS</jndi-name>
  |     
<connection-url>jdbc:postgresql://localhost:5432/beyarecords?ssl=true</connection-url>
  |     <driver-class>org.postgresql.Driver</driver-class>
  |     <user-name>*</user-name>
  |     <password>*</password>
  |     <max-pool-size>10</max-pool-size>
  |       <metadata>
  |          <type-mapping>PostgreSQL 7.2</type-mapping>
  |       </metadata>
  |   </local-tx-datasource>
  | </datasources>
  | 

What am I doing wrong here? When my app tries to make a connection to the 
database nothing happens and no error output is genertated either.

regards

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878449


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to