Hi
I'm trying to migrate from resin 3.1.9 to 4.1.3 , and from Spring to CanDI ,
The first error I encountered is to use Resin's WebBeans in Spring :
I followed this step :
http://wiki.caucho.com/Spring

But resin 4.0.3 pops this error after a lot of initialization and mapping :
What's going wrong ?


2010-02-06 22:14:20,570 INFO  support.DefaultListableBeanFactory -
Pre-instantiating singletons in
org.springframework.beans.factory.support.defaultlistablebeanfact...@1f9eba0:
defining beans []; root of factory hierarchy
2010-02-06 22:14:20,581 ERROR context.ContextLoader - Context initialization
failed
org.springframework.beans.factory.access.BootstrapException: Unable to
return specified BeanFactory instance: factory key [resin-webbeans-factory],
from group with resource name [classpath*:beanRefContext.xml]; nested
exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'resin-webbeans-factory' is defined
        at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:410)
        at
org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:341)
        at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:195)
        at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at com.caucho.server.webapp.WebApp.start(WebApp.java:2726)
        at
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:693)
        at
com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:652)
        at
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.alarm(StartAutoRedeployAutoStrategy.java:177)
        at
com.caucho.server.deploy.DeployController.handleAlarm(DeployController.java:815)
        at com.caucho.util.Alarm.handleAlarm(Alarm.java:432)
        at com.caucho.util.Alarm.run(Alarm.java:404)
        at
com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901)
        at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
No bean named 'resin-webbeans-factory' is defined
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:971)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
        at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:884)
        at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
        ... 12 more
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to