Reload of JNLP file fails

Hi all,
I update my JWS application. I needed to add a JAR archive and so I added a <jar>-entry in my JNLP file (that is included as extension within the main JNLP file).
I now notice that a lot of users of my application don't get the newly added JAR archive (the application is throwing ClassNotFoundExceptions), so I think that their JNLP-file isn't updated when they start the application.
From their bugreports I know that this problem is independent from the Java version they use (I get reports from 1.4.2 up to 1.6.0). And because the error is reported very often, I don't think that it's a proxy problem.
Shouldn't the JNLP files as well as the JAR files be reloaded every time it changes on the server? Is there a way I can solve this without forcing every user to empty their Java Web Start cache?
Thanks in advance,
Markus

Markus...
If you find a solution, please let me know...
So far, with very limited testings, it seems that IE 6.0 will download the new jnlp file, the FireFox will download only if you clear the browser cache; and I haven't figure out how to force the desktop shortcut that was created during the first installation to download the new jnlp file.
Thanks....

Similar Messages

  • JNLP file failed to run using javaws - NumberFormatException

    Hi all,
    I am clueless about this one. A fresh pair of eyes would be helpful.
    I am trying to run two JNLP files on for running remote consoles on
    2 separate Linux blades.
    Here is one of them:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="https://icn1-bmc:443/">
         <information>
            <title>JavaRConsole</title>
            <vendor>Sun Microsystems</vendor>
            <description kind="one-line">JavaRConsole Console Redirection Application</description>
            <description kind="tooltip">JavaRConsole Console Redirection Application</description>
            <description kind="short">
                JavaRConsole enables a user to view the video display of an
                Andromeda computer equipped with a service processor.  It also enables
                the user to redirect his local keyboard, mouse, CD-ROM and floppy drives to
                the remote computer to give him complete control over the remote machine.
            </description>
        </information>
        <security>
            <all-permissions/>
        </security>
        <resources>
            <j2se version="1.5+"/>
            <jar href="Java/JavaRConsole.jar"/>
            <jar href="Java/RedirLib.jar"/>
            <property name="DEBUGLIST" value="ui,general,video,threads,cdrom,floppy,dispatcher,hid,scsi,network"/>
            <property name="SEV_WARN" value="ilomrc.log"/>
            <property name="SEV_CRIT" value="ilomrc.log"/>
        </resources>
        <resources os="Linux" arch="i386">
            <nativelib href="Java/linuxi386.jar"/>
        </resources>
        <resources os="Windows" arch="x86">
            <nativelib href="Java/win32.jar"/>
        </resources>
        <resources os="SunOS" arch="x86">
            <nativelib href="Java/solarisx86.jar"/>
        </resources>
        <resources os="SunOS" arch="sparc">
            <nativelib href="Java/solarissparc.jar"/>
        </resources>
        <application-desc>
            <argument>8</argument>
            <argument>icn1-bmc</argument>
            <argument>root</argument>
        </application-desc>
    </jnlp>The other file is essentially the same with "icn2-bmc" replacing all
    instances of "icn1-bmc". here is the output of the "diff" command:
    3c3
    < <jnlp spec="1.0+" codebase="https://icn1-bmc:443/">
    <jnlp spec="1.0+" codebase="https://icn2-bmc:443/">
    41c41
    <         <argument>icn1-bmc</argument>
    <argument>icn2-bmc</argument>The command I use to run these files is:
    javaws <filename>The first file runs fine, and opens a remote console to the blade.
    However when I try to run javaws with the second file, it fails to start the
    app, with the foll exception:
    java.lang.NumberFormatException: For input string: "icn2-bmc"
         at java.lang.NumberFormatException.forInputString(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
         at java.lang.Integer.valueOf(Unknown Source)
         at java.lang.Integer.decode(Unknown Source)
         at com.ami.javarconsole.ui.FrameMain.main(FrameMain.java:1326)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)This is unusual, since it was able to parse "icn1-bmc" just fine.
    Similar exception when I replace hostname with the IP address:
    java.lang.NumberFormatException: For input string: "10.0.19.214"
         at java.lang.NumberFormatException.forInputString(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
         at java.lang.Integer.valueOf(Unknown Source)
         at java.lang.Integer.decode(Unknown Source)
         at com.ami.javarconsole.ui.FrameMain.main(FrameMain.java:1326)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.sun.javaws.Launcher.executeApplication(Unknown Source)
         at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
         at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)Any clues? Let me know if you need any more information?
    Message was edited by:
    amateurPro

    I was about to post a question in the forums for this same issue, but I thought I'd reply to this thread instead. I am actually getting a fairly consistent error with this code. Here's my scenario:
    I'm running an OSD TS which performs a "Format and Partition Disk" task immediately before an "Apply Operating System" task (well, almost immediately... there are a few tasks for setting custom variables and whatnot in between). The Format
    and Partition Disk task returns a success code. The Apply Operating System task returns these lines (edited for relevance) with the command line "OSDApplyOS.exe /image:PRI00011,1 /target:C: /runfromnet:False":
    'C:\' not a removable drive
    The volume C:\ exists and is a local hard drive.
    The volume C:\ is using a valid file system.
    Windows target partition is 0-1, drive letter is C:\
    Verifying boot volume is NTFS.
    * Boot volume D:\ is not valid: unsupported file system. Please ensure the boot volume file system on the system you are applying the image to is NTFS. The request is not supported. (Error: 80070032; Source: Windows) *
    I am specifying in the Apply Operating System task to apply the OS to a specific logical drive letter (C:). The odd part is that if I reboot the computer and run the task sequence again, it goes through just fine... every time. Thanks for your help.
    * EDIT: I'm running SCCM 2012 R2.

  • Fail to update the jnlp file

    The application allowed user to run offline. So ,I use <offline-allowed/> in the JNLP file.
    It works well in JDK5.0:
    1.the application can run if the network is dropped.
    2.the jnlp file will be updated if the server update the JNLP.
    But in when I change JDK to version 1.4.2, something unreasonable happened:
    Even I update the server's JNLP, the client still use the old JNLP and not update it.
    In the JWS1.4.2 Developer Guide, it says:"If offline-allowed is specified, Java Web Start will also check to see if an update is available. However, if the application is already downloaded the check will timeout after a few seconds, in which case the cached application will be launched instead."
    What is the "a few seconds" mean?Is there any different between JDK1.4 and 1.5?
    The connection between client and server is not very good. I do think it may cause the problem above. But in the same connection condition, JDK1.5 works..
    So, is there any thing I can do to resolve this problem?

    <jse version="1.5+" />(is one possibility)

  • Web Start : JAR resources in JNLP file are not signed by same certificate

    What does this error mean exactly?
    All the jars in this JNLP file are signed by the same certificate it's just that some of them are also signed by another certificate.
    According to this closed/fixed bug : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4928787
    Web Start should not be rejecting jars due to multiple signers???
    Is this a regression in 1.6? or was this never actually fixed?
    I can make this work by not signing these 'presigned' jars and putting them into extension JNLP files but this is less than desirable.
    Some reasons for not using the extension JNLP:
    -- Avoid this bug (which is also marked closed but not fixed) --> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6566071
    -- I would like to sign all the jars I deliver with my own certificate.
    -- I would also like to give my clients the ability so sign the jars themselves (their own certificate) after they certify the application for distribution throughout their organization.

    Thanks for responding.
    Here is an example that will show the problem. If you want to try yourself:
    NanoHTTPD.java is from here -> [http://elonen.iki.fi/code/nanohttpd/|http://elonen.iki.fi/code/nanohttpd/]
    C:\test>java -version
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
    C:\test>dir
    Volume in drive C has no label.
    Volume Serial Number is CCC7-E05D
    Directory of C:\test
    04/10/2008  12:34 PM    <DIR>          .
    04/10/2008  12:34 PM    <DIR>          ..
    04/10/2008  11:04 AM               130 hello.java
    04/10/2008  11:30 AM               500 hello.jnlp
    04/10/2008  11:06 AM                89 hellohelper.java
    04/10/2008  09:52 AM            20,547 NanoHTTPD.java
                   4 File(s)         21,266 bytes
                   2 Dir(s)  26,292,060,160 bytes free
    C:\test>type hello.java
    public class hello
    public static void main(String[] args)
    System.out.printf("Hello %s\n",hellohelper.getString());
    C:\test>type hellohelper.java
    public class hellohelper
    public static String getString()
    return "World";
    C:\test>type hello.jnlp
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://localhost/" href="" >
        <information>
            <title>hello</title>
            <vendor>hello</vendor>
            <description>hello</description>
        </information>
        <security>
            <all-permissions/>
        </security>
        <resources>
            <j2se version="1.6" />
            <jar href="hello.jar"/>
            <jar href="hellohelper.jar"/>
        </resources>
        <application-desc main-class="hello"/>
    </jnlp>
    C:\test>javac *.java
    Note: NanoHTTPD.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: NanoHTTPD.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    C:\test>jar cvf hello.jar hello.class
    added manifest
    adding: hello.class(in = 524) (out= 332)(deflated 36%)
    C:\test>jar cvf hellohelper.jar hellohelper.class
    added manifest
    adding: hellohelper.class(in = 283) (out= 212)(deflated 25%)
    C:\test>keytool.exe -genkey -alias hello1 -keystore hello1keys.jks -dname cn=hello1 -storepass hello1 -keypass hello1
    C:\test>keytool.exe -genkey -alias hello2 -keystore hello2keys.jks -dname cn=hello2 -storepass hello2 -keypass hello2
    C:\test>jarsigner -keystore hello1keys.jks -keypass hello1 -storepass hello1 hellohelper.jar hello1
    Warning:
    The signer certificate will expire within six months.
    C:\test>jarsigner -keystore hello1keys.jks -keypass hello1 -storepass hello1 hello.jar hello1
    Warning:
    The signer certificate will expire within six months.
    C:\test>start java -cp . NanoHTTPD
    C:\test>javaws hello.jnlpAt this point click accept to trust the code and the program runs. Here is the console output:
    Java Web Start 1.6.0_03
    Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\4381
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    0-5: set trace level to <n>
    Hello WorldNow for second signature, and run again:
    C:\test>jarsigner -keystore hello2keys.jks -keypass hello2 -storepass hello2 hellohelper.jar hello2
    Warning:
    The signer certificate will expire within six months.
    C:\test>javaws hello.jnlpThis time it fails. Console output:
    Java Web Start 1.6.0_03
    Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\4381
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    0-5: set trace level to <n>
    #### Java Web Start Error:
    #### JAR resources in JNLP file are not signed by same certificateTo verify jars:
    C:\test>jarsigner -verify -verbose -certs hello.jar
             135 Thu Apr 10 12:39:26 CDT 2008 META-INF/MANIFEST.MF
             256 Thu Apr 10 12:39:26 CDT 2008 META-INF/HELLO1.SF
             770 Thu Apr 10 12:39:26 CDT 2008 META-INF/HELLO1.DSA
               0 Thu Apr 10 12:37:36 CDT 2008 META-INF/
    sm       524 Thu Apr 10 12:37:04 CDT 2008 hello.class
          X.509, CN=hello1
          [certificate will expire on 7/9/08 12:38 PM]
      s = signature was verified
      m = entry is listed in manifest
      k = at least one certificate was found in keystore
      i = at least one certificate was found in identity scope
    jar verified.
    Warning:
    This jar contains entries whose signer certificate will expire within six months.
    C:\test>jarsigner -verify -verbose -certs hellohelper.jar
             141 Thu Apr 10 12:38:56 CDT 2008 META-INF/MANIFEST.MF
             262 Thu Apr 10 12:41:30 CDT 2008 META-INF/HELLO2.SF
             770 Thu Apr 10 12:41:30 CDT 2008 META-INF/HELLO2.DSA
             262 Thu Apr 10 12:38:56 CDT 2008 META-INF/HELLO1.SF
             770 Thu Apr 10 12:38:56 CDT 2008 META-INF/HELLO1.DSA
               0 Thu Apr 10 12:37:44 CDT 2008 META-INF/
    sm       283 Thu Apr 10 12:37:04 CDT 2008 hellohelper.class
          X.509, CN=hello2
          [certificate will expire on 7/9/08 12:38 PM]
          X.509, CN=hello1
          [certificate will expire on 7/9/08 12:38 PM]
      s = signature was verified
      m = entry is listed in manifest
      k = at least one certificate was found in keystore
      i = at least one certificate was found in identity scope
    jar verified.
    Warning:
    This jar contains entries whose signer certificate will expire within six months.Why does javaws say: "JAR resources in JNLP file are not signed by same certificate" when clearly they are both signed by the same certificate (the one aliased by CN=hello1)?

  • 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.

  • Deploying a JNLP file to corporate users?

    When it comes to Java, I'm pretty clueless. I was a VB programmer years ago, and now I deal mostly with Python apps.
    I have a corporate client with ~80 workstations. One of their primary business applications is deployed by a jnlp file. Their tech support said to go to http://theirapplication.com/app.jnlp and the program will install.
    I have tried a few test methods of getting this pushed out to every user.
    The first was to deploy a shortcut to their desktop called "TheirApp" which pointed to that jnlp file.
    In practice, that launches IE, downloads the JNLP file, checks if the app is installed, installs it if it isn't, and then runs the app. Plus, the app drops a new shortcut onto the desktop for directly launching the program. The shortcut points to javaws and then a long path to some per-user cache folder. So now users are confused by two shortcuts.
    When the app initially starts, it asks for a bunch of settings--like really long account numbers. All this info appears to be per-user. So when users sit down at a different workstation (which happens frequently in their environment), clueless users are asked to install the app and put in all those initial settings.
    The second method was a failure--I tried deploying a shortcut to start javaws pointing to that cache folder. I didn't really expect it to work. On new machines it failed because that app hadn't been installed into that cache folder yet. On existing installs, it would work for users that had previously installed it, but new users wouldn't work because the cache folder is stored under a different users settings folder.
    So I guess my questions for the Java community would be these:
    Is there a way to deploy a java webstart app per-machine?
    Is there a way to share the same cache folder between all the users on the network so they see all the same settings?
    Does anyone have similar experiences and suggestions on how to better deploy jnlp applications?
    Thanks for reading.
    -Aaron

    To pre-install you can use the -import option.
    Something like
    javaws -import -silent http://whateverTheServer.ext/whateverTheJnlp.jnlpYou could even copy all files to a local server and override codebase with -codebase option.
    You could try (but I've heard people complain about it) to use the -system option so that all machine users run same instance (app is installed once per machine, not once per user and machine).
    About properties, the most common way to store data is to put them in the user.home dir, have a look there, maybe you can spot out a file (or a directory) and just tell user to copy their setting on a USB drive and paste them (into user.home) on any other machine they're gonna use.
    Bye.

  • How to pass java.library.path as a VM argument in JNLP file

    I jave a jar file containing reference to sqljdbc4.jar as I am using JDBC to talk with SQL Server. It works fine through eclipse IDE when I give the fillowing VM Argument
    -Djava.library.path=C:\Users\reddys2\Downloads\sqljdbc_4.0\enu\auth\x86. Without this I get the "error message" saying that "failed to load sqljdbc_auth.dll
    Now I would like to bundle working jar file in .jnlp and invoke through browser. I tried to add vm argunment (<property name="java.library.path" value="C:\Users\reddys2\Downloads\sqljdbc_4.0\enu\auth\x86"/> ) in the .jnlp file. But still i am getting "WARNING:Failed to load the sqljdbc_auth.dll cause:no sqljdbc_auth in java.library.path"
    Any help is greatly appreciated. Here are the contents of JNLP file
    =======================================================================================
    ?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://xxx.16.19.56:8080/ifsdTools/" href="PF_UserList.jnlp">
    <information>
    <title>Login into PF</title>
    <vendor>XXX XXXX</vendor>
    <description>Provides ability to mirror PF Data base locally</description>
    </information>
    <resources>
         <j2se version="1.4+"/>
         <jar href="PopulateIFSDProjectForgeData.jar" />
         <jar href="Psqljdbc4.jar" main/>
         <property name="java.library.path" value="."/>
         <property name="javax.net.ssl.keyStore" value="NONE"/>
         <property name="javax.net.ssl.keyStoreType" value="PKCS11"/>
         <property name="http.proxyHost" value="proxy1.lmco.com"/>
         <property name="http.proxyPort" value="80"/>
         <property name="java.library.path" value="C:\Users\xxxx\Downloads\sqljdbc_4.0\enu\auth\x86"/>
         <property name="pfProjectId" value="proj1073" />
    </resources>
    <security>
         <all-permissions/>
    </security>
    <application-desc main-class="ifsdTools.PopulateIFSDProjectForgeData" />
    </jnlp>
    =========================================================================================================
    Edited by: 878645 on Apr 26, 2012 3:43 PM

    Thanks for the pointer. Question that I have is I am referencing sqljdbc4.jar in my application, which in turn using sqljdbc_auth.dll.
    Which one should i refernce through <nativelib>. Is it sqljdbc4.jar or sqljdbc_auth.dll.
    have added the following line to the .jnlp.
    <nativelib href="sqljdbc4.jar"/>
    But still it is complaining on sqljdbc_audth.dll. If it is sqljdbc_auth.dll, can I use <nativelib> to pass it.
    In that case does it need to be signed?. If so,
    Is it possible to sign .dll using 'jarsigner'?.
    Edited by: 878645 on Apr 26, 2012 3:43 PM

  • 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?

  • Error: JAR-Ressources in JNLP-File are not signed from the same Certificate

    I have two handfull jars, all signed in batch with the same
    Certificate. When i start my App with Webstart it tells me:
    Your JAR-Ressources in JNLP-File are not signed from the same Certificate.
    "JAR-Ressourcen in JNLP-Datei sind nicht von demselben Zertifikat signiert"
    Well im shure that i signed all my jars with the same Certificate.
    What can i do to solve this problem ???

    I get the same error.
    Strangely exactly every second time it works and every second time I execute the JNLP I get the following error:
    network: Cache-Eintrag nicht gefunden [url: http://localhost:8080/fibo/lib/js_15R41.jar, Version: null]
    network: Verbindung von socket://127.0.0.1:3621 mit Proxy=DIRECT wird hergestellt
    #### Java Web Start Error:
    #### JAR-Ressourcen in JNLP-Datei sind nicht von demselben Zertifikat signiertCan this have something to do with browser caching? So that every 2nd time it tries to access the cache, fails. And than ignores the cache and works?
    Any ideas?
    Cheers,
    Rio

  • Creating .jnlp files from .java files

    Last resort: Ask on the forums. I'm having a lot of trouble creating .jnlp files with only a .java file. For some reason if I do create project, the project does not run correctly, but when I make the file and run the file alone, it works perfectly fine. Most of the tutorials that I have read online ask me to do weird manifest .class stuff (in order to make JAR files, which i have failed to do even after attempting to make one after 3 hours). And still, when it comes to make the .jnlp file, I don't quite understand anything. When putting it on the web, I'm planning not to use php (html is in my mind right now), and I have aborted every single attempt at making the JAR files and whatnot.
    At this point, I'm not asking for anything other than a link to a tutorial that actually works, because all that I have tried (for the JAR files, especially) have been giving me errors. By the way, one really bothersome output that comes up is the "illegal option: j" when I use the Tool for the JAR file, and I have no idea what that means--I google it and find nothing. The .java itself extends JPanel, so it isn't really an applet.
    How to: Run an Applet
    Create an Applet Class by clicking File > New > File > File Type > Java Classes > Applet Class.
    Enter a name and path for the applet and click Finish.
    Build the file by pressing F7.
    Create an Applet HTML file by clicking File > New > File > File Type > Other > HTML Applet.
    Enter a name and path for the applet and click Finish.
    Open the HTML file in JCreator and modify the applet tag to match the name of the applet class.
    Open the Project Settings window and select the HTML file as the Run parameter.
    Click the Run Project button.It isn't really a code, but I tried doing this and the HTML Applet said code = ".class" Again, I don't have a class for the file. And when you do the "File > New > File > File Type > Java Classes > Applet Class," you get the .java file and a folder that says "components, with two classes in it. I was completely befuddled.

    http://forum.java.sun.com/thread.jspa?messageID=9783924

  • Is there something wrong with my .jnlp file

    Hi everyone...
    I created a .jnlp file to run a program from my webpage.
    I attach my .jnlp file which insidentally doesnt seem to work :) .
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
      codebase="http://www.mywebpage.com/project/"
    >
    <information>
      <title>My title</title>
      <vendor>Stav</vendor>
      <homepage href="index.html" />
      <description>Demonstration of JNLP</description>
    </information>
    <offline-allowed/>
    <security>
      <j2ee-application-client-permissions/>
    </security>
    <resources>
      <j2se version="1.2+" />
      <jar href="myjar.jar"/>
    </resources>
    <application-desc main-class="Run" />
    </jnlp>When i click the reference of the above from my webpage it gives me an error saying that it was anable to load the jar file. (Btw the jar file is on the webpage too).
    Any help or comments will be appreciated
    Cheers
    Stav

    Then when you upload the file you should be usingbinary mode FTP (if you use an FTP windowed program
    it should do this for you).
    Can you please clarify a bit on this?FTP transfers in two modes. Text (for .txt files .html files and the like) and binary (for images, jars and everything that isn't text)
    Basically text files can get modified by FTP so that the line breaks and such are right for the target system. Binary files get left alone. Most of the time I actually haven't seen too many problems but it is possible for a binary-type file to get mangled by using text mode transfer.
    Most FTP programs (other than raw console versions) will auto-detect the file type and use the appropriate version.
    Like I said can you just download the jar file directly and use it. If not where does that fail?

  • JNLP run fails!!!!!!!!!!

    Hi every body ,,,,
    I have a serious problem , to run JNLP file .
    I have created a Test.jar(executable) file , which connect to db2 remote database. When I double ckick on that jar it runs fines , but when I add my Test.jar file into the jnlp file it could not connect to the database ,
    and web start fails !!!!!
    Here are the steps -------------------------->
    step 1 .......
    creating a jar file(Test.jar).
    step 2 ......
    creating a JNLP file(Test.jnlp)
    The full description of jnlp---------->
    ?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="$$$" href="Test.jnlp">
    <information>
    <title>Testing</title>
    <vendor>Some</vendor>
    <description>Test Conn</description>
    <description kind="short"></description>
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.3+"/>
    <jar href="Test.jar" main="true"/>
    <jar href="db2jcc.jar" download="eager"/>
    <jar href="db2java.zip" download="eager"/>
    </resources>
    <application-desc main-class="Test2"/>
    </jnlp>
    For ur kind information am using jdbc type 4 driver for db2 database and Tomcat 5 as web server.
    The Test.jar execute well !!!!!!!!!! But my Test.jnlp could not run ,,,
    even it gives me no error !!!! ,,,,
    Please help me !!!!!!!
    Thanks
    SB

    I have created a Test.jar(executable) file , which connect to
    db2 remote database. The code will need to be signed and request
    extended permission in order to access a remote
    DB. This can be avoided if the web start app. is
    launched for the same server that hosts the DB.
    When I double ckick on that jar it runs fines , but when I add
    my Test.jar file into the jnlp file it could not connect to the
    database , and web start fails !!!!!Please fix that sticky '!' key.
    Does the code 'swallow' exceptions?

  • Signed JNLP file doesn't match JNLP file on webserver?

    Hi,
    using Java 1.6.0(_13) Webstart says, that the JNLP file is not signed.
    So I added my JNLP file as JNLP-INF/APPLICATION.JNLP into the client jar.
    I signed my jar with my cert from thawte and copied the JNLP file to the unix webserver.
    Now Webstart says that the JNLP file from the webserver doesn't match with the signed one.
    Does anyone have some practical experience with signing JNLP files and knows the common pitfalls.
    What are the issues that could let this fail, CR/LF or a bug ?
    Best regards

    Its from an Android device?  Maybe incompatible Java versions.  In Utilities launch the Java Preferences app and look at the enabled version information (General tab).  Perhaps click the Restore Defaults button.

  • Close open seq files / Reload all seq files

    Hi All.
    I have a problem with the OI. When I have started a seq and it fails because of a seq error... then I go to the editor and correct the fault, and then try again in the OI, but it doesn't reload the seq file after it is changed.
    Then I try to put in a button on my OI to close the seq file.
    I have tried to do this in 2 ways.
    First I tried to use ApplicationMgr.ReloadModifiedSequenceFiles , but it does not work, I cant figure out why it isn't changed after I press save....
    Then I tried to use ApplicationMgr.SequenceFiles and afterwards SequenceFiles.Count, but Count is always 0.... why....  it seems that all seq files are running in another instance of that activex server....
    Count should at least be 1 because I have a seq file that is running in a "endless" loop in the background..
    So any ideas ???

    Hi Allan.
    Now I know what you mean about if I was holding a reference to the new execution. Now I have made this reference, and I can also get out the information if the seq is changed or not, but now I cant get ReleaseSequenceFileEx to work, it will not release and unload the file.
    The problem must be that another "thing" has a reference to the seq. The only other thing I can think of is the Execution View in the OI.......
    So now I am a little bit lost again... can you please help me a little bit further.
    I have attached a cut of my background seq, so you can see what I am doing.
    Attachments:
    OpstartsSeq.seq ‏162 KB

  • ITunes v10.6.1.7 "Copying files failed. The File name was invalid or too long."

    I'm trying to organize my music files using iTunes 10.6.1.7 and I keep getting the error message "Copying files failed. The File name was invalid or too long."
    I've got music folders by artist in both the iTunes Music folder and the iTunes Media/Music folder. When I add certain files by drag/drop they sometimes get lost and I don't want that to happen anymore. I used to just consolidate my music files using the File/Library/Organize Library option and that worked, however now when I do that, I get the error message.
    I'm a novice and the only online stuff I see is both confusing and refers to earlier versions of iTunes.
    My concern is that I have heard that people lose entire libraries of their music when they trry to fix things like this and I don't want that. If this is of any importance, I have several files called iTunes library and temp library. I have no idea what that all means but I'm scared to death of it.
    Also, I can't get to the "re-organize library" link at all. It won't let me.
    One thing that be of some interest is that when I pull up the properties of the music and media/music files they are marked "read only" I'm also afraid to touch that!
    Please help and please know that I am a dummy. Be kind and be clear. Step by step would be great, with images even better. Thanks.

    Perhaps nobody knows the answer? We're fellow users here answering questions in our free time when we think we've something useful to contribute.
    You can choose to *Consolidate selected tracks* with a right-click menu. Perhaps if you can identify a specific track that won't consolidate and examine the full path to the file & the path that iTunes would create when it consolidates the problem might become apparent. For example iTunes may not be able to move files if the source or destination path length exceeds 255 characters.
    tt2

Maybe you are looking for

  • In Mail, clicking on a date does not properly create an iCal event

    If I click on a time/date in an email, a miniature calendar pops up showing the event as best as Mail can parse it. There are also two buttons: Edit and Add to iCal. If I click on Edit, I get a chance to change some of the parameters of the event, an

  • STORAGE_PARAMETERS_WRONG_SET Dump on BW

    Hello experts, We are receiving several DUMPS with the following error in our BW  system: STORAGE_PARAMETERS_WRONG_SET ShrtText   &INCLUDE INCL_INSTALLATION_ERROR When the program was running, it was established that more                    memory wa

  • Cannot perform RFC lookup

    Hi All, We are getting below error in doing testing in PI mapping. Cannot perform RFC lookup com.sap.aii.mapping.api.StreamTransformationException: Cannot perform RFC lookup at com.sap.aii.mappingtool.flib7.RfcLookup.cacheMore(RfcLookup.java:105) at

  • HT4060 Ipad 3 Fresh out of the box today, simply does not charge. Thoughts? (other than take it back to apple)

    Ipad 3 Fresh out of the box today, simply does not charge. Thoughts? (other than take it back to apple)

  • Lync Server 2013 Installation Error

    Hello, I am using my AD in Windows Azure VMs. I created new VM of A3 (4 cores, 7 GB Memory) Windows Server 2012 R2, Port 1433 MSSQL added, made it a member of Domain and planned to install first Lync Server 2013 on it. In "Setup or Remove Lync Server