Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » "Unsupported Content Type" for HTML???
"Unsupported Content Type" for HTML??? [message #152506] Thu, 15 December 2005 12:14 Go to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

When I try to open a HTML file, I get an error dialog saying:

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

The "Content Types Preference Page" is a link; I clicked it, and under
Text/HTML, in the "File associations" pane, I see a "*.html (locked)",
along with some other extensions like .htm, .xhtml, etc.

Why doesn't it recognize my HTML files as such? I tried adding a DOCTYPE
declaration, but it didn't help.

BTW, I'm using WTP 1.0RC4.

Thanks in advance,
Daniel Serodio
Re: "Unsupported Content Type" for HTML??? [message #152522 is a reply to message #152506] Thu, 15 December 2005 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Daniel Serodio wrote:
> When I try to open a HTML file, I get an error dialog saying:
>
> "Unsupported content type in editor.
> To associate file extension with a supported content type,
> please see Content Types Preference Page"
>
> The "Content Types Preference Page" is a link; I clicked it, and under
> Text/HTML, in the "File associations" pane, I see a "*.html (locked)",
> along with some other extensions like .htm, .xhtml, etc.
>
> Why doesn't it recognize my HTML files as such? I tried adding a DOCTYPE
> declaration, but it didn't help.

Can you give a little more information about your HTML files, such
as their filename extensions? If it's not in the default list, you
might just need to add your filename extension to the HTML content
type on the Content Types preference page.

--
- Nitin
Re: "Unsupported Content Type" for HTML??? [message #152603 is a reply to message #152522] Fri, 16 December 2005 07:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

Nitin Dahyabhai wrote:
> Daniel Serodio wrote:
>> When I try to open a HTML file, I get an error dialog saying:
>>
>> "Unsupported content type in editor.
>> To associate file extension with a supported content type,
>> please see Content Types Preference Page"
>>
>> The "Content Types Preference Page" is a link; I clicked it, and under
>> Text/HTML, in the "File associations" pane, I see a "*.html (locked)",
>> along with some other extensions like .htm, .xhtml, etc.
>>
>> Why doesn't it recognize my HTML files as such? I tried adding a DOCTYPE
>> declaration, but it didn't help.
>
> Can you give a little more information about your HTML files, such as
> their filename extensions? If it's not in the default list, you might
> just need to add your filename extension to the HTML content type on the
> Content Types preference page.
>
TestLogin.html, for example. The list of file associations for Text/HTML is:
*.html (locked)
*.htm (locked)
*.xhtml (locked)
*.htpl (locked)
*.wml (locked)
*.shtml (locked)
*.shtm (locked)

I just noticed that there are 2 XML Content type entries, and the first
one says "XML (Illformed)", while the second one has lots of
sub-entries, like Product Configuration File, Fragment Manifest File,
Ant Buildfile, etc.

Does anyone have a clue?

TIA,
Daniel Serodio
Re: "Unsupported Content Type" for HTML??? [message #152698 is a reply to message #152603] Sat, 17 December 2005 13:43 Go to previous messageGo to next message
Eclipse UserFriend
On Fri, 16 Dec 2005 07:39:03 -0500, Daniel Serodio <dserodio@gmail.com> =
wrote:

> I just noticed that there are 2 XML Content type entries, and the firs=
t
> one says "XML (Illformed)", while the second one has lots of
> sub-entries, like Product Configuration File, Fragment Manifest File,
> Ant Buildfile, etc.
>Does anyone have a clue?

A clue about XML (Illformed)? That's normal, that means it recognizes so=
me illformed XML still as XML.
This is a contribution of WTP, simply to help people repair odd xml file=
s. (And, suspected to be seldom needed).

The other XML content type is the normal one, contributed by Eclipse pla=
tform. Then, the "sub-entries" of XML are contributed by specialized ext=
ensions. All normal and correct. (apparently).

But, none of this is likely related to your HTML problem.

I tried a number of different things, and could not get this error messa=
ge to display.

So, just to take a guess, I wonder if you have other things installed, o=
ther html editors? that might be causing the error message?
Re: "Unsupported Content Type" for HTML??? [message #153921 is a reply to message #152698] Tue, 27 December 2005 12:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dave.townsend.blueprintit.co.uk

David Williams wrote:
> On Fri, 16 Dec 2005 07:39:03 -0500, Daniel Serodio <dserodio@gmail.com>
> wrote:
>
>> I just noticed that there are 2 XML Content type entries, and the first
>> one says "XML (Illformed)", while the second one has lots of
>> sub-entries, like Product Configuration File, Fragment Manifest File,
>> Ant Buildfile, etc.
>> Does anyone have a clue?
>
> A clue about XML (Illformed)? That's normal, that means it recognizes
> some illformed XML still as XML.
> This is a contribution of WTP, simply to help people repair odd xml
> files. (And, suspected to be seldom needed).
>
> The other XML content type is the normal one, contributed by Eclipse
> platform. Then, the "sub-entries" of XML are contributed by specialized
> extensions. All normal and correct. (apparently).
>
> But, none of this is likely related to your HTML problem.
>
> I tried a number of different things, and could not get this error
> message to display.
>
> So, just to take a guess, I wonder if you have other things installed,
> other html editors? that might be causing the error message?
>

Im having this problem as well. I previously had WTP 0.7 installed and
that worked fine, but since removing and adding WTP 1.0 I cannot open
html files without this error, whether thay have th xhtml or html
extension. I have one other editor registered for html files which is a
php editor, but the WTP editor is set as the default.

Dave
Re: "Unsupported Content Type" for HTML??? [message #153928 is a reply to message #153921] Tue, 27 December 2005 12:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dave.townsend.blueprintit.co.uk

Dave Townsend wrote:
> Im having this problem as well. I previously had WTP 0.7 installed and
> that worked fine, but since removing and adding WTP 1.0 I cannot open
> html files without this error, whether thay have th xhtml or html
> extension. I have one other editor registered for html files which is a
> php editor, but the WTP editor is set as the default.
>
> Dave

Ok I disabled PHPeclipse and that solved this problem. But I do not
understand why. I would very much like to continue using PHPeclipse for
editing php files, but WTP for html files. With PHPeclipse included, but
not set as an editor for xhtml files I get the following errors on
opening an xhtml file in the html editor:

Warning 2005-12-27 17:19:14.531 StructuredTextEditor being used without
StructuredDocument
Warning 2005-12-27 17:19:14.531 Input Name: options.xhtml
Warning 2005-12-27 17:19:14.531 Unexpected IDocumentProvider
implementation: org.eclipse.ui.editors.text.TextFileDocumentProvider
Warning 2005-12-27 17:19:14.531 Unexpected IDocument
implementation:
net.sourceforge.phpeclipse.phpeditor.PartiallySynchronizedDo cument

Any suggestion?

Dave
Re: "Unsupported Content Type" for HTML??? [message #154386 is a reply to message #153928] Sun, 01 January 2006 03:52 Go to previous messageGo to next message
Eclipse UserFriend
On Tue, 27 Dec 2005 12:23:37 -0500, Dave Townsend <dave.townsend@bluepri=
ntit.co.uk> wrote:

> With PHPeclipse included, but
> not set as an editor for xhtml files I get the following errors on
> opening an xhtml file in the html editor:
>Warning 2005-12-27 17:19:14.531 StructuredTextEditor being used without=

> StructuredDocument
> Warning 2005-12-27 17:19:14.531 Input Name: options.xhtml
> Warning 2005-12-27 17:19:14.531 Unexpected IDocumentProvider
> implementation: org.eclipse.ui.editors.text.TextFileDocumentProvider
> Warning 2005-12-27 17:19:14.531 Unexpected IDocument
> implementation:
> net.sourceforge.phpeclipse.phpeditor.PartiallySynchronizedDo cument
>Any suggestion?

There might be some things you can do as a user to help this problem, bu=
t there is
also some think both us (WTP) and probably PHPEclipse may have to change=
to hot use
the "create document" extension point. I know we (in wtp) need to proviv=
e a special FileDocumentProvider
that "forces" the editor to use the kind of document it is expecting.

So, as a user, sounds like you've disassociated the editor as you wanted=
,
but, somehow, you my also have to disassociate the phpEclipse's associat=
ing
'html' and 'xhtml' with "PHP HTML Content Type", and then also disassoci=
ate the PHPhtml content type
from participating in the "create document" extension point. ... do eas=
y task, but if you are
up to it, you can try.

There several bugs opened on these issuse already. we WILL get them work=
ed out, just a question of when.

Thanks,
Re: "Unsupported Content Type" for HTML??? [message #154530 is a reply to message #154386] Tue, 03 January 2006 06:28 Go to previous message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

David Williams wrote:

<snip />

> There might be some things you can do as a user to help this problem,
> but there is
> also some think both us (WTP) and probably PHPEclipse may have to change
> to hot use
> the "create document" extension point. I know we (in wtp) need to
> provive a special FileDocumentProvider
> that "forces" the editor to use the kind of document it is expecting.
>
> So, as a user, sounds like you've disassociated the editor as you wanted,
> but, somehow, you my also have to disassociate the phpEclipse's associating
> 'html' and 'xhtml' with "PHP HTML Content Type", and then also
> disassociate the PHPhtml content type
> from participating in the "create document" extension point. ... do easy
> task, but if you are
> up to it, you can try.
>
> There several bugs opened on these issuse already. we WILL get them
> worked out, just a question of when.

Do you have links to these bugs? I'd like to track them.

TIA,
Daniel Serodio
Previous Topic:WTP, unit testing application source code, and webapp disk images
Next Topic:WTP 1.0 and other Axis versions
Goto Forum:
  


Current Time: Sun Mar 16 06:34:28 EDT 2025

Powered by FUDForum. Page generated in 0.02957 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top