IDEA启动Tomcat,报“LifecycleException: Failed to start component [StandardEngine[Catalina]
来源:互联网 发布:java class.this 编辑:程序博客网 时间:2024/05/21 02:50
IDEA启动Tomcat,报“LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]”问题。
1、 IDEA启动Tomcat,报下面的错误:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1702)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482)at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)at sun.rmi.transport.Transport$1.run(Transport.java:200)at sun.rmi.transport.Transport$1.run(Transport.java:197)at java.security.AccessController.doPrivileged(Native Method)at sun.rmi.transport.Transport.serviceCall(Transport.java:196)at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)at java.security.AccessController.doPrivileged(Native Method)at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> firstServlet.do in servlet mappingat org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3128)at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3103)at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1367)at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1181)at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:298)at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5076)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
2、解决方案:发现是web.xml配置“servlet-mapping”的“url-pattern”少了斜杠;增加斜杠即可。
阅读全文
0 1
- IDEA启动Tomcat,报“LifecycleException: Failed to start component [StandardEngine[Catalina]
- tomcat 启动报错org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalin
- Tomcat启动报错:org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalin
- 每日一得--web项目报org.apache.catalina.LifecycleException: Failed to start component [StandardEngine...
- 启动tomcat报 Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContex
- 启动spring出错 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catal
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standard
- Struts2: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standard
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standar
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standard
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standard
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina].Standa
- org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].Standard
- tomcat org.apache.catalina.LifecycleException: Failed to start component
- tomcat org.apache.catalina.LifecycleException: Failed to start component
- tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].
- tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].
- 【译文】热闹驱动开发
- LWip1.4.1移植到STM32平台的步骤
- Android中View绘制过程(六) performDraw
- 百度富文本编辑器集成——代码备份
- robotFramework 读取Excel文件数据
- IDEA启动Tomcat,报“LifecycleException: Failed to start component [StandardEngine[Catalina]
- 72_异常机制_Exception_Throwable_Error的概念
- Lua 常用Math库
- apache部署ssl证书
- main函数最后一行提示错误问题--仍在分析中---标点符号是完整的--
- unity3d面试题
- WLFModel
- Dom4j解析、生成XML文件
- 落单的数