users@glassfish.java.net

Re: Problems using Java Web Start - Application Client - Libraries not found

From: Tim Quinn <tim.quinn_at_oracle.com>
Date: Wed, 26 Oct 2011 13:37:38 -0500

Can you share your EAR with me so I can try to reproduce this?

You can e-mail it to me privately.

- Tim

On Oct 26, 2011, at 1:02 PM, guru_gho_at_hotmail.com wrote:

> I am using Glassfish + Maven.
>
> I am generating an EAR with an application Client inside.
>
> The resulting ear has all dependent libraries in EAR's lib directory.
>
> When I try to launch the Java Web Start, it fails. The message is not
> too clear...
>
> Checking the server.log I can see the following error:
> [#|2011-10-25T19:34:46.196-0200|SEVERE|glassfish3.1.1|
> javax.enterprise.
> system.container.appclient.org.glassfish.appclient.server.core.jws|
> _Thr
> eadID=26;_ThreadName=Thread-2;|Adapter[/___JWSappclient/___app/
> EconoInf
> o-OCONSI-PovoadorEAR-0.1.1-SNAPSHOT]
> EconoInfo-OCONSI-PovoadorEAR-0.1.1-SNAPSHOTClient/lib/jaxb-
> impl-2.2.2.j
> ar
>
> I searched for EconoInfo-OCONSI-PovoadorEAR-0.1.1-SNAPSHOTClient.jar
> and found in it:
> domain1/generated/xml/EconoInfo-OCONSI-PovoadorEAR-0.1.1-SNAPSHOT/
> Econo
> Info-OCONSI-PovoadorEAR-0.1.1-SNAPSHOTClient.jar
>
> This JAR file just includes AppClientGroupFacade and Manifest file:
> META-INF/MANIFEST.MF
> org/glassfish/appclient/client/AppClientGroupFacade.class
>
> The original EAR (found in
> domain1/applications/EconoInfo-OCONSI-PovoadorEAR-0.1.1-SNAPSHOT)
> contains the correct dependency:
> domain1/applications/EconoInfo-OCONSI-PovoadorEAR-0.1.1-SNAPSHOT/lib/
> ja
> xb-impl-2.2.2.jar
>
> The META-INF/application.xml generated by Maven has the following
> content:
> <?xml version="1.0" encoding="UTF-8"?>
> <application xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
> <description>Módulo EAR do Povoador do OCONSI</description>
> <display-name>EconoInfo-OCONSI-PovoadorEAR</display-name>
> <module>
> <java>EconoInfo-ISEF-Testes-0.6.5-SNAPSHOT.jar</java>
> </module>
> <library-directory>lib</library-directory>
> </application>
>
> There isn't an application-client.xml inside Application Client jar.
>
> How may I correct this problem to make Glassfish generate
> domain1/generated/xml/EconoInfo-OCONSI-PovoadorEAR-0.1.1-SNAPSHOT/
> Econo
> Info-OCONSI-PovoadorEAR-0.1.1-SNAPSHOTClient.jar including the needed
> libraries?
>
>
> Best regards,
> Orair.