Error deploying web application directory

配置文件url-pattern出错少了斜杠:


修改前:


    DoUploadServlet
    com.web.servlets.DoUploadServlet
  

  
    DoUploadServlet
    DoUploadServlet.action
  	
  
    index.jsp
  

修改后:


    DoUploadServlet
    com.web.servlets.DoUploadServlet
  

  
    DoUploadServlet
    /DoUploadServlet.action
  	
  
    index.jsp
  





严重: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/demo]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1258)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1918)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Invalid  DoUploadServlet.action in servlet mapping
	at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3324)
	at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3299)
	at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1438)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1357)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
	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:5416)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 11 more
2015-5-13 16:34:42 org.apache.catalina.startup.HostConfig deployDirectory
严重: Error deploying web application directory D:\sdk\apache-tomcat-7.0.61\webapps\demo
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/demo]]
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1258)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1918)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)








你可能感兴趣的:(Web开发)