aspose file tools*
The moose likes JNLP and Web Start and the fly likes browsers display contents of JNLP instead of offering to open with JWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "browsers display contents of JNLP instead of offering to open with JWS" Watch "browsers display contents of JNLP instead of offering to open with JWS" New topic
Author

browsers display contents of JNLP instead of offering to open with JWS

Derik Davenport
Ranch Hand

Joined: May 30, 2011
Posts: 57
NetBeans created a sample HTML and JNLP files to demonstrate launching my app.

I maintain an Apache based web sever. If I put all the files on my server in a single directory it all works great. Specifically, if I click the JavaScript "Launch" button, then I get asked to start the JNLP file in webstart.
However, on my client's web server, things don't work. Instead the browser merely displays the _contents_ of the .JNLP file rather than offering to run the JNLP in Java Web Start. I get the same behavior from both Firefox and Internet Explorer.

I keep think there must be something wrong either the JNLP file or the .html file above. But I sure can't figure it out.
The only difference between the files is that I am changing "domain.com/dir" to the domain and directory to that of the server hosting the files.





the corresponding launch.jnlp file is



Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18909
    
    8

What's the MIME type set to for JNLP files on your client's web server?
Derik Davenport
Ranch Hand

Joined: May 30, 2011
Posts: 57
That is a really a good question. I am sort of embarassed I forgot to check that. The guy with root on that server is out of town for a few days. I will update this thread when he gets back.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: browsers display contents of JNLP instead of offering to open with JWS