强制编译 .tag 文件
如何强制 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
到目前为止,我最好的答案是删除 /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.
我遇到了同样的问题,然后在 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
这可能没有帮助,但在应用程序安装期间有一个选项,您可以勾选预编译 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