users@glassfish.java.net

Re: Deployment problem

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Nov 2007 10:48:50 PST

Hi.

You did not post your descriptors, but I suspect that you have entries like this:

<java>lib1.jar</java>
<java>lib2.jar</java>

(where the jar names are the ones listed in the warning).

As explained in the Java EE spec, the <java> element should [b]not [/b] identify library JARs; it identifies application clients. You can include library JARs in your app by simply packaging them in the /lib directory of your EAR. You can place them elsewhere in the EAR if you also set the <library-directory> element in the descriptor to define that location. The default is /lib.

Any JAR in /lib (or the alternate directory you specify) will automatically be available to all submodules of the EAR.

If you remove the <java> elements and package those JARs at /lib then GlassFish will not try to treat them as app clients and will make them available to the web app. That should help with both issues.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=245082