Note that there are some explanatory texts on larger screens.

plurals
  1. POChanging JAR files in ColdFusion WEB-INF lib
    text
    copied!<p><strong>Context</strong><br/></p> <p>I'm working on a project where we use <a href="http://jung.sourceforge.net" rel="nofollow">JUNG libraries</a>. My custom java code and the Jung libraries are all placed under the wwwroot/WEB-INF/lib. </p> <p>Note that, Certain classes of JUNG depend on Apache commons-collections.jar which is also present in the same folder (given by default by CF).</p> <p><strong>Problem</strong><br/></p> <p>We are in plan to move from CF7 to CF10, so, I'm doing a pilot testing on all the code in the project and found that certain code (that uses the JUNG) are failing with a 'class not found' exception.</p> <p>On debug and checking the methods in the <em>commons-collections-2.1.jar</em> given in CF 10, I found that its different from the one present in CF 7. If I update the JAR to the latest commons-collections-3.2.1 version, the code works fine as it found all those classes needed.</p> <p>I can change my code base to suit the default <em>commons-collections-2.1.jar</em>, but that would result in atleast 2-3 months of dev-test cycle. I want to take it as last option and better avoid it if at all possible.</p> <p>Now, my questions are - </p> <ol> <li>What would be the problem if I change(update) the 2.1 with 3.2.1?</li> <li>What could be the parts of core CF that uses this JAR ?</li> <li>Why does CF uses this outdated 2.1 (i feel so) JAR version ?</li> </ol> <p><strong>Home work I did</strong><br/></p> <ul> <li><p><strong>Testing</strong> : For not effecting the rest of applications, I have created a separate instance, changed the JAR to the latest 3.2.1, hosted my application on it and done some testing. Everything seems fine as I have not encountered any problems. But, I worry that there may be areas in CF that depends on this JAR and might break.</p></li> <li><p><strong>cfusion\lib</strong> : I have found that the commons-collections-3.2.1 already exists in the main lib (cfusion\lib) folder. So, may be, changing the JAR in the WEB-INF/lib does not make any difference.</p></li> <li><p><strong>cfusion\wwwroot\WEB-INF\lib</strong> : I have read that any JAR files placed in this folder are used for the applications only and not by the CF itself. I may be wrong or completely misunderstood the meaning. Correct Me!</p></li> </ul> <p>Answers to this Q would help to my understanding of CF more as well as solve the problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload