Eclipse Server不可設(shè)置tomcat7

!?。?!再次之前需要保證tomcat下的文件和eclipse下的文件有rwx權(quán)限!?。?!
點擊Server不可添加Tomcat服務(wù)器。ServerName無法編輯。
- 關(guān)閉Eclipse
- 打開WorkSpace所在的位置。
{workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
- 刪除以下文件
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
- 重啟 Eclipse,即可解決所有問題。

– Close Eclipse
– Go to your Eclipse workspace directory
– Then go to directory .metadata/.plugins/org.eclipse.core.runtime/.settings
– In Ubuntu, I do it by: cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings
– Delete the following two files:
– org.eclipse.wst.server.core.prefs
– org.eclipse.jst.server.tomcat.core.prefs
– You can do it by the following command:
rm org.eclipse.wst.server.core.prefs
rm org.eclipse.jst.server.tomcat.core.prefs
– Start Eclipse


If the above solution did not solve the problem then you can try the following solution which contains creating some softlinks along with deleting the above mentioned files.

– Run the following commands in terminal

cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
rm org.eclipse.jst.server.tomcat.core.prefs
rm org.eclipse.wst.server.core.prefs
cd /usr/share/tomcat7
sudo service tomcat7 stop
sudo update-rc.d tomcat7 disable
sudo ln -s /var/lib/tomcat7/conf conf
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat7 log
sudo chmod -R 777 /usr/share/tomcat7/conf
sudo ln -s /var/lib/tomcat7/common common
sudo ln -s /var/lib/tomcat7/server server
sudo ln -s /var/lib/tomcat7/shared shared

– Restart eclipse
– In Project Explorer of Eclipse, you can see ‘Servers’. Right click and delete it.
– Re-add the Server (File -> New -> Other -> Server)
– Now your project on Eclipse should run fine.


Suggesting one more way, in the org.eclipse.jst.server.tomcat.core.prefs file as mentioned above rightly, we have an issue. Just open it with any text editor and put the location of your server into inverted commas. e.g. : locationorg.eclipse.jst.server.tomcat.runtime.70=”D:/Apache/Tomcat 7″.
After that restart eclipse and delete server. Create a new server. It should run. Worked for me. (Note : the spaces in folder name are the main issue.)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,534評論 19 139
  • 解決方案: 在 eclipse.ini 里面添加一行配置: --add-modules=ALL-SYSTEM //...
    光劍書架上的書閱讀 1,161評論 0 1
  • 子 兮 中午吃飯,有個地方同事多次推薦。 于是,一起前往。 七拐八拐,一條巷子深處,終于找到了這家飯館,巷子僅能停...
    北六月閱讀 333評論 0 0
  • 四天的空閑 與騷騷奔向北海 應(yīng)該是我所經(jīng)歷的最囧之旅 株洲匯合后在火車站閑聊著等列車的到來 一次次的晚點我們終于在...
    胖T閱讀 807評論 9 3
  • MindManager2016思維導(dǎo)圖中的拼寫檢查功能如同大部分標準拼寫檢查器,運行拼寫檢查(相關(guān)文章請參考詳解M...
    一只流浪喵閱讀 713評論 0 0

友情鏈接更多精彩內(nèi)容