Reputation: 6248
I deploy my Maven webapp using Spring MVC in Eclipse Tomcat. Everything works OK for quite a week. Suddenly, today I modify a properties file, rebuild and redeploy the 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. 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.
Upvotes: 3
Views: 4874
Reputation: 8169
Do you have m2eclipse WTP integration installed? There are few things you could try:
Depending on your version of Eclipse and m2eclipse/m2e and WTP the integration could be finicky sometimes.
Upvotes: 1
Reputation: 17115
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). Check the maven output when generating the war.
Upvotes: 0