• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running Eclipse RCP application from JWS: jws starts, but closes immediatly

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when is start my eclipse RCP application from webstart by running the JNPL file i get the following lines in the console and after that it shuts down...

JNLP JREDesc in Component ignored: null
JNLP JREDesc in Component ignored: null


complete console output pasted below

the product id is correct as configured in my product configuration file...

the only thing i did extra was comment out all jars that refer to WPF files because they keep crashing when installing my app, i read somewhere on the internet that that should be no problem to comment out those lines...

can anyone help?

my main jnlp file is attached to this message


Java Web Start 1.6.0_13
Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\bvanvelsen
----------------------------------------------------
c: clear console window
...
...
...
and so on...
----------------------------------------------------
JNLP JREDesc in Component ignored: null
JNLP JREDesc in Component ignored: null

jnlp.jpg
[Thumbnail for jnlp.jpg]
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably because of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6705941

You can copy paste the jnlp file contents (surrounded by code tags) instead of uploading a screenshot.
 
jan dressen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok, I can now download and "run" the application. that is, untill i run into this exception: java.lang.NoClassDefFoundError: antlr/CommonToken this comes from the antlr.jar and is located on the classpath of one of my eclipse plug-ins. this jar is also downloaded with webstart, so why cant it load the class?
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you defined it in your jnlp file? Something like
 
jan dressen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mmm, no, is that in the top-level jnlp? because the other ones are generated by eclipse... do you have an example of this somewhere on the net?

thank you for the help
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Top level? There should be one jnlp file.

Recommended reading http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#209
Check out the section "Can I rely on Class-Path in the manifest file?"
 
jan dressen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when I create the jars from my application then it creates a jar for each plug-in in my app. But on the classpath of some of those plug-ins there are references to other jars, and those jars cannot be found. so in an app with 10 plug ins I have 10 jars with an JNLP or each jar. and then there is one"root jnlp" that contains a reference to my product which i can use to start my application.
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jan dressen wrote:. so in an app with 10 plug ins I have 10 jars with an JNLP or each jar. and then there is one"root jnlp" that contains a reference to my product which i can use to start my application.


You should be having one jnlp file. In that file you can refer to the other 10 jars like I mentioned in my previous post.
 
jan dressen
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, it works now...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm having the exact same error/symptoms. As you stated in one of your posts, I have a JNLP file per JAR that was generated via Eclipse plus a top-level (root) JNLP included below. Could you provide details on the steps you took to resolve this?

?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://iss203707.issinc.com:9080/TnsClient" href="tnsclient.jnlp">
<information>
<title>TNS Client</title>
<vendor>ISSINC</vendor>
<description>TNS Client Application</description>
</information>
<security>
<all-permissions/>
</security>
<application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
<argument>-nosplash</argument>
</application-desc>
<resources>
<jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/>
<extension name="Wrapper feature" href="features/com.issinc.tnsClient_1.0.0.jnlp" />
<property name="osgi.instance.area" value="@user.home/Application Data/tns-client-rcp"/>
<property name="osgi.configuration.area" value="@user.home/Application Data/tns-client-rcp"/>
<property name="eclipse.application" value="com.issinc.tnsClient.core.application"/>
</resources>
<resources os="Windows">
<j2se version="1.5+" />
</resources>
</jnlp>

Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic