-->
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.  [ 1 post ] 
Author Message
 Post subject: Cannot cache an unknown collection
PostPosted: Thu Dec 10, 2009 9:32 am 
Senior
Senior

Joined: Tue May 10, 2005 9:00 am
Posts: 125
Hibernate version: 3.3.1
Hello, while starting some webapp on jboss, hiberante throw me this error. I have absolutely no idea where it comes from, less how to solve it:

Code:
jvm 1    | 14:13:12,326 INFO  [STDOUT] 14:13:12,322 ERROR [ContextLoader] Context initialization failed
jvm 1    | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/application-context.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Cannot cache an unknown collection: org.tonguetied.keywordmanagement.Keyword.translations
jvm 1    |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
jvm 1    |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
jvm 1    |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
jvm 1    |    at java.security.AccessController.doPrivileged(Native Method)
jvm 1    |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
jvm 1    |    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
jvm 1    |    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
jvm 1    |    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
jvm 1    |    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
jvm 1    |    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
jvm 1    |    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
jvm 1    |    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
jvm 1    |    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
jvm 1    |    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
jvm 1    |    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
jvm 1    |    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
jvm 1    |    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
jvm 1    |    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
......
Caused by: org.hibernate.MappingException: Cannot cache an unknown collection: org.tonguetied.keywordmanagement.Keyword.translations
jvm 1    |    at org.hibernate.cfg.Configuration.setCollectionCacheConcurrencyStrategy(Configuration.java:2076)
jvm 1    |    at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:303)
jvm 1    |    at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1148)
jvm 1    |    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:673)
jvm 1    |    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
jvm 1    |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
jvm 1    |    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
jvm 1    |    ... 84 more



Any idea what this message means? Googling for this is helpless.


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.