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 (lifecyclebase.java:154) at Org.apache.catalina.core.StandardContext.reload (standardcontext.java:3988) at Org.apache.catalina.startup.HostConfig.reload (hostconfig.java:1459) at Org.apache.catalina.startup.HostConfig.checkResources (hostconfig.java:1442) at Org.apache.catalina.startup.HostConfig.check (hostconfig.java:1626) at Org.apache.catalina.startup.HostConfig.lifecycleEvent (hostconfig.java:328) at Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:117) at Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (lifecyclebase.java:90) at Org.apache.catalina.core.ContainerBase.backgroundProcess (containerbase.java:1374) at Org.apache.catalina.core.containerbase$containerbackgroundprocessor.processchildren (ContainerBase.java:1530) at Org.apache.catalina.coRe. Containerbase$containerbackgroundprocessor.processchildren (containerbase.java:1540) at Org.apache.catalina.core.containerbase$containerbackgroundprocessor.run (containerbase.java:1519) at Java.lang.Thread.run (thread.java:619) caused By:java.lang.IllegalArgumentException:Invalid <url-pattern> Collegedata in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping (Standardcontext.java : 3279) at org.apache.catalina.core.StandardContext.addServletMapping (standardcontext.java:3254) at Org.apache.catalina.deploy.WebXml.configureContext (webxml.java:1361) at Org.apache.catalina.startup.ContextConfig.webConfig (contextconfig.java:1341) at Org.apache.catalina.startup.ContextConfig.configureStart (contextconfig.java:873) at Org.apache.catalina.startup.ContextConfig.lifecycleEvent (contextconfig.java:371) at Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:117) at Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (lifecyCLEBASE.JAVA:90) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5355) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) ... 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: 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.