jetty - 重新加载 jar 中的标签文件
我有我的主要网络项目和一个包含我的标签文件的公共项目。 目前,我在分解结构中使用 jetty,并使用标签文件将我的公共项目打包并放入 web-inf/lib
中。
当我对标签文件进行更改时,我可以重新打包并再次放入 web-inf/lib
中,尽管 jetty 失败了。
javax.servlet.ServletException: org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
如何设置 jetty 以便在不重新启动服务器的情况下重新打包标签文件?
I have my main web project and a common project which houses my tag files. Currently I use jetty in exploded structure and I jar up my common project with my tag files and place into web-inf/lib
.
When I make a change to my tag file, I can rejar and place into web-inf/lib
again, though jetty is failing.
javax.servlet.ServletException: org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP
How can I set up jetty so I can rejar my tag files without restarting the server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Jetty 无法编译 JSP 文件的一个可能原因是它在 JRE 而不是 JDK 下运行。 它需要访问编译器(它不是 JRE 的一部分,只是 JDK 的一部分)才能将 JSP 源代码转换为字节码(中间有一个 Servlet 步骤)。
A possible reason Jetty is unable to compile the JSP file is because it's running under a JRE instead of a JDK. It needs access to the compiler (which is not part of the JRE just the JDK) to turn JSP source into bytecode (with a Servlet step in between).