-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi David.
Correct mailing list. Unfortunately, no longer monitored by anyone from
the JBoss Group. They are now over on the forums, which is where the
traffic on this list is coming from.
In the meantime, one "trick" I've used to ID Jars with a given class: If
you are on a *n*x platform (including Cygwin/MS);
fgrep -r <classname> $JBOSS_HOME
examples;
fgrep -r Keyword $JBOSS_HOME
fgrep -r translatons $JBOSS_HOME
These will usually give you the jar files that are holding the class in
question.
Regards,
Steve
David Delbecq wrote:
Hello,
am note sure this is the correct mailing list for this, feel free to
redirect me to correct mailing list if not.
I tried to migrate a tomcat (.war) application to JBoss. Unfortunately,
jboss has it's own hibernate libraries that it exposes to my webapps,
leading to all sort of nasty effects. I managed to get rid of most by
removing my own hibernate libraries from the WEB-INF/lib. However, the
jboss integrated libraries show this curious message blocking my webapp
from starting: org.hibernate.MappingException: Cannot cache an unknown
collection: org.tonguetied.keywordmanagement.Keyword.translations
I have no idea where it comes from or how to get rid of it. Can not
reproduce outside JBOSS. My question are:
- if possible, how to get rid of it.
- Otherwise, how to have JBoss not expose hibernate librairies to my
webapp so my webapp can use it's own.
Second option is best to me, as it will prevent future version conflicts
between different apps. Help greatly appreciated, am clueless on this.
Error log:
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)
jvm 1 | at
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE -
http://enigmail.mozdev.org
iEYEARECAAYFAkshgEkACgkQSphIUSiVzgbmRACgjMjIodJyeI/TVsTtIsVWSF3Y
cmoAniv8h4thmb+3OE9lYw1eFAHfVJoo
=KiTP
-----END PGP SIGNATURE-----