Skip to main content

Unsupported Content-Type: text/html; charset=iso-8859-1

3 replies [Last post]
jsexton
Offline
Joined: 2008-07-09

Hello -
I am working on a problem that has some information posted here:

http://forums.sun.com/thread.jspa?messageID=10722812

I am dynamicly invoking an EJB from a BPEL. It works fine at 8080, but I need to move to HTTPS and this is proving very difficult. The exception is:

Caused by: com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=iso-8859-1 Supported ones are: [text/xml]

Any ideas on this? Thank you.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jsexton
Offline
Joined: 2008-07-09

I think I have made some progress. If I edit the WSDL file for the EJBs, and change it to say "https://" and port 9181, and then deploy the EJBs in a SA rather than as normal EJBs, then my dynamic EJB call works without the exception that using port 8181 causes!

So, it appears that over the wire calls to port 9181 - the HTTP-binding service provider, rather than the J2EE service at 8181, receive the message format they are looking for.

I wish I understood this better, I would rather use 8181/8080 for some of these as they have no other reason to involve JBI components.

Martin Gainty

please indicate your application web.xml mime-mapping for html extensions e.g.


html
text/html

in your $GF_HOME/domains/domain1/config/domain1.xml you have any params in the
protocol which would not use default-type="text/html" such as this default-type?

glassfish@javadesktop.org
> To: users@glassfish.dev.java.net
> Subject: Unsupported Content-Type: text/html; charset=iso-8859-1
>
> Hello -
> I am working on a problem that has some information posted here:
>
> http://forums.sun.com/thread.jspa?messageID=10722812
>
> I am dynamicly invoking an EJB from a BPEL. It works fine at 8080, but I need to move to HTTPS and this is proving very difficult. The exception is:
>
> Caused by: com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=iso-8859-1 Supported ones are: [text/xml]
>
> Any ideas on this? Thank you.
> [Message sent by forum member 'jsexton' (jsexton)]
>
> http://forums.java.net/jive/thread.jspa?messageID=347935
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tu...
[att1.html]

jsexton
Offline
Joined: 2008-07-09

Hello -

In the domain.xml file I have no entry for mime-mapping
I have this for http-protocol

default-response-type="AttributeDeprecated"
default-type="text/html; charset=iso-8859-1"
dns-lookup-enabled="false"
forced-response-type="AttributeDeprecated"
forced-type="text/html; charset=iso-8859-1"
ssl-enabled="true" version="HTTP/1.1"/>

Do you suggest that I try changing this? Thank you