users@glassfish.java.net

Re: Eclipse plug-in - jar does not ends up in the lib dir when using "In Lib Dir" option

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Tue, 08 Dec 2009 10:39:39 -0800

Vincent Deschênes wrote:
>
> I am using the "In Lib Dir" option in my ear configuration for some
> projects.
>
> When I export my application to an ear my project jar are created in
> the lib dir but when I deploy using the plug-in they are not created in
>
> C:\glassfishv3\glassfish\domains\domain1\eclipseApps\application_name\lib.
>
>
>
>
> And I get some NoClassDefFoundError at runtime.
>
>
>
> If I manually create the jar and copy it in
> C:\glassfishv3\glassfish\domains\domain1\eclipseApps\application_name\lib
> I have no runtime problem.
>
>
>
> I have also noticed that folder like this get created :
>
>
>
> C:\glassfishv3\glassfish\domains\domain1\eclipseApps\project_name.jar\
>
>
>
>
> Is this a bug or am I doing something wrong ?
>
Not really...If the lib can be deployed as an exploded directory, then
this is what is done: the dir name that contains the exploded lib or jar
is the name of this jar.
Can you attach a sample of your issue?
Ludo
>
>
>
>
>
> Thanks.
>
>
>
> Vincent Deschenes
>