On 4/2/07, David Jencks <[EMAIL PROTECTED]> wrote:
Activemq makes a non-string system property that hibernate attempts
to cast as a string.
Solutions:
- if you don't use jms, turn off the activemq and activemq-broker
modules in your config.xml
I will be using JMS, so that works as a temporary option.
- use hibernate 3.2 where this problem is supposed to be fixed (I
haven't checked)
I switched to Hibernate 3.2, and that worked!!! Thanks!
- there's also a system property that will make activemq behave
better but I can't find what it is at the moment. If you need it we
can look harder.
thanks
david jencks
On Apr 2, 2007, at 8:24 AM, Jim Barrows wrote:
> When I deploy a war file to geronimo it gives me:
> Caused by:
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'sessionFactory' defined in ServletContext
> resource [/WEB-INF/applicationContext/db.xml]: Invocation of init
> method failed; nested exception is java.lang.ClassCastException:
> java.util.HashSet
> Caused by:
> java.lang.ClassCastException: java.util.HashSet
> at org.hibernate.util.PropertiesHelper.resolvePlaceHolders
> (PropertiesHelper.java:88)
> at org.hibernate.cfg.Configuration.buildSessionFactory
> (Configuration.java:1173)
> at
> org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionF
> actory(LocalSessionFactoryBean.java:804)
> at
> org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessio
> nFactory(LocalSessionFactoryBean.java:744)
> at
> org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPro
> pertiesSet(AbstractSessionFactoryBean.java:131)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
> actory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)
>
> Which tomcat standalone does not give me. Deploying the same war. In
> both cases it's being deploy as a directory, not as a .war file from
> eclipse.
>
> In both cases the offending bit of code is in the spring xml file, and
> not in code, and I'm not doing anything with the constructor.
> I've added
> <sys:hidden-classes>
> <sys:filter>org.springframework</sys:filter>
> <sys:filter>org.hibernate</sys:filter>
> <sys:filter>antlr</sys:filter>
> <sys:filter>org.apache.xerces</sys:filter>
> <sys:filter>org.apache.commons.digester</sys:filter>
> </sys:hidden-classes>
> to geronimo-web.xml file, to no avail.
> Can anyone point me in the right direction to sovle this?
>
> Geronimo Version: 2.0-M2
> Java Version 1.5.0_11
> OS: Fedora Core 6 - 2.6.20-1.2925
> Spring 2.0.2
> Hibernate - 3
>
> --
> James A Barrows
--
James A Barrows