<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PermGen error &#187; cannot nest src folder</title>
	<atom:link href="http://eggsylife.co.uk/tag/cannot-nest-src-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://eggsylife.co.uk</link>
	<description>Eggsylife</description>
	<lastBuildDate>Mon, 18 Apr 2011 19:40:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Eclipse Galileo – Cannot nest src folder</title>
		<link>http://eggsylife.co.uk/2009/12/20/eclipse-galileo-cannot-nest-src-folder/</link>
		<comments>http://eggsylife.co.uk/2009/12/20/eclipse-galileo-cannot-nest-src-folder/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 16:52:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software development]]></category>
		<category><![CDATA[cannot nest src folder]]></category>
		<category><![CDATA[eclipse galileo]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[nested src]]></category>

		<guid isPermaLink="false">http://eggsylife.co.uk/?p=200</guid>
		<description><![CDATA[After recently working on a new web application project, it came to a stage where I had to download the project at home on my personal machine. So of course I logged into our SVN and grabbed a copy. After getting the project there was an error in the project: Cannot nest 'Project/src/main/java' inside library [...]]]></description>
			<content:encoded><![CDATA[<div class="none"><div class="g-plusone" data-href="http://eggsylife.co.uk/2009/12/20/eclipse-galileo-cannot-nest-src-folder/" size="medium" count="true"></div></div><p>After recently working on a new web application project, it came to a stage where I had to download the project at home on my personal machine. So of course I logged into our SVN and grabbed a copy.</p>
<p>After getting the project there was an error in the project:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">Cannot nest <span style="color: #0000ff;">'Project/src/main/java'</span> inside library <span style="color: #0000ff;">'Project/src</span></pre></div></div>

<p>I knew previously that this error wasn&#8217;t occuring. As far as the project classpath is concerned there was only one src path which correctly pointed at the folder Project/src/main/java</p>
<p>After searching through the project I found out the issue &#8211; in the .settings folder there is a file named:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">org.<span style="color: #006633;">eclipse</span>.<span style="color: #006633;">wst</span>.<span style="color: #006633;">common</span>.<span style="color: #006633;">component</span></pre></div></div>

<p>You should find you have a line similar to the following:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;wb-resource</span> <span style="color: #000066;">deploy-path</span>=<span style="color: #ff0000;">&quot;/WEB-INF/classes&quot;</span> <span style="color: #000066;">source-path</span>=<span style="color: #ff0000;">&quot;/src&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>To fix simply remove that line (and if you don&#8217;t have it already, add the line):</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;wb-resource</span> <span style="color: #000066;">deploy-path</span>=<span style="color: #ff0000;">&quot;/WEB-INF/classes&quot;</span> <span style="color: #000066;">source-path</span>=<span style="color: #ff0000;">&quot;/src/main/java&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://eggsylife.co.uk/2009/12/20/eclipse-galileo-cannot-nest-src-folder/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

