I think it would be a good idea to upgrade these jar files to more recent releases, assuming that testing shows no adverse effects on the modules that depend on them.  As these are in very low-level modules, there may be many different modules that depend on them, so we would need to test several different suites, and there may need to be some refactoring if any of these libraries has modified their APIs.  Do you know if the APIs have changed, or were they only extended in backwards-compatible ways?<div>
<br></div><div>Although two of these are used extensively (log4j and xerces) and so rightfully belong in common, the httpclient jar file might be more restricted in which modules use it.  Its probably worth looking at the dependency tree and seeing which actors use that jar file, and consider splitting those actors out into their own module(s) to reduce these types of conflicts.</div>
<div><br></div><div>So, if you want to propose particular upgrades for the jars in common and actors modules, please try replacing them and running the tests and we'll try to fit the changes into an upcoming release -- file an enhancement request with the results of your testing and we can take it from there.  In any case, as David said, you may be able to override for your module by using your own classloader to get started over the shorter term.</div>
<div><br></div><div>Matt</div><div><br></div><div>PS This kind of development discussion is more appropriate for the kepler-dev list -- kepler-users is more about using the system, rather than developing extensions to it, although the line between the two is very grey.<br>
<br><div class="gmail_quote">On Mon, Aug 9, 2010 at 1:01 PM, David Welker <span dir="ltr"><<a href="mailto:david.v.welker@gmail.com">david.v.welker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Tomasz,<br><br>This issue can be a little tricky. <br><br>The first thing to note is that you can override other jars. If you put different jars in your module, they will be used by your module AND all of Kepler instead of the jars that are there. The problem with this arises in situations where your jars are not compatible with Kepler. Then things can break. But this is the first approach to try. Just put your jars in your own module and see if things work. It sounds like you have already done this.<br>

<br>The second thing to note is that it is possible to use multiple class loaders. That is, you can use a separate class loader to load different jars for your module than for the rest of Kepler. Documentation about how to do this is included in the build system documentation. This might work. The thing is, I have had problems with this recently when someone was trying to use a different class loader for Log4j. So, this is not guaranteed to work and this feature has some bugs that cause it to not work at least some of the time. Also, of course your IDE is probably not going to know about the separate class loader, and your IDE might get confused. <br>

<br>The third thing to note is that it might be possible to talk to the Kepler leadership team and get these jars upgraded in Kepler. This would be a very reasonable request to make if neither of the above solutions work for you.<br>

<br>-David<br><br><div class="gmail_quote">On Fri, Aug 6, 2010 at 9:11 AM, Tomasz Żok <span dir="ltr"><<a href="mailto:tzok@man.poznan.pl" target="_blank">tzok@man.poznan.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

Hi,<br>
<br>
I am developing a new module which uses several external .jar libraries. These are mostly well known and widely used libraries like log4j, etc. However I found out that there is a conflict in library versions that disables my module totally. I pinpointed the issue to the minimal subset of conflicting jars:<br>


actors/lib/jar/commons-httpclient-3.0.1.jar<br>
common/lib/jar/log4j-1.2.8.jar<br>
common/lib/jar/sms/xercesImpl.jar<br>
<br>
My module uses:<br>
commons-httpclient-3.1.jar<br>
log4j-1.2.16.jar<br>
xercesImpl-2.7.1.jar<br>
<br>
My libraries are in the classpath when I run Kepler, but they are not loaded, because the three conflicting ones precede them. What should I do in such situation? Should I somehow formally ask Kepler devs to update theirs or should I do anything with my libraries?<br>


<br>
Best regards,<br>
Tomek<br>
<br>
<br>
-- <br>
Tomasz Zok<br>
Poznan Supercomputing and Networking Center<br>
ul. Noskowskiego 10, 61-704 Poznan, POLAND<br>
<a href="http://www.man.poznan.pl" target="_blank">http://www.man.poznan.pl</a><br>
_______________________________________________<br>
Kepler-users mailing list<br>
<a href="mailto:Kepler-users@kepler-project.org" target="_blank">Kepler-users@kepler-project.org</a><br>
<a href="http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users" target="_blank">http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a><br>
</blockquote></div><br>
<br>_______________________________________________<br>
Kepler-users mailing list<br>
<a href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a><br>
<a href="http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users" target="_blank">http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a><br>
<br></blockquote></div><br></div>