0
我開始的Servlet我安裝裝配的Tomcat 7,java.lang.IllegalArgumentException異常:文檔基[...]不存在或不是一個可讀目錄
這是控制檯當我在eclipse啓動tomcat:
java.lang.IllegalArgumentException: Document base C:\Users\Janko\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps\Servlet does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5055)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5235)
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)
HI,謝謝我添加新服務器我將服務器位置設置爲」使用Tomcat安裝「,但當我開始我的簡單servlet時,我仍然有404狀態。它有什麼問題? – user2994290