加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

Eclipse WST:Webapp有时不在Tomcat上部署

发布时间:2020-12-15 01:42:00 所属栏目:大数据 来源:网络整理
导读:我正在使用Eclipse WTP开发我的spring应用程序并将其部署在tomcat服务器上. 通常我的web应用程序部署在tomcat上,一切正常,但有时,我可以随机说,我的Web应用程序没有部署,tomcat启动时没有任何模块: 17.03.2011 14:04:31 org.apache.catalina.core.AprLifecy

我正在使用Eclipse WTP开发我的spring应用程序并将其部署在tomcat服务器上.

通常我的web应用程序部署在tomcat上,一切正常,但有时,我可以随机说,我的Web应用程序没有部署,tomcat启动时没有任何模块:

17.03.2011 14:04:31 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [CUT BY ME]
17.03.2011 14:04:31 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mywebapp' did not find a matching property.
17.03.2011 14:04:31 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
17.03.2011 14:04:31 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 573 ms
17.03.2011 14:04:31 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17.03.2011 14:04:31 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
17.03.2011 14:04:31 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
17.03.2011 14:04:31 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
17.03.2011 14:04:31 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/34  config=null
17.03.2011 14:04:31 org.apache.catalina.startup.Catalina start
INFO: Server startup in 438 ms

如果部署了应用程序,我会看到更长的日志,服务器需要更长的启动时间,因此我可以肯定地确保没有部署应用程序.

为了摆脱这个问题,我目前正在随机删除并再次添加我的应用程序并重新启动eclipse,直到它最终工作.当然,这不是一个解决方案,所以也许有人知道为什么出了问题.

谢谢!

编辑:现在我发现在这些情况下有时会出现问题:我在资源文件(JS / HTML)中更改了某些内容,重新建立了文件,但不仅是这个文件而且还重新发布了一些类文件.突然发生这种情况后,并不是所有的类文件都存在,并且服务器缺少某些类.

只停止服务器,删除应用程序和关闭eclipse在这里工作.

编辑2:我现在可以进一步解决这个问题.似乎eclipse自动发布功能存在一些问题.如果我完全关闭自动重新发布并手动重新发布,一切都很顺利.

最佳答案
我找到了一个可能的答案:一种解决方案是使用网络服务器的清理功能.

右键单击服务器以打开上下文菜单,然后单击“清理”.到目前为止,在我所有情况下,这对我来说……

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读