Pessoal,
estou desenvolvendo uma aplicação com Struts 2 x Spring x Hibernate. Quando rodo a aplicação localmente (utilizando o Jdevelopes), tudo OK. Agora, quando tento fazer o deploy para tanto para o OC4J como Tomcat, recebo o seguinte stacktrace (Tomcat):
INFO - ContextLoader.initWebApplicationContext(174) | Root WebApplicationContext
: initialization started
ERROR - ContextLoader.initWebApplicationContext(205) | Context initialization fa
iled
org.springframework.beans.factory.BeanDefinitionStoreException: IOException pars
ing XML document from ServletContext resource []; nested exception is java.io.Fi
leNotFoundException: Could not open ServletContext resource []
Caused by:
java.io.FileNotFoundException: Could not open ServletContext resource []
at org.springframework.web.context.support.ServletContextResource.getInp
utStream(ServletContextResource.java:99)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:351)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:123)
at org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions(XmlWebApplicationContext.java:91)
at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:294)
at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
334)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
Parece que ele não está conseguindo encontrar o applicationContext.xml.
Já adicionei no web. xml
E nada acontece também. O estranho é que debugando a aplicação funciona normalmente. Alguém tem algum palpite ou sugestão?
Grato.
Lauro