404 Issus for using Maven in Eclipse

The problem is building a webapp with maven using Eclipse.

I encountered 404 in tomcat 8.0

After searching online, I found out the solution.
Click your project -> properties -> deployment assemebly
Add folder “/src/main/webapp”

then it works !

However, if you are using Struts2 like me, there is an advance option beneath it “Folder for deployment descriptor” select the folder we just created. (This option won’t be showed if you have already the folder in the above list)

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s