0
I am using Struts 2 in Tomcat, and I can run the code. However, I am having this error in the log.
java.lang.Classnotfoundexception: org.apache.Struts.action.Actionservlet
And I have no idea what it is. I’ve done some research and I haven’t found the solution yet. Can you help me, please?
What would be the mistake?
– Erlon Charles
The error you give me is: java.lang.Classnotfoundexception: org.apache.Struts.action.Actionservlet
– Iris
@Iris Could you post the full stack trace? (the location where it shows the errors in detail) And if the stack trace indicates a line of your code could post tb the snippet of the code where the problem is?
– Math
Did you put Struts 2 Lib in the correct folder? (Web-Inf/lib)
– adelmo00
Iris, Welcome(a) to Stack Overflow in English! As understood by the @adelmo00 comment, the problem may be caused by the lack of Struts libraries (Jars) in the directory
lib
application. You could edit your question and add the list of libraries present in your folderWEB-INF/lib
?– utluiz