<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Is there a Spring dependency on Commons Collections?</title>
	<atom:link href="http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/feed/" rel="self" type="application/rss+xml" />
	<link>http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/</link>
	<description>random crap from the mouth of erik weibust</description>
	<pubDate>Tue, 06 Jan 2009 08:30:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Dhivya vijayakumar</title>
		<link>http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3501</link>
		<dc:creator>Dhivya vijayakumar</dc:creator>
		<pubDate>Wed, 23 Apr 2008 05:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3501</guid>
		<description>Hi,

I am using spring 1.2.6 for our application, i am getting the following exception while retriving jsp page using java 1.6
 "java.lang.ClassCastException: org.apache.commons.collections.map.LinkedMap cannot be cast to java.util.HashMap" 

I am using HashMap in JSP and in java class.same cade was working fine with java 5 when we used java 6 we got ClassCastException.

can any one help why it worked with java 5 and not working with java 6.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am using spring 1.2.6 for our application, i am getting the following exception while retriving jsp page using java 1.6<br />
 &#8220;java.lang.ClassCastException: org.apache.commons.collections.map.LinkedMap cannot be cast to java.util.HashMap&#8221; </p>
<p>I am using HashMap in JSP and in java class.same cade was working fine with java 5 when we used java 6 we got ClassCastException.</p>
<p>can any one help why it worked with java 5 and not working with java 6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Weibust</title>
		<link>http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3317</link>
		<dc:creator>Erik Weibust</dc:creator>
		<pubDate>Wed, 10 Oct 2007 22:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3317</guid>
		<description>Thanks for the comment Rick...  The DEBUG message was fairly clear that things were ok, but the fact that I saw the ClassNotFoundException got me worried.

I don't want to go as far as raising a JIRA task but maybe I'll just post something to the Spring Forums.

Thanks again...</description>
		<content:encoded><![CDATA[<p>Thanks for the comment Rick&#8230;  The DEBUG message was fairly clear that things were ok, but the fact that I saw the ClassNotFoundException got me worried.</p>
<p>I don&#8217;t want to go as far as raising a JIRA task but maybe I&#8217;ll just post something to the Spring Forums.</p>
<p>Thanks again&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3316</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Wed, 10 Oct 2007 09:13:35 +0000</pubDate>
		<guid isPermaLink="false">http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3316</guid>
		<description>Hi Erik

Spring does not have a hard dependency on the commons collections classes. What you are seeing is just DEBUG level messages... if you have a look at the source code for the CollectionFactory class (which calls into the ClassUtils class), you will see that Spring attempts to use the 'best' Collection implementation that it can find based on the JVM version and what is available on the classpath.

http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/core/CollectionFactory.html

In short, you can safely ignore these DEBUG messages. Alternatively, you can raise a JIRA issue... historically Juergen has been quick to tone down Spring's sometimes excessive logging in response to such issues being raised.

Cheers
Rick</description>
		<content:encoded><![CDATA[<p>Hi Erik</p>
<p>Spring does not have a hard dependency on the commons collections classes. What you are seeing is just DEBUG level messages&#8230; if you have a look at the source code for the CollectionFactory class (which calls into the ClassUtils class), you will see that Spring attempts to use the &#8216;best&#8217; Collection implementation that it can find based on the JVM version and what is available on the classpath.</p>
<p><a href="http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/core/CollectionFactory.html" rel="nofollow">http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/core/CollectionFactory.html</a></p>
<p>In short, you can safely ignore these DEBUG messages. Alternatively, you can raise a JIRA issue&#8230; historically Juergen has been quick to tone down Spring&#8217;s sometimes excessive logging in response to such issues being raised.</p>
<p>Cheers<br />
Rick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Carr</title>
		<link>http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3314</link>
		<dc:creator>James Carr</dc:creator>
		<pubDate>Fri, 05 Oct 2007 04:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://erik.weibust.net/2007/09/21/is-there-a-spring-dependency-on-commons-collections/#comment-3314</guid>
		<description>I can't say for sure... but from my experience I've only had a need for classes in the package edu.emory.mathcs.backport.java.util.concurrent when using JRuby from Spring... so my guess it is a dependency JRuby requires on that part, not Spring.

As for commons-collections, no clue. I really wouldn't be surprised though. ;)

Thanks,
James</description>
		<content:encoded><![CDATA[<p>I can&#8217;t say for sure&#8230; but from my experience I&#8217;ve only had a need for classes in the package edu.emory.mathcs.backport.java.util.concurrent when using JRuby from Spring&#8230; so my guess it is a dependency JRuby requires on that part, not Spring.</p>
<p>As for commons-collections, no clue. I really wouldn&#8217;t be surprised though. <img src='http://erik.weibust.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks,<br />
James</p>
]]></content:encoded>
	</item>
</channel>
</rss>
