untime-模板处理错误:“未为spring框架标签定义映射 [英] untime - Template processing error: "No mapping defined for spring framework tags

查看:69
本文介绍了untime-模板处理错误:“未为spring框架标签定义映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前的开发环境是Java 6,spring框架3.2,weblogic 10.3.6和使用Freemarker模板.在当前环境中一切正常,在浏览页面时看不到任何运行时问题.

My current development environment is java 6, spring framework 3.2, weblogic 10.3.6 and using Freemarker templates. Everything is working fine in current environment, don't see any runtime issues while browsing pages.

IDE:eclipse kepler 4.3,我从eclipse IDE运行weblogic服务器.我的部署程序集来自开普勒附带的m2e插件.

IDE: eclipse kepler 4.3 and I am running weblogic server from eclipse IDE. My deployment assembly is from m2e plugin that comes with kepler.

现在,我正在升级到最新的Weblogic 12.1.2和Java7.我能够成功构建,部署和发布该模块,但是在访问页面时,我看到了freemarker模板的运行时问题.

Now I am upgrading to latest Weblogic 12.1.2 and java 7. I am able to successfully build, deploy and publish the module but while accessing pages, I see runtime issues with freemarker templates.

在tomcat部署论坛中讨论了一个相关问题,其中解决方案是将spring-security-taglibs添加到pom文件并将spring-security-taglibs.jar放置在WEB-INF/lib文件夹中.但这对我不起作用.

There is a related issue discussed in forum for tomcat deployment wherein solution is to add spring-security-taglibs to pom file and place spring-security-taglibs.jar in WEB-INF/lib folder. But that does not work for me.

非常感谢您为解决此问题提供的任何帮助.我看到许多与freemarker模板异常相关的帖子,但没有解决方案.

Greatly appreciate any help in resolving this issue. I see many freemarker template exception related postings but not solution.

我看到的是下面的运行时错误.

Below is the runtime error, I am seeing.

2013-09-23 14:16:30,696 [[ACTIVE] ExecuteThread:'0'表示队列:'weblogic.kernel.Default(自调整)']错误freemarker.runtime-模板处理错误:无映射为 http://www.springframework.org/tags "

2013-09-23 14:16:30,696 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR freemarker.runtime - Template processing error: "No mapping defined for http://www.springframework.org/tags"

有问题的说明:

freemarker.template.TemplateModelException:没有为 http://www.springframework.org/tags

freemarker.template.TemplateModelException: No mapping defined for http://www.springframework.org/tags

推荐答案

此问题曾经解决过吗?如果我从WL管理控制台外部部署WAR,则一切正常,并且没有freemarker模板错误.从Eclipse(Mars)Weblogic 12.2.1部署WAR时,我遇到了类似的错误.解决方法是将TLD复制到WEB-INF,然后从eclipse进行部署,但不会出错.但是,不需要像在WEB-INF/lib下的JAR文件中那样复制这些TLD.

Was this issue ever resolved? If i deploy the WAR externally from WL admin console, everything works fine and no freemarker template error. I am running into similar errors when deploying WAR from Eclipse (Mars) , Weblogic 12.2.1. Workaround is to copy TLDs to WEB-INF and then deploy from eclipse I get no errors. However, there shouldn't be a need to copy these TLDs as they are in the JAR files under WEB-INF/lib.

这篇关于untime-模板处理错误:“未为spring框架标签定义映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆