Meaningless Drivel is fun!*
The moose likes JNLP and Web Start and the fly likes JNLP signed jars second jnlp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JNLP signed jars second jnlp" Watch "JNLP signed jars second jnlp" New topic
Author

JNLP signed jars second jnlp

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hello
Two related questions if I may:
1. Using the latest Java Plugin 1.6.10+ I am able to create a second jnlp file with the component-desc for the third party jars, but it fails on loading the <jar href="jar00.jar,jar01.jar"/> saying "unable to load resource http://localhost:8080/testJAWS/jar00.jar,jar01.jar

What is the proper syntax for the loading multiple jars in a second jnlp?

2. When this is working my true goal is to access this applet with JScript from my html pages. Is/how this possible?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Chris Pat wrote:What is the proper syntax for the loading multiple jars in a second jnlp?


Without searching to find out what a "second" JNLP is, my guess would be it's the same as the syntax for loading jars in a "first" JNLP. And when I read a bit of documentation it says about the <jar> element:

A jar element specifies a JAR file that is part of the application's classpath.


Your <jar> element doesn't specify a JAR file. So I suggest you change it so that it does. If you need more than one <jar> element, go ahead and use more than one.

As for JScript, I would doubt it. Does anybody even use JScript any more?
Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hi Paul, et. al.
I just discovered my own answer. The syntax for the second jnlp is
...
<component-desc/>
<resources>
<jar href="jar00.jar"/>
<jar href="jar01.jar"/>
...

I actually intended Javascript, not JScript. That question still holds, is it possible to access a jnlp implemented applet with Javascript? The difficulty is I do it now in a frame that nicely caches the applet and has a very defined nomenclature. I want to change one of the jsp in the frame and it doesnt, agony of weeks, so I need another approach. Any enlightenment welcomed.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Chris Pat wrote:That question still holds, is it possible to access a jnlp implemented applet with Javascript?


You can certainly access applets from Javascript. I don't know if it makes a different if the applet is loaded via JNLP; you could give it a try and see what happens. (Note that loading jars wouldn't be involved in such a test, you would just write a small applet with one method you planned to access from Javascript. Perhaps you even already have such working code.)
Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hi Paul
Thank you. I am still unclear on the nomenclature. Now I can access it with parent.[appletFrameName].document.[appletName].method. Where do I "pickup" the name of the applet that was previously in the non-changing frame of the frameset? It is now "somewhere" implemented by JWS. I have been searching and have yet to come up with an answer in parallel. Now that I have the two jnlp working that is the next milestone. Ideas?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I'm sorry, I'm completely lost.

What's the "nonchanging frame of the frameset"? And I missed asking why there are now two JNLP files instead of only one.
Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hi Paul
The two jnlps are necessary for the legacy signed jars that the applet uses. The previous implementation was putting the applet in one frame and the changing client view in another frame using JSTL. This work well for the default state, cached the applet but when I tried to change the client view in a state other than the default it never changed. Even when I re-implemented it with a proper working tiles-defs. The frame code is below. It was inscrutable to me why it didnt change and after a frighteningly long time I gave up and looked for another implementation that would allow me to keep the applet cached(or maintained by JWS) and change the client view but have some calling convention that allowed the client view to call methods in the JWS maintained applet. Sorry I was not detailed enough, and may still not be. Ideas?

<html>
<head>
<title>
${sessionScope.fb00.frameTitle}
</title>
</head>
<frameset rows="85%,15%" id="enclosingFrame" title="totalFrame">
<html:frame page="${sessionScope.fb00.framesetPage}" frameName="transFrame" title="transFrameTitle" marginheight="0" marginwidth="0" frameborder="0"/>
<html:frame page="/ccAuth13_applet.jsp" frameName="appletFrame" title="appletFrameTitle" marginheight="0" marginwidth="0" frameborder="0"/>
</frameset>
</html>
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You seem to have a question about JNLP, but it's all obscured with layers of frames and Tiles and JSTL and who knows what else. Certainly Tiles and JSTL are irrelevant to the question and quite possibly the frames are a non-issue too. I would recommend setting that all aside and getting your JNLP questions answered with a plain HTML page.
 
 
subject: JNLP signed jars second jnlp
 
Similar Threads
My jnlp didn't work with multipl jars in the ressource section
running Eclipse RCP application from JWS: jws starts, but closes immediatly
Get .jars that come with jnlp
JOGL Webstart
How to specify main class that resides in a ear