-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: ehcache problem
PostPosted: Tue Oct 11, 2005 5:57 pm 
Newbie

Joined: Sun Jan 16, 2005 7:15 pm
Posts: 6
Hello,

I have just tried to migrate my projects to Hibernate 3.0 from 2.1. The enviroment is now as follows:

1. Hibernate 3.0
2. JBoss 4.0.3
3. Mysql 4.1.14
4. Mysql-connector 3.1.10
5. eclipse 3.1
6. myeclipse 4.0.0
7. fedora 3, kernel 2.6.12

I have searched the entire project to make sure I have no references to net.sf.... and I have made sure that all my projects refer to the ehcache 1.1 and yet, whenever I start any of the projects I have the following error:

17:43:26,519 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
17:43:26,527 ERROR [HibernateSessionFactory] Building SessionFactory Failed
java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException

I am really confused as to where the problem is. If anyone has an answer it would be great.

Thanks

Anna

17:43:24,132 INFO [Environment] Hibernate 3.1alpha1
17:43:24,143 INFO [Environment] hibernate.properties not found
17:43:24,152 INFO [Environment] using CGLIB reflection optimizer
17:43:24,153 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
17:43:24,375 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
17:43:24,375 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
17:43:24,429 INFO [Configuration] Reading mappings from resource: org/database/data/Addresses.hbm.xml
17:43:24,609 INFO [HbmBinder] Mapping class: org.database.data.Addresses -> addresses
17:43:24,663 INFO [Configuration] Reading mappings from resource: org/database/data/Applications.hbm.xml
17:43:24,693 INFO [HbmBinder] Mapping class: org.database.data.Applications -> applications
17:43:24,694 INFO [Configuration] Reading mappings from resource: org/database/data/Categories.hbm.xml
17:43:24,732 INFO [HbmBinder] Mapping class: org.database.data.Categories -> categories
17:43:24,735 INFO [Configuration] Reading mappings from resource: org/database/data/Companies.hbm.xml
17:43:24,756 INFO [HbmBinder] Mapping class: org.database.data.Companies -> companies
17:43:24,757 INFO [Configuration] Reading mappings from resource: org/database/data/ContactTypes.hbm.xml
17:43:24,778 INFO [HbmBinder] Mapping class: org.database.data.ContactTypes -> contact_types
17:43:24,780 INFO [Configuration] Reading mappings from resource: org/database/data/Contacts.hbm.xml
17:43:24,793 INFO [HbmBinder] Mapping class: org.database.data.Contacts -> contacts
17:43:24,971 INFO [Configuration] Reading mappings from resource: org/database/data/ContractLines.hbm.xml
17:43:24,996 INFO [HbmBinder] Mapping class: org.database.data.ContractLines -> contract_lines
17:43:24,999 INFO [Configuration] Reading mappings from resource: org/database/data/Contracts.hbm.xml
17:43:25,031 INFO [HbmBinder] Mapping class: org.database.data.Contracts -> contracts
17:43:25,033 INFO [Configuration] Reading mappings from resource: org/database/data/ControlParameters.hbm.xml
17:43:25,049 INFO [HbmBinder] Mapping class: org.database.data.ControlParameters -> control_parameters
17:43:25,050 INFO [Configuration] Reading mappings from resource: org/database/data/Currencies.hbm.xml
17:43:25,074 INFO [HbmBinder] Mapping class: org.database.data.Currencies -> currencies
17:43:25,075 INFO [Configuration] Reading mappings from resource: org/database/data/CustomerCodes.hbm.xml
17:43:25,090 INFO [HbmBinder] Mapping class: org.database.data.CustomerCodes -> customer_codes
17:43:25,092 INFO [Configuration] Reading mappings from resource: org/database/data/CustomerContracts.hbm.xml
17:43:25,105 INFO [HbmBinder] Mapping class: org.database.data.CustomerContracts -> customer_contracts
17:43:25,107 INFO [Configuration] Reading mappings from resource: org/database/data/CustomerItems.hbm.xml
17:43:25,119 INFO [HbmBinder] Mapping class: org.database.data.CustomerItems -> customer_items
17:43:25,121 INFO [Configuration] Reading mappings from resource: org/database/data/CustomerTypes.hbm.xml
17:43:25,130 INFO [HbmBinder] Mapping class: org.database.data.CustomerTypes -> customer_types
17:43:25,131 INFO [Configuration] Reading mappings from resource: org/database/data/CustomersCompany.hbm.xml
17:43:25,162 INFO [HbmBinder] Mapping class: org.database.data.CustomersCompany -> customers_company
17:43:25,163 INFO [Configuration] Reading mappings from resource: org/database/data/Customers.hbm.xml
17:43:25,225 INFO [HbmBinder] Mapping class: org.database.data.Customers -> customers
17:43:25,235 INFO [Configuration] Reading mappings from resource: org/database/data/ExpenseTypes.hbm.xml
17:43:25,254 INFO [HbmBinder] Mapping class: org.database.data.ExpenseTypes -> expense_types
17:43:25,255 INFO [Configuration] Reading mappings from resource: org/database/data/GenerateCodes.hbm.xml
17:43:25,276 INFO [HbmBinder] Mapping class: org.database.data.GenerateCodes -> generate_codes
17:43:25,277 INFO [Configuration] Reading mappings from resource: org/database/data/Images.hbm.xml
17:43:25,292 INFO [HbmBinder] Mapping class: org.database.data.Images -> images
17:43:25,293 INFO [Configuration] Reading mappings from resource: org/database/data/InvoiceTypes.hbm.xml
17:43:25,302 INFO [HbmBinder] Mapping class: org.database.data.InvoiceTypes -> invoice_types
17:43:25,303 INFO [Configuration] Reading mappings from resource: org/database/data/ItemLocations.hbm.xml
17:43:25,315 INFO [HbmBinder] Mapping class: org.database.data.ItemLocations -> item_locations
17:43:25,316 INFO [Configuration] Reading mappings from resource: org/database/data/Items.hbm.xml
17:43:25,341 INFO [HbmBinder] Mapping class: org.database.data.Items -> items
17:43:25,350 INFO [Configuration] Reading mappings from resource: org/database/data/Locations.hbm.xml
17:43:25,363 INFO [HbmBinder] Mapping class: org.database.data.Locations -> locations
17:43:25,364 INFO [Configuration] Reading mappings from resource: org/database/data/Lots.hbm.xml
17:43:25,395 INFO [HbmBinder] Mapping class: org.database.data.Lots -> lots
17:43:25,397 INFO [Configuration] Reading mappings from resource: org/database/data/Measures.hbm.xml
17:43:25,414 INFO [HbmBinder] Mapping class: org.database.data.Measures -> measures
17:43:25,416 INFO [Configuration] Reading mappings from resource: org/database/data/MonthItemCust.hbm.xml
17:43:25,427 INFO [HbmBinder] Mapping class: org.database.data.MonthItemCust -> month_item_cust
17:43:25,428 INFO [Configuration] Reading mappings from resource: org/database/data/PeriodItemCust.hbm.xml
17:43:25,439 INFO [HbmBinder] Mapping class: org.database.data.PeriodItemCust -> period_item_cust
17:43:25,441 INFO [Configuration] Reading mappings from resource: org/database/data/ProfileApplications.hbm.xml
17:43:25,454 INFO [HbmBinder] Mapping class: org.database.data.ProfileApplications -> profile_applications
17:43:25,455 INFO [Configuration] Reading mappings from resource: org/database/data/Profiles.hbm.xml
17:43:25,463 INFO [HbmBinder] Mapping class: org.database.data.Profiles -> profiles
17:43:25,464 INFO [Configuration] Reading mappings from resource: org/database/data/QuoteLines.hbm.xml
17:43:25,474 INFO [HbmBinder] Mapping class: org.database.data.QuoteLines -> quote_lines
17:43:25,476 INFO [Configuration] Reading mappings from resource: org/database/data/Quotes.hbm.xml
17:43:25,484 INFO [HbmBinder] Mapping class: org.database.data.Quotes -> quotes
17:43:25,486 INFO [Configuration] Reading mappings from resource: org/database/data/Regions.hbm.xml
17:43:25,494 INFO [HbmBinder] Mapping class: org.database.data.Regions -> regions
17:43:25,495 INFO [Configuration] Reading mappings from resource: org/database/data/Reminders.hbm.xml
17:43:25,528 INFO [HbmBinder] Mapping class: org.database.data.Reminders -> reminders
17:43:25,529 INFO [Configuration] Reading mappings from resource: org/database/data/SalesmanExpenses.hbm.xml
17:43:25,537 INFO [HbmBinder] Mapping class: org.database.data.SalesmanExpenses -> salesman_expenses
17:43:25,538 INFO [Configuration] Reading mappings from resource: org/database/data/SalesmanRegions.hbm.xml
17:43:25,546 INFO [HbmBinder] Mapping class: org.database.data.SalesmanRegions -> salesman_regions
17:43:25,548 INFO [Configuration] Reading mappings from resource: org/database/data/Salesmen.hbm.xml
17:43:25,559 INFO [HbmBinder] Mapping class: org.database.data.Salesmen -> salesmen
17:43:25,562 INFO [Configuration] Reading mappings from resource: org/database/data/Sessions.hbm.xml
17:43:25,570 INFO [HbmBinder] Mapping class: org.database.data.Sessions -> sessions
17:43:25,571 INFO [Configuration] Reading mappings from resource: org/database/data/ShippingAddresses.hbm.xml
17:43:25,579 INFO [HbmBinder] Mapping class: org.database.data.ShippingAddresses -> shipping_addresses
17:43:25,580 INFO [Configuration] Reading mappings from resource: org/database/data/Sizes.hbm.xml
17:43:25,588 INFO [HbmBinder] Mapping class: org.database.data.Sizes -> sizes
17:43:25,588 INFO [Configuration] Reading mappings from resource: org/database/data/Statuses.hbm.xml
17:43:25,599 INFO [HbmBinder] Mapping class: org.database.data.Statuses -> statuses
17:43:25,600 INFO [Configuration] Reading mappings from resource: org/database/data/Suppliers.hbm.xml
17:43:25,609 INFO [HbmBinder] Mapping class: org.database.data.Suppliers -> suppliers
17:43:25,610 INFO [Configuration] Reading mappings from resource: org/database/data/TempAdditems.hbm.xml
17:43:25,624 INFO [HbmBinder] Mapping class: org.database.data.TempAdditems -> temp_additems
17:43:25,626 INFO [Configuration] Reading mappings from resource: org/database/data/TempAddresses.hbm.xml
17:43:25,654 INFO [HbmBinder] Mapping class: org.database.data.TempAddresses -> temp_addresses
17:43:25,655 INFO [Configuration] Reading mappings from resource: org/database/data/TempCntcus.hbm.xml
17:43:25,667 INFO [HbmBinder] Mapping class: org.database.data.TempCntcus -> temp_cntcus
17:43:25,668 INFO [Configuration] Reading mappings from resource: org/database/data/TempContacts.hbm.xml
17:43:25,676 INFO [HbmBinder] Mapping class: org.database.data.TempContacts -> temp_contacts
17:43:25,679 INFO [Configuration] Reading mappings from resource: org/database/data/TempContlines.hbm.xml
17:43:25,689 INFO [HbmBinder] Mapping class: org.database.data.TempContlines -> temp_contlines
17:43:25,690 INFO [Configuration] Reading mappings from resource: org/database/data/TempContracts.hbm.xml
17:43:25,699 INFO [HbmBinder] Mapping class: org.database.data.TempContracts -> temp_contracts
17:43:25,701 INFO [Configuration] Reading mappings from resource: org/database/data/TempCsit.hbm.xml
17:43:25,709 INFO [HbmBinder] Mapping class: org.database.data.TempCsit -> temp_csit
17:43:25,710 INFO [Configuration] Reading mappings from resource: org/database/data/TempCustComp.hbm.xml
17:43:25,721 INFO [HbmBinder] Mapping class: org.database.data.TempCustComp -> temp_cust_comp
17:43:25,722 INFO [Configuration] Reading mappings from resource: org/database/data/TempCustomers.hbm.xml
17:43:25,739 INFO [HbmBinder] Mapping class: org.database.data.TempCustomers -> temp_customers
17:43:25,744 INFO [Configuration] Reading mappings from resource: org/database/data/TempItemLoc.hbm.xml
17:43:25,766 INFO [HbmBinder] Mapping class: org.database.data.TempItemLoc -> temp_item_loc
17:43:25,769 INFO [Configuration] Reading mappings from resource: org/database/data/TempItems.hbm.xml
17:43:25,785 INFO [HbmBinder] Mapping class: org.database.data.TempItems -> temp_items
17:43:25,789 INFO [Configuration] Reading mappings from resource: org/database/data/TempMonth.hbm.xml
17:43:25,800 INFO [HbmBinder] Mapping class: org.database.data.TempMonth -> temp_month
17:43:25,801 INFO [Configuration] Reading mappings from resource: org/database/data/TempQuotelines.hbm.xml
17:43:25,812 INFO [HbmBinder] Mapping class: org.database.data.TempQuotelines -> temp_quotelines
17:43:25,814 INFO [Configuration] Reading mappings from resource: org/database/data/TempQuotes.hbm.xml
17:43:25,823 INFO [HbmBinder] Mapping class: org.database.data.TempQuotes -> temp_quotes
17:43:25,825 INFO [Configuration] Reading mappings from resource: org/database/data/TempSalesmen.hbm.xml
17:43:25,837 INFO [HbmBinder] Mapping class: org.database.data.TempSalesmen -> temp_salesmen
17:43:25,838 INFO [Configuration] Reading mappings from resource: org/database/data/TempSlsRegions.hbm.xml
17:43:25,852 INFO [HbmBinder] Mapping class: org.database.data.TempSlsRegions -> temp_sls_regions
17:43:25,853 INFO [Configuration] Reading mappings from resource: org/database/data/Terms.hbm.xml
17:43:25,865 INFO [HbmBinder] Mapping class: org.database.data.Terms -> terms
17:43:25,866 INFO [Configuration] Reading mappings from resource: org/database/data/TransactionTypes.hbm.xml
17:43:25,877 INFO [HbmBinder] Mapping class: org.database.data.TransactionTypes -> transaction_types
17:43:25,878 INFO [Configuration] Reading mappings from resource: org/database/data/Users.hbm.xml
17:43:25,903 INFO [HbmBinder] Mapping class: org.database.data.Users -> users
17:43:25,904 INFO [Configuration] Configured SessionFactory: java:/hibernate/HibernateFactory
17:43:25,904 INFO [Configuration] processing extends queue
17:43:25,905 INFO [Configuration] processing collection mappings
17:43:25,905 INFO [HbmBinder] Mapping collection: org.database.data.Addresses.customersSet -> customers
17:43:25,906 INFO [HbmBinder] Mapping collection: org.database.data.Addresses.salesmenSet -> salesmen
17:43:25,906 INFO [HbmBinder] Mapping collection: org.database.data.Addresses.shippingAddressesSet -> shipping_addresses
17:43:25,907 INFO [HbmBinder] Mapping collection: org.database.data.Applications.profileApplicationsSet -> profile_applications
17:43:25,909 INFO [HbmBinder] Mapping collection: org.database.data.Categories.itemsSet -> items
17:43:25,909 INFO [HbmBinder] Mapping collection: org.database.data.Companies.customersCompanySet -> customers_company
17:43:25,910 INFO [HbmBinder] Mapping collection: org.database.data.ContactTypes.contactsSet -> contacts
17:43:25,910 INFO [HbmBinder] Mapping collection: org.database.data.Contracts.contractLinesSet -> contract_lines
17:43:25,910 INFO [HbmBinder] Mapping collection: org.database.data.Contracts.customerContractsSet -> customer_contracts
17:43:25,910 INFO [HbmBinder] Mapping collection: org.database.data.Currencies.customersSet -> customers
17:43:25,911 INFO [HbmBinder] Mapping collection: org.database.data.CustomerCodes.customersSet -> customers
17:43:25,911 INFO [HbmBinder] Mapping collection: org.database.data.CustomerTypes.customersSet -> customers
17:43:25,913 INFO [HbmBinder] Mapping collection: org.database.data.Customers.contactsSet -> contacts
17:43:25,913 INFO [HbmBinder] Mapping collection: org.database.data.Customers.contractsSet -> contracts
17:43:25,913 INFO [HbmBinder] Mapping collection: org.database.data.Customers.customerContractsSet -> customer_contracts
17:43:25,913 INFO [HbmBinder] Mapping collection: org.database.data.Customers.customerItemsSet -> customer_items
17:43:25,914 INFO [HbmBinder] Mapping collection: org.database.data.Customers.customersCompanySet -> customers_company
17:43:25,914 INFO [HbmBinder] Mapping collection: org.database.data.Customers.monthItemCustSet -> month_item_cust
17:43:25,914 INFO [HbmBinder] Mapping collection: org.database.data.Customers.periodItemCustSet -> period_item_cust
17:43:25,914 INFO [HbmBinder] Mapping collection: org.database.data.Customers.quotesSet -> quotes
17:43:25,915 INFO [HbmBinder] Mapping collection: org.database.data.Customers.shippingAddressesSet -> shipping_addresses
17:43:25,915 INFO [HbmBinder] Mapping collection: org.database.data.ExpenseTypes.salesmanExpensesSet -> salesman_expenses
17:43:25,915 INFO [HbmBinder] Mapping collection: org.database.data.GenerateCodes.quotesSet -> quotes
17:43:25,915 INFO [HbmBinder] Mapping collection: org.database.data.InvoiceTypes.customersSet -> customers
17:43:25,915 INFO [HbmBinder] Mapping collection: org.database.data.Items.contractLinesSet -> contract_lines
17:43:25,916 INFO [HbmBinder] Mapping collection: org.database.data.Items.customerContractsSet -> customer_contracts
17:43:25,916 INFO [HbmBinder] Mapping collection: org.database.data.Items.customerItemsSet -> customer_items
17:43:25,916 INFO [HbmBinder] Mapping collection: org.database.data.Items.itemLocationsSet -> item_locations
17:43:25,916 INFO [HbmBinder] Mapping collection: org.database.data.Items.monthItemCustSet -> month_item_cust
17:43:25,917 INFO [HbmBinder] Mapping collection: org.database.data.Items.periodItemCustSet -> period_item_cust
17:43:25,917 INFO [HbmBinder] Mapping collection: org.database.data.Items.quoteLinesSet -> quote_lines
17:43:25,917 INFO [HbmBinder] Mapping collection: org.database.data.Locations.itemLocationsSet -> item_locations
17:43:25,917 INFO [HbmBinder] Mapping collection: org.database.data.Lots.itemLocationsSet -> item_locations
17:43:25,917 INFO [HbmBinder] Mapping collection: org.database.data.Measures.contractLinesSet -> contract_lines
17:43:25,917 INFO [HbmBinder] Mapping collection: org.database.data.Measures.itemsSet -> items
17:43:25,918 INFO [HbmBinder] Mapping collection: org.database.data.Measures.items1Set -> items
17:43:25,918 INFO [HbmBinder] Mapping collection: org.database.data.Measures.quoteLinesSet -> quote_lines
17:43:25,918 INFO [HbmBinder] Mapping collection: org.database.data.Measures.quoteLines1Set -> quote_lines
17:43:25,918 INFO [HbmBinder] Mapping collection: org.database.data.Profiles.profileApplicationsSet -> profile_applications
17:43:25,918 INFO [HbmBinder] Mapping collection: org.database.data.Profiles.usersSet -> users
17:43:25,919 INFO [HbmBinder] Mapping collection: org.database.data.Quotes.quoteLinesSet -> quote_lines
17:43:25,920 INFO [HbmBinder] Mapping collection: org.database.data.Regions.customersSet -> customers
17:43:25,920 INFO [HbmBinder] Mapping collection: org.database.data.Regions.salesmanRegionsSet -> salesman_regions
17:43:25,920 INFO [HbmBinder] Mapping collection: org.database.data.Salesmen.remindersSet -> reminders
17:43:25,920 INFO [HbmBinder] Mapping collection: org.database.data.Salesmen.salesmanExpensesSet -> salesman_expenses
17:43:25,921 INFO [HbmBinder] Mapping collection: org.database.data.Salesmen.salesmanRegionsSet -> salesman_regions
17:43:25,921 INFO [HbmBinder] Mapping collection: org.database.data.Statuses.contractLinesSet -> contract_lines
17:43:25,921 INFO [HbmBinder] Mapping collection: org.database.data.Statuses.customersSet -> customers
17:43:25,921 INFO [HbmBinder] Mapping collection: org.database.data.Statuses.itemsSet -> items
17:43:25,921 INFO [HbmBinder] Mapping collection: org.database.data.Suppliers.itemsSet -> items
17:43:25,922 INFO [HbmBinder] Mapping collection: org.database.data.Terms.customersSet -> customers
17:43:25,922 INFO [HbmBinder] Mapping collection: org.database.data.TransactionTypes.itemLocationsSet -> item_locations
17:43:25,922 INFO [HbmBinder] Mapping collection: org.database.data.Users.salesmenSet -> salesmen
17:43:25,923 INFO [Configuration] processing association property references
17:43:25,923 INFO [Configuration] processing foreign key constraints
17:43:25,960 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.connection.DatasourceConnectionProvider
17:43:25,995 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.provider.url=jdbc:mysql://xxx.xxx.com:3306/mydb}
17:43:25,998 INFO [DatasourceConnectionProvider] Using datasource: java:/MySqlDS
17:43:26,354 INFO [SettingsFactory] RDBMS: MySQL, version: 4.1.14-standard
17:43:26,355 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.10 ( $Date: 2005/05/19 15:52:23 $, $Revision: 1.1.2.2 $ )
17:43:26,432 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
17:43:26,453 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
17:43:26,467 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.provider.url=jdbc:mysql://xxx.xxx.com:3306/mydb}
17:43:26,470 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
17:43:26,482 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
17:43:26,482 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
17:43:26,482 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
17:43:26,482 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
17:43:26,482 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
17:43:26,483 INFO [SettingsFactory] JDBC batch size: 15
17:43:26,483 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
17:43:26,488 INFO [SettingsFactory] Scrollable result sets: enabled
17:43:26,488 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
17:43:26,488 INFO [SettingsFactory] Connection release mode: null
17:43:26,499 INFO [SettingsFactory] Maximum outer join fetch depth: 2
17:43:26,499 INFO [SettingsFactory] Default batch fetch size: 1
17:43:26,499 INFO [SettingsFactory] Generate SQL with comments: disabled
17:43:26,499 INFO [SettingsFactory] Order SQL updates by primary key: disabled
17:43:26,503 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
17:43:26,518 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
17:43:26,519 INFO [SettingsFactory] Query language substitutions: {}
17:43:26,519 INFO [SettingsFactory] Second-level cache: enabled
17:43:26,519 INFO [SettingsFactory] Query cache: disabled
17:43:26,519 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
17:43:26,527 ERROR [HibernateSessionFactory] Building SessionFactory Failed
java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:323)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:219)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1429)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:980)
at org.database.sessions.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:59)
at org.database.commands.ObtainCountCommand.execute(ObtainCountCommand.java:74)
at org.database.ejb.CommandHandler.executeCommand(CommandHandler.java:112)
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:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
17:43:27,593 ERROR [LogInterceptor] Unexpected Error in method: public abstract org.database.interfaces.Command org.database.interfaces.CommandHandler.executeCommand(org.database.interfaces.Command) throws org.database.exceptions.CommandException,java.rmi.RemoteException
java.lang.NoClassDefFoundError
at org.database.commands.ObtainCountCommand.execute(ObtainCountCommand.java:89)
at org.database.ejb.CommandHandler.executeCommand(CommandHandler.java:112)
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:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 11, 2005 9:34 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
you don't have deps on ehcache but your deps have deps on ehcache, at least, until you configure H to use a different cache provider . the problem will go away after you place ehcache-1.1.jar in the classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 11, 2005 10:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
or disable caching (it is enabled by default).


Top
 Profile  
 
 Post subject: ehcache problem
PostPosted: Wed Oct 12, 2005 10:55 am 
Newbie

Joined: Sun Jan 16, 2005 7:15 pm
Posts: 6
Thank you both for your replies. My CLASSPATH variable did contain the directory in which ehcache could be found, and my projects also had it in the library definitions.`

I finally got past this problem by placing a copy of ehcache 1.1 in the jboss/server/default/lib directory and by placing a copy of ehcache.xml in the META-INF directory of my project.

Thank you again

Anna


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.