<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Let&#8217;s play with OSGi, Spring and Maven, part 1</title>
	<atom:link href="http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/</link>
	<description>Short remarks from Java world</description>
	<lastBuildDate>Sat, 04 Feb 2012 09:44:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Geir Pettersen</title>
		<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/comment-page-1/#comment-7630</link>
		<dc:creator>Geir Pettersen</dc:creator>
		<pubDate>Sat, 02 Apr 2011 09:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.krecan.net/?p=74#comment-7630</guid>
		<description>Trying again, escaping &lt; and &gt; :

		&lt;dependency&gt;
			&lt;groupId&gt;org.slf4j&lt;/groupId&gt;
			&lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
			&lt;version&gt;1.4.3&lt;/version&gt;
			&lt;scope&gt;test&lt;/scope&gt;
		&lt;/dependency&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;org.slf4j&lt;/groupId&gt;
			&lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
			&lt;version&gt;1.4.3&lt;/version&gt;
			&lt;scope&gt;test&lt;/scope&gt;
		&lt;/dependency&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;org.slf4j&lt;/groupId&gt;
			&lt;artifactId&gt;jcl104-over-slf4j&lt;/artifactId&gt;
			&lt;version&gt;1.4.3&lt;/version&gt;
			&lt;scope&gt;test&lt;/scope&gt;
		&lt;/dependency&gt;
		&lt;dependency&gt;
			&lt;groupId&gt;org.springframework.osgi&lt;/groupId&gt;
			&lt;artifactId&gt;aopalliance.osgi&lt;/artifactId&gt;
			&lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
			&lt;scope&gt;test&lt;/scope&gt;
		&lt;/dependency&gt;</description>
		<content:encoded><![CDATA[<p>Trying again, escaping &lt; and &gt; :</p>
<p>		&lt;dependency&gt;<br />
			&lt;groupId&gt;org.slf4j&lt;/groupId&gt;<br />
			&lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;<br />
			&lt;version&gt;1.4.3&lt;/version&gt;<br />
			&lt;scope&gt;test&lt;/scope&gt;<br />
		&lt;/dependency&gt;<br />
		&lt;dependency&gt;<br />
			&lt;groupId&gt;org.slf4j&lt;/groupId&gt;<br />
			&lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;<br />
			&lt;version&gt;1.4.3&lt;/version&gt;<br />
			&lt;scope&gt;test&lt;/scope&gt;<br />
		&lt;/dependency&gt;<br />
		&lt;dependency&gt;<br />
			&lt;groupId&gt;org.slf4j&lt;/groupId&gt;<br />
			&lt;artifactId&gt;jcl104-over-slf4j&lt;/artifactId&gt;<br />
			&lt;version&gt;1.4.3&lt;/version&gt;<br />
			&lt;scope&gt;test&lt;/scope&gt;<br />
		&lt;/dependency&gt;<br />
		&lt;dependency&gt;<br />
			&lt;groupId&gt;org.springframework.osgi&lt;/groupId&gt;<br />
			&lt;artifactId&gt;aopalliance.osgi&lt;/artifactId&gt;<br />
			&lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;<br />
			&lt;scope&gt;test&lt;/scope&gt;<br />
		&lt;/dependency&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geir Pettersen</title>
		<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/comment-page-1/#comment-7629</link>
		<dc:creator>Geir Pettersen</dc:creator>
		<pubDate>Sat, 02 Apr 2011 09:50:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.krecan.net/?p=74#comment-7629</guid>
		<description>I got it working, after adding the following dependencies to the integration test project:

		
			org.slf4j
			slf4j-api
			1.4.3
			test
		
		
			org.slf4j
			slf4j-log4j12
			1.4.3
			test
		
		
			org.slf4j
			jcl104-over-slf4j
			1.4.3
			test
		
		
			org.springframework.osgi
			aopalliance.osgi
			1.0-SNAPSHOT
			test
		

Was this just left out by accident or is there something else that is wrong when I need to add these dependencies....?

Thanks!</description>
		<content:encoded><![CDATA[<p>I got it working, after adding the following dependencies to the integration test project:</p>
<p>			org.slf4j<br />
			slf4j-api<br />
			1.4.3<br />
			test</p>
<p>			org.slf4j<br />
			slf4j-log4j12<br />
			1.4.3<br />
			test</p>
<p>			org.slf4j<br />
			jcl104-over-slf4j<br />
			1.4.3<br />
			test</p>
<p>			org.springframework.osgi<br />
			aopalliance.osgi<br />
			1.0-SNAPSHOT<br />
			test</p>
<p>Was this just left out by accident or is there something else that is wrong when I need to add these dependencies....?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geir Pettersen</title>
		<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/comment-page-1/#comment-7607</link>
		<dc:creator>Geir Pettersen</dc:creator>
		<pubDate>Sat, 02 Apr 2011 00:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.krecan.net/?p=74#comment-7607</guid>
		<description>Very nice tutorial. I am however having some problems with building it as some of the tests fails - example (output from maven):

Tests in error:
  testOSGiStartedOk(net.krecan.spring.osgi.dao.UiOsgiTest): C:\Users\Geir\.m2\repository\org\slf4j\slf4j-api\1.4.3\slf4j-api-1.4.3.jar

Similar error occurs when i try to run the test from within Eclipse.

I can&#039;t see slf4j-api-1.4.3.jar anywhere in the dependency hierarchy so I added it to the -it project hence it got loaded into my local repository. However, the test then failed on another library:

Tests in error:
  testOSGiStartedOk(net.krecan.spring.osgi.dao.UiOsgiTest): C:\Users\Geir\.m2\repository\org\springframework\osgi\aopalliance.osgi\1.0-SNAPSHOT\aopalliance.osgi
-1.0-SNAPSHOT.jar (The system cannot find the path specified)

I really don&#039;t understand why it&#039;s complaining about a missing library that is not found in the pom dependency hierarchy - the only logging library I find is log4j, no slf4j...

I&#039;ve tried using both Maven 2.2.1 and 3.0.3 as well as cleaning my local m2 repository.

Any thoughts?

Thank you!</description>
		<content:encoded><![CDATA[<p>Very nice tutorial. I am however having some problems with building it as some of the tests fails - example (output from maven):</p>
<p>Tests in error:<br />
  testOSGiStartedOk(net.krecan.spring.osgi.dao.UiOsgiTest): C:\Users\Geir\.m2\repository\org\slf4j\slf4j-api\1.4.3\slf4j-api-1.4.3.jar</p>
<p>Similar error occurs when i try to run the test from within Eclipse.</p>
<p>I can't see slf4j-api-1.4.3.jar anywhere in the dependency hierarchy so I added it to the -it project hence it got loaded into my local repository. However, the test then failed on another library:</p>
<p>Tests in error:<br />
  testOSGiStartedOk(net.krecan.spring.osgi.dao.UiOsgiTest): C:\Users\Geir\.m2\repository\org\springframework\osgi\aopalliance.osgi\1.0-SNAPSHOT\aopalliance.osgi<br />
-1.0-SNAPSHOT.jar (The system cannot find the path specified)</p>
<p>I really don't understand why it's complaining about a missing library that is not found in the pom dependency hierarchy - the only logging library I find is log4j, no slf4j...</p>
<p>I've tried using both Maven 2.2.1 and 3.0.3 as well as cleaning my local m2 repository.</p>
<p>Any thoughts?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting started with Maven2 &#171; Wordpressblog</title>
		<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/comment-page-1/#comment-1083</link>
		<dc:creator>Getting started with Maven2 &#171; Wordpressblog</dc:creator>
		<pubDate>Wed, 05 Aug 2009 10:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.krecan.net/?p=74#comment-1083</guid>
		<description>[...] &#x2022;Nice tutorial for Spring / OSGI and Maven2 &#x2022;Maven Getting started guided &#x2022;How can Maven benefit my development process &#x2022;The pain of switching from Ant to Maven (very good post, funny too read, thoughts of developer migrating  I am sure I will suffer the same) &#x2022;Maven2 Eclipse Plugin  &#x2022;Better builds with Maven (Free E-Book) [...]</description>
		<content:encoded><![CDATA[<p>[...] &#x2022;Nice tutorial for Spring / OSGI and Maven2 &#x2022;Maven Getting started guided &#x2022;How can Maven benefit my development process &#x2022;The pain of switching from Ant to Maven (very good post, funny too read, thoughts of developer migrating  I am sure I will suffer the same) &#x2022;Maven2 Eclipse Plugin  &#x2022;Better builds with Maven (Free E-Book) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Honza Novotný</title>
		<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/comment-page-1/#comment-482</link>
		<dc:creator>Honza Novotný</dc:creator>
		<pubDate>Fri, 30 May 2008 06:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.krecan.net/?p=74#comment-482</guid>
		<description>Thanks, that would be much interesting.</description>
		<content:encoded><![CDATA[<p>Thanks, that would be much interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukáš Křečan</title>
		<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/comment-page-1/#comment-481</link>
		<dc:creator>Lukáš Křečan</dc:creator>
		<pubDate>Fri, 30 May 2008 05:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.krecan.net/?p=74#comment-481</guid>
		<description>If you do not know, ask the machine. We can do a small experiment. I will try to write about it in part 3.</description>
		<content:encoded><![CDATA[<p>If you do not know, ask the machine. We can do a small experiment. I will try to write about it in part 3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Honza Novotný</title>
		<link>http://blog.krecan.net/2008/05/29/lets-play-with-osgi-spring-and-maven-part-1/comment-page-1/#comment-480</link>
		<dc:creator>Honza Novotný</dc:creator>
		<pubDate>Fri, 30 May 2008 04:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.krecan.net/?p=74#comment-480</guid>
		<description>You have my copliment ;-) . It&#039;s nice short and well understandable article.

I have been thinking about different thing since last CZJUG -  and that is, whether OSGI could help to minimize classloader leak problems in web application. From the speech of Michal Malohlava I assume that it does not.

OSGi is mostly about dynamic installing and uninstalling bundles - but when the bundle you are uninstalled haven&#039;t clear all its references and memory allocated for it could not be GCed, this principle goes in vain. And - leaking memory in web programming is SOOO easy. As I understand OSGi wouldn&#039;t help to solve this problem, more than that - by its nature OSGi will create dozens of classloaders, so it is possible much harder to find out what&#039;s going in. Finally, when you leak classloaders, you&#039;ll run out of PermGenSpace memory and you wouldn&#039;t be able to dynamicaly install/uninstall modules at all.

Am I right or miles out?</description>
		<content:encoded><![CDATA[<p>You have my copliment <img src='http://blog.krecan.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  . It's nice short and well understandable article.</p>
<p>I have been thinking about different thing since last CZJUG -  and that is, whether OSGI could help to minimize classloader leak problems in web application. From the speech of Michal Malohlava I assume that it does not.</p>
<p>OSGi is mostly about dynamic installing and uninstalling bundles - but when the bundle you are uninstalled haven't clear all its references and memory allocated for it could not be GCed, this principle goes in vain. And - leaking memory in web programming is SOOO easy. As I understand OSGi wouldn't help to solve this problem, more than that - by its nature OSGi will create dozens of classloaders, so it is possible much harder to find out what's going in. Finally, when you leak classloaders, you'll run out of PermGenSpace memory and you wouldn't be able to dynamicaly install/uninstall modules at all.</p>
<p>Am I right or miles out?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

