问题描述
我的warfile的web-inf/lib文件夹中有spring-webmvc 3.1.0.release版本,但是当将应用程序部署到weblogic时,我得到了编译错误.
I have spring-webmvc 3.1.0.release version in my web-inf/lib folder of my warfile, but when the app is deployed to weblogic i am getting compilation errors.
weblogic使用的是Spring 2.x版本,该版本与weblogic 10.3.x捆绑在一起,用于编译jsps.
weblogic is using spring 2.x version which comes bundled with weblogic 10.3.x to compile the jsps.
因为我正在获取诸如setDynamicAttribute(null,String,String)之类的编译时错误,而对于ErrorsTag类型却未定义
because of which i am getting compile time errors like setDynamicAttribute(null, String, String) is undefined for the type ErrorsTag
我尝试在weblogic.xml中使用preferred-application-packages标记,但是没有用.
I tried using prefer-application-packages tag in weblogic.xml but it didn't work.
我该如何解决?
提前感谢您的帮助!
推荐答案
这是一个错误-Weblogic 10.3.x在编译JSP页面时不考虑prefer-application-packages
.上次检查WAS 10.3.6.0
This is a bug - Weblogic 10.3.x doesn't consider prefer-application-packages
when compiling JSP pages. Last checked on WAS 10.3.6.0
这篇关于Spring 3.1.0 JSP编译的Weblogic 10.3问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!