一個正在開發(fā)的項目,用在Eclipse用Tomcat啟動總是不能成功,后來查看Log,才發(fā)現是Source Code的中的幾個XML格式的配置文件沒有發(fā)布到classes文件夾,于是在Java Build Path中的Source框中指定該XML文件為include,但是運行后還是同樣的錯誤,XML文件還是沒有被發(fā)布。于是繼續(xù)查看Eclipse的設置項,最后在Preferences->Java->Compiler->Building->Output folder中找到了這個選項,該項名字為:Filtered resources,后面是一串的文件類型列表,在其中文件類型:*.xml,很明顯是在這里被過濾掉了,去掉*.xml,重新啟動Tomcat,發(fā)布成功。
該項的注釋為:Filtered resources are not copied to the output folder during a build. List is comma separated(e.g. ’*.doc,plugin.xml,scripts/’)
在這里記錄一下,便于以后查找問題。
該項的注釋為:Filtered resources are not copied to the output folder during a build. List is comma separated(e.g. ’*.doc,plugin.xml,scripts/’)
在這里記錄一下,便于以后查找問題。