users@glassfish.java.net

Re: Utility JAR is shown as ApplicationClient

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Tue, 15 Apr 2008 09:23:45 -0500

Markus KARG wrote:
> Tim,
>
> thank you for your kind answer. As I wrote before, yes, it was my
> fault. I didn't specify an application.xml since I wanted to get rid
> of deployment descriptor. But I didn't check before whether those jars
> contain a Main-Class entry. Shame on me. You are right, Java EE 5 spec
> chapter EE.8.2.1 explains quite clearly that I must put all my utility
> libraries into the /lib folder unless I add an application.xml file
> that specifies another folder. Damned, why are you always right? ;-)
Ah, if only that were true!

Cheers.

- Tim
>
> Thanks a lot and have much fun!
> Markus
>
>
>
> glassfish_at_javadesktop.org schrieb:
>> Does your application.xml list the utility jar in a <java> element?
>> Or does the utility JAR's manifest identify a Main-Class?
>>
>> That's how you identify app clients. The <java> element does not
>> identify library JARs, and if you do not have a descriptor then
>> GlassFish needs to use what information it can to try to decide what
>> kind of module (if any) a JAR is.
>>
>> The spec explains this, and also says that you can place library JARs
>> in the /lib directory of your EAR or, if you want to use some other
>> location, you can specify it in the optional <library-directory>
>> element in the descriptor.
>>
>> Can you please check your descriptor and see if that is what's
>> happening?
>> - Tim
>> [Message sent by forum member 'tjquinn' (tjquinn)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=269047
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>