Java Web Start- Cannot launch Application. Pls help

HI
Ia m beginner in java web start. I creaate a simple swing application and try to launch it through web start. But I failed. My application jar file (sample.jar)contains only class files. No menifest file. Then I sign my "sample.jar" file and placed inside tomcat server: "webapps/root/WebStart/Sample". I also placed the "sample.jnlp" file in the above directory.The name of my main class is :"Sample" .Here is the content of sample.jnlp:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
  codebase="http://165.231199.164:8080"
>
<information>
  <title>Sample Launching Test</title>
  <vendor>FMO</vendor> 
  <homepage href="www.sun.com" />
  <description>Demonstration of JNLP</description>
</information>
<offline-allowed/>
<security>
  <all-permissions/>
</security>
<resources>
  <j2se version="1.2+" />
  <jar href="/WebStart/Sample/sample.jar"/>
</resources>
<application-desc main-class="Sample" />
</jnlp>Whenever I try to launch this application from the browser , it shows me following :
An error occurred while launching/running the application.
Title: Sample Launching Test
Vendor: FMO
Category: Unexpected Error
RED
Anybody pls help me here about how to Launch my application. Am I missing something?

I fixed the porblem by modifying the sample.jnlp file. Here is the latest version:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp codebase=http://[my-ip-address]:8080/WebStart/Sample>
<href="sample.jnlp">
<information>
  <title>Sample Launching Test</title>
  <vendor>FMO</vendor> 
  <homepage href="www.sun.com" />
  <description>Demonstration of JNLP</description>
  <offline-allowed/>
</information>
<security>
  <all-permissions/>
</security>
<resources>
  <j2se version=1.4+ />
  <jar href="sample.jar"/>
</resources>
<application-desc main-class="Sample" />
</jnlp>

Similar Messages

  • HT5651 When I execute Java Web Start, I get an error "Java Web Start cannot be opened because of an error " I am running OSX 10.6.8 and Java Update 13. Anyone know why ?

    Error :

    I still have the problem. This is the error:
    Process:         Java Web Start [2760]
    Path:            /Users/Admin/UTILITIES/Java/Java Web Start.app/Contents/MacOS/Java Web Start
    Identifier:      com.apple.JavaWebStart
    Version:         12.2.0 (12.2.0)
    Build Info:      JavaApplicationSupport-1450000~1
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [127]
    Date/Time:       2013-02-21 17:49:43.369 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          2712 sec
    Crashes Since Last Report:           3
    Per-App Crashes Since Last Report:   3
    Anonymous UUID:                      383BDFCF-9AA2-4B81-828C-6AD5615B5474
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  4
    Dyld Error Message:
      Symbol not found: _JVMGetLatestJVMInfo
      Referenced from: /Users/Admin/UTILITIES/Java/Java Web Start.app/Contents/MacOS/Java Web Start
      Expected in: /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM

  • Can not launch swing application from Java Web Start 1.6.0_37

    I have a dynamic generated jnlp file from a serlvet. When I used Java Web Start to start the swing application, it failed. The exception showed
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://xxxx.xx.com:9080/dilpipweb/Test-1.0-SNAPSHOT.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I used janela to validate the generated jnlp file. It was valid. I also checked the tomcat access log, it showed that the Test-1.0-SNAPSHOT.jar file was accessed correctly (with a 200 return code).
    Can anyone help me what was the problem?
    Thanks,

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Help with Java Web Start

    Hi everybody,
    I have a simple Java application that has a JFrame containing a TextField displaying some text inside it. I am using the NetBeans IDE. I am trying to Enable Java Web start for this application. The steps I have taken upto now are:
    1. Right click on Project, Java Web Start -> Enable Java Web Start. This created the jnlp file.
    2. In the Resources section, I added the jar file for swing. ( I am not sure if I have to add the path for jnlp.jar etc, or are these found automatically?)
    3. Right click on Project, Java Web Start -> Deploy with Java Web Start. This launches the browser with the Click me link, but on clicking this link, I get the following error.
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class jnlp.sample.servlet.JnlpDownloadServlet or a class it depends on
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.ClassNotFoundException: jnlp.sample.servlet.JnlpDownloadServlet
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         java.lang.Thread.run(Thread.java:534)I have all the jnlp files in my jdk directory, and I am not sure why it can't find it. Is there something I am missing?
    Thanks
    George

    I am not sure what it has to do with servlets, I just followed a tutorial on using Netbeans with Java Web Start, and did only the steps as mentioned in my first post. And ended up with the error.
    Anyways, I added the jnlp jar files(jnlp.jar, jnlp-servlet.jar, jardiff.jar) in the WEB-INF/lib directory. And it seems to deploying it now. I can get my application to load on clicking on the "Click me" link. But the controls on my application don't seem to be working.
    Also, when I try to Right click on my project -> Java Web Start -> Run with Java Web Start, I get the following error message,
    javaws-run: C:\Documents and Settings\Lux\Visualization\nbproject\build-jaws-impl.xml:36: Execute failed: java.io.IOException: CreateProcess: C:\j2sdk1.4.2_13\bin\javaws "file:///C:/Documents and Settings/Lux/Visualization/Visualization.jnlp" error=2
    BUILD FAILED (total time: 0 seconds)
    Any help appreciated.
    Thanks.
    George

  • Unable to Launch Integration Builder: Java Web Start problem

    Hi,
    I am unable to launch the integration builder. I am using JDK 1.4.2_05. The java Web Start gives the following error:
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://<XIHostName>:50000/rep/repository/aii_util_rb.jar
    I have tried deleting the Java web start cache, and even reinstalling the JDK.
    Can someone suggest a workaround this problem ?
    thanks,
    Manish

    The Java Web Start cannot accept unsigned jars. If the jars are signed, it will ask in a dialog box if it should allow unrestricted access to this jar.
    In my case, I upgraded XI SP0 to SP4, which included updating the Adapter Core, Adapter Framework, and the XI TOOLS to SP4.
    On launching the Web start, it seemed that the jars were not getting signed. JWS cannot allow unsigned jars to the client.
    These jars are maintained in:
    \usr\sap\<SID>\SYS\global\xi\directory_server\javaws\directory
    I am having problems with my XI upgrade to SP4, and it is probably not signing the jars.
    Do you know why this may be happening ...
    thanks,
    Manish

  • Problem with CORBA application deployed using Java Web Start 1_6_0.

    Java Web Start fans and experts:
    We have been using Java Web Start to deploy the client side of a CORBA-based application since the inception of Java Web Start ... including Java Web Start 1.0 right up through the present.
    With Java Web Start 1_6_0, we see evidence that Web Start is "tinkering with" the IOR that CORBA uses to communicate. In all previous versions of Java Web Start, independent of the JRE which the application uses, the stringified IOR have been the same size regardless of whether the application is deployed locally or via Java Web Start. With Java Web Start 1_6_0, the stringified IOR is much longer than the "real" IOR (again, regardless of the JRE used by the application itself). To me this smells like a bug in Java Web Start 1_6_0. Has anyone else observed this behavior?
    Here are some specifics .... I've run the same client application with various JREs both with and without Java Web Start as the deployment mechanism. The application was compiled and runs against servers that are running JDK 1_5_0_09.
    Here is the summary of my results from a Linux box running various JREs, various versions of Java Web Start, and also running as a non-JWS deployed application. I've listed the length of the stringified IOR in each case.
    JRE 1.5.0 non-JWS client: stringified IOR length = 344
    JRE 1.6.0 non-JWS client: stringified IOR length = 344 ... this, I think, excludes the JRE as the cause of these problems.
    Java WS 1.5.0, JRE 1.5.0 JWS client: stringified IOR length = 344
    Java WS 1.5.0, JRE 1.6.0 JWS client: stringified IOR length = 344
    Java WS 1.6.0, JRE 1.6.0 JWS client: stringified IOR length = 1568
    Java WS 1.6.0, JRE 1.5.0 JWS cleint: stringified IOR length = 1568
    In all cases, the stringified IOR length is determined by the service receiving the message and is always running JRE 1_5_9_09 and is
    always the same 344 characters in length UNLESS it was deployed
    using Java Web Start 1_6_0, in which case it in nearly 5 times as big!
    To me, it sure looks as if there is a problem with Java Web Start 1_6_0 to be adding so much to the stringified IOR. Note: it's hard to tell how different the underlying IOR is in the JWS 1_6_0 case because, unlike most other ORBs, the Sun ORB doesn't have a tool to extract the IOR into a human readable structure. However, I can think of no good reason why the identical application deployed using Java Web Start 1_6_0 should have a stringified IOR length that is different than that of the same application deployed in non-JWS form or should differ from the behavior seen in all previous releases of Java Web Start.
    Any clues or suggestions? Has anyone else observed this behavior?
    Thanks,
    John

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Java Web Start and the Mac OS

    I am new to the Mac OS and to Java Web Start. Using Java Web Start to launch a Java application on the Mac is discussed in several of the posts here. However, in the requirement section of the Overview for Java Web Start says
    "Requirements
    Desktop/Client requirements:
    The client machine requires support for the Java Runtime Environment (JRE), version 1.3 or later. Java Web Start is available for Windows 98/NT/2000/ME/XP, the Solaris Operating Environment, and Linux."
    As you can see, Mac OS is not mentioned. Yet Java Web Start exists on my Mac. Am I looking at the wrong documentation? The document is located at
    http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/overview.html#jws
    I don't know how to use Java Web Start . I don't even know where to look for help. If anyone would care to offer some help it would be greatly appreciated.

    You are looking in the right place alright. The reason OSX is not mentioned in the document (or, by extend, any of the official sun documents) is that sun does not (may not?) provide an official java release on OSX. Java on OSX is implemented by Apple (and much to the dismay of both users and developers, they are not doing a very good job). Still, Apple's java usually fulfills the same specifications as the official sun java, so you can take any one of sun's documents on webstart or any other technology and it will usually work on the Mac. You just can't expect sun to assure that a technology will work on a platform they have no control over...

  • Java Web Start and DOM

    My app uses DOM to parse an XML file. It works fine but when I launch it through Java Web Start it cannot even create a DocumentBuilderFactory object.
    Does anyone know what's wrong. I'm new to Java Web Start.
    Thanks for your help.

    Hey cometx,
    What error do you get ?
    Did you deploy your xml parser along with the app as a resource ?
    the following link may help you out ...
    http://www.vamphq.com/jwsfaq.html#xmlparser

  • Java web start + DB connection

    Hi,
    I am using java web start to launch swing application. Swing application will connect with MySQL DB. I have deployed war file into global machine.
    I can access the basic web page to launch application. After downloading the application, I can't access DB when try to login the system.WAR file and MySQL DB located in global machine.
    Please help me How to connect DB when using Java web start.
    Thanks in advance

    Is the JWS app. going to be delivered by the same host as where the DB resides? Yes
    I got communication link failure exception. Now i understand my methodology is simply wrong.
    My Method :
         public static Connection getConnection() throws Exception{
              Connection con = null;
              Class.forName("com.mysql.jdbc.Driver").newInstance();
               con=DriverManager.getConnection("jdbc:mysql://Global IP:3306/<dbname>,<username>,<password>);
              return con;
         {code}
    Please give me suggestion to connect global db from downloaded local Swing application.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How import policy file with Java Web Start

    hi everybody,
    I wrote an application launched by Java Web Start.
    This application encrypt data on the client side and POST them to the server.
    To encrypt I use JCE packages including sunjce_provider.jar, jce1_2_1.jar and
    local_policy.jar and US_export_policy.jar.
    local_policy.jar and US_export_policy.jar are not packages, each of them contains
    a policy file.
    When I test encryption on local no problem, but when I test with Java Web Start
    I've got this exception :
    java.lang.ExceptionInInitializerError:
    java.lang.SecurityException: Cannot set up certs for trusted CAs
    It's because the application launched by Java Web Start doesn't find local_policy.jar
    and US_export_policy.jar.
    There's a problem in my JNLP file :
    <jnlp spec="1.0+" href="http://myserver/sources/test.jnlp" codebase="http://myserver/sources">
         <information>
              <title>Java Web Start TEST</title>
              <vendor>NLE Intech</vendor>
              <description>cryptage then upload</description>
         </information>
         <security>
              <all-permissions/>
         </security>
         <resources>
              <j2se version="1.3" />
              <jar href="sunjce_provider.jar" />
              <jar href="jce1_2_1.jar" />
              <jar href="local_policy.jar" />
              <jar href="US_export_policy.jar" />
         </resources>
         <application-desc main-class="HelloWorldSwing" >
              <argument>c:\myfiletoencrypt</argument>
         </application-desc>
    </jnlp>
    thank you for your answer

    Hi Nicolas,
    If you migrate to JDK1.4 and use the signed Bouncy JAR, you could resolve the problem,
    if you don't want to use unlimited cryptography.
    See my posting on your other question.
    Agnes
    PS. There is a mistake in my other reply, the "local_policy.jar" and the other files must have
    to go into JRE/LIB/SECURITY directory

  • Problems to download with java web start

    Hola to all.
    I have the following problem. My application not discharge of the server when you exist a new version. The application runs off line but when exist a new version must download the last version, is the idea.
    If I execute for first time the "launch.jnlp" file ( that is to say in the client equipment never execute the application ) java web start connects and download correctly the application and starts application, and creates the icon on the screen. But if the application already existed java web start executes the application that there is in the client and not download the new version of the server. I think, that problem its happen because the time waiting the response of the server is too long, and executes the local application. To resolve this, i execute the application on java control panel in online mode, and this work ok, because find a new version.
    I leave you the launch.jnlp file.
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://XXX/sis/elpaso/" href="launch.jnlp">
        <information>
            <title>El Paso</title>
            <vendor>XXX</vendor>
            <homepage href="http://XXX/"/>
            <description>Sistema comercial de la empresa "El Paso".</description>
            <description kind="short">El Paso</description>
            <icon href="elpaso32.png" kind="default"/>
            <offline-allowed/>
            <shortcut online="false">
                             <desktop/>
                             <menu submenu="Sistemas XXX\El Paso"/>
                        </shortcut>
                        <related-content href="setup.jnlp">
                             <title>Configurar El Paso</title>
                             <description>Configuracion del sistema comercial de la empresa "El Paso"</description>
                             <icon href="elpasoSetup32.png" kind="default"/>
                             <offline-allowed/>
                             <shortcut online="false">
                                  <desktop/>
                                  <menu submenu="Sistemas XXX\El Paso"/>
                             </shortcut>
                        </related-content>
        </information>
        <security>
            <all-permissions/>
        </security>
        <update check="timeout" policy="always"/>
        <resources>
            <j2se version="1.6+"/>
            <extension name="jnlpcomponent1" href="jnlpcomponent1.jnlp"/>
        </resources>
        <application-desc main-class="elPaso.Main">
        </application-desc>
    </jnlp>

    The launch file seems invalid. Try checking it, and the entire launch, using JaNeLA.

  • First Java Web Start download doesn't update, second time does

    I'm using Java Web Start with our application. This release we upgraded to java 1.5 from 1.4. Now I have a few PCs, not all, that do not get updates the first time they launch the application. But when the launch it the second time they get the download. The jnlp didn't change between releases? Any suggestions? I'm not using lazy loads, in fact I'm using the default which should be eager.
    Thanks.

    Hi,
    I have similar situation. At the machine is installed Java 1.6 u1. Setup first version of application. After deploy second version of application and run application start update, but console show that application use old packages. At the same time main package is uploaded? I'd try to use <update check="always"?> but there are no positive result.
    At the same time then installed Java 1.6 u2, all works fine.
    Any suggestion, how it could be resolved, without Java 1.6 u2 installation?
    Thans, Kirll.

  • Screen Saver crashing my Java Web Start app

    I've written a Java Web Start time tracker application that all employees run from the time they start work until they leave at the end of the day. The only problem is that there are a couple of people who from time to time find that the application has crashed when they unlock their Windows screen saver. The application window continues to show the screen saver image and the title bar says "Not Responding". In an attempt to get some clues, I had one person keep the java console running - but nothing new appears in the console.
    I've personally tried crashing the app by using screen savers, but I cannot duplicate the problem. I've also tried letting my computer go into standby mode and I've let it hibernate. But every time, the application continues running as soon as I log back in.
    Any ideas as to why the screen saver could trigger a problem like this for some users?

    >
    I've written a Java Web Start ... . The only problem is that there are a couple of people who from time to time find that the application has crashed when they unlock their Windows screen saver. >What screensaver(s)? Some important distinctions might be
    - Windows standard savers (the savers supplied with the OS, if so, do they all use Open-GL or all use...?)
    - Windows compatible, 3rd party savers.
    - Saverbeans screensavers (Java based). E.G. <https://screensavers.dev.java.net/>

  • Java Web Start and J2EE

    Can I use Java Web Start to launch an Application Client that interacts (through JBoss and the Enterprise Java Beans) with an Oracle database located in a remote server? Or the application must be pure J2SE, without implementing remote Enterprise Java Beans interfaces?

    No, you can do exactly what you want to do, i've done exactly the same thing with a web start client, talking to EJB's running on the Oracle 9i AS server talking to an Oracle database. It's all good fun.

  • Java web start and .JRXML

    Hello everyone.
    I have an application form calling from browsers from client side using Java web start (JNLP) and applications has one report (.jrxml file) which is placed at server. I could start application form from client browsers but at the time of executing report it does not respond. There is no message , I think does not find path of where .jrxml file is placed. Can any one help me. Pl. note that reports get executed when users presses button on form.
    With thanks !
    prashant

    bump

Maybe you are looking for

  • Error message in reports6.0

    I installed Forms and Reports 6.0 runtime on the end-user's desktop. When the user tried to run the report an error message was generated which looked like: REP- 0108: File "rwbdexpq" not found. The alert has an OK and Help buttons. When the user cli

  • Machine hangs every 30 minutes like clockwork

    Within the last couple of weeks, my system has started to hang like clockwork every 30 min.  No idea what caused it and don't remember anything in particular installed or done during that period.  Unfortunately, when it hangs - there is nothing kicke

  • Can't access preferences in Garageband

    I am trying to set up my new imac with my new Firebox. I can't however, access the preferences in Gargeband-it is greyed out on the menu. Help!

  • TABLES parameter obsolete, how to solve this?

    Hi, I am trying to port a function module from a CRM 4 to a CRM 5 system, and the original module had a TABLES parameter. Unfortunately, the CRM 5 system will not allow me to add a TABLES parameter (they have become obsolete). The problem remains tha

  • PRODUCTION FLOW FOR MANUFACTURING COMPANY

    Hi All experts,could you please share with me the production flow from raw material to profitability?I am 1st level support in my company and would like to know more about the business process for a production company.Please help and thanks in advanc