Tag Archives: servlet

Exception of browser accessing servlet404

* *
Error about creating a servlet when viewed in a browser
**

user initiates a request, which is received by the server, and finds out if the requested resource exists according to the configuration information in the web.xml file. If it does not exist, a 404 error is returned.
After the resource is found (the servlet is found), the servlet object is checked to see if it exists, if not, the object is created, and if it does, the corresponding processing method is executed.
After the execution of the processing method, the processing result will be returned to the Web server. After the Web server carries out relevant processing according to the result, it will be returned to the browser, and the browser will display the corresponding processing result.
————————————————
lution for link
Reasons for appearing:
In 404 because the
in the create project is not changed when buildpath WebContent/WEB – INF/classes
cause no class file
so error
Second, if there is no @WebServlet(“/test”) link, you should configure the web.xml file
in the WebContent/ web-inf directory

<servlet>
    <servlet-name>xxx</servlet-name>
    <servlet-class>day2ByServlet.Servlet$One</servlet-class>
    <init-param>
      <param-name>p</param-name>
      <param-value>xixi</param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>xxx</servlet-name>
    <url-pattern>/Servlet$One</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>yyy</servlet-name>
    <servlet-class>day2ByServlet.HttpServlet_two</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>yyy</servlet-name>
    <url-pattern>/ServletTwo</url-pattern>
  </servlet-mapping>

404 error in browser accessing Servlet

The first Servlet program written with the MyEclipse tool — HelloWorld (refer to Section 4.1 of Java Web Programming). After the Web project is created, Tomcat is started through the MyEclipse development tool. See the Console window to output the server startup information as follows:

Then, when testing the program by typing the URL in the browser address bar, a 404 error occurs, as shown below:

My development environment is MyEclipse 2014+Tomcat 8.0. Previously, there were some new features in MyEclipse that did not support JDK 1.8. Later, I wondered if there was a version mismatch between development environments, so I tried to change Tomcat 8.0 to Tomcat 7.0.

SQL Error: 904, SQLState: 42000

Question:

WARN 2011-03-04 09:33:18 org.hibernate.util.JDBCExceptionReporter – SQL Error: 904, SQLState: 42000

the ERROR 2011-03-04 09:33:18 org. Hibernate. Util. JDBCExceptionReporter – ORA – 00904: “MENU0_”. “MENU_OPEN_IN_HOME” : identifier is invalid

Hibernate: select portletloc0_.PORTLET_LOCATION_ROW as col_0_0_, portletloc0_.PORTLET_LOCATION_COLUMN as col_1_0_, portlet1_.PORTLET_URL as col_2_0_, portlet1_.PORTLET_TITLE as col_3_0_, portletloc0_.PORTLET_ID as col_4_0_ from JEDA_PORTLET_LOCATION portletloc0_, JEDA_PORTLET portlet1_ where portletloc0_.PORTLET_ID=portlet1_.PORTLET_ID and portletloc0_.POSITION_ID=?order by portletloc0_.PORTLET_LOCATION_ROW asc, portletloc0_.PORTLET_LOCATION_COLUMN asc

2011-3-4 9:33:18 org.apache.catalina.core.StandardWrapperValve invoke

severity: servlet.service () for Servlet DispatcherServlet threw exception

java.sqlexception: “MENU0_”.”MENU_OPEN_IN_HOME”: identifier is invalid

the reason:
The attribute name of the
hbm. XML file does not correspond to the attribute name of the database

A child container failed during start Tomcat error prompt

Java Web project startup error: A child Container failed during start
complete error message is as follows:

严重: A child container failed during start  
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testcs_dn-admin-web]]  
    at java.util.concurrent.FutureTask.report(Unknown Source)  
    at java.util.concurrent.FutureTask.get(Unknown Source)  
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)  
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:799)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)  
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)  
    at java.util.concurrent.FutureTask.run(Unknown Source)  
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
    at java.lang.Thread.run(Unknown Source)  
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testcs_dn-admin-web]]  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)  
    ... 6 more  
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name Action  
    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3275)  
    at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3254)  
    at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1430)  
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1344)  
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)  
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)  
    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)  
    ... 6 more  

十二月 09, 2014 2:21:25 下午 org.apache.catalina.core.ContainerBase startInternal  
严重: A child container failed during start  
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]  
    at java.util.concurrent.FutureTask.report(Unknown Source)  
    at java.util.concurrent.FutureTask.get(Unknown Source)  
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)  
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:731)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    at org.apache.catalina.startup.Catalina.start(Catalina.java:689)  
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
    at java.lang.reflect.Method.invoke(Unknown Source)  
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)  
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)  
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)  
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)  
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)  
    at java.util.concurrent.FutureTask.run(Unknown Source)  
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
    at java.lang.Thread.run(Unknown Source)  
Caused by: org.apache.catalina.LifecycleException: A child container failed during start  
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)  
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:799)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    ... 6 more  

十二月 09, 2014 2:21:25 下午 org.apache.catalina.startup.Catalina start  
严重: The required Server component failed to start so Tomcat is unable to start.  
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8006]]  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)  
    at org.apache.catalina.startup.Catalina.start(Catalina.java:689)  
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
    at java.lang.reflect.Method.invoke(Unknown Source)  
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)  
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)  
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)  
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:731)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    ... 7 more  
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)  
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    ... 9 more  
Caused by: org.apache.catalina.LifecycleException: A child container failed during start  
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)  
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)  
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)  
    ... 11 more  

十二月 09, 2014 2:21:25 下午 org.apache.coyote.AbstractProtocol pause  
信息: Pausing ProtocolHandler ["http-bio-8081"]  
十二月 09, 2014 2:21:25 下午 org.apache.coyote.AbstractProtocol pause  
信息: Pausing ProtocolHandler ["ajp-bio-8010"]  
十二月 09, 2014 2:21:25 下午 org.apache.catalina.core.StandardService stopInternal  
信息: Stopping service Catalina  
十二月 09, 2014 2:21:25 下午 org.apache.coyote.AbstractProtocol destroy  
信息: Destroying ProtocolHandler ["http-bio-8081"]  
十二月 09, 2014 2:21:25 下午 org.apache.coyote.AbstractProtocol destroy  
信息: Destroying ProtocolHandler ["ajp-bio-8010"]  

solution:
the key to solving this problem is in the error message:

Servlet mapping specifies an unknown servlet name Action

open the “SRC \main\webapp\ web-inf \web.xml” file under the project and look for nodes similar to the following:

<servlet-mapping>
    <servlet-name>kaptcha</servlet-name>
    <url-pattern>/valicode.jpg</url-pattern>
</servlet-mapping>

Check

& lt; url-pattern> The path of the child node is correct. If correct, it depends on whether the relative path is used elsewhere and the absolute path is used here. In other words, for/valicod.jpg, remove the “/”

Failed to start component [standardengine [Catalina]. Standardhost [localhost]. Standardcontext

严重: A child container failed during start

> 这里是引用

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [AjaxTypeAdd] and [com.news.controller.AjaxTypeAdd] are both mapped to the url-pattern [/AjaxTypeAdd] which is not permitted
	at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:306)
	at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2463)
	at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2137)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2126)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2094)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1377)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1278)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
	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:5590)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 6 more

二月 18, 2020 10:07:44 上午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:758)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:711)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1254)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 6 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
	... 8 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [AjaxTypeAdd] and [com.news.controller.AjaxTypeAdd] are both mapped to the url-pattern [/AjaxTypeAdd] which is not permitted
	at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:306)
	at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2463)
	at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2137)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2126)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2094)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1377)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1278)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
	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:5590)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 6 more

二月 18, 2020 10:07:44 上午 org.apache.catalina.startup.Catalina start
严重: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:711)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:758)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:444)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1254)
	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 11 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
	... 13 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1254)
	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 6 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1243)
	... 8 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
	... 6 more
Caused by: java.lang.IllegalArgumentException: The servlets named [AjaxTypeAdd] and [com.news.controller.AjaxTypeAdd] are both mapped to the url-pattern [/AjaxTypeAdd] which is not permitted
	at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:306)
	at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2463)
	at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2137)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2126)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2094)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)
	at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1377)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1278)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)
	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:5590)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	... 6 more

start tomcat when occasionally have this kind of problem, then I found The reference on The servlet, and XML is not compatible with lead to
` The servlets named [AjaxTypeAdd] and [com. News. Controller. AjaxTypeAdd] are both mapped to The url – The pattern [/ AjaxTypeAdd] which is not permitted!



remove the referenced files in the servlet * @webservlet (“/ your project name “)* just do it