About multiple JARs in jnlp file

If the application has number of jar files, then how to accomodate those in <resources> element of jnlp file?
I have tried by putting those jars in a single folder and giving the complete path of *.jar files but its not working.
Can anyone please suggest some solution?

If the application has number of jar files, then how
to accomodate those in <resources> element of jnlp
file?The other poster gave a broad outline, for more details,
see section 4.3 "Specifying Code Resources" of the
JNLP Specification*.
* The JNLP Spec. is donwloadable, but is not
available for on-line browsing.
http://java.sun.com/products/javawebstart/download-spec.html
I have tried by putting those jars in a single folder** Where?
and giving the complete path ...It is best to specify a path relative to, and 'below'
the codebase.
...of *.jar files but its not working. That is not very specific. What is 'not working'?
Perhaps the code is just lazy - in need of a bit
of a rest and a holiday?
Most other problems show errors in the Java
Console. The Java Console can be configured
to automatically open when launching a JWS
app., and that is a good thing when an app. is
not launching correctly.
See the options in the Java Control Panel for
auto-popping the console.
Can anyone please suggest some solution?1) Configure the Java Console to open
automatically, and copy/paste any exceptions
seen.
2) Check the JNLP file for well formedness***,
before posting it here.
3) ** Describe the paths to your JNLP file, and each
of the paths to the resources.
*** The well-formedness of a JNLP file (which is
XML) can be checked in a little tool I put here..
http://www.physci.org/xml/xmltools.html#xmlwfc

Similar Messages

  • How to load .jar files when not specified in the .jnlp file

    Hello,
    We are deploying an application with JWS but due to the nature of this app, we need to download additional jar file only when the user has been authenticated. The jar file(s) we need to download can hardly be predicted (in term of name) and thus cannot be all listed as lazzy resource in the .jnlp file.
    However, we would like to take advantage of the various JWS features relateed to .jar download and cache and would prefer not to reinvent the wheel by implementing our on stuff (i.e. URLClassLoader with caching etc.).
    Any idea, suggestion?
    Thanks in advance.
    Fred.

    How about writing a second jnlp file with the optional jar listed in it and running it only if your user is authenticated?

  • Multiple key-value pairs in JNLP file

    Dear All,
    I have a JNLP file with multiple key-value pairs :
    <resources>
         <j2se version="1.4+"/>
         <jar href="lib/myFile.jar"/>
         <property name="url" value="URL/db"/>
         <property name="default" value="10"/>
         <property name="m1_query" value="URL1"/>
         <property name="m2_query" value="URL2"/>
         <property name="m3_query" value="URL3"/>
         <property name="p1_query" value="URL4"/>
         <property name="p2_query" value="URL5"/>
         <property name="p3_query" value="URL6"/>
         <property name="p4_query" value="URL7"/>
       </resources> I dont know what the key names are in the JNLP file so I cant use getProperty(keyname) directly. Is it possible to read all the key-value pairs in a HashMap and iterate through the list?
    Or is there any other way of dealing with it?
    Many thanks in advance.
    Regards
    Anuj

    Hi Riem,
    Thanks for your help ...
    while waiting for a reply ... I managed to do sort out my problem.
                     Properties p = System.getProperties();
                     for (Enumeration enu = p.propertyNames() ; enu.hasMoreElements() ;) {            
                       String key = (String)enu.nextElement();
                       Object value = p.getProperty(key);
                       if(!value.equals("")) {
                              keyValues.put(key, value);
                     }Thanks for your help.
    Cheers
    Anuj

  • Jnlp file called multiple times

    We're trying to pass HTTP parameters to our JNLP file (which is created by a .jsp file). When we run webstart from the command line (or a a web page), it seems like the JNLP file gets called multiple times. The first time our parameters are there, after that they are not. Why does webstart call the JNLP file multiple times? Has anyone else seen this.
    We're running Tomcat 4.x on Linux.
    From the command line we typed:
    javaws "http://localhost/helloWorld.jsp?hello=1&world=2"
    Tomcat Output:
    DEBUG: hello=1&world=2
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    DEBUG: null
    JSP File:
    <!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ page contentType="application/x-java-jnlp-file" %>
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
    spec="1.0+"
    codebase="http://localhost"
    href="http://localhost/helloWorld.jsp">
    <information>
    <title>Hello World</title>
    <vendor>Nobody</vendor>
    <application-desc>Hello World Application</application-desc>
    </information>
    <resources>
    <j2se version="1.3+"/>
    <jar href="lib/helloWorld.jar" main="true"/>
    </resources>
    <application-desc main-class="test.HelloWorldApp"/>
    </jnlp>
    <% System.out.println("DEBUG: " + request.getQueryString()); %>
    Hello World Source:
    package test;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class HelloWorldApp {
    public static void main(String[] args) {
    JFrame frame = new JFrame("Hello World");
    frame.getContentPane().add(new JLabel("Hello World", JLabel.CENTER), BorderLayout.CENTER);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.setSize(200,150);
    frame.setVisible(true);
    }

    I am seeing this exact same problem, also creating the JNLP via a JSP. Any input would be greatly appreciated.

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

    I am running my application under Java Web Start with different jars signed. I following the advances use multiple JAR files in JNLP files below.
    But i message error "+*JAR resources in JNLP file are not signed by same certificate*+" is posted still.
    Could you please help me to solve it?
    Thanks
    Best Regards,
    Tuan Pham
    index.jnlp_
    +<?xml version="1.0" encoding="utf-8"?>+
    +<jnlp spec="1.0+" codebase="http://localhost:8080/quotationsys" href="index.jnlp">
    +<information>+
    +<title>File Viewer</title>+
    +<vendor>IBM developerWorks</vendor>+
    +<homepage href="index.html"/>+
    +<description>File Viewer</description>+
    +<description kind="short">File Viewer</description>+
    +</information>+
    +<security>+
    +<all-permissions/>+
    +</security>+
    +<resources>+
    +<j2se version="1.5.0_*" />+
    +<jar href="quotationsys.jar"/>+
    +<nativelib href="swt-lib.jar"/>+
    +<jar href="swt.jar"/>+
    +<extension href="extlib.jnlp"/>+
    +</resources>+
    +<application-desc main-class="layout.MainMenu"/>+
    +</jnlp>+
    extlib.jnlp_
    +<?xml version="1.0" encoding="utf-8"?>+
    +<jnlp spec="1.0+" codebase="http://localhost:8080/quotationsys" href="index.jnlp">
    +<information>+
    +<title>File Viewer</title>+
    +<vendor>IBM developerWorks</vendor>+
    +<homepage href="index.html"/>+
    +<description>File Viewer</description>+
    +<description kind="short">File Viewer</description>+
    +</information>+
    +<security>+
    +<all-permissions/>+
    +</security>+
    +<resources>+
    <jar href="cvom.jar"/>           
    <jar href="CrystalReportsRuntime.jar"/>
    <jar href="CrystalCommon2.jar"/>
    <jar href="DatabaseConnectors.jar"/>
    <jar href="JDBInterface.jar"/>
    <jar href="keycodeDecoder.jar"/>
    <jar href="pfjgraphics.jar"/>
    <jar href="QueryBuilder.jar"/>
    <jar href="commons-collections-3.1.jar"/>
    <jar href="commons-configuration-1.2.jar"/>
    <jar href="commons-lang-2.1.jar"/>
    <jar href="commons-logging.jar"/>
    <jar href="com.ibm.icu_3.8.1.v20080530.jar"/>
    <jar href="log4j.jar"/>
    <jar href="xpp3.jar"/>
    <jar href="jai_imageio.jar"/>
    <jar href="logging.jar"/>
    <jar href="com.azalea.ufl.barcode.1.0.jar"/>
    +</resources>+
    +<component-desc/>+
    +</jnlp>+
    Edited by: pttuan on Apr 13, 2009 1:55 AM

    Are all of the jars in extlib.jnlp signed by the same cert? I think that the extension mechanism lets you get around having all of the jars for an overall app have the same signer, but I think it's still required that all of the jars within a given jnlp file have to have the same signer. So for you, all the jars in index.jnlp have to be signed by "cert A" and all the jars in extlib.jnlp have to be signed by "cert B". If that's not the case, you may need to split it up into multiple extensions.

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

  • 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

  • Frequent - "JAR resources in JNLP file are not signed by same certificate"

    Hi Experts,
    I am not able to open ESR and ID. I am facing "JAR resources in JNLP file are not signed by same certificate" issue. I have gone through SDN forums and solved this issue by deleting the javaws cache and clicking on Restore Archives and Generate New Signature button in the Administrator -> "Java Web Start Administration".
    But my issue is...I have to do this every time when I log into the system. I am using J2SE Development Kit 5.0 and J2SE Runtime Environment Kit 5.0.
    Also it is taking around 5 minutes to open ESR.
    Thanks,
    Phani Akella.

    Hi,
    I have downloaded Jdk6.0 and jre 6.0 and installed it in my system. I am not able to start java webstart using the command javaws in cmd. Any suggestions?  I have un-installed jdk 6.0 and installed jdk and jre 5.0. Now I am facing below issues.
    I am able to log into ID but not ESR. Screenshot shows only 9112 kb of files are downloaded for ESR.
    [ESR Issues|http://www.flickr.com/photos/49754947@N07/?s]

  • Including multiple jar files to applet

    In one of my application I am using severla third party apis (JavaHelp, JFreeReport, NanoXml ...) which comes as a seperate jar file each.
    Is there is a way that I can include these multiple jar files to be downloaded automaticaly when the applet is starting.
    currently I am extracting all the jar files and then re compressing them in to one file and place it in the archive property in the applet tab.
    Is there a way I can avoid extraction and recompression and directly use the jar files

    <param nama="archive" value="myjar.jar, myOtherjar.jar" />
    You could try to create an installer that wil put the 3rd party jars in the users lib/ext directory.

  • JNLP file version based update like Jar files version?

    Dear All,
    We are using the JWS from the past one year. Its working fine except one or two issues.
    Here i am explaining one of those issues:
    When user double clicks the icon on his desktop, first the JWS checks for updates. If updates found it will download the updates and starts the application.
    JWS doing the updates checking as:
    First its checking the time stamps of the client and server JNLP files. If server JNLP file time stamp is grater than client JNLP file time stamp, then its checks for each and every jar file update.
    For Jar files update we are using the version based. Our JNLP file is as shown below:
    <jnlp spec="1.0" codebase="$$codebase" href="LaunchMedplexus.jnlp">
    <information>
    <title>CBST</title>
    <vendor>CBST</vendor>
    <description kind="short">CBST</description>
    <icon href="../../../../images/image1.gif" kind="splash"/>
    <icon href="../../../../images/image1.jpg"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.4" initial-heap-size="48m" max-heap-size="256m"/>
    <jar href="../../../../JARS/AppJars/POMS/admin/admin.jar"      version="7.7.0.0" />
    <jar href="../../../../JARS/AppJars/POMS/billing/bil_adj.jar"      version="7.7.0.0" />
    </resources>
    <application-desc main-class="com.test.security.Login">      
    </application-desc>
    </jnlp>
    we are facing the problems because JWS updates checking is based on the JNLP file time stamp.
    is there is any way in JWS to check the updates based on JNLP file version instead of timestamp (like jars version based)?
    Our Environment is :
    JRE : 1.4.2_10
    OS : Windows 2000/XP
    thanks in adavance
    Krishna Mohan.

    Dear Andy,
    Thank You for your reply.
    perhaps you can use a simple jnlp file that referre to almost all of the application using a versioned jnlp component extension.can you explain this line little more elaborately.
    thanks in advance
    km

  • 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 FX as a Desktop App - jnlp file codebase should be...what?

    Howdy,
    If I try and run my deployed JavaFX app on another PC I get an error pointing back to the codebase that NB created in the <appname>.jnlp file:
    codebase="[http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/E%3A/JavaFX/Projects/Concentration/Concentration11/dist/]"My main question is, for a standalone desktop FX app you want to distribute, what should the codebase be?
    I assume you don't point to your developer machine's URL because of course that won't exist on someone else's machine. And unlike most web examples, this won't be running from a server.
    Many other examples refer to running the jar file from the command prompt - not acceptable if you are selling an applet, or even just distributing to the general public.
    So how does this work - how do you set up the jnlp file for desktop deployment? And, do you have to manually do this, or is there something I am missing in NB (6.8) ?
    Many thanks in advance.

    Hi Phil and thank you. I admit have been avoiding learning to compile from the command prompt or with other tools due to the ease that NB affords - but it seems that NB is introducing some issues lately.
    I haven't tried the other tools yet, but I thought maybe I could just edit the NB created jnlp file:
    [http://forums.sun.com/about:blank]<jnlp spec="1.0+" codebase="file:/" href="Concentration11.jnlp"> [http://forums.sun.com/about:blank]<information>  <title>*Concentration11*</title>  <vendor>*Gary*</vendor>  <homepage href="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/E%3A/JavaFX/Projects/Concentration/Concentration11/dist/"/>  <description>*Concentration11*</description>  <offline-allowed/>  </information> [http://forums.sun.com/about:blank]<resources>  <j2se version="1.5+"/>  <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>  <jar href="Concentration11.jar" main="true"/>  <jar href="lib/derby.jar"/>  <jar href="lib/derbyclient.jar"/>  <jar href="lib/derbytools.jar"/>  <jar href="lib/.netbeans-derby_JapaneseWords.jar"/>  </resources> [http://forums.sun.com/about:blank]<application-desc main-class="com.sun.javafx.runtime.main.Main">  <argument>*MainJavaFXScript=dbPackage.Main*</argument>  </application-desc>  <update check="background"/>  </jnlp>Replacing the code base with your file idea, if I try to run from the jnlp file it complains it can't find the resource:
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: file:/Concentration11.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    <...more...>Sorry to be so dense. Any ideas what I am flubbing up this time?
    Thank you Phil.

  • Console does not launch OVM 3.1.1, Win7x32 Firefox15/IE8 - Empty .jnlp file

    I have installed Oracle VM Manager 3.1.1, and two Oracle VMS servers; all seems to have gone pretty well after some learning curve. After success here, I created Clone of the most recent PeopleTools 8.5.2 and PeopleSoft HCM templates, and was able to start those machines. (Or at least, the Virtual Machine status shows "Running..." - read on.)
    However, when I try to launch the console, I get no success. First, when accessing the VMM server over HTTPS (port 7002), Java doesn't even try to start. Instead, basically, I get a screen blink and nothing else when I try to Launch Console from HTTPS. But when using HTTP:myVMM:7001, I get further. The Java logo appears briefly, and then I get "Application Error - Unable to launch the application" dialog. When I click on Details, I see the following under the Exception tab:
    JNLParseException[ Could not parse launch file. Error at line 0.]
         at com.sun.javaws.jnl.XMLFormat.decode(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)
    Looking further into this, the .jnlp that's presented to JAVA by Launch Console is zero bytes in length. What might cause the .jnlp file to be empty?

    Thank you very much for your rapid reply, SPA2! It's encouraging!
    You named the file correctly, and there is only one ovm_rasproxy-ws.jnlp on the system. It is at /u01/app/oracle/ovm-manager-3/machine1/base_adf_domain/servers/AdminServer/tmp/_WL_user/ovm_core/tgzc2b/war/ovm_rasproxy-ws.jnlp. It is not empty - has a size of 1028 bytes, and the contents are listed at the bottom of this message.
    I don't know how to start the vncviewer directly from the OVM Manager machine. I did install the package (twice, in fact... and the second time stated "package tightvnc-java-1.3.9-3.noarch is already installed" There are no executables in the tightvnc-java-1.3.9-3.noarch.rpm package, and I have not found indication of what the URL would be. Can you help with that?
    Trying to find the version of Java from http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CCwQFjAB&url=http%3A%2F%2Fwww.java.com%2Fen%2Fdownload%2Finstalled.jsp&ei=cFyOUL6OHpHo8QSrn4GIBg&usg=AFQjCNH6zuZGOL1prgUuefMNfg4eSpEOjQ I see "Something is wrong. Java is not working." So I uninstalled and reinstalled Java. Now it is Java 7 Update 9.
    Also - to further check this out, I did Save instead of Open from Firefox (IE does not give that option). Firefox saved a 0 byte file. I really appreciate the help.
    Contents of ovm_rasproxy-ws.jnlp:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="${Scheme}://${Server}:${ServerPort}/ovm/rasproxy/"
    href="ovm_rasproxy-ws.jnlp?${RequestUri}">
    <information>
    <title>Oracle VM Remote Access Service</title>
    <vendor>Oracle</vendor>
    <homepage>http://support.oracle.com/</homepage>
    </information>
    <resources>
    <!-- Application Resources -->
    <j2se version="1.5+"
    href="http://java.sun.com/products/autodl/j2se" />
    <jar href="ovm_rasproxy-signed.jar" main="true" />
    <jar href="commons-logging-1.1.1.jar" />
    </resources>
    <application-desc main-class="com.oracle.ovm.ras.proxy.RasProxyApplet">
    <argument>-server</argument>
    <argument>${Server}</argument>
    <argument>-service</argument>
    <argument>${Serviceid}</argument> <!--dynamic-->
    ${Credentials}
    </application-desc>
    <security>
    <all-permissions/>
    </security>
    <update check="always"/>
    </jnlp>
    Edited by: Dennis Lovelady on Oct 29, 2012 3:32 AM
    Edited by: Dennis Lovelady on Oct 29, 2012 3:36 AM to answer about installation of tightvnc and about Java version
    Edited by: Dennis Lovelady on Oct 29, 2012 4:10 AM

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

  • Jvmargs not being placed in jnlp file by ant deploy task

    Hi
    I have an ant deploy task as given below. I run ant to produce the jnlp file. Everything works ok, EXCEPT the jvmargs, and the enclosing platform element, are not copied into the jnlp file.
    Is this the intended behaviour?
    thanks
    graham
    -- ant task ---
    <project name="BuildInfoView" xmlns:fx="javafx:com.sun.javafx.tools.ant">
    <taskdef
         resource="com/sun/javafx/tools/ant/antlib.xml"
         uri="javafx:com.sun.javafx.tools.ant"
         classpath="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/lib/ant-javafx.jar"/>
    <fx:deploy
    outdir="../installation/bin"
         outfile="infoview"
    width="800"
         height="500"
         embeddedWidth="100%"
         embeddedHeight="100%">
         <fx:application
              name="Infoview"
              mainClass="com.ods.infoview.Main">
         </fx:application>
         <fx:info
              title="InfoView"
              description="InfoView"
              vendor="OrangeDog">
         </fx:info>
         <fx:permissions elevated="true"/>
         <fx:platform javafx="2.2+">
         <fx:jvmarg value="-Xmx400"/>
         </fx:platform>
    <!--
    cacheCertificates="true"/>
    -->
         <fx:resources>
              <fx:fileset dir="../gradle/output/"/>
         </fx:resources>
    </fx:deploy>
    </project>

    There is a FAQ note about this
    http://java.sun.com/products/javawebstart/faq.html#72
    Bill

Maybe you are looking for

  • ITunes 10 Install on Win Vista x64 Failure

    Unable to install iTunes 10 on Windows Vista even after uninstalling iTunes completely. I opened iTunes and it told me that there was a new version to download and install.  So I downloaded the iTunes64Setup.exe file and executed it, making sure to r

  • DVDplayBD wont play blu-ray

    Here is what I get when I try to play a blu-ray disc. The computer came with a blu-ray player so it should accept it. The image you see below starts as a TOO big for the screen to show the blu-ray disc is NOT protected. Thanks all

  • Cant print pdf , whats up worked fine before ????

    ok whats the deal,,, I cant print pdf anymore since I got this new update !!!!!!! windows vista , acro  (acting up ) bat... Most all of my printing is PDF . can I just dump this 9.0 thing an go back to  8.0 ,,,,,,Thanks

  • Key not valid for use in specified state.

    Hi. Muse update to 2014.1 will not install, so I uninstalled Muse 2014 and tried again and again, no luck. However, I just updated InDesign and Premiere Pro successfully. Thank you for any tips. Error log is as follows: "Payload: Muse CC (2014.1) 201

  • JDBC Connection Reset when using many processes on 64 bit system

    Hi, we've a annoying JDBC connection problem since we migrated our Java server to a 64 bit operating system. Here our environment. Database Machine: Oracle 10g Linux 32 Bit (but same problem on 64 Bit) Application Servers Machine: JDBC driver 11.1.0.