Problem in jnlp file

hi,
For sandbox i created the repository.jnlp file and used.
at the same time i created the repository.jnlp file for developement server but it giving the error as
"com.sap.aii.utilxi.misc.api.ReconnectRuntimeException"
"Cannot open connection on host: (     )  and port:
i think there is problem in rmi port..
Is the RMI port is same for both sandbox and Development server????
regards
sasi

hi,
ur not able to see the file in development pls do chk with the client nos and ports
make that the file is in active mode
provide some more info
thnx
sampath

Similar Messages

  • Problem with .jnlp files

    I have an iMac running 10.6.8. I'm having a problem with .jnlp files. I've downloaded two, cgoban.jnlp and gopanda.jnlp. When I double-click the file, nothing happens. If I Control-click and select Open With Java Web Start, same. Nothing happens. Software Update says my Java is up to date. Any ideas?

    A few other similar threads were solved by this — I'd like to give credit where credit's due but I can't find the original posting.
    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.p list
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <!--
            <key>JavaWebComponentVersionMinimum</key>
            <string>1.6.0_37-b06-435</string>
    -->
            <key>LastModification</key>
            <string>Thu, 31 Jan 2013 04:41:14 GMT</string>
            <key>PlugInBlacklist</key>
            <dict>
                    <key>10</key>
                    <dict>
                            <key>com.macromedia.Flash Player.plugin</key>
                            <dict>
                                    <key>MinimumPlugInBundleVersion</key>
                                    <string>11.3.300.271</string>
                            </dict>
    <!--
                            <key>com.oracle.java.JavaAppletPlugin</key>
                            <dict>
                                    <key>MinimumPlugInBundleVersion</key>
                                    <string>1.7.11.22</string>
                            </dict>
    -->
                    </dict>
            </dict>
            <key>Version</key>
            <integer>2028</integer>
    </dict>
    </plist>

  • Problem changing JNLP file association

    I installed SUN JRE 1.5 Update 7 in a fresh Windows XP machine and found the registry recongizes the JNLP file extension is associatied with it. Then I installed an application that downloads IBM WebSphere Application Client 6 which actually uses IBM JRE 1.4.2 . After this installation IBM JRE changes the .jnlp file association from Sun JRE 1.5.0_07 to its own 1.4.2 version.
    Now I needed to change the JNLP file association back to previous one. I used Windows Explorer->Tool->Folder Options->File Types->Advanced->Edit and did that. However, I see my registry didn't change the association from IBM JRE to Sun JRE. But when I look at Java Control Panel, it says its associated with Sun JRE. Here is a windows shell script that I run to see the current JNLP file assocaition - which alwasy tells me its OBM JRE which is associated with the JNLP file extension. I tried restarting the machine, removing the cached copy from Java Control Panel without any difference.
    Can you tell me when this file type association may not work and why? Is there any Windows Security Patch issue here? Also what are the registry keys that I should look for (a few are mentioned in the script below)?
    code:
    // To run it:
    // CScript //Nologo JWS.js
    var fso = new ActiveXObject("Scripting.FileSystemObject")
    var gShell = new ActiveXObject("WScript.Shell")
    function print(s) {
    WScript.Echo(s)
    function JavaSoft_JWS() {
    var regKey = "HKLM\\SOFTWARE\\JavaSoft\\Java Web Start\\"
    var ver = gShell.RegRead(regKey + "\\CurrentVersion")
    var path = gShell.RegRead(regKey + "\\" + ver + "\\Home")
    var javaws = path + "\\javaws.exe"
    print("Sun JWS")
    print("\tversion: " + ver)
    print("\texe: " + javaws)
    function IBM_JWS() {
    var ver = "1.4.2"
    var regKey = "HKLM\\SOFTWARE\\IBM\\Java Web Start v" + ver + "\\"
    var path = gShell.RegRead(regKey + "\\" + ver + "\\Home")
    var javaws = path + "\\javaws.exe"
    print("IBM JWS for HKLM: ")
    print("\tversion: " + ver)
    print("\texe: " + javaws)
    function JNLP_ASSOC_HKEY_LOCAL() {
    var regKey = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\JNLPFile\\Shell\\Open\\Command\\"
    var path = gShell.RegRead(regKey)
    var javaws = path + "\\javaws.exe"
    print("HKEY LOCAL MACHINE Current JNLP File Association: ")
    print("\texe: " + javaws)
    function JNLP_assoc_HKCR() {
    var regKey = "HKCR\\JNLPFile\\Shell\\Open\\Command\\"
    var path = gShell.RegRead(regKey)
    print("Current JNLPFIle association for HKCR:\t" + path)
    function main(args) {
    JNLP_ASSOC_HKEY_LOCAL()
    JNLP_assoc_HKCR()
    JavaSoft_JWS()
    IBM_JWS()
    ---------------------------------------

    Did the clients happen to know what version they were upgrading from? We have seen this mostly when a system upgrades major Java versions, eg from 1.6 or 1.7 or switching from 32 to 64 bit Java and C:\Windows\System32\javaws.exe disappears or something silly.

  • Problem with .jnlp file

    Hello,
    I am trying to use JFileChooser to open and select a file. I am using NetBeans to develope my application. When I run it in NetBeans it works just fine and I can open and select the file. However, when I run my .jnlp file and click on the button nothing happens. Why is that? Here's a sample of my code:
    private JButton getBtnJFileChooser() {
         if (btnJFileChooser == null) {           
    btnJFileChooser = new JButton("Open...");
    btnJFileChooser.setBounds(275, 110, 90, 20);
    btnJFileChooser.addActionListener(new OpenAction());
         return btnJFileChooser;
    class OpenAction implements ActionListener {
    public void actionPerformed(ActionEvent ae) {
    // Open a file dialog
    fc = new JFileChooser();
    int retVal = fc.showOpenDialog(SC_DOC_gui.this);
    if (retVal == JFileChooser.APPROVE_OPTION) {
    // The user selected a file, process it
    File file = fc.getSelectedFile();
    // Update user interface.
    //lblMsgArea.setText(file.getName());
    lblMsgArea.setText("Load SC_DOC Files");
    }

    I am not quite sure what's going on. When the button is clicked nothing happens. I've been doing research on this and I found a sample code that deals with jnlp and opening files. It's here: http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html#advancedexample
    Now, when I want to use this code I get an error message that the package javax.jnlp.* does not exist. So now I'm trying to figure that one out and I haven't yet. I have installed the latest Java Web Start Technology and this should work. Any advice?

  • Mapping problem of JnlpDownloadServlet from .Jnlp file

    Hello All,
    1. I am trying to run a java web start application, i am using tomcat 5.5.20 server. I am using the JnlpDownloadServlet to use the $$codebase and $$name to dynimically code the path to the jar's and the jnlp file.
    Here is what i have done:
    Here i have a JnlpDownloadServlet in a seperate folder called (D:/apache-tomcat-5.5.20/webapps/online/server1/WEB-INF/lib/jnlp-servlet.jar).
    2. Now i am placing my .jnlp and my application jar's in a seperate folder called *"client1"* (D:/apache-tomcat-5.5.20/webapps/online/client1/)
    I need to have the client1 and server1 folders and i have to map the servlet to the jnlp file, because i want to keep my jars's and the servlet in a seperate folders.
    3. I have the web.xml file in WEB-INF folder.
    4. web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app>
    <servlet>
    <servlet-name> JnlpDownloadServlet</servlet-name>
    <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    *<url-pattern>../client1/*.jnlp</url-pattern>* *<!-- /* I am having problem here, i think */ -->*
    </servlet-mapping>
    </web-app>
    Myapp.jnlp:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
    codebase="$$codebase"
    href="$$name">
    <information>
    </information>
    <resources>
    <j2se version="1.6+"/>
    <jar href="$$codebase/XXXXXX.jar" main="true" download="eager"/>
         <jar href="$$codebase/XXXX.jar" download="eager"/>
         <jar href="$$codebase/XXXXX.jar" download="eager"/>
    <nativelib href="$$codebase/XXX.jar" />
    </resources>
    </jnlp>
    While i run the application. i get the following error:
    Error occured when trying to run a Java web start application
    BadFieldException[ The field <jnlp>codebase has an invalid value: $$codebase,$$codebase]
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I need to resolve the mapping issue, because the servlet is not running and the codebase and href variables are not populated.
    Thanks in Advance.

    Hi Peter,
    to use messages of two different SWCVs in a BPM you need to create a based on relationship between the two SWCVs in SLD. BPM restricts object usage to the SWCV in which the BPM itself resides, so to solve your problem go to the SLD content maintenance and select your SWCV of your BPM, click on Usage Dependencies, then select Define Dependencies, choose Installation Time and then the SWCV in which the other objects reside, click save and your done. You might need to reimport the SWCV to the repository to update the relationship there. It is updated as soon as you can see Basis Objects in the SWCV tree.
    best regards
    Christine

  • Jnlp file parameter element problem

    Hello all,
    I have a jar file which contains all the class files and an configuration file of type(.cfg).
    For my application to run properly i need to pass this .cfg file as an argument to the main method in one of the file in the jar...
    i did pass the name of the file as one of the parameter element,but my application is not initialized and not working.but the jar files have been deployed in the local machine.
    so my question is , is there a way so that i can pass my file as a parameter to the main method through jnlp xml file.

    thanks andrew,
    but my problem is that i need to pass the path of my file along with the name of the file to the main method ...and in turn my main method will do all the required processing work..
    the jar file that is to be deployed contains the class files and the .cfg file..
    my jnlp files looks as follows:-
    <jnlp spec="1.0+" codebase="$$codebase" href="voicechat.jnlp">
    <information>
    <title>SIP Based Voice Chat</title>
    <vendor>First Internet Systems Pvt Ltd</vendor>
    <description>Voice Chat</description>
    <description kind="short">Voice Chat </description>
    <icon href="images/demologo.gif"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="sip.jar"/>
    <jar href="ua.jar"/>
    </resources>
    <application-desc main-class="local.ua.GraphicalUA">
    <argument>-f</argument>
    <argument>a.cfg</argument>
    </application-desc>
    </jnlp>
    the second argument that i had passed is the name of the file in the jar to be passed..
    but as a result when i invoke this file, the jar files are deployed but application is not starting as expected..for it to work the file and its path has to be passed to the main method..
    which is what i tried through argument element...but it does not seem to work..
    so all that i need to know is that, is it possible to pass a file and its path as an argument in the jnlp file..

  • Jnlp file problems

    I created a jnlp file which loads fine when I load it from an html page located on my computer. However, when I send this page into a webserver the file does not load up the application and instead loads as if it was a xml file in Internet Explorer.
    What's wrong??? I've been scratching at this for a while now.... :(
    Thanks,

    If your host uses the Apache webserver, you might be able to add the correct mime-type by placing a file called .htaccess file in the folder with the jnlp file(s) with the following content:AddType application/x-java-jnlp-file jnlp

  • Getting problem during deploying desktop application with JNLP File.

    Hi,
    I am developing one standalone (desktop) application in swing. I want to make one jnlp file that would be install on my computer as a client(suppose). When i am doing jav web start enabled after that making application descriptor. But when i am running a web browser where i have stored my html file. but it is giving me an error that codebase or something like this. Please tell me is there any other way to do this task. Please help me to do this. Is NetBeans ide is best way to do this. please help me.
    Thanks in advance.
    Manveer.

    >
    ...but it is giving me an error that codebase or something like this. ...>Try changing the JNLP file to 'something like that', that might work.
    In case it does not, I provide a tool called JaNeLA that will provide a lot more specific error message(s) than 'something like this'.
    Really, I cannot see you getting better help than on some of your other recent threads, with vague, unspecific error messages, and without putting the JNLP file and other relevant information.

  • ".. access denied: ... jnlp read" error in applet with NO .jnlp file!

    I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] into a webpage. I'm using ASP.NET with XHTML 1.0. Since I'm embedding it as an object in the html code, it should not cause any issues from that end. Unforunately, when I try I get an error saying "java.security.AccessControlException: access denied (java.util.PropertyPermission jnlp read)". The weird thing is, there is no jnlp file anywhere (including the .jar and codebase).
    I'm able to run it successfully if I change the permissions in my java.policy file, but that solution only works for my local machine.
    The .jar file (the only one) has been signed (I believe). I followed the steps as suggested [http://download.oracle.com/docs/cd/E17476_01/javase/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html], with the exception of contacting VeriSign/Thawte (I wish to have this be self signed).
    This seems like a very odd issue to me, and I'm running out of hair. Can anyone help?
    Here's my html code:
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <object
    classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase = "[http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab]"
    width="500" height="500">
    <param name = "code" value = "ij.ImageJApplet.class" />
    <param name = "codebase" value = "ImageJA" />
    <param name = "archive" value = "ij-1.44a.jar" />
    <param name="type" value="application/x-java-applet;jpi-version=1.4.2" />
    <param name="scriptable" value="true" />
    </object>
    </div>
    </form>
    </body>
    </html>
    Edited by: Sythion on Jul 13, 2010 2:19 PM

    Sythion wrote:
    I'm trying to embed a Java program called ImageJA [http://pacific.mpi-cbg.de/wiki/index.php/ImageJA] ..
    I suggest you take up the problem through the [channels suggested by the API developers|http://pacific.mpi-cbg.de/wiki/index.php/Help:Contents].

  • Could not load file/URL (file not found) error for JNLP file

    I am completely baffled in trying to figure out why I am getting the following error for some JNLP files but not others:
    Error: could not load file/URL specified: C:\Users\tom\AppData\Local\Temp\javaws2
    java.io.FileNotFoundException: C:\Users\tom\AppData\Local\Temp\javaws2 (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)I have Googled around this forum and elsewhere, and have seen reports that this error is IE-specific, and seems to have something to do with no-cache headers being sent, or with the client browser's cache being full or turned off (which is not my case). I saw the information in the JavaWS FAQ, which recommended turning off security constraints for the JNLP's URI. I tried that, and it didn't help. One of the very baffling things is that I have created several variations of the JNLP file, with varying combinations of jars and property resources, and some combinations always work while other combinations never work. Here's an example:
    <jnlp spec="1.0+" codebase="$$codebase">
       <information>
          <title>demo app</title>
          <description>illustrates weird bug</description>
       </information>
       <resources>
          <j2se version="1.5+"/>
          <jar href="randomFile.jar"/>
          <property name="xxx" value="xxxx"/>
          <property name="swing.metalTheme" value="steel"/>
       </resources>
    </jnlp>The above file always fails with the error shown at the top of this message. However, if I remove either of the two properties, it works fine. And I have created other variations with lots of properties, some of which work. All of these variations are in the same directory in the war file, served by the exact same servlet (a slightly modified version of the jnlp.sample.servlet.JnlpDownloadServlet provided with JDK 1.6.0_3). Assuming that a no-cache header is the problem, what on earth could be causing some JNLP files to always be served with a no-cache header, while others are never served with a no-cache header?
    On a related note, any recommended debugging techniques for seeing what headers are being transmitted? I tried adding a simple check for a "debug=true" parameter in the servlet that causes it to set the content type to "text/plain" instead of JNLP, and that allows me to see (rather than execute) the JNLP XML that's being returned, but it doesn't show me the HTTP headers that are being sent back. If any caching headers are being set, I think it must be being set by the servlet container itself, as it's nothing being set in the servlet code that I can see. So I don't see any way on the server side Java code to output or log the actual HTTP response (or is there?). Any tips in that regard much appreciated.
    Edited by: TomC125468 on Aug 19, 2009 1:35 PM

    Hi Luca-Sanna,
    Thanks for the response. Re browsers, yes, it fails in IE but it succeeds in Firefox. The info on the JavaWS FAQ and other places all seem to indicate that it's an IE issue concerning handling of the cache-control headers.
    I should check in my webserver forum (Sun WebServer 7) to see about logging options. Sniffing on the client side is not possible, as my app is required to use HTTPS exclusively, and unfortunately that also precludes a telnet GET request.

  • Can't get that damned WebStart jnlp file to work!!!

    hi i have a problem, i can't get webstart to work. lool at my homepage http://www.deutronium.de.vu/games.html. the WebStart files of the first two games of the page do not work. i tried all things but i can't get them to work for me. it always give me an error message that it cannot find a resource.
    this is my jnlp file, the jars are in the same directory:
    <?xml version="1.0" encoding="utf-8"?>
      <jnlp spec="1.0+" codebase="http://www.deutronium.de.vu/games/Dedris/" href="Dedris.jnlp">
      <resources>
        <jar href="http://www.deutronium.de.vu/games/Dedris/Dedris.jar" />
        <j2se version="1.2 1.3 1.4 1.4.1" />
      </resources>
      <application-desc main-class="Dedris" />
    </jnlp>

    I think it's has something to do with your webserver. I took everything as is and just changed the urls and it worked. It has to be, because the same thing happens with NumberGame and I didn't change anything but that. If you want, I could host them until you fix it or get a working one.

  • Getting error while running jnlp file

    Hello, I have generated jnlp file succesffully, but when I run the jnlp file I got this error:
    WARNING: com.sun.javafx.css.StyleHelper lookup caught:
    java.lang.IllegalArgumentException: No enum constant javafx.geometry.Pos.center_right
                    at java.lang.Enum.valueOf(Unknown Source)
                    at com.sun.javafx.css.converters.EnumConverter.convert(Unknown Source)
                    at com.sun.javafx.css.converters.EnumConverter.convert(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
                    at javafx.scene.Node.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Node.processCSS(Unknown Source)
                    at javafx.scene.Scene.doCSSPass(Unknown Source)
                    at javafx.scene.Scene.preferredSize(Unknown Source)
                    at javafx.scene.Scene.impl_initPeer(Unknown Source)
                    at javafx.stage.Window$13.invalidated(Unknown Source)
                    at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
                    at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
                    at javafx.stage.Window.setShowing(Unknown Source)
                    at javafx.stage.Window.show(Unknown Source)
                    at javafx.stage.Stage.show(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXConsole.setVisibleImpl(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXConsole.access$2700(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXConsole$5.run(Unknown Source)
                    at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                    at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
                    at java.lang.Thread.run(Unknown Source)
    WARNING: com.sun.javafx.css.StyleHelper lookup caught:
    java.lang.IllegalArgumentException: No enum constant javafx.geometry.Pos.center_right
                    at java.lang.Enum.valueOf(Unknown Source)
                    at com.sun.javafx.css.converters.EnumConverter.convert(Unknown Source)
                    at com.sun.javafx.css.converters.EnumConverter.convert(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
                    at javafx.scene.Node.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Node.processCSS(Unknown Source)
                    at javafx.scene.Scene.doCSSPass(Unknown Source)
                    at javafx.scene.Scene.preferredSize(Unknown Source)
                    at javafx.scene.Scene.impl_initPeer(Unknown Source)
                    at javafx.stage.Window$13.invalidated(Unknown Source)
                    at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
                    at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
                    at javafx.stage.Window.setShowing(Unknown Source)
                    at javafx.stage.Window.show(Unknown Source)
                    at javafx.stage.Stage.show(Unknown Source)
                    at javafx.stage.Stage.impl_showAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
                    at javafx.event.Event.fireEvent(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.access$6100(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
                    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
                    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
                    at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                    at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
                    at java.lang.Thread.run(Unknown Source)
    WARNING: com.sun.javafx.css.StyleHelper lookup caught:
    java.lang.IllegalArgumentException: Invalid cursor specification
                    at javafx.scene.Cursor.cursor(Unknown Source)
                    at com.sun.javafx.css.converters.CursorConverter.convert(Unknown Source)
                    at com.sun.javafx.css.converters.CursorConverter.convert(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
                    at javafx.scene.Node.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Node.processCSS(Unknown Source)
                    at javafx.scene.Scene.doCSSPass(Unknown Source)
                    at javafx.scene.Scene.preferredSize(Unknown Source)
                    at javafx.scene.Scene.impl_initPeer(Unknown Source)
                    at javafx.stage.Window$13.invalidated(Unknown Source)
                    at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
                    at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
                    at javafx.stage.Window.setShowing(Unknown Source)
                    at javafx.stage.Window.show(Unknown Source)
                    at javafx.stage.Stage.show(Unknown Source)
                    at javafx.stage.Stage.impl_showAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
                    at javafx.event.Event.fireEvent(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.access$6100(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
                    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
                    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
                    at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                    at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
                    at java.lang.Thread.run(Unknown Source)
    WARNING: com.sun.javafx.css.StyleHelper lookup caught:
    java.lang.IllegalArgumentException: No enum constant javafx.geometry.Pos.center_right
                    at java.lang.Enum.valueOf(Unknown Source)
                    at com.sun.javafx.css.converters.EnumConverter.convert(Unknown Source)
                    at com.sun.javafx.css.converters.EnumConverter.convert(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
                    at javafx.scene.Node.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Node.processCSS(Unknown Source)
                    at javafx.scene.Scene.doCSSPass(Unknown Source)
                    at javafx.scene.Scene.access$2900(Unknown Source)
                    at javafx.scene.Scene$ScenePulseListener.pulse(Unknown Source)
                    at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
                    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                    at com.sun.javafx.tk.quantum.QuantumToolkit$8.run(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(Native Method)
                    at com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
                    at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
                    at javafx.stage.Stage.impl_showAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
                    at javafx.event.Event.fireEvent(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.access$6100(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
                    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
                    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
                    at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                    at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
                    at java.lang.Thread.run(Unknown Source)
    WARNING: com.sun.javafx.css.StyleHelper lookup caught:
    java.lang.IllegalArgumentException: Invalid cursor specification
                    at javafx.scene.Cursor.cursor(Unknown Source)
                    at com.sun.javafx.css.converters.CursorConverter.convert(Unknown Source)
                    at com.sun.javafx.css.converters.CursorConverter.convert(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
                    at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
                    at javafx.scene.Node.impl_processCSS(Unknown Source)
                    at javafx.scene.Parent.impl_processCSS(Unknown Source)
                    at javafx.scene.Node.processCSS(Unknown Source)
                    at javafx.scene.Scene.doCSSPass(Unknown Source)
                    at javafx.scene.Scene.access$2900(Unknown Source)
                    at javafx.scene.Scene$ScenePulseListener.pulse(Unknown Source)
                    at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
                    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
                    at com.sun.javafx.tk.quantum.QuantumToolkit$8.run(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(Native Method)
                    at com.sun.glass.ui.Application.enterNestedEventLoop(Unknown Source)
                    at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(Unknown Source)
                    at javafx.stage.Stage.impl_showAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
                    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
                    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
                    at javafx.event.Event.fireEvent(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
                    at javafx.scene.Scene$ClickGenerator.access$6100(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
                    at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
                    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
                    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
                    at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
                    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
                    at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
                    at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
                    at java.lang.Thread.run(Unknown Source)thanks in advance.

    First of all thank you for helping me to find out the problem. I did not expect you to solve my problem. I just would like to post a thread to finding out the solution or defining whether it is a bug. Anyway when I create jnlp file with Netbeans using the wizard that problem was solved. Then it gave me another problem:
    Problem
    java.lang.RuntimeException: Application launch error
                    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:104)
                    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ExceptionInInitializerError
                    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:140)
                    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:27)
                    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
                    ... 1 more
    Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "javafx.debug" "read")
                    at java.security.AccessControlContext.checkPermission(Unknown Source)
                    at java.security.AccessController.checkPermission(Unknown Source)
                    at java.lang.SecurityManager.checkPermission(Unknown Source)
                    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
                    at java.lang.System.getProperty(Unknown Source)
                    at com.sun.javafx.runtime.SystemProperties.getProperty(SystemProperties.java:178)
                    at com.sun.javafx.runtime.SystemProperties$1.run(SystemProperties.java:67)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at com.sun.javafx.runtime.SystemProperties.<clinit>(SystemProperties.java:62)
                    ... 4 moreAnd unfortunately it was a bug : FXML form can't be loaded in applet mode (JavaFX 2.1 b13)

  • Download .jnlp file when first time

    Hi Everybody,
    I am new bee for java web start.
    We are having swing application which we want to distribute through Java Web Start. Client can run application through provided web link. we also want to download .jnlp file to the client machine when user clicked the link first time.
    I go through different thread for the above problem in this forum, but though not getting clear idea as in our application, we need to generate dynamic .jnlp file. All solution posted for the above problem assuming that .jnlp file exists at some location, but in our case we have to generate it when user clicked it first time. Any body having some idea ?
    Our second problem is, can it possible that user will run the swing application only when he click the link provided on the web server ? In our case authentication of user is done in our web application and when user will click the provided link user id and other information will be pass to swing application as parameters through .jnlp file. If that application will available offline user can run it through last downloaded .jnlp file without clicking the link , which will be not allowded. Also we are concern about multi user environment, as we are thinking to dynamic generation of .jnlp file , it may possible that other user running the same application noted .jnlp file version difference and will download the .jnlp file of other user ?
    Can any body have any idea, how can we done the above scenario ?
    Thanks in advance,
    Dimpal

    If you upgrade to Java 1.4.2 it will present a dialog asking for desktop
    integration the first time you start the application.
    Maybe that's what you want?

  • Always prompted to save JNLP file

    Hello! We have a simple servlet that basically just queries a few things off of the HttpServletRequest and spits back a dynamically generated JNLP file. For some reason, when we were running with Tomcat 4.0.6 this worked fine, but with the upgrade to Tomcat 4.1.29 it does not. IE always prompts to open or save the file - it never just launches JWS automatically anymore.
    Any suggestions on what we can fix? I'll put the interesting parts of the servlet below.
    Thanks in advance!
    -Angelina
    Servlet:
    public class JNLPServlet extends HttpServlet{
        public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws IOException, ServletException {
            try {          
                response.setHeader("Cache-Control", "public");
                response.setContentType("application/x-java-jnlp-file");
                String sessionId = getSessionId(request);
                ServletOutputStream out = response.getOutputStream();
                java.net.InetAddress[] hostNetAddrs =
                              java.net.InetAddress.getAllByName(request.getServerName());
                String hostIpAddr = hostNetAddrs[0].getHostAddress();
                out.println(generateJNLP(sessionId, request.getServerName(),
                                         hostIpAddr, request.getRemoteUser()));
                out.flush();          
            catch (IOException ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_SERVICE_UNAVAILABLE, ex.getMessage());
            catch (Exception ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_INTERNAL_SERVER_ERROR, ex.getMessage());
        protected String generateJNLP(String sessionId, String host, String ip, String userName){
            StringBuffer buf = new StringBuffer();
            buf.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
            buf.append("<jnlp spec=\"1.0+\" codebase=\"http://" + ip + ":80/cmv2/\">\n");
            buf.append("<information>\n");
            buf.append("<title>App V2.3 on " + host + "</title>\n");
            buf.append("<vendor>EMC Corporation</vendor>\n");
            buf.append("<homepage href=\"http://www.emc.com\" />\n");
            buf.append("<description>Program for monitoring performance.");
            buf.append("</description>\n");
            buf.append("<icon href=\"cm.gif\" width=\"32\" height=\"32\" depth=\"3\" size=\"1k\" />\n");
            buf.append("<offline-allowed />\n");
            buf.append("</information>\n");
            buf.append("<security>\n");
            buf.append("<all-permissions />\n");
            buf.append("</security>\n");
            buf.append("<resources>\n");
            buf.append("<j2se version=\"1.4+\" href=\"http://java.sun.com/products/autodl/j2se\"");
            buf.append("initial-heap-size=\"64m\" max-heap-size=\"194m\" />\n");
            buf.append("<property name=\"host_name\" value=\"" + host + "\"/>\n");
            buf.append("<property name=\"host_port\" value=\"80\"/>\n");
            buf.append("<property name=\"host_IP\" value=\"" + ip + "\"/>\n");
            buf.append("<property name=\"secure_host_port\" value=\"443\"/>\n");
            buf.append("<property name=\"session_id\" value=\"" + sessionId + "\"/>\n");
            buf.append("<property name=\"user_name\" value=\"" + userName + "\"/>\n");
            buf.append("<jar href=\"cmv2.jar\" />\n");
            buf.append("<jar href=\"ohj-jewt-4_1_9.jar\" />\n");
            buf.append("<jar href=\"help-4_1_9.jar\" />\n");
            buf.append("<jar href=\"oracle_ice-5_06_3.jar\" />\n");
            buf.append("<jar href=\"emcshared.jar\" />\n");
            buf.append("<jar href=\"xerces.jar\" />\n");
            buf.append("</resources>\n");
            buf.append("<application-desc main-class=\"com.emc.wclient.Login\">\n");
            buf.append("</application-desc>\n");
            buf.append("</jnlp>\n");
            return buf.toString();
    }

    The underlying problem is a combination of tomcat 4/5 being more standard and IE being less standard. Tomcat changed to automatically add ";charset=ISO-8859-1" to the end of the Content-Type header while IE appears to not correctly process the Content-Type header.
    IE maintains a list of known MIME types in the registry under [HKCR]\MIME\Database\Content Type. There you will find an entry for 'application/x-java-jnlp-file' which indicates that this MIME type is treated as a file with the suffix '.jnlp'.
    Unfortunately, IE treats EVERYTHING after the Content-Type: as the MIME type NOT just the stuff between the ':' and the ';'. Thus instead of looking for a registry entry for 'application/x-java-jnlp-file' it winds up looking for 'application/x-java-jnlp-file;charset=ISO-8859-1" and doesn't find it.
    If you duplicate the 'application/x-java-jnlp-file' entry with the name 'application/x-java-jnlp-file;charset=ISO-8859-1' everything works. Alternatively, if you make sure the 'file name' portion of the URL which requests the jnlp spec has the suffix '.jnlp' IE will work correctly. If you are generating the jnlp spec via your own servlet you can control the behavior of Tomcat by calling 'setCharacterEncoding(null)' on the response object (note this is not a method of the HttpServletResponse interface, you have to cast to the underlying concrete type).
    So, I think IE's use of the 'suffix' is non-standard and IE's handling of the Content-Type header field is just broken. If you can make the requesting URL have the .jnlp suffix you are ok; otherwise, there does not appear to be a good solution.

  • How to embed jnlp file into html page using object tag

    hi everyone,
    i have written one jnlp file like this.
    <?xml version="1.0" encoding="utf-8" ?>
    <!-- JNLP file for Demo applicaion -->
    <jnlp spec="1.0+" codebase="http://localhost:9080/base/" href="SampleExample.jnlp">
         <information>
              <title>Demo Application</title>
              <vendor> </vendor>
              <description>Sample Demo Application</description>
              <offline-allowed/>
         </information>
         <security/>
         <resources>
              <j2se version="1.3+" />
              <jar href="common.jar" main="true" download="eager" />
              <jar href="classes12.jar" download="eager" />
              <jar href="toplink.jar" download="eager"/>
              <package name="com.applet.*" part="applet" recursive="true"/>
         </resources>
         <applet-desc name="grid" main-class="com.applet.PriceGrid" width="1000" height="300"/>
    </jnlp>
    i am trying embed that jnlp file using object tag like
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">     
    <PARAM NAME="jnlp" VALUE="http://localhost:9080/base/SampleExample.jnlp">
    </OBJECT>
    but i am not able to load the applet using Web Start.
    Can anyone please help me. This is very Urgent for me.
    Thanks & Regards,
    Shiva.

    thanks.
    i am giving my problem clearly. i have one applet. Previously i am loading the applet in my html page using object tag like this...
    <OBJECT
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="1000" HEIGHT="300" NAME="grid">
    <PARAM NAME="CODE" VALUE="com.adp.base.applet.PriceGrid.class" >
         <PARAM NAME="ARCHIVE" VALUE="common.jar,classes12.jar,toplink.jar" >
         <PARAM NAME="NAME" VALUE="grid" >
    <PARAM NAME="type" VALUE="application/x-java-applet">
    <PARAM NAME= "cache_option" VALUE ="no">
    </OBJECT>
    now what i need to do is
    i need load the applet only first time using web start and when ever the applet code changes in the server i need to reload the applet.
    for that i kept all the applet resources in .jnlp file.i want to cache all the resources which are in .jnlp file and applet must be displayed within a web page within a browser.
    Webstart always open a new application windows.
    I need to run an Applet embedded within a web page within a browser.
    Is there a way to still use Webstart?

Maybe you are looking for

  • Text shifting on imposed PDF; distill vs export

    Hi experts. Please help me solve a mystery! Mac OS 10.7, InDesign CS5 7.0.4 Here's the problem: I export a PDF (using modified version of the built-in X-1a PDF export preset to include bleed and crop marks) Fonts are embedded, no problems when prefli

  • Non-static variable this cannot be referenced from a static context

    public static File saveFile()      JFileChooser saving = new JFileChooser();      saving.setSelectedFile(new File(""));      int returnVal = saving.showSaveDialog(AccountTest.this);      if(returnVal == JFileChooser.APPROVE_OPTION)           File fil

  • BUG in SelectBooleanCheckBox component binding Simple Use Case

    I have a table called Customer have four fields. Id, Name, Gender, Regular. The sample data is --- 23, Mark, M, Y --- 26, Fiona, F, N I want to show an updatable form to the end user for the same using ADF. The UI components for Name, Gender are Outp

  • How to insert in long data type column

    I would like to know how could I insert data in a long data type column. Thanks

  • Using brushes in .rar format (7.x version) in cs3

    I found just the brushes I was looking for in the exchange tonight but they are for photoshop version 7.x. I cannot get my photoshop cs3 product to recognize them. If anyone knows how to make this work, I would really appreciate it. Really. Thank you