After copying the project, always reported 404 cannot find the page, but the configuration is no problem

Source: Internet
Author: User

Hey! I did a map of the deployed files before, but suddenly I had a problem and missed it.

The premise of the occurrence is:

I previously created a SPRINGMVC project under Eclipse and then copied and renamed the project, but some of the configuration files were also copied ( Mainly in the project of the. Settings directory, but the original project name is not removed, so that the new project after deployment, the request is always reported 404 cannot find the page)

Reason is


Files in Tomcat Server.xml

<context docbase= "Banksimulateapp" path= "/bank" reloadable= "true" source= "Org.eclipse.jst.jee.server: Banksimulateapp "/>

Path has not been modified

Org.eclipse.wst.common.component

<?xml version= "1.0"  encoding= "UTF-8"? ><project-modules id= "Modulecoreid"   project-version= "1.5.0" >    <wb-module deploy-name= "BankSimulateapp" >         <wb-resource deploy-path= "/"  source-path= "/target/ M2e-wtp/web-resources "/>        <wb-resource deploy-path="/ " source-path="/src/main/webapp " tag=" Defaultrootsource "/>         <wb-resource deploy-path= "/web-inf/classes"  source-path= "/src/main/java"/>         <wb-resource deploy-path= "/WEB-INF/classes"  source-path = "/src/main/resources"/>        <property name= " Context-root " value=" Bank "/>        <property name=" Java-output-path " value="/banksimulatEapp/target/classes "/>    </wb-module></project-modules> 

The value of Context-root has not been modified

This leads to external access requiring HTTP://XXXX: Port/bank instead of http://xxxx: Port/banksimulateapp

Hereby record!


After copying the project, always reported 404 cannot find the page, but the configuration is no problem

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.