Enterprise app client and Java web start

View: New views
4 Messages — Rating Filter:   Alert me  

Enterprise app client and Java web start

by dbritton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I have an Enterprise Application Client that works with Java web start.

The client is running on glassfish v2 and being developed with Netbeand IDE 6.7.  When I add the use of an additional jar in the app, I cannot start it via Java web start.  I get NoClassDefFoundError.  I cannot figure how to get access to the jnlp file to add the additional jar file.  How do I add the new dependant jar file to the Enterprise Application Client?



I read that I might need glassfish v3 to get access to the jnlp file.  For some reason the Application Properties for my Enterprise Application Client only lists "GlassFish V2" for server selections.  Interesting, I have a Web Project that allows selection of all three applicaiton servers I have installed.  How can I change an Enterprise Applicaiton Client from glassfish v2 to v3?



Thanks in advance,

David





Enterprise app client, additional jars and Java web start: ClassNotFoundException

by dbritton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am I barking up the wrong tree here !?!



Do I need to abort using an Enterprise Application Client and go to a

simple java application to get Java Web Start to work?





Re: Enterprise app client and Java web start

by Tim Quinn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dbritton wrote:

> Hi
>
> I have an Enterprise Application Client that works with Java web start.
>
> The client is running on glassfish v2 and being developed with Netbeand IDE 6.7.  When I add the use of an additional jar in the app, I cannot start it via Java web start.  I get NoClassDefFoundError.  I cannot figure how to get access to the jnlp file to add the additional jar file.  How do I add the new dependant jar file to the Enterprise Application Client?
>
>
>
> I read that I might need glassfish v3 to get access to the jnlp file.  For some reason the Application Properties for my Enterprise Application Client only lists "GlassFish V2" for server selections.  Interesting, I have a Web Project that allows selection of all three applicaiton servers I have installed.  How can I change an Enterprise Applicaiton Client from glassfish v2 to v3?
>
>
>
> Thanks in advance,
>
> David
>
>
>
>
>  


Re: Enterprise app client and Java web start

by Tim Quinn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, David.

dbritton wrote:
> Hi
>
> I have an Enterprise Application Client that works with Java web start.
>
> The client is running on glassfish v2 and being developed with Netbeand IDE 6.7.  When I add the use of an additional jar in the app, I cannot start it via Java web start.  I get NoClassDefFoundError.  I cannot figure how to get access to the jnlp file to add the additional jar file.  How do I add the new dependant jar file to the Enterprise Application Client?
>  
As you mentioned, GlassFish v2 does not provide access to the generated
JNLP for customization.  But for this use case you should not need it.  
If you build an EAR that contains the app client and also the library
JAR and you package the library JAR in the EAR's /lib directory (or some
other directory if you specify the <library-directory> setting in
application.xml) then GlassFish should make that JAR available
automatically to the app client, even when launched using Java Web Start.

 From what you described it sounds as if adjusting the packaging might
resolve this.

>
>
> I read that I might need glassfish v3 to get access to the jnlp file.  
Support for influencing the generated JNLP will probably not be present
until v3.1, although it's possible that an "early access" update between
v3 and v3.1 could contain an early look at it.  We just had too much on
our list to get to everything.

- Tim

> For some reason the Application Properties for my Enterprise Application Client only lists "GlassFish V2" for server selections.  Interesting, I have a Web Project that allows selection of all three applicaiton servers I have installed.  How can I change an Enterprise Applicaiton Client from glassfish v2 to v3?
>
>
>
> Thanks in advance,
>
> David
>
>
>
>
>