Struts2 of the sinkhole project after configuration 404 (MyEclipse to eclipse)

Source: Internet
Author: User

Recently engaged in a own blog system to play, using the STRUTS2 framework, the results found two major problems:

1. Unable to Export the war file;

2. Generate the war, put it into Tomcat's WebApps directory, http://localhost:8080/project name/-----> 404

The investigation revealed that the original project was developed by MyEclipse, and later I used the Eclipse Import project, so the error

Workaround:

1. under Eclipse, right-click Project Properties, projects FAC e TS

Select the Dynamic Web module to select a later version of 2.5 (running environment is TOMCAT6, if 3.0 is selected, the runtime environment is TOMCAT7)

and select Java

2. If the project does not run properly when publishing click Modify

Find Project Path

For example, my project is in the D-Disk folder product Directory

D:\Product\.settings\org.eclipse.wst.common.component

There's a sentence inside.

<wb-resource deploy-path= "/" source-path= "/webcontent"/>

Change the back webcontent to

<wb-resource deploy-path= "/" source-path= "/webroot"/>

If not, create a new Eclipse Web project. Then you copy and paste the settings. Classpath. Project into the past.

Modify the project name inside the. Project and reset the bulidpath->libraies and source

Struts2 of the sinkhole project after configuration 404 (MyEclipse to eclipse)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.