强制编译 .tag 文件

发布于 2024-07-15 02:18:55 字数 147 浏览 5 评论 0原文

如何强制 Websphere 编译我的 .tag 文件?

清理项目、发布、重新启动服务器、添加和删除项目都没有帮助 - 标记文件的 .class 文件没有被重新编译。

如果我删除 .class 文件,则会出现该类丢失的错误,但它不会重新编译

How can I force Websphere to compile my .tag files?

Cleaning the project, publishing, restarting the server, adding and removing projects all don't help - the .class file for the tag file is not being recompiled.

If I delete the .class files, I get an error that the class is missing, but it does not recompile

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

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

发布评论

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

评论(3

衣神在巴黎 2024-07-22 02:18:55

到目前为止,我最好的答案是删除 /temp 目录的相关内容,因为该战争驻留在您的服务器配置文件下。 这将强制重新编译应用程序中的所有 jsp,包括 .tag 文件。

So far, my best answer is to delete the relevant contents of the /temp directory, for that war which resides under your server profile. This will force a recompile of all jsp in the app, including the .tag files.

唠甜嗑 2024-07-22 02:18:55

我遇到了同样的问题,然后在 IBM 技术期刊上关于 Websphere JSP 实现的文章中发现了这一点:

“当包含的 JSP 由 javac 处理时,将编译标记文件源。”

所以我发现每次更改 .tag 文件后,我都必须对使用该标记的 JSP 进行更改。 (我只是添加一个空格。)然后,当编译 JSP 时,.tag 文件也成功更新。

IBM 技术期刊文章:http://www.ibm.com/developerworks/ websphere/techjournal/0412_johnson/0412_johnson.html

I was having this same problem, then found this in an IBM technical journal on Websphere JSP implementation:

"Tag file source is compiled when the including JSP is processed by javac."

So I found that after each change to the .tag file, I had to make a change to the JSP that uses the tag. (I would just add a space.) Then when the JSP is compiled, the .tag file is also successfully updated.

IBM Technical Journal article: http://www.ibm.com/developerworks/websphere/techjournal/0412_johnson/0412_johnson.html

千里故人稀 2024-07-22 02:18:55

这可能没有帮助,但在应用程序安装期间有一个选项,您可以勾选预编译 jsp 页面,这可能会编译您的 .tag 文件

Karl

This might not help but there is an option during application install that you can tick to pre compile jsp pages, this may compile your .tag files

Karl

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文