Why is Tomcat's WEB-INF / lib library folder empty?

I am deploying my Maven web application using Spring MVC to Eclipse Tomcat. Everything works fine for a whole week. All of a sudden, today I am modifying the properties file, rebuilding and redeploying the webapp. There the class was not found with an 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 the publish folder (tmp0) of the Tomcat server plugin located in the workspace folder, there are no more jars in WEB-INF / lib. I do not know why? I have rebuilt / deployed many times today and found no problem.

Can anyone provide some advice? Many thanks.

EDIT:

I can't seem to find the right solution for this problem, although I got around temporarily by removing the web app from Tomcat Server, doing a cleanup, and then adding it back in.

+3


source to share


2 answers


Is the WTP integration installed in m2eclipse? There are several things you could try:

  • Maven-> Update project config
  • Close and open a project
  • Remove the project from the Tomcat instance in WTP, clean up and add it back.


Depending on your version of Eclipse and m2eclipse / m2e and WTP, the integration can sometimes be tricky.

+1


source


  • Is this option enabled? Project Name (right click)> Maven> Enable Dependency Management You should have in ProjectName> properties> Java Build Path> Libraries an item called Maven2 Dependencies
  • Is your variable M2_REPO set? Window> Preferences> Java> Build Path> Class Variables>


If everything is ok, check the war that Maven creates to see if the libraries are there and in the correct folder (web-inf \ libs). Check maven output when creating war.

0


source







All Articles