Using Struts 2 with Maven, Eclipse and Tomcat

Asked

Viewed 75 times

0

I downloaded the Apache provided examples of Struts 2 projects into their repository here.

I tried to run the example helloworld. If I run through Jetty for Maven with mvn jetty:run, the project works normally when visiting http://localhost:8080/helloworld/index.jsp.

exemplo funcionando

However, if I use Apache Tomcat 8.5 in Eclipse (currently trying to run using Run As > Run on Server), I have 404 errors.

exemplo dando 404

I think there is some wrong configuration in Eclipse or Tomcat that is causing this error, but I can’t find what it is. What I need to do to use Struts 2 with Apache Tomcat?

1 answer

0

hello,

In the Servers tab double-click Tomcat and change to use the "Use Tomcat Installation" option and then select the webapps folder of your installation.

I believe I should solve.

Follow a help link

https://www.baeldung.com/eclipse-tomcat

Browser other questions tagged

You are not signed in. Login or sign up in order to post.