Jnlp file shown as XML in Internet Explorer

My problem is somewhat complex and have given me a headache while it seem to be a completely erratic behaviour. (Erratic, not over time, but over different computers.)
The main trouble is that I've got two separate webservers serving jnlp files for a production and a test environment. A user can access both servers and there no troubles finding and clicking at jnlp-files. There is however troubles while the jnlp-files in the test environment are shown as XML ("xmltext" in the Internet Explorer way) files.
But only when using Internet Explorer. The problem do not occur when using Netscape and never in the production environment (webserver).
I've triple checked the mimetype configuration of both the webservers and they are ok.
The result of a "get", from both webservers, is (except for the timestamps):
HTTP/1.1 200 OK
Server: Netscape-Enterprise/4.1
Date: Tue, 11 Jun 2002 14:05:32 GMT
Content-type: application/x-java-jnlp-file
Last-modified: Tue, 26 Mar 2002 15:58:27 GMT
Content-length: 1763
Accept-ranges: bytes
Connection: close
The client computer is running Win2000, Internet Explorer v5.50 and a newly installed JavaWebStart.
Well, there are more to it. This behaviour is for some users at the company. There are users that can, with no problem, run the application deployed at the webserver in the test environment.
A user who can not load jnlp-files in the test environment using his computer, can be able to load the program at another computer as he logs in.
Is there anyone who can help me out with this one?
How come the user(s) at a computer (and one login account) have different Internet Explorer behaviour when getting a jnlp file from two seperate webservers (using same webserver mime setup) when other users (computers) don't?

I've seen a lot of messages concerning the response of the webserver in posts of this JWS&JNLP forum. Some people gives the advise to use telnet to get the server response. I've used this code (based upon some free sun code in some tutorial trail I think it was).
import java.io.*;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URL;
* Programmed using the beautiful Java programming tool
* <a href="http://www.intellij.com/idea/">Idea</a>.
* If you have not used it, try their free 30day trial version out
* (clean and nice (un)install, no nags, fully functional). I can not work without it.
* (This is not ment to be an advertisment but merely my personal recomendation.)
* <p>
* Usage:
* <code>
* % HttpResponse http://www.ibitec.se/index.html
* % HttpResponse http://www.intellij.com/idea
* % HttpResponse http://www.anyhost.com/anyjnlpfile.jnlp
* </code>
public class HttpResponse {
    private static int HTTP_PORT = 80;
    public static void main(String[] args) {
        for (int i = 0; i < args.length; i++) {
            System.out.println("Getting server response for url:\n\"" + args[i] + "\"\n");
            try {
                URL url = new URL(args);
if (url.getPort() != -1) HTTP_PORT = url.getPort();
if (!(url.getProtocol().equalsIgnoreCase("http"))) {
System.err.println("Sorry. I only understand Http not protocol " + url.getProtocol());
continue;
Socket socket = new Socket(url.getHost(), HTTP_PORT);
OutputStream theOutput = socket.getOutputStream();
PrintWriter pw = new PrintWriter(theOutput, false); // no auto-flushing
String EOL = "\r\n"; // native line endings are uncertain so add them manually
pw.print("GET " + url.getFile() + " HTTP/1.0" + EOL);
pw.print("Accept: application/x-java-jnlp-file, text/plain, text/html, text/*" + EOL);
pw.print(EOL);
pw.flush();
InputStreamReader isr = new InputStreamReader(socket.getInputStream());
BufferedReader br = new BufferedReader(isr);
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int character;
while ((character = br.read()) != -1) bw.write((char)character);
bw.flush();
} catch (MalformedURLException e) {
System.err.println("\"" + args[i] + "\" is not a valid URL.");
} catch (IOException e) {
System.err.println(e);
if (args.length == 0)
System.err.println("Usage: " + HttpResponse.class.getName() + " <url1> [url2 url3 ...]");

Similar Messages

  • How can I process an xml/xsl file pair that require the Internet Explorer dom?

    My personal navigation device (GPS) generates xml files that contain a record of where I have been, together with when I was there, how fast I was driving at the time, etc. taken at approx. 5 second intervals. This xml file has an xml-stylesheet with type="text/xsl" but that stylesheet is written to the Internet Explorer dom standard. The stylesheet interfaces with google maps to display a map that shows my path and it also displays tables of data including distances that are computed from latitude/longitude pairs. I can supply a small sample xml file and the xsl file as well if they are needed to diagnose my problem. I cannot find any browser other than Internet Explorer that handles these files satisfactorily. I prefer to process them from a Linux environment but with the Internet Explorer requirement I cannot do so. The browsers that I have tried and that have failed are Firefox, Opera, Konqueror, Chrome, Epiphany, Midori, Arora, and Links.
    One line in the xls file in particular gives grief in the browsers like Firefox that at least attempt to do more than display the raw xml file:
    xmlns:cymath="urn:smiletime-cybarber-net:math"
    A comment in the xls file says this about the problem:
    "Tested and currently only compatible with Internet Explorer version 6 or version 7 (as this script includes JScript functions called by XSL, msxsl:script extension is required; also, the produced XHTML document embeds javascript functions exploiting the IE DOM).
    "In order to provide compatibility with Firefox, other than checking the compatibility of the IE DOM, the cymath:distCosineLaw function still needs to be ported."

    You may get an answer, but it is not really the sort of subject covered by this forum, I suggest you try [http://forums.mozillazine.org/viewforum.php?f=49 Mozilazine] and if you solve the problem post back again.

  • Need urgent help on file download servlet problem in Internet Explore

    I have trouble to make my download servlet work in Internet Explore. I have gone through all the previous postings and done some research on the internet, but still can't figure out the solution. <br>
    I have a jsp page called "download.jsp" which contains a URL to download a file from the server, and I wrote a servlet (called DownloadServlet) to look up the corresponding file from the database based on the URL and write the file to the HTTP output to send it back to the browser. <br>
    the URL in download.jsp is coded like <a href="/download/<%= currentDoc.doc_id %>/<%= currentDoc.name %>">on the browser, it will be sth like , the number 87 is my internal unique number for a file, and "myfile.doc" is the real document name. <br>
    in my web.xml, "/download/" is mapped to DownloadServlet <br>
    the downloadServlet.java looks like
    tem_name = ... //read DB for file name
    // set content type
    if ( tmp_name.endsWith(".doc")) {
    response.setContentType("application/msword");
    else if ( tmp_name.endsWith(".pdf")){
    response.setContentType("application/pdf");
    else if ( tmp_name.endsWith(".ppt")){
    response.setContentType("application/vnd.ms-powerpoint");
    else if ( tmp_name.endsWith(".xls")){
    response.setContentType("application/vnd.ms-excel");
    else {
    response.setContentType("application/download");
    // set HTTP header
    response.setHeader("Content-Disposition",
    "attachment; filename=\""+tmp_name+"\"");
    OutputStream os = response.getOutputStream();
    //read local file and write back to browser
    int i;
    while ((i = is.read()) != -1) {
    os.write (i);
    os.flush();
    Everything works fine in Netscape 7.0, when I click on the link, Netscape prompts me to choose "open using Word" or "save this file to disk". That's exactly the behavior I want. <br>
    However in IE 5.50, the behavior is VERY STRANGE.
    First, when I click on the URL, the popup window asks me to "open the file from its current location" or "save the file to disk". It also says "You have chosen to download a file from this location, ...(some url).. from localhost"
    (1) If I choose "save the file to disk", it will save the rendered "download.jsp" (ie, the currect page with URL I just clicked, which isn't what I want).
    (2)But if I choose "open the file from its current location", the 2nd popup window replaces the 1st, which also has the "Open ..." and "Save.." options, but it says "You have chosen to download a file from this location, MYFILE.doc from localhost". (notice it shows the correct file name now)
    (3) If I choose "Save..." on the 2nd window, IE will save the correct file which is "myfile.doc"; if I choose "Open ...", a 3rd replaces the 2nd window, and they look the same, and when I choose "Open..." on the 3rd window, IE will use Word to open it.
    any ideas?
    </a>

    Did you find a solution to this problem? I've been wrestling with the same issues for the past six months. Nothing I try seems to work. I've tried setting the contentLength(), inline vs. attachments, different write algorythms, etc. I don't get the suggestion to rename the servlet to a pdf file.

  • Embedded PDF files do not show in Internet Explorer 11

    Hi,
    We have several machines that cannot show embedded pdf files in Internet Explorer 11 with Adobe Reader as default pdf reader.
    Example from one pc:
    OS: Windows 7 Enterprise SP1 x64 – all updates applied.
    IE 11 version: 11.0.9600.17239.
    Update Versions: 11.0.11 (KB2976627).
    Adobe Reader: 11.0.08 (no further updates available).
    As test example we have used: http://acroeng.adobe.com/Test_Files/browser_tests/embedded/embed2.html
    We only get a blank page with two placeholders with a small black square with a white cross in each.
    If we install Foxit Reader on the same pc, and sets it as default reader, everything works.
    What do we do to solve the Adobe Reader problem?

    Hi Pat - thanks for your reply.
    We have already tried the TabProcGrowth registry change. It doesn't work. As mentioned, we use IE 11 on Windows 7, and not IE 10 as the article from Microsoft specifies.
    As shown in the images above, the registry is set to 1 and the PDF's still don't show up embedded in the browser.
    Any other suggestions? Anyone?

  • Opening struts-config/ web.xml with Internet explorer

    Hi,
    I m facing a problem if i m tryin to open struts-config.xml or any other xml file using internet explorer.
    Following is the error which i got:
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    The system cannot locate the resource specified. Error processing resource 'http://jakarta.apache.org/struts/dtds/struts-co...
    Please help me in finding the solution for this.
    Thanks in Advance.

    hi
    I think your IE's security settings are causing this error. If you check
    Internet options -> Security, you'll see an option
    "access data sources across domains". Enable this option and try once again.

  • How can I save a web page without creating a dozen or more tiny files, which is worse than Internet Explorer?

    When I try to save a Firefox web page, I get about a dozen tiny files with funny names cluttering up my documents folder, and making it hard to find anything. This reminds me of problems I used to have with Internet Explorer more than ten years ago. But at least, IE was kind enough to gather all of these files in a single folder, named "files". Firefox dumps them all into my documents folder. Messy.
    Years ago, I discovered Opera, which offered a file format that combined the original html code with the other files into one file: an internet archive, with the extension mht instead of htm. I used Opera for years, but recently became aware of the advantages of Firefox.
    A few days ago, I downloaded the latest version of Firefox, and installed it. I have been evaluating it ever since. It looks good; I have figured out (more or less) how bookmarks work, and I'm getting used to the taskbars.
    But when I try to save a page, I still get a deluge of tiny files cluttering up the target folder. Firefox doesn't save pages in archive form, but only in the old scattered form. Of course, I could simply save only the html. Maybe that's the best thing, but it loses a lot.
    The chaos of junky files cluttering up my target folder is enough to send me back to Opera, despite its limitations.

    This extension allows for web pages to saved on MHT format. <br />
    https://addons.mozilla.org/en-US/firefox/addon/8051

  • Download file with cyrilic filename in Internet Explorer 8

    I have a problem when trying to download a file which name contains cyrillic symbols. I store the file in the database. I created a procedure, that I call using a link from my report to download the file. There aren't any problems when the filename contains only latin symbols, but when it contains cyrillic symbols Internet Explorer doesn't show the name properly in the dialog box for saving the file. The procedure I use looks like this:
    PROCEDURE download_blob( p_file_name varchar2
    , p_mime_type varchar2
    , p_blob in out blob
    , p_blob_length number
    , p_app_id number )
    is
    begin
    apex_application.g_flow_id := p_app_id;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(p_mime_type, 'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || p_blob_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="' || p_file_name || '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( p_blob );
    end;
    I call this procedure from a link in a report. Any ideas how can I fix this problem?
    The character set in the database is AL32UTF8 and the parameter PlsqlNLSLanguage in the dads.conf is set to AMERICAN_AMERICA.AL32UTF8.
    Thanks, Mimi
    Edited by: user4810045 on 2009-10-1 7:54

    I have same problem. Firefox works fine.

  • Enable button in File Toolbar when launching in Internet Explorer

    I have an installation of Acrobat Reader 8 installed using an MST file on several Citrix Servers. Also a hidemenu.js file is configured to show /hide some specific items.
    When I open a PDF file all the items are showed/ hide as configured in the hidemenu.js file. So far so good
    When launching Internet Explorer and open a pdf file in the browser some buttons are missing. We need the E-mail button from the File Toolbar by default. This button is there when I open the application outside Internet Explorer. The user can enable the E-mail option using the File Toolbar, but this setting is reset when the user has logged of.
    Can somebody please explain how to enable this option (or any other option from the File Toolbar) when open a pdf file in Internet Explorer by default?

    Hi,
    In the screen which shows you the dump, you will have a button debugger. Click on that and find out the field that is passed to 'obj'. It should be of character type and it is passed as Packed Integer in your report. Change the data type to 'C' and check it.
    Regards,
    Sharmila

  • PDF files open half ways in Internet Explorer - PLEASE help

    Hi,
    I have adobe reader and when I click on any PDF files on the Internet (using Internet Explorer as browser), the file opens but its not full screen.....it shows is half screen. 
    Plese look at image below to see what I mean:
    The gray area is wheere the PDF ends and it should take up the whole screen but it doesnt.
    Could this maybe be a browser issue because when i use Firefox it opens PDF full screen?
    Please help

    What is your Reader version?
    It seems that your toolbar is somehow split into two; one on top, and one further down.  Yet the toolbar does not really look like the Adobe Reader toolbar; do you have any other PDF viewer installed?
    My Adobe Reader XI toolbar on Internet Explorer looks like

  • Swap Image File Name Wrongly Displays In Internet Explorer

    How can I get the file name to change with the picture, or
    better yet, keep Internet Explorer from showing the file name in
    the first place. This should be running in the background. Viewers
    do not need to know what I have name the files anyway. None of the
    other browsers show this information. My website is:
    http://www.alanwhelpley.com/
    Thank you for any help you can give me.

    Hello again
    Okay, I am at a loss to explain exactly *WHY* RoboHelp is populating the tag with the file name, but I am seeing it on my end as well. I've tried generating with nearly every conceivable option enabled and disabled and it seems to insist on populating the tag with the file name. Go figure.
    I did seem to have come up with a reasonably simple workaround though.
    Use the built in Multi-File Find and replace utility to find all occurrences of alt="" and replace with alt=" ". Note the space between the quotes. It seems that if a space exists in the tag between the quotes that RoboHelp leaves it as is during the generation process.
    I would also strongly encourage you to report the behavior as a bug via the bug report. (link to that is in my sig)
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Program won't open most pdf files. Also shuts down internet explorer.  How do I solve this problem?

    I installed the trial version of Acrobat XI Pro.  When I tried to open various pdf files they wouldn't open.  Clicking to open the files also caused internet explorer to close.  Any help?

    Are you an administrator on your User Account? [[Firefox won't start - find solutions]] may help you.

  • Unable to print anything off internet w/file-print/nothing happens/but internet explorer does work/but I use firefox more/please help?

    when I find something on internet/e-mail/and I go to push on file/scoll down to print/all that happens is nothing.but when I;m on internet explorer it works ok<I use firefox all the time though/is there some kind of setting that I need to set to be able to use my printer on firefox?

    Try configuring the printer. You can usually access the printer setup menu by clicking Print on a web page, then click "Properties" when your printer options appear.
    Set the page size to A4 in there and maybe choose other settings such as those I've ringed in red in the screenshot. This is my own printer.
    Unfortunately, I'm off on vacation from today and my flight departs in about 6 hrs time, so I won't be able to respond again until mid-July. But I'm sure one of the other guys will be able to takeover if your problem persists.

  • Web starting jnlp files w/out access to Internet

    I am writing a JavaFX program and am running into difficulties when trying to run from a browser since the created jnlp file is trying to access files from the dl.javafx.com website. Why are the javafx-rt.jnlp and other files like dtfx.js not part of the JavaFX download? Is it possible to get a download of all the jnlp and js files needed to run on a detached network?

    Don't know much about JavaFX, but if a standard (meaning 'online') JWS can download everything needed then any browser can do just the same.
    Go home, download the main jnlp (use the magical 'Save As...' function) and any pointed resource, change jnlp's codebase, put everything on your server and it's done, plain and simple.
    Even easier: whatever your app does I'm preatty sure it can work as a stand-alone app, so you already have any jar you may need.
    Bye.

  • I had apower surge and blew out my modem. Bought a new modem / router, and now I can not download PDF files. If I use internet explorer I can download them. Not with Firefox, I'm using Firefox 5.0

    Everything else works fine. I've tried with 3 different modems. I was told it wasn't the modem. Something else is preventing The PDF file from loading.I uninstalled Firefox and reinstalled,checked all the settings. I can't find anything wrong. I figure it must be missing a plugin or something'''bold text'''

    Adobe Reader>Preferences>Internet.

  • Quicktime plugin displaying SDP file rather than video in Internet Explorer

    I'm developing a streaming video application. Quicktime plug-in with firefox works fine. With I.E., the contents of the SDP file gets displayed (line by line) rather than the specified video.
    Any thoughts?
    Thanks,
    Hal

    You need to write your HTML so that it supports both the <EMBED> and <OBJECT> tags AND you need to invoke the QuickTime plug-in so that your stream plays in QT regardless of the browser's default settings. There is a great deal of information on these techniques in Apple's updated guide to HTML & QuickTime, including instructions on how to simplify coding by using Apple's AC_QuickTime javascript library.
    http://developer.apple.com/documentation/QuickTime/Conceptual/QTScriptingHTML/QTScripting_HTML_AIntroduction/chapter_1_section_1.html#//apple_ref/doc/uid /TP40001525-CH202-DontLinkElementID2

Maybe you are looking for