This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



 
Marshal
Posts: 25676
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the MIME type set to for JNLP files on your client's web server?
 
Derik Davenport
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic