spring3.2+tiles2.2整合问题

spring3.2+tiles2.2配置的时候,出现如下问题。使用的是commons-digester3-3.2.jar
配置tiles需要的包,参照的是官方的说明
http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/view.html#view-tiles-integrate
不过,没说明版本。

也就出现了下面的问题,看来不是包的版本越高,就越好啊。


致命的: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/appServlet-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1486)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)
 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
 at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:647)

自己认为配置文件没有错误,是从官网上整理的。找个很多网上的资料,也没有找到答案。
后来才考虑到jar包的问题,替换了低版本的(commons-digester-2.1.jar,估计3以下的都没有问题),就ok了。

你可能感兴趣的:(环境配置,tiles2.2整合问题,tilesConfigurer,defi,Spring)