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

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

    This might be late but for the benefit of the those who might encounter the same problem in the future, I'll share what I experienced.

    I got this problem after I deleted the WebContent folder of the Dynamic Web Project I just created in place of webapp folder which is the standard folder of my company. I found out that, in Project Properties > Deployment Assembly, WebContent folder is still used as the root of the web application (Deploy Path : "/"). Thus, Eclipse doesn't copy the project to .metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps because the root specified in Deployment Assembly does not exist anymore.

    I fixed it by editing that entry then correcting it with the folder I am using in place of the default WebContent (the webapp folder)

提交回复
热议问题