首页 文章

Eclipse上的tomcat服务器:如何使tomcat服务器重新加载项目上下文

提问于
浏览
0

我在Eclipse neon 3和tomcat 7上编写了一个简单的APT(tomcat 9也不起作用) . 但是在保存我的java代码并在服务器上运行我的项目后,Tomcat服务器无法更新 . 我注意到只有当服务器重新加载下面的上下文时,它才会执行更新版本的java文件:

Sep 04, 2017 8:20:35 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/messenger] has started
Sep 04, 2017 8:20:37 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Sep 04, 2017 8:20:38 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/messenger] is completed

问题是如何使tomcat服务器重新加载项目上下文,以便我可以随时重新加载上下文 .

我尝试了以下选项,但都失败了:

1)在服务器上运行构建项目

2)重启服务器

3)重启服务器调试情绪 .

此外,Context中的tomcat server.xml reloadable属性为true .

非常感谢!

1 回答

  • 0

    检查你的日食属性 . 转到项目属性 - >检查部署程序集和java构建路径 .

相关问题