Hi
I am trying to use Hibernate in SUN AS 8.1 PE. There is some terrible problem and buildSessionFactory fails with NoClassDefFoundError.
I have inluded all JARs that Hibernate requires in WEB-INF/lib
can you please help me ?
Maris
Hibernate version: 2.1.8
Mapping documents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration
PUBLIC '-//Hibernate/Hibernate Configuration DTD//EN'
'http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd'>
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:comp/env/jdbc/MySQL</property>
<property name="show_sql">true</property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files -->
<mapping resource="lv/idega/txgateway/domain/mappings/Account.hbm.xml"/>
<mapping resource="lv/idega/txgateway/domain/mappings/Bank.hbm.xml"/>
<mapping resource="lv/idega/txgateway/domain/mappings/Currency.hbm.xml"/>
<mapping resource="lv/idega/txgateway/domain/mappings/Merchant.hbm.xml"/>
<mapping resource="lv/idega/txgateway/domain/mappings/MerchantsHaveBanks.hbm.xml"/>
<mapping resource="lv/idega/txgateway/domain/mappings/Transaction.hbm.xml"/>
<mapping resource="lv/idega/txgateway/domain/mappings/User.hbm.xml"/>
</session-factory>
</hibernate-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
>
<class
name="lv.idega.txgateway.domain.Account"
table="accounts"
>
<id
name="accountId"
column="accountId"
type="java.lang.Short"
>
<generator class="native">
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-Account.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
<property
name="accountLimit"
type="java.math.BigDecimal"
update="true"
insert="true"
column="accountLimit"
length="8"
/>
<many-to-one
name="merchant"
class="lv.idega.txgateway.domain.Merchant"
cascade="none"
outer-join="auto"
update="true"
insert="true"
>
<column
name="merchantId"
/>
</many-to-one>
<many-to-one
name="currency"
class="lv.idega.txgateway.domain.Currency"
cascade="none"
outer-join="auto"
update="true"
insert="true"
>
<column
name="currencyId"
/>
</many-to-one>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Account.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
>
<class
name="lv.idega.txgateway.domain.Bank"
table="banks"
>
<id
name="bankId"
column="bankId"
type="java.lang.Short"
>
<generator class="native">
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-Bank.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
<property
name="description"
type="java.lang.String"
update="true"
insert="true"
column="description"
length="255"
/>
<property
name="bankLimit"
type="java.math.BigDecimal"
update="true"
insert="true"
column="bankLimit"
length="8"
/>
<set
name="transactions"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>
<key
column="bankId"
>
</key>
<one-to-many
class="lv.idega.txgateway.domain.Transaction"
/>
</set>
<set
name="merchantsHaveBanks"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>
<key
column="bankId"
>
</key>
<one-to-many
class="lv.idega.txgateway.domain.MerchantsHaveBanks"
/>
</set>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Bank.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
>
<class
name="lv.idega.txgateway.domain.Currency"
table="currencies"
mutable="false"
>
<id
name="currencyId"
column="currencyId"
type="java.lang.String"
>
<generator class="assigned">
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-Currency.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
<property
name="description"
type="java.lang.String"
update="true"
insert="true"
column="description"
length="20"
/>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Currency.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
>
<class
name="lv.idega.txgateway.domain.Merchant"
table="merchants"
>
<id
name="merchantId"
column="merchantId"
type="java.lang.Short"
>
<generator class="native">
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-Merchant.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
<property
name="passwd"
type="java.lang.String"
update="true"
insert="true"
column="passwd"
length="20"
not-null="true"
/>
<property
name="description"
type="java.lang.String"
update="true"
insert="true"
column="description"
length="255"
/>
<set
name="transactions"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>
<key
column="merchantId"
>
</key>
<one-to-many
class="lv.idega.txgateway.domain.Transaction"
/>
</set>
<set
name="accounts"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>
<key
column="merchantId"
>
</key>
<one-to-many
class="lv.idega.txgateway.domain.Account"
/>
</set>
<set
name="merchantsHaveBanks"
lazy="true"
inverse="true"
cascade="all"
sort="unsorted"
>
<key
column="merchantId"
>
</key>
<one-to-many
class="lv.idega.txgateway.domain.MerchantsHaveBanks"
/>
</set>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Merchant.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
>
<class
name="lv.idega.txgateway.domain.MerchantsHaveBanks"
table="merchants_have_banks"
>
<composite-id
name="comp_id"
class="lv.idega.txgateway.domain.MerchantsHaveBanksPK"
>
<key-property
name="merchantId"
type="java.lang.Short"
column="merchantId"
length="5"
/>
<key-property
name="bankId"
type="java.lang.Short"
column="bankId"
length="5"
/>
</composite-id>
<many-to-one
name="bank"
class="lv.idega.txgateway.domain.Bank"
cascade="none"
outer-join="auto"
update="false"
insert="false"
>
<column
name="bankId"
/>
</many-to-one>
<many-to-one
name="merchant"
class="lv.idega.txgateway.domain.Merchant"
cascade="none"
outer-join="auto"
update="false"
insert="false"
>
<column
name="merchantId"
/>
</many-to-one>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-MerchantsHaveBanks.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
>
<class
name="lv.idega.txgateway.domain.Transaction"
table="transactions"
>
<id
name="transactionId"
column="transactionId"
type="java.lang.Long"
>
<generator class="native">
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-Transaction.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
<property
name="amount"
type="java.math.BigDecimal"
update="true"
insert="true"
column="amount"
length="8"
not-null="true"
/>
<property
name="clientIp"
type="java.lang.String"
update="true"
insert="true"
column="clientIP"
length="15"
not-null="true"
/>
<property
name="bankTransactionId"
type="java.lang.String"
update="true"
insert="true"
column="bankTransactionId"
length="28"
not-null="true"
/>
<property
name="txStatus"
type="byte"
update="true"
insert="true"
column="txStatus"
length="3"
not-null="true"
/>
<property
name="statusRefreshTime"
type="java.util.Date"
update="true"
insert="true"
column="statusRefreshTime"
length="19"
/>
<many-to-one
name="bank"
class="lv.idega.txgateway.domain.Bank"
cascade="none"
outer-join="auto"
update="true"
insert="true"
>
<column
name="bankId"
/>
</many-to-one>
<many-to-one
name="merchant"
class="lv.idega.txgateway.domain.Merchant"
cascade="none"
outer-join="auto"
update="true"
insert="true"
>
<column
name="merchantId"
/>
</many-to-one>
<many-to-one
name="currency"
class="lv.idega.txgateway.domain.Currency"
cascade="none"
outer-join="auto"
update="true"
insert="true"
>
<column
name="currencyId"
/>
</many-to-one>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-Transaction.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping
>
<class
name="lv.idega.txgateway.domain.User"
table="users"
>
<id
name="username"
column="username"
type="java.lang.String"
>
<generator class="native">
<!--
To add non XDoclet generator parameters, create a file named
hibernate-generator-params-User.xml
containing the additional parameters and place it in your merge dir.
-->
</generator>
</id>
<property
name="passwd"
type="java.lang.String"
update="true"
insert="true"
column="passwd"
length="32"
not-null="true"
/>
<!--
To add non XDoclet property mappings, create a file named
hibernate-properties-User.xml
containing the additional properties and place it in your merge dir.
-->
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Code:
try
{
Configuration con = new Configuration().configure();
SessionFactory sf = con.buildSessionFactory(); // exception here
Session session = sf.openSession();
} catch (HibernateException ex)
{
log.fatal("HibernateException ",ex);
}
Full stack trace of any exception that occurs:
[#|2005-05-17T16:05:06.947+0300|INFO|sun-appserver-pe8.1_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=16;|JAXRPCSERVLET14: JAX-RPC servlet initializing|#]
[#|2005-05-17T16:06:36.822+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|Hibernate 2.1.8|#]
[#|2005-05-17T16:06:36.822+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|hibernate.properties not found|#]
[#|2005-05-17T16:06:36.822+0300|WARNING|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|could not copy system properties. System properties will be ignored.|#]
[#|2005-05-17T16:06:36.838+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|using CGLIB reflection optimizer|#]
[#|2005-05-17T16:06:37.150+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|using JDK 1.4 java.sql.Timestamp handling|#]
[#|2005-05-17T16:06:37.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|configuring from resource: /hibernate.cfg.xml|#]
[#|2005-05-17T16:06:37.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Configuration resource: /hibernate.cfg.xml|#]
[#|2005-05-17T16:06:38.369+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Account.hbm.xml|#]
[#|2005-05-17T16:06:39.041+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Account -> accounts|#]
[#|2005-05-17T16:06:36.822+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|Hibernate 2.1.8|#]
[#|2005-05-17T16:06:36.822+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|hibernate.properties not found|#]
[#|2005-05-17T16:06:36.822+0300|WARNING|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|could not copy system properties. System properties will be ignored.|#]
[#|2005-05-17T16:06:36.838+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|using CGLIB reflection optimizer|#]
[#|2005-05-17T16:06:37.150+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Environment|_ThreadID=17;|using JDK 1.4 java.sql.Timestamp handling|#]
[#|2005-05-17T16:06:37.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|configuring from resource: /hibernate.cfg.xml|#]
[#|2005-05-17T16:06:37.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Configuration resource: /hibernate.cfg.xml|#]
[#|2005-05-17T16:06:38.369+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Account.hbm.xml|#]
[#|2005-05-17T16:06:39.041+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Account -> accounts|#]
[#|2005-05-17T16:06:39.978+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Bank.hbm.xml|#]
[#|2005-05-17T16:06:40.025+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Bank -> banks|#]
[#|2005-05-17T16:06:40.103+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Currency.hbm.xml|#]
[#|2005-05-17T16:06:40.134+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Currency -> currencies|#]
[#|2005-05-17T16:06:40.134+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Merchant.hbm.xml|#]
[#|2005-05-17T16:06:40.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Merchant -> merchants|#]
[#|2005-05-17T16:06:40.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/MerchantsHaveBanks.hbm.xml|#]
[#|2005-05-17T16:06:40.244+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.MerchantsHaveBanks -> merchants_have_banks|#]
[#|2005-05-17T16:06:39.978+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Bank.hbm.xml|#]
[#|2005-05-17T16:06:40.025+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Bank -> banks|#]
[#|2005-05-17T16:06:40.103+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Currency.hbm.xml|#]
[#|2005-05-17T16:06:40.134+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Currency -> currencies|#]
[#|2005-05-17T16:06:40.134+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Merchant.hbm.xml|#]
[#|2005-05-17T16:06:40.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Merchant -> merchants|#]
[#|2005-05-17T16:06:40.181+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/MerchantsHaveBanks.hbm.xml|#]
[#|2005-05-17T16:06:40.244+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.MerchantsHaveBanks -> merchants_have_banks|#]
[#|2005-05-17T16:06:41.275+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.util.ReflectHelper|_ThreadID=17;|reflection optimizer disabled for: lv.idega.txgateway.domain.MerchantsHaveBanksPK, NoClassDefFoundError: null|#]
[#|2005-05-17T16:06:41.291+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/Transaction.hbm.xml|#]
[#|2005-05-17T16:06:41.338+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.Transaction -> transactions|#]
[#|2005-05-17T16:06:41.338+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Mapping resource: lv/idega/txgateway/domain/mappings/User.hbm.xml|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping class: lv.idega.txgateway.domain.User -> users|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|Configured SessionFactory: null|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|processing one-to-many association mappings|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping collection: lv.idega.txgateway.domain.Bank.transactions -> transactions|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping collection: lv.idega.txgateway.domain.Bank.merchantsHaveBanks -> merchants_have_banks|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping collection: lv.idega.txgateway.domain.Merchant.transactions -> transactions|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping collection: lv.idega.txgateway.domain.Merchant.accounts -> accounts|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Binder|_ThreadID=17;|Mapping collection: lv.idega.txgateway.domain.Merchant.merchantsHaveBanks -> merchants_have_banks|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|processing one-to-one association property references|#]
[#|2005-05-17T16:06:41.384+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|processing foreign key constraints|#]
[#|2005-05-17T16:06:42.056+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.dialect.Dialect|_ThreadID=17;|Using dialect: net.sf.hibernate.dialect.MySQLDialect|#]
[#|2005-05-17T16:06:42.213+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|Maximim outer join fetch depth: 2|#]
[#|2005-05-17T16:06:42.213+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|Use outer join fetching: true|#]
[#|2005-05-17T16:06:42.463+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.util.NamingHelper|_ThreadID=17;|JNDI InitialContext properties:{}|#]
[#|2005-05-17T16:06:42.494+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.connection.DatasourceConnectionProvider|_ThreadID=17;|Using datasource: java:comp/env/jdbc/MySQL|#]
[#|2005-05-17T16:06:42.697+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.transaction.TransactionManagerLookupFactory|_ThreadID=17;|No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)|#]
[#|2005-05-17T16:06:45.041+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|Use scrollable result sets: true|#]
[#|2005-05-17T16:06:45.041+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|Use JDBC3 getGeneratedKeys(): true|#]
[#|2005-05-17T16:06:45.041+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|Optimize cache for minimal puts: false|#]
[#|2005-05-17T16:06:45.041+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|echoing all SQL to stdout|#]
[#|2005-05-17T16:06:45.056+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|Query language substitutions: {}|#]
[#|2005-05-17T16:06:45.056+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|cache provider: net.sf.hibernate.cache.EhCacheProvider|#]
[#|2005-05-17T16:06:45.166+0300|FINE|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.SettingsFactory|_ThreadID=17;|Wrap result sets enabled? : false|#]
[#|2005-05-17T16:06:45.166+0300|INFO|sun-appserver-pe8.1_01|net.sf.hibernate.cfg.Configuration|_ThreadID=17;|instantiating and configuring caches|#]
[#|2005-05-17T16:06:45.384+0300|WARNING|sun-appserver-pe8.1_01|net.sf.ehcache.config.Configurator|_ThreadID=17;|No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: file:/C:/Sun/AppServer/domains/domain1/generated/jsp/j2ee-modules/IDEGATransactionGateway/loader/ehcache-failsafe.xml|#]
[#|2005-05-17T16:06:46.103+0300|SEVERE|sun-appserver-pe8.1_01|javax.enterprise.resource.webservices.rpc.server.http|_ThreadID=17;|caught throwable
java.lang.NoClassDefFoundError
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:167)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:237)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
at lv.idega.txgateway.webservice.TransactionGatewayWSImpl.closeBusinessDay(TransactionGatewayWSImpl.java:54)
at lv.idega.txgateway.webservice.TransactionGatewayWSSEI_Tie.invoke_closeBusinessDay(TransactionGatewayWSSEI_Tie.java:146)
at lv.idega.txgateway.webservice.TransactionGatewayWSSEI_Tie.processingHook(TransactionGatewayWSSEI_Tie.java:333)
at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:321)
at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServletDelegate.java:443)
at com.sun.enterprise.webservice.JAXRPCServlet.doPost(JAXRPCServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:184)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Name and version of the database you are using: MySQL 4.1
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
FINEST