How load new .jar libraries?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How load new .jar libraries?

MarioF
Hi all,

In my project I need that ofbiz load some new .jar libraries. If I copy all of this .jar libraries in one build/lib directory the project works fine, but I think that it's better to have all of this libraries in a separate directory. How can I say to Ofbiz that it has to load the .jar files in an specific directory?

Thanks in advance,
Mario.
Reply | Threaded
Open this post in threaded view
|

Re: How load new .jar libraries?

Mridul Pathak-2
A "lib" directory (part of standard directory structure) inside any
component is meant for adding external jars.  Refer framework components,
applications/accounting, applications/content.

--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[hidden email]
-------------------------------------------------
direct: +91 - 942.592.6892

On Thu, Nov 5, 2009 at 2:38 PM, MarioF <[hidden email]> wrote:

>
> Hi all,
>
> In my project I need that ofbiz load some new .jar libraries. If I copy all
> of this .jar libraries in one build/lib directory the project works fine,
> but I think that it's better to have all of this libraries in a separate
> directory. How can I say to Ofbiz that it has to load the .jar files in an
> specific directory?
>
> Thanks in advance,
> Mario.
> --
> View this message in context:
> http://n4.nabble.com/How-load-new-jar-libraries-tp489737p489737.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: How load new .jar libraries?

MarioF
Thanks Mridul. Does that works in the hot-deploy directory? If I move all the libraries to a lib directory inside hot-deploy/myStore/lib Ofbiz doesn't find the classes, but if I have the .jar files in hot-deploy/mystore/build/lib all works fine.




Mridul Pathak-2 wrote
A "lib" directory (part of standard directory structure) inside any
component is meant for adding external jars.  Refer framework components,
applications/accounting, applications/content.

--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
mridul.pathak@hotwaxmedia.com
-------------------------------------------------
direct: +91 - 942.592.6892

On Thu, Nov 5, 2009 at 2:38 PM, MarioF <oceanoartico@gmail.com> wrote:

>
> Hi all,
>
> In my project I need that ofbiz load some new .jar libraries. If I copy all
> of this .jar libraries in one build/lib directory the project works fine,
> but I think that it's better to have all of this libraries in a separate
> directory. How can I say to Ofbiz that it has to load the .jar files in an
> specific directory?
>
> Thanks in advance,
> Mario.
> --
> View this message in context:
> http://n4.nabble.com/How-load-new-jar-libraries-tp489737p489737.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: How load new .jar libraries?

Matthieu Bollot-4
Le jeudi 05 novembre 2009 à 01:22 -0800, MarioF a écrit :
> Thanks Mridul. Does that works in the hot-deploy directory? If I move all the
> libraries to a lib directory inside hot-deploy/myStore/lib Ofbiz doesn't
> find the classes, but if I have the .jar files in
> hot-deploy/mystore/build/lib all works fine.

I think that what you are looking for is in ofbiz-component.xml :

<!-- load single or multiple external libraries -->
    <classpath type="jar" location="lib/*"/>


Reply | Threaded
Open this post in threaded view
|

Re: How load new .jar libraries?

MarioF
Thanks, that was the problem ;) Now works fine.


Matthieu Bollot-4 wrote
Le jeudi 05 novembre 2009 à 01:22 -0800, MarioF a écrit :
> Thanks Mridul. Does that works in the hot-deploy directory? If I move all the
> libraries to a lib directory inside hot-deploy/myStore/lib Ofbiz doesn't
> find the classes, but if I have the .jar files in
> hot-deploy/mystore/build/lib all works fine.

I think that what you are looking for is in ofbiz-component.xml :


    <classpath type="jar" location="lib/*"/>