错误:java.lang.Illegal Argument Exception: Document base F:/apache-tomcat-7.0.40/webapps/ web3 does no

来源:互联网 发布:沪深300指数高频数据 编辑:程序博客网 时间:2024/06/16 19:43

MyEclipse部署Tomcat时,出现以下问题:

错误:java.lang.Illegal Argument Exception: Document base F:/apache-tomcat-7.0.40/webapps/ web3 does not exist or is not a readable directory.

解决方法:打开F:/apache-tomcat-7.0.40\conf\server.xml文件,删除标签 <Context docBase="web3" path="/web3" reloadable="true" source="org.eclipse.jst.jee.server:web3"/>

         标签 <Context>的内容是在部署Tomcat时自动生成的,每当部署一个新的项目,server.xml文件中就会新增一条<Context>记录。我之前在Eclipse中部署过web3这个项目,遗留的问题,只要删除了此Context就行了。


阅读全文
0 0
原创粉丝点击