[英]Why Tomcat library folder WEB-INF/lib is empty?
I deploy my Maven webapp using Spring MVC in Eclipse Tomcat. 我在Eclipse Tomcat中使用Spring MVC部署我的Maven webapp。 Everything works OK for quite a week.
一切都运行了一个星期。 Suddenly, today I modify a properties file, rebuild and redeploy the webapp.
突然,今天我修改了一个属性文件,重建并重新部署了webapp。 There's a class not found error:
找不到类错误:
SEVERE: Error configuring application listener of class org.jasig.cas.client.session.SingleSignOutHttpSessionListener
java.lang.ClassNotFoundException: org.jasig.cas.client.session.SingleSignOutHttpSessionListener
Look at publish folder (tmp0) of Tomcat server plugin located in workspace folder, there are no jars in WEB-INF/lib any more. 查看位于工作区文件夹中的Tomcat服务器插件的发布文件夹(tmp0),WEB-INF / lib中没有jar文件。 I don't know why?
我不知道为什么? I have rebuilt/deployed it many times today, and have found no problem.
我今天已经多次重建/部署它,并且没有发现任何问题。
Could someone give an advice? 有人可以提出建议吗? Thanks very much.
非常感谢。
EDIT: 编辑:
I can't find a right solution for this problem, though I temporarily bypass it by removing the web app from Tomcat Server, do a clean up, then add it back again. 我无法找到解决此问题的正确解决方案,但我暂时通过从Tomcat服务器中删除Web应用程序来绕过它,进行清理,然后再将其添加回来。
Do you have m2eclipse WTP integration installed? 你有m2eclipse WTP集成吗? There are few things you could try:
你可以尝试的东西很少:
Depending on your version of Eclipse and m2eclipse/m2e and WTP the integration could be finicky sometimes. 根据您的Eclipse和m2eclipse / m2e以及WTP的版本,有时候整合可能很挑剔。
If it's all ok, check the war that Maven is creating to see if the libs are there and in the correct folder (web-inf\\libs). 如果一切正常,请检查Maven正在创建的战争,以查看lib是否在那里以及正确的文件夹(web-inf \\ libs)。 Check the maven output when generating the war.
在产生战争时检查maven输出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.