Applies as of r5620
When starting up web project tests in standalone environment, get errors such
as the following.
Should rather log a warning, but not prevent the module from starting.
#############
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.impalaframework.web.spring.integration.ModuleUrlPrefixContributor#0':
Invocation of init method failed; nested exception is
java.lang.IllegalArgumentException: servletContext cannot be null
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at org.impalaframework.spring.module.loader.BaseSpringModuleLoader.handleRefresh(BaseSpringModuleLoader.java:90)
at org.impalaframework.spring.module.loader.BaseApplicationContextLoader.loadApplicationContext(BaseApplicationContextLoader.java:151)
at org.impalaframework.spring.module.loader.BaseApplicationContextLoader.loadContext(BaseApplicationContextLoader.java:67)
at org.impalaframework.spring.module.SpringModuleRuntime.doLoadModule(SpringModuleRuntime.java:64)
at org.impalaframework.module.runtime.BaseModuleRuntime.doLoadModule(BaseModuleRuntime.java:131)
at org.impalaframework.module.runtime.BaseModuleRuntime.loadRuntimeModule(BaseModuleRuntime.java:57)
at org.impalaframework.module.runtime.DefaultModuleRuntimeManager.initModule(DefaultModuleRuntimeManager.java:58)
at org.impalaframework.module.transition.LoadTransitionProcessor.process(LoadTransitionProcessor.java:54)
at org.impalaframework.module.transition.DefaultTransitionManager.processTransitions(DefaultTransitionManager.java:78)
at org.impalaframework.module.operation.UpdateRootModuleOperation.doExecute(UpdateRootModuleOperation.java:65)
at org.impalaframework.module.operation.LockingModuleOperation.execute(LockingModuleOperation.java:45)
at org.impalaframework.facade.BaseOperationsFacade.execute(BaseOperationsFacade.java:264)
at org.impalaframework.facade.BaseOperationsFacade.init(BaseOperationsFacade.java:91)
at org.impalaframework.facade.Impala.init(Impala.java:79)
at org.impalaframework.interactive.command.InitContextCommand.execute(InitContextCommand.java:36)
at org.impalaframework.interactive.command.BaseLoadDefinitionCommand.doLoad(BaseLoadDefinitionCommand.java:26)
at org.impalaframework.interactive.command.LoadDefinitionFromClassCommand.execute(LoadDefinitionFromClassCommand.java:30)
at org.impalaframework.interactive.command.InitRunnerCommand.execute(InitRunnerCommand.java:35)
at org.impalaframework.interactive.InteractiveTestRunner.start(InteractiveTestRunner.java:83)
at org.impalaframework.interactive.InteractiveTestRunner.run(InteractiveTestRunner.java:54)
at rtd.eshopping.integration.EshoppingIntegrationTest.main(EshoppingIntegrationTest.java:21)
Caused by: java.lang.IllegalArgumentException: servletContext cannot be null
at org.springframework.util.Assert.notNull(Assert.java:112)
at org.impalaframework.web.spring.integration.ModuleUrlPrefixContributor.afterPropertiesSet(ModuleUrlPrefixContributor.java:45)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
Original issue reported on code.google.com by philzoio...@googlemail.com on 18 Jun 2010 at 11:04
Original issue reported on code.google.com by
philzoio...@googlemail.com
on 18 Jun 2010 at 11:04