PDA

View Full Version : Resin-4.0.15


jyung
03-16-2011, 09:50 PM
I am encountering a strange problem that has appeared between 4.0.14 and 4.0.15. I have a Spring Webflow application that breaks initializing the following bean:

<webflow:flow-registry id="flowRegistry"
base-path="/WEB-INF" flow-builder-services="flowBuilderServices">
<webflow:flow-location-pattern value="/flows/**/*.xml" />
</webflow:flow-registry>

The error says:
java.io.FileNotFoundException: ServletContext resource [/WEB-INF/flows/] cannot be resolved to URL because it does not exist

which is strange, because the directory is plainly there, and it worked in 4.0.14 (and for that matter, 3.0.22), and it passes my unit tests. I don't see anything in the change list that would suggest the cause of the problem.
Any ideas?

The full stack trace is:

java.io.FileNotFoundException: ServletContext resource [/WEB-INF/flows/] cannot be resolved to URL because it does not exist
at org.springframework.web.context.support.ServletCon textResource.getURL(ServletContextResource.java:13 1)
at org.springframework.core.io.support.PathMatch
ingResourcePatternResolver.isJarResource(PathMatch ingResourcePatternResolver.java:413)
at org.springframework.core.io.support.PathMatchingRe sourcePatternResolver.findPathMatchingResources(Pa thMatchingResourcePatternResolver.java:342)
at org.springframework.core.io.support.PathMatchingRe sourcePatternResolver.getResources(PathMatchingRes ourcePatternResolver.java:280)
at org.springframework.context.support.AbstractApplic ationContext.getResources(AbstractApplicationConte xt.java:1227)
at org.springframework.webflow.config.FlowDefinitionR esourceFactory.createResources(FlowDefinitionResou rceFactory.java:144)
at org.springframework.webflow.config.FlowRegistryFac toryBean.registerFlowLocationPatterns(FlowRegistry FactoryBean.java:180)
at org.springframework.webflow.config.FlowRegistryFac toryBean.afterPropertiesSet(FlowRegistryFactoryBea n.java:142)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1325)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.
java:1086)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.
java:517)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.ja
va:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.jav
a:106)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanF
actory.java:1325)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.
java:1086)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.
java:517)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.ja
va:456)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java
:580)
at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.jav
a:895)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:425)
at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
at com.caucho.server.webapp.WebApp.start(WebApp.java: 3132)
at com.caucho.env.deploy.DeployController.startImpl(D eployController.java:630)
at com.caucho.env.deploy.StartAutoRedeployAutoStrateg y.startOnInit(StartAutoRedeployAutoStrategy.java:7 7)
at com.caucho.env.deploy.DeployController.startOnInit (DeployController.java:493)
at com.caucho.env.deploy.DeployContainer.start(Deploy Container.java:171)
at com.caucho.server.webapp.WebAppContainer.start(Web AppContainer.java:713)
at com.caucho.server.host.Host.start(Host.java:675)
at com.caucho.env.deploy.DeployController.startImpl(D eployController.java:630)
at com.caucho.env.deploy.StartAutoRedeployAutoStrateg y.startOnInit(StartAutoRedeployAutoStrategy.java:7 7)
at com.caucho.env.deploy.DeployController.startOnInit (DeployController.java:493)
at com.caucho.env.deploy.DeployContainer.start(Deploy Container.java:171)
at com.caucho.server.host.HostContainer.start(HostCon tainer.java:542)
at com.caucho.server.cluster.Server.start(Server.java :1211)
at com.caucho.server.cluster.ServletService.start(Ser vletService.java:72)
at com.caucho.env.service.ResinSystem.startServices(R esinSystem.java:508)
at com.caucho.env.service.ResinSystem.start(ResinSyst em.java:476)
at com.caucho.server.resin.Resin.start(Resin.java:892 )
at com.caucho.server.resin.Resin.initMain(Resin.java: 1020)
at com.caucho.server.resin.Resin.main(Resin.java:1287 )