Download Error in java webstart

Hi

I am getting a error while downloading application from java webstart

I am using Apache 2.2 http server running on port 80

In that in htdocs folder I have placed my jnlp file and my jar file

My jnlp file is like this .

All file are in the folder htdocs/products/

<jnlp spec="1.0+" codebase="http://127.0.0.1/" href="/products/note.jnlp">

<information>

<title>My Application </title>

<vendor>ABC Pvt Ltd</vendor>

<homepage href="http://127.0.0.1/products/"/>

<description>Sample Test</description>

<shortcut>

<desktop/>

<menu submenu="My Application 2.0 (web)"/>

</shortcut>

</information>

<security><all-permissions/></security>

<resources>

<j2se version="1.4+" />

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

</resources>

<application-desc main-class="Notepad">

</application-desc>

</jnlp>

The error which i am getting is

An error occurred while launching/running the application.

Title: My Application

Vendor: ABC Pvt Ltd

Category: Download Error

Bad MIME type returned from server when accessing resource: http://127.0.0.1/products/note.jnlp - text/plain

JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]

at com.sun.javaws.cache.DownloadProtocol.doDownload(U nknown Source)

at com.sun.javaws.cache.DownloadProtocol.isLaunchFile UpdateAvailable(Unknown Source)

at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc (Unknown Source)

at com.sun.javaws.Launcher.downloadResources(Unknown Source)

at com.sun.javaws.Launcher.handleApplicationDesc(Unkn own Source)

at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

at com.sun.javaws.Launcher.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Please help ...

How to solve this issue .

But the same file is working in Tomcat Server

please let me know

Thank you

Prakash

[2209 byte] By [Prakash_Halana] at [2007-11-26 17:17:28]
# 1

> Bad MIME type returned from server..

A server should return a content type of..

application/x-java-jnlp-file for JNLP

files.

Tomcat probably does that by default, but

other servers might need to be told about it.

See your server help, for how to set a

content-type.

AndrewThompson64a at 2007-7-8 23:45:29 > top of Java-index,Desktop,Deploying...
# 2
Hi,I'm facing the same problem. It seems to be a client problem for me, because it doesn't work just in one pc. I'm using java jre1.5.0_06.I tried to clear the cache but the same error ocurred.Do you have any idea how can I correct it?Many thanks
flbessaa at 2007-7-8 23:45:29 > top of Java-index,Desktop,Deploying...
# 3

For more information:

An error occurred while lauching/running the aplication.

Title: name of the aplication

Vendor: company

Category: Download Error

Unable to load resource: http://<server>:14000/cfg/help.jnlp

Tks

Message was edited by:

flbessa

flbessaa at 2007-7-8 23:45:29 > top of Java-index,Desktop,Deploying...
# 4
I suggest.- Validate the JNLP file.If it still does not work.- Start a new thread, with a better title.- Post the current JNLP with the new post, and preferrably..- With a link to the JNLP on the internet- Add some 'duke stars' (just for the heck of
AndrewThompson64a at 2007-7-8 23:45:29 > top of Java-index,Desktop,Deploying...