activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chris wang <w197...@gmail.com>
Subject Re: got hibernate SessionFactory Exception
Date Sat, 17 Jun 2006 03:12:47 GMT

the weird exception:
INFO [main] [/ibiz].log(645) | Loading Spring root WebApplicationContext
INFO [main] DefaultValidatorFactory.setValidationConfigLocations(79) |
Loading validation con
figurations from [ServletContext resource
[/WEB-INF/validation.xml],ServletContext resource [/WEB-IN
F/validator-rules.xml],ServletContext resource
[/WEB-INF/validator-rules-custom.xml]]
INFO [main] XBeanXmlBeanDefinitionReader.loadBeanDefinitions(163) | Loading
XML bean definiti
ons from class path resource [broker.xml]
INFO [main] ResourceXmlApplicationContext.refreshBeanFactory(92) | Bean
factory for applicati
on context
[org.apache.xbean.spring.context.ResourceXmlApplicationContext;hashCode=9578500]:
org.spr
ingframework.beans.factory.support.DefaultListableBeanFactory defining beans
[org.apache.activemq.xb
ean.XBeanBrokerService]; root of BeanFactory hierarchy
INFO [main] ResourceXmlApplicationContext.refresh(297) | 1 beans defined in
application conte
xt
[org.apache.xbean.spring.context.ResourceXmlApplicationContext;hashCode=9578500]
INFO [main] ResourceXmlApplicationContext.initMessageSource(439) | Unable to
locate MessageSo
urce with name 'messageSource': using default
[org.springframework.context.support.DelegatingMessage
Source@15983b7]
INFO [main]
ResourceXmlApplicationContext.initApplicationEventMulticaster(461) | Unable
to lo
cate ApplicationEventMulticaster with name 'applicationEventMulticaster':
using default [org.springf
ramework.context.event.SimpleApplicationEventMulticaster@1d6747b]
INFO [main] BrokerService.getBroker(455) | ActiveMQ 4.0 JMS Message Broker
(localhost) is sta
rting
INFO [main] BrokerService.getBroker(457) | For help or more information
please see: http://in
cubator.apache.org/activemq/
INFO [main] JDBCPersistenceAdapter.createAdapter(234) | Database driver
recognized: [apache_d
erby_embedded_jdbc_driver]
INFO [main] JournalPersistenceAdapter.recover(455) | Journal Recovery
Started from: Active Jo
urnal: using 5 x 20.0 Megs at:
D:\tools\apache-tomcat-5.5.12\activemq-data\journal
INFO [main] JournalPersistenceAdapter.recover(559) | Journal Recovered: 0
message(s) in trans
actions recovered.
INFO [main] BrokerService.start(372) | ActiveMQ JMS Message Broker
(localhost, ID:chris-1039-
1150513736456-1:0) started
INFO [main] ResourceXmlApplicationContext.close(518) | Closing application
context [org.apach
e.xbean.spring.context.ResourceXmlApplicationContext;hashCode=9578500]
INFO [main] BrokerService.stop(384) | ActiveMQ Message Broker (localhost,
ID:chris-1039-11505
13736456-1:0) is shutting down
INFO [main] VMTransportFactory.stopped(171) | Shutting down VM connectors
for broker: localho
st
INFO [main] BrokerService.stop(442) | ActiveMQ JMS Message Broker
(localhost, ID:chris-1039-1
150513736456-1:0) stopped
ERROR [main] ContextLoader.initWebApplicationContext(205) | Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'filterInvoca
tionInterceptor' defined in ServletContext resource
[/WEB-INF/applicationContext-security.xml]: Can'
t resolve reference to bean 'authenticationManager' while setting property
'authenticationManager';
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean wit
h name 'authenticationManager' defined in ServletContext resource
[/WEB-INF/applicationContext-secur
ity.xml]: Can't resolve reference to bean 'daoAuthenticationProvider' while
setting property 'provid
ers[0]'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
 bean with name 'daoAuthenticationProvider' defined in ServletContext
resource [/WEB-INF/application
Context-security.xml]: Can't resolve reference to bean 'userDAO' while
setting property 'userDetails
Service'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creatin
g bean with name 'userDAO' defined in ServletContext resource
[/WEB-INF/applicationContext-hibernate
.xml]: Can't resolve reference to bean 'sessionFactory' while setting
property 'sessionFactory'; nes
ted exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with n
ame 'sessionFactory' defined in ServletContext resource
[/WEB-INF/applicationContext-hibernate.xml]:
 Initialization of bean failed; nested exception is
java.lang.ClassCastException: java.util.HashSet
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'authenticati
onManager' defined in ServletContext resource
[/WEB-INF/applicationContext-security.xml]: Can't reso
lve reference to bean 'daoAuthenticationProvider' while setting property
'providers[0]'; nested exce
ption is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dao
AuthenticationProvider' defined in ServletContext resource
[/WEB-INF/applicationContext-security.xml
]: Can't resolve reference to bean 'userDAO' while setting property
'userDetailsService'; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'us
erDAO' defined in ServletContext resource
[/WEB-INF/applicationContext-hibernate.xml]: Can't resolve
 reference to bean 'sessionFactory' while setting property 'sessionFactory';
nested exception is org
.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory'
 defined in ServletContext resource
[/WEB-INF/applicationContext-hibernate.xml]: Initialization of b
ean failed; nested exception is java.lang.ClassCastException:
java.util.HashSet

and the cfg xml:

<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
	    <property name="config" value="classpath:broker.xml" />
	    <property name="start" value="true" />
	</bean>

	 <bean id="jmsConnectionFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL">
          <value>vm://localhost</value>
        </property>
      </bean>
    </property>
  </bean>


	<!--JMS Template-->
    <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
        <property name="defaultDestinationName"
                  value="CORPORATION"/>
        <property name="connectionFactory" ref="jmsConnectionFactory"/>
    </bean>

when I move the jms part, everything is fine.
--
View this message in context: http://www.nabble.com/got-hibernate-SessionFactory-Exception-t1800146.html#a4910981
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message