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

后端 未结 20 3510
误落风尘
误落风尘 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:22

    I had the same problem using Tomcat 7 & Eclipse Mars.
    I solved it as follows:

    • stop Tomcat
    • open server.xml

      Ctrl + Shift + R > type "server.xml" > Open

    • search for ""

      Ctrl + F > type "" > Find

    • remove all tags from here:

      
      ...
      
          ...
          
              ...
              
                  ...
                  
                      ...
                      
                      
                      
                  
              
          
      
      
      • probably at the end of the last line that has to be removed is (don't remove !)
    • Go to Servers tab > right click on the project(s) > Remove > OK

    • Right click on the project > Run As > Run on Server > Finish

      Now it should work!
      If you check the server.xml file, you'll see that a new correct "" line was generated.

提交回复
热议问题