Eclipse + Tomcat : cannot create a server using the selected type

今天開啟 Eclipse 的 Tomcat 6 plug-in 發生問題,

所以就把 Tomcat 的設定刪除, 想重建一個新的.

沒想到卻出現了cannot create a server using the selected type,

搞了好久, 也上網查, 就是解決不了,

我在想, 是不是要重灌 Tomcat 6 以及 Eclipse…

後來有一篇文章提到去查看 .metadata\.log 檔看看有什麼錯誤訊息,

果然看到在 Load Tomcat 時, Tomcat conf 下的設定檔有錯, 所以無法使用.

我才想起之前改了 context.xml, 沒改好, 造成 XML 格式錯誤.

修正後就可以使用了…

※※※※※※※※※※

Eclipse + Tomcat 6 的設定方式:

1. Install Tomcat 6.x

2. Open Eclipse

3. Open Window→Preferences→Server→Runtime Environments→Add→Apache Tomcat V6.0→Select tomcat installation directory→Finish

4. Open Window→Show View→Servers→New→Tomcat v6.0 Server→Finish

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s