Hi,
I have checked my hibernate config file (hibernate-prod.cfg.xml) and all seems in order, as do the mapping files. FYI this is what hibernate-prod.cfg.xml looks like:
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- JNDI Datasource Connection -->
<property name="connection.datasource">java:/AntaresDS</property>
<!-- properties -->
<property name="hibernate.statement_cache.size">10</property>
<property name="show_sql">true</property> <!-- change to false for prod deploy -->
<property name="use_outer_join">true</property>
<property name="transaction.manager_lookup_class">net.sf.hibernate.transaction.JBossTransactionManagerLookup</property>
<property name="transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>
<!-- Add the system config mapping -->
<mapping resource="com/bsl/antares/database/util/SystemConfigItem.hbm.xml"/>
<!-- mapping files -->
<mapping resource="com/bsl/antares/product_portal/model/DataPoint.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/DatabaseRelationship.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/Product.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ProductView.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ProductViewPoint.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/HistorianServer.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/HistorianGroup.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/DataPointGroup.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/DataPointGroupDetail.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/Report.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ScriptConfig.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ScriptParameters.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/Wizard.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ScriptParameterValues.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/PivotTable.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/PivotTableColumn.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ProductViewSummaryResult.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/AggregateFunctionDefs.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/PivotGraphConfig.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/PivotGraph.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/PivotGraphDataPoint.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ProductViewGraphConfig.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ProductViewGraph.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ReportGroup.hbm.xml"/>
<mapping resource="com/bsl/antares/product_portal/model/ReportManagerQueries.hbm.xml"/>
</session-factory>
</hibernate-configuration>
I have also ensured that the jboss unified class loader is turned off (this has caused problems in the past, eg it tries to load multiple versions of the jdbc driver).
I still believe the problem is in the configuration of the remote jboss instance, as the exact same .ear (with same dialect, datasource, jdbc driver etc) deployed on my local machine is fine...
I will also try to setting show_sql to true and see what happens...
Other suggestions anyone?
Thanks
RM