JBOSS JSP 预编译 |过时的 jsp 错误

发布于 2024-10-01 15:29:44 字数 455 浏览 2 评论 0原文

我正在尝试在我们的 WAR 中预编译 JSP。我的 Ant 脚本分为两部分。首先它创建源代码,然后编译。

最初创建一些源文件。此后,将引发以下错误:

  [jasper2] 2010-11-12 16:58:49,865 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [Processing file: /categoryLanding/content/jeans_body.jsp]
  [jasper2] 2010-11-12 16:58:49,868 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [/category/content/body.jsp is out dated, compiling...]

有什么想法可能导致 jsp 被视为过时的吗?

I am trying to precompile JSPs in our WAR. My ant script does this in 2 parts. First it creates the source, and then it compiles.

Initially a few source files are created. thereafter, the following error is thrown:

  [jasper2] 2010-11-12 16:58:49,865 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [Processing file: /categoryLanding/content/jeans_body.jsp]
  [jasper2] 2010-11-12 16:58:49,868 DEBUG [org.apache.jasper.JspC] [processFile] [Thread:main] - [/category/content/body.jsp is out dated, compiling...]

Any ideas what could be causing the jsp to be viewed as an outdated one?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

私藏温柔 2024-10-08 15:29:44

您的 ant 脚本是否没有碰触 .jsp 文件日期?

来自 http://www.docjar.com/html/ api/org/apache/jasper/JspC.java.html

// If compile is set, generate both .java and .class, if
1174               // .jsp file is newer than .class file;
1175               // Otherwise only generate .java, if .jsp file is newer than
1176               // the .java file
1177               if( clc.isOutDated(compile) ) {
1178                   if (log.isDebugEnabled()) {
1179                       log.debug(jspUri + " is out dated, compiling...");
1180                   }
1181   
1182                   clc.compile(compile, true);
1183               }

Is your ant script not touching .jsp file dates by any chance?

From http://www.docjar.com/html/api/org/apache/jasper/JspC.java.html

// If compile is set, generate both .java and .class, if
1174               // .jsp file is newer than .class file;
1175               // Otherwise only generate .java, if .jsp file is newer than
1176               // the .java file
1177               if( clc.isOutDated(compile) ) {
1178                   if (log.isDebugEnabled()) {
1179                       log.debug(jspUri + " is out dated, compiling...");
1180                   }
1181   
1182                   clc.compile(compile, true);
1183               }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文