Eclipse IDE : Unsupported content type in editor

Problem

Using Eclipse Ganymede (3.4) , developing JSF 2.0 web application. However when open the xhtml file with the Eclipse web page editor , it prompts a dialog box and saying …

Unsupported content type in editor
To associate file extension with a supported content type, please see Content Types Preference Page.

Eclipse-Unsupported-Content-Type-Error

P.S The .xhtml file extension is configured and associated property in the Content Types Preference Page.

Solution

Thousand time of tries and errors, but still unable to get rid of the “unsupported content type” error, may be it is caused by the Eclipse IDE itself ? Give up, just upgrade to the latest Eclipse Helios (3.6), solve the problem immediately :)

Note
Not sure what’s the root cause of it, may be i had installed too many plugins, and some caused the conflicts. Just get a clean copy of the Eclipse IDE will get rid of the annoying error message immediately.

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter, or befriend him on Facebook or Google Plus. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
3 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
JohanJSF 2.0 Tutorial « java configJSF 2.0 hello world example Recent comment authors
newest oldest most voted
Johan
Guest
Johan

Just had the same issue on Eclipse Indigo, all I had to do to fix the problem was to restart the IDE.

trackback
JSF 2.0 Tutorial « java config

[…] Eclipse IDE : Unsupported content type in editor […]

trackback
JSF 2.0 hello world example

[…] Eclipse IDE : Unsupported content type in editor […]