After the project is deployed in Tomcat, the access fails, the reason for the error 404 and the solution

Source: Internet
Author: User
Tags tomcat

MyEclipse errors in the report:

org.apache.catalina.LifecycleException:Failed to start component [Standardengine[catalina]. Standardhost[localhost]. STANDARDCONTEXT[/SYNUATPZ]] at Org.apache.catalina.util.LifecycleBase.start ( at Org.apache.catalina.core.StandardContext.reload ( at Org.apache.catalina.startup.HostConfig.reload ( at Org.apache.catalina.startup.HostConfig.checkResources ( at Org.apache.catalina.startup.HostConfig.check ( at Org.apache.catalina.startup.HostConfig.lifecycleEvent ( at Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent ( at Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent ( at Org.apache.catalina.core.ContainerBase.backgroundProcess ( at Org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren ( at Org.apache.catalina.coRe. Containerbase$containerbackgroundprocessor.processchildren ( at Org.apache.catalina.core.containerbase$ ( at ( caused By:java.lang.IllegalArgumentException:Invalid <url-pattern> Collegedata in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping ( : 3279) at org.apache.catalina.core.StandardContext.addServletMapping ( at Org.apache.catalina.deploy.WebXml.configureContext ( at Org.apache.catalina.startup.ContextConfig.webConfig ( at Org.apache.catalina.startup.ContextConfig.configureStart ( at Org.apache.catalina.startup.ContextConfig.lifecycleEvent ( at Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent ( at Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (lifecyCLEBASE.JAVA:90) at Org.apache.catalina.core.StandardContext.startInternal ( at Org.apache.catalina.util.LifecycleBase.start ( ... More

The reason for this error occurs:

The main is your own project servlet configures the path in the Web.xml (wrong:<url-pattern>collegedata</url-pattern>. Correct: <url-pattern>/collegeData</url-pattern> is missing "/" caused. Simply correct the error.

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: 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.