Eclipse tomcat error: Document base does not exist or is not a readable directory

后端 未结 20 3485
误落风尘
误落风尘 2020-12-04 10:44
13-dic-2011 17.00.36 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in producti         


        
相关标签:
20条回答
  • 2020-12-04 11:28

    As a trivial problem, the project that you're trying to start can be closed (this could be missable, if you have many projects into the workspace!). Just do right click -> Open Project, in this case.

    0 讨论(0)
  • 2020-12-04 11:30

    This could happen if you execute maven to build a java project

    mvn eclipse:eclipse 
    

    Instead of executing maven to build a web java project as:

    mvn eclipse eclipse -Dwtpversion=2.0
    
    0 讨论(0)
  • 2020-12-04 11:32

    You can look into tomcat\conf\Catalina\localhost,if you can see the xml file which its name matches your error message.You can just delete the xml file and restart your tomcat.

    0 讨论(0)
  • 2020-12-04 11:33

    i have the same error, just run this maven command repeatedly and solve the problem.

    mvn eclipse:clean eclipse:eclipse -Dwtpversion=2.0
    

    eclipse was not recognizing that this was a web project, so never deploy the application.

    0 讨论(0)
  • 2020-12-04 11:33

    I had to remove an offending project/module from the tomcat config view, under the modules tab.

    0 讨论(0)
  • 2020-12-04 11:34

    I came across this problem today, then solve it by editing the server.xml in directory of %tomcat_home%\conf, just as below:

    <Context docBase="E:\apache-tomcat-7.0.52\webapps\ROOT" path="/ROOT" reloadable="true" source="org.eclipse.jst.j2ee.server:pc-ui"/>
    

    I don't know whether it is MyEclipse that have genarated the "Context" element in element of "Host", but I change it according to the error info diaplayed in IDE console.

    0 讨论(0)
提交回复
热议问题