Spring   发布时间:2022-04-09  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Spring 3.2.1以及Tiles 3.0.1不起作用?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

我使用Tiles 3.0.1和Spring 3.2.1,但它不起作用,适用于平铺2.2.2.我发现它是一个常见的问题,想知道是否有任何使它工作.

我将瓷砖更改为3.0.1时出现以下错误

 java.lang.NoClassDefFoundError: org/apache/tiles/startup/BasicTilesInitializer
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(UnkNown sourcE)
    at java.lang.ClassLoader.defineClass(UnkNown sourcE)
    at java.security.SecureClassLoader.defineClass(UnkNown sourcE)
    at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2904)
    at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(UnkNown sourcE)
    at java.lang.Class.getDeclaredConstructors(UnkNown sourcE)
    at org.springframework.beans.factory.Annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:230)
    at org.springframework.beans.factory.support.AbstractAutowireCapablebeanfactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapablebeanfactory.java:976)
    at org.springframework.beans.factory.support.AbstractAutowireCapablebeanfactory.createBeanInstance(AbstractAutowireCapablebeanfactory.java:949)
    at org.springframework.beans.factory.support.AbstractAutowireCapablebeanfactory.doCreateBean(AbstractAutowireCapablebeanfactory.java:490)
    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:626)
    at org.springframework.context.support.AbstractApplicationContext.finishbeanfactoryInitialization(AbstractApplicationContext.java:932)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
    at org.springframework.web.context.ContextLoader.configureAndrefreshWebApplicationContext(ContextLoader.java:389)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
    at org.springframework.web.context.ContextLoaderListener.contexTinitialized(ContextLoaderListener.java:112)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
    at org.apache.catalina.core.StandardContext.starTinternal(StandardContext.java:5291)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$startChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$startChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask$Sync.innerRun(UnkNown sourcE)
    at java.util.concurrent.FutureTask.run(UnkNown sourcE)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(UnkNown sourcE)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(UnkNown sourcE)
    at java.lang.Thread.run(UnkNown sourcE)
Caused by: java.lang.ClassnotFoundException: org.apache.tiles.startup.basicTilesInitializer
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
    ... 36 more
Mar 11,2013 1:49:32 PM org.apache.catalina.core.StandardContext starTinternal
SEVERE: Error listenerStart
Mar 11,2013 1:49:32 PM org.apache.catalina.core.StandardContext starTinternal
SEVERE: Context [/gzl-client-web] startup Failed due to prevIoUs errors
Mar 11,2013 1:49:32 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Mar 11,2013 1:49:32 PM org.apache.coyote.AbstractProtocol start
INFO: StarTing ProtocolHandler ["http-bio-8080"]
Mar 11,2013 1:49:32 PM org.apache.coyote.AbstractProtocol start
INFO: StarTing ProtocolHandler ["ajp-bio-8009"]

请建议是否可能?

最佳答案
我用它做了瓷砖3 ..

以下是所需的罐子:

> tiles-api 3.0.1 jar
> tiles-core 3.0.1 jar
> tiles-jsp 3.0.1 jar
> tiles-request-api 1.0.1 jar
> commons-digester 2.0 jar
> commons-beanutils 1.8.0 jar

并将follwing bean添加到您的调度程序类:

figurer" class="org.springframework.web.servlet.view.tiles3.TilesConfigurer">
  Finitions">
   

它适用于我,我能够阅读瓷砖定义并显示视图..这个

大佬总结

以上是大佬教程为你收集整理的Spring 3.2.1以及Tiles 3.0.1不起作用?全部内容,希望文章能够帮你解决Spring 3.2.1以及Tiles 3.0.1不起作用?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。