Setting MIME type in IIS 4 & 5

Well I am very impressed with this Web Start technology but it was a little slow downloading via sun's site.

I set about trying to set it up on my company Intranet server before I demonstrated to my IT director.

I saved the swingset2.jnlp file from the sun demo's page, used the Swingset2.jar file from the JDK 1.3.1 demos and got the swingset2.jnlp images and put them in an images subdirectory. Next I amended the swingset.jnlp to my own web server by changing the cobebase parameter. I then created a simple web page wrapper with a link to the jnlp file.

In my directories I have the following files:

swingset2.html

swingset2.jar

swingset2.jnlp

images\swingset2.small

On the server side IIS 5.0, I go into master properties for my web server, go to HTTP headers and hit the file types button.

I then add a new entry with associated extension .jnlp and content type of application/x-java-jnlp-file

Also found and changes the IIS.inf file just in case.

Rebooted the web server to make sure everything is initialised correctly.

When I launch the jnlp file from a client PC "Java Web Start" starts but I get the following error "Unable to launch Swingset2", details "category: download error. Bad MIME type returned from server when accessing resource: http://Newgreg/jaws/Swingset2.jnlp - text/html.

The jnlp used is listed:

<!--

###############################################################################

#

# @(#)template.jnlp1.2 01/04/25

#

# JNLP File for SwingSet2 Demo Application

#

###############################################################################

-->

<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0+"

codebase="http://NewGreg/jaws/apps"

href="SwingSet2.jnlp">

<information>

<title>SwingSet2</title>

<vendor>Sun Microsystems, Inc.</vendor>

<homepage href="../demos.html"/>

<description>SwingSet2 Demo</description>

<description kind="short">A demo of the capabilities of the Swing Graphical User Interface.</description>

<icon href="images/swingset2.small.jpg"/>

<offline-allowed/>

</information>

<resources>

<j2se version="1.3+"/>

<jar href="SwingSet2.jar" main="true" download="eager"/>

</resources>

<application-desc main-class="SwingSet2"/>

</jnlp>

Can anyone help? I would love to start using this technology, it looks very promising.

Email: greg_hughes@business-post.com

:)

[2751 byte] By [greghug] at [2007-9-26 2:09:21]
# 1

Have you been able to write your own java app and deploy it on that same server by any chance? It's hard to say whether it's something to do with the swing start demo configuration or whether it's your server's configuration. Since it's reporting bad MIME type I'm wondering if it's more related to the web server configuration.

jtottenham at 2007-6-29 8:58:58 > top of Java-index,Desktop,Deploying...
# 2
Hi,you are probably stuck with a proxy config issue which usually shows up as a bad MIME type error. Check previous postings for details.- Gerald
geraldb at 2007-6-29 8:58:58 > top of Java-index,Desktop,Deploying...