<?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>Martin Ahrer - Together we&#039;ll make IT &#187; eclipse</title>
	<atom:link href="http://www.martinahrer.at/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.martinahrer.at</link>
	<description>Java Enterprise Softwareentwicklung und Consulting</description>
	<lastBuildDate>Sun, 11 Dec 2011 16:19:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<meta name="generator" content="deSignum 0.8.1" />
		<item>
		<title>Register ActiveMQ Spring namespace with eclipse 3.6</title>
		<link>http://www.martinahrer.at/2010/10/06/register-activemq-spring-namespace-with-eclipse-3-6/</link>
		<comments>http://www.martinahrer.at/2010/10/06/register-activemq-spring-namespace-with-eclipse-3-6/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 19:45:33 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[ActiveMQ]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=633</guid>
		<description><![CDATA[In a earlier post I described how to setup the eclipse XML editor to validate a Spring context file containing the AMQ namespace. Looks like with eclipse 3.6 that does not work anymore, I was not able to actually use a JAR file as location like I used to set this up with eclipse 3.4. [...]]]></description>
			<content:encoded><![CDATA[<p>In a earlier <a href="http://www.martinahrer.at/2009/03/13/register-xml-schema-in-eclipse-xml-catalog/">post</a> I described how to setup the eclipse XML editor to validate a Spring context file containing the AMQ namespace.</p>
<p>Looks like with eclipse 3.6 that does not work anymore, I was not able to actually use a JAR file as location like I used to set this up with eclipse 3.4.<br />
So I&#8217;m directly associating the AMQ namespace with the <a href="http://activemq.apache.org/xml-reference.html">XML schema</a> available from the AMQ project.<br />
<span id="more-633"></span></p>
<pre class="brush:xml; wrap-lines=false">
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:context="http://www.springframework.org/schema/context"
	xmlns:jms="http://www.springframework.org/schema/jms"
	xmlns:p="http://www.springframework.org/schema/p"
	xmlns:amq="http://activemq.apache.org/schema/core"

	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms.xsd
		http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"&gt;

	&lt;bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
		p:locations="classpath:jms.properties"&gt;
	&lt;/bean&gt;
	&lt;amq:broker useJmx="true" persistent="false"&gt;
		&lt;amq:transportConnectors&gt;
			&lt;amq:transportConnector uri="${amq.brokerURL}" /&gt;
		&lt;/amq:transportConnectors&gt;
	&lt;/amq:broker&gt;
&lt;/beans&gt;
</pre>
<p>Go to the eclipse XML catalog editor and add a custom entry:</p>
<pre>
Location: http://activemq.apache.org/schema/core/activemq-core-5.4.1.xsd
Key type: Schema location
Key: http://activemq.apache.org/schema/core/activemq-core.xsd
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2010/10/06/register-activemq-spring-namespace-with-eclipse-3-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting started with eclipse RCP development</title>
		<link>http://www.martinahrer.at/2009/12/03/getting-started-with-eclipse-rcp-development/</link>
		<comments>http://www.martinahrer.at/2009/12/03/getting-started-with-eclipse-rcp-development/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 11:43:20 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=347</guid>
		<description><![CDATA[Lars Vogel is maintaining a really helpful set of up-to-date articles about eclipse RCP programming.]]></description>
			<content:encoded><![CDATA[<p>Lars Vogel is maintaining a really helpful set of up-to-date <a href="http://www.vogella.de/eclipse.html">articles </a>about eclipse RCP programming.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2009/12/03/getting-started-with-eclipse-rcp-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My eclipse 3.5 blog entry has been promoted to be published by the German &quot;eclipse magazin&quot;</title>
		<link>http://www.martinahrer.at/2009/07/28/my-eclipse-35-blog-entry-has-been-promoted-to-be-published-by-the-german-eclipse-magazin/</link>
		<comments>http://www.martinahrer.at/2009/07/28/my-eclipse-35-blog-entry-has-been-promoted-to-be-published-by-the-german-eclipse-magazin/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 22:21:31 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=235</guid>
		<description><![CDATA[A while ago I had written this blog entry about the upcoming eclipse 3.5 release. The german &#8220;eclipse magazin&#8221; asked my if I would share this blog for being published in their next issue. Today I received a printed copy of this issue. They actually allocated almost a page for this]]></description>
			<content:encoded><![CDATA[<p>A while ago I had written <a href="http://www.martinahrer.at/2009/06/08/eclipse-35/">this</a> blog entry about the upcoming eclipse 3.5 release. The german &#8220;eclipse magazin&#8221; asked my if I would share this blog for being published in their next issue. Today I received a printed copy of this issue. They actually allocated almost a page for this <img src='http://www.martinahrer.at/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2009/07/28/my-eclipse-35-blog-entry-has-been-promoted-to-be-published-by-the-german-eclipse-magazin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eclipse 3.5</title>
		<link>http://www.martinahrer.at/2009/06/08/eclipse-35/</link>
		<comments>http://www.martinahrer.at/2009/06/08/eclipse-35/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 16:38:30 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=143</guid>
		<description><![CDATA[Since eclipse 1.0 has been released back in November 2001 it has evolved into a pretty popular and feature rich IDE. I remember using eclipse 2.0.1 first time, it was pretty much only a Java development IDE with little support for application containers. Soon eclipse 3.5 (galileo) arrives supporting a wide palette of programming languages, [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://archive.eclipse.org/eclipse/downloads/index.php">eclipse 1.0</a> has been released back in November 2001 it has evolved into a pretty popular and feature rich IDE. I remember using eclipse 2.0.1 first time, it was pretty much only a Java development IDE with little support for application containers.<br />
Soon eclipse 3.5 (galileo) arrives supporting a wide palette of programming languages, programming models and execution environments, application containers, etc. The past 3 months I had been testing galileo from early milestone releases and been happy with it &#8211; also with my favourite eclipse plugins that I use in my daily business.</p>
<p><strong>Here I briefly show some of the many features that I like:</strong></p>
<p><em>Install New Software</em></p>
<p>I believe with eclipse 3.4 the user interface for updating/installing plugins has been pretty much messed up. Seems the eclipse engineers have done a good job to fix it up again. It has never been so easy and intuitive (with drag &#038; drop support for update-site URLs) to install and update an eclipse plugin. But even more important, now it is possible to export bookmarks of your favourite plugins (you can select them plugin by plugin) and import them into another eclipse installation (e.g. for switching to a new eclipse release).</p>
<p><a href="http://www.martinahrer.at/wp-content/uploads/2009/06/available-software-export.png"><img alt="Available Software Export" src="http://www.martinahrer.at/wp-content/uploads/2009/06/available-software-export.png" title="Available Software Export"  width="100%" height="100%"/></a></p>
<p><em>Type Filter  (eclipse 3.4)</em></p>
<p>With a large number of libraries in the classpath it gets pretty overloaded in the type search dialogs. Mostly you find lots of classes that you never want to deal with directly. E.g. classes from the com.sun.* packages. Still you have to skip over them while searching for some other classes.<br />
By defining a type filter you can suppress any package you are not interested in.</p>
<p><img src="http://www.martinahrer.at/wp-content/uploads/2009/06/type-filter.png" alt="type-filter" title="type-filter"  width="100%" height="100%" /></p>
<p><em>toString() Method</em></p>
<p>I usually would use the <a href="http://commons.apache.org/lang/api-release/org/apache/commons/lang/builder/ToStringBuilder.html">ToStringBuilder </a>from the Apache commons-lang package to implement any toString() method.<br />
As of eclipse 3.5 the <strong>Source->generate toString()&#8230;</strong> feature can be customized to support the commons-lang ToStringBuilder pattern.</p>
<p><img src="http://www.martinahrer.at/wp-content/uploads/2009/06/tostring.png" alt="tostring" title="tostring"  class="alignnone size-full wp-image-160" width="100%" height="100%"/></p>
<p><em>Format edited lines only (eclipse 3.4)</em></p>
<p>In a team environment it is important that everybody is using the same formatting rules for auto-formatting the source code. Otherwise code comparison / mergeing can get pretty nasty. However sometimes this is not the case. Still eclipse can help to minimize the impact of autoformatting. You can choose the option to format only the code portion that has been actually changed.</p>
<p><img src="http://www.martinahrer.at/wp-content/uploads/2009/06/format-edited-lines.png" alt="format-edited-lines" title="format-edited-lines"  class="alignnone size-full wp-image-163" width="100%" height="100%"/></p>
<p><em>Breadcrumbs (eclipse 3.4)</em></p>
<p>Eclipse has always had a perspective called Java Browsing (some heritage from good old Visual Age). I never really liked it, as it consumes quite a lot of space of the workbench.<br />
With eclipse 3.4 the eclipse team introduced the so called breadcrumbs (<strong>Alt-Shift-B</strong>) which is showing almost they same information but much is more compact. It allows you to quickly jump between packages, classes, members, etc.</p>
<p><img src="http://www.martinahrer.at/wp-content/uploads/2009/06/breadcrumbs.png" alt="breadcrumbs" title="breadcrumbs" class="alignnone size-full wp-image-165" width="100%" height="100%" /></p>
<p><em>Block selection</em></p>
<p><strong>Alt-Shift-A</strong> activates a special editing mode where it is possible to select any rectangular text area and copy / paste it.</p>
<p><img src="http://www.martinahrer.at/wp-content/uploads/2009/06/block-selection.png" alt="block-selection" title="block-selection" class="alignnone size-full wp-image-168" width="100%" height="100%"/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2009/06/08/eclipse-35/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Flex Builder plugin installation</title>
		<link>http://www.martinahrer.at/2009/03/26/flex-builder-plugin-installation/</link>
		<comments>http://www.martinahrer.at/2009/03/26/flex-builder-plugin-installation/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 17:35:09 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=101</guid>
		<description><![CDATA[A few days ago I had installed the Flex Builder Plugins on a staging eclipse ganymede installation where I typically would test plugins. The installer created a link /links/com.adobe.flexbuilder.feature.core.link with the content d:/Java/Flex Builder 3 Plug-in To activate this plugins in my productive eclipse installation I just copied this link file and restarted eclipse but [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I had installed the Flex Builder Plugins on a staging eclipse ganymede installation where I typically would test plugins. The installer created a link <eclipse>/links/com.adobe.flexbuilder.feature.core.link with the content</p>
<pre lang="txt">
d:/Java/Flex Builder 3 Plug-in
</pre>
<p>To activate this plugins in my productive eclipse installation I just copied this link file and restarted eclipse but the flex plugins didn&#8217;t get activated. After a while I found a <a href="http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&#038;catid=657&#038;threadid=1405600&#038;enterthread=y">discussion </a>in some Adobe forum.</p>
<p>So I changed the contents of the link file to:</p>
<pre lang="txt">
path=d:/Java/Flex Builder 3 Plug-in
</pre>
<p>Now it works!<br />
Unfortunately the eclipse documentation on <a href="http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins">this </a>also didn&#8217;t clarify that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2009/03/26/flex-builder-plugin-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Register XML schema in eclipse XML catalog</title>
		<link>http://www.martinahrer.at/2009/03/13/register-xml-schema-in-eclipse-xml-catalog/</link>
		<comments>http://www.martinahrer.at/2009/03/13/register-xml-schema-in-eclipse-xml-catalog/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 08:27:04 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=96</guid>
		<description><![CDATA[Sometimes XML schemas don&#8217;t get published to public sites but are provided as part of of a jar etc. Under these circumstances it&#8217;s impossible for a XML editor to perform proper validation of a XML document against its XML schema. eclipse allows registering schemas in its internal XML catalog in various ways. Open the XML [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes XML schemas don&#8217;t get published to public sites but are provided as part of of a jar etc. Under these circumstances it&#8217;s impossible for a XML editor to perform proper validation of a XML document against its XML schema.<br />
eclipse allows registering schemas in its internal XML catalog in various ways. Open the XML Catalog property sheet in the preferences dialog and add the schema location.</p>
<p>An example for registering a schema in a jar:</p>
<pre class="brush:plain">
Location: jar:file:D:/workspace/mvn-repositories/local/org/apache/activemq/activemq-core/5.1.0/activemq-core-5.1.0.jar!/activemq.xsd
Key Type: Schema Location
Key: http://activemq.apache.org/schema/core/activemq-core.xsd
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2009/03/13/register-xml-schema-in-eclipse-xml-catalog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>eclipse and corrupt WTP metadata</title>
		<link>http://www.martinahrer.at/2008/12/04/eclipse-and-corrupt-wtp-metadata/</link>
		<comments>http://www.martinahrer.at/2008/12/04/eclipse-and-corrupt-wtp-metadata/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 09:23:39 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=90</guid>
		<description><![CDATA[Yesterday night I had spent an hour or so tracking down a bug that has been bothering me for a while. The effect of this bug is that projects created with the m2eclipse plugin seem to be missing some important metadata required by the WTP plugins. As a result references to other projects (in workspace) [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday night I had spent an hour or so tracking down a bug that has been bothering me for a while.<br />
The effect of this bug is that projects created with the m2eclipse plugin seem to be missing some important metadata required by the WTP plugins. As a result references to other projects (in workspace) do not show up as JavaEE (J2EE) module dependencies or sometimes even the project properties dialog for JavaEE module dependencies only shows an error.<br />
I had analysed this bug a while ago already but never documented this, some more investigation is still required to figure out what causes this missing metadata and report it to the m2eclipse developers.</p>
<p>Anyway here is how to fix it. Let&#8217;s say we have a web project A and a utility project B. You face the situation that project B does not show up as JavaEE module dependency. Open B in the navigator view (so you can see all the metadata files .project, .settings/&#8230; etc.).<br />
Look for a file .settings/org.eclipse.wst.common.component! Does it exist? If no just create it, its contents should be like</p>
<pre lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
    <wb-module deploy-name="PROJECTNAME">
        <wb-resource deploy-path="/" source-path="/src/main/java"/>
        <wb-resource deploy-path="/" source-path="/src/test/java"/>
    </wb-module>
</project-modules>
</pre>
<p>Next check the .project file</p>
<pre lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>PROJECTNAME</name>
	<comment></comment>
<projects>
	</projects>
	<buildSpec>
		<buildCommand>
			<name>org.eclipse.wst.common.project.facet.core.builder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.jdt.core.javabuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.maven.ide.eclipse.maven2Builder</name>
			<arguments>
			</arguments>
		</buildCommand>
		<buildCommand>
			<name>org.eclipse.wst.validation.validationbuilder</name>
			<arguments>
			</arguments>
		</buildCommand>
	</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
		<nature>org.maven.ide.eclipse.maven2Nature</nature>
		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
	</natures>
</projectDescription>
</pre>
<p>In my case the file was missing some builders (should not be relevant for the bug)</p>
<ul>
<li>org.maven.ide.eclipse.maven2Builder</li>
<li>
org.eclipse.wst.validation.validationbuilder</li>
</ul>
<p>and some natures (these really hurt)</p>
<ul>
<li>org.eclipse.wst.common.modulecore.ModuleCoreNature</li>
<li>org.eclipse.jem.workbench.JavaEMFNature</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2008/12/04/eclipse-and-corrupt-wtp-metadata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eclipse ganymede &#8211; New Save Action Option</title>
		<link>http://www.martinahrer.at/2008/07/01/eclipse-ganymede-new-save-action-option/</link>
		<comments>http://www.martinahrer.at/2008/07/01/eclipse-ganymede-new-save-action-option/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 20:58:03 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/?p=80</guid>
		<description><![CDATA[I am absolutely convinced that source code must be formatted according to rules a team agrees on. Therefore I have my Save Actions setup for auto-formatting my code (by the way I just rely on the eclipse built-in rules, I would only adjust the line length to 120) every time it is saved. For those [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.martinahrer.at/wp-content/uploads/2008/07/save-action-preference.png'><img src="http://www.martinahrer.at/wp-content/uploads/2008/07/save-action-preference.png" alt="Save Action Format Modified Line Only" title="Save Action Format Modified Line Only" width="300" height="118" class="alignleft size-medium wp-image-79" /></a></p>
<p>I am absolutely convinced that source code must be formatted according to rules a team agrees on. Therefore I have my Save Actions setup for auto-formatting my code (by the way I just rely on the eclipse built-in rules, I would only adjust the line length to 120) every time it is saved.<br />
For those whow often need to fix/change unformatted code (code that is not auto formatted at all) are going nuts. Once you start comparing with older revisions you can&#8217;t actually tell anymore what exactly you have modified, the auto-formatter has done a damn good job!<br />
So now you can set an option that only formats actually modified lines code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2008/07/01/eclipse-ganymede-new-save-action-option/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun compiler silently accepts annotation syntax error</title>
		<link>http://www.martinahrer.at/2008/02/16/sun-compiler-silently-accepts-annotation-syntax-error/</link>
		<comments>http://www.martinahrer.at/2008/02/16/sun-compiler-silently-accepts-annotation-syntax-error/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 13:29:35 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/2008/02/16/eclipse-compiler-silently-accepts-annotation-syntax-error/</guid>
		<description><![CDATA[Today I experienced another strange thig with the eclipse compiler. I coded some annotations that contain some syntax error which I wasn&#8217;t aware of since the IDE didn&#8217;t highlight it. The @@ManagedOperationParameters( { @ManagedOperationParameter(name = "category", description = "Logger category"), }) annotation is not correct, trying to compile it with the Sun compiler fails (can [...]]]></description>
			<content:encoded><![CDATA[<p>Today I experienced another strange thig with the eclipse compiler. I coded some annotations that contain some syntax error which I wasn&#8217;t aware of since the IDE didn&#8217;t highlight it. The <code>@@ManagedOperationParameters( { @ManagedOperationParameter(name = "category", description = "Logger category"), })</code> annotation is not correct, trying to compile it with the Sun compiler fails (can you spot it?).</p>
<pre lang="Java5">
	@ManagedOperation(description = "Get the logging level for a category")
	@ManagedOperationParameters( { @ManagedOperationParameter(name = "category", description = "Logger category"), })
	public String getLoggerLevel(String category) {
		return LogManager.getLogger(category).getLevel().toString();
	}
</pre>
<p>After reporting this a a eclipse JDT bug I was pointed at that this is allowed syntax (see <a href="http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html#9.7">JLS</a>) but the sun compiler does not properly implement syntax checking! So I should rather see to report this against the Sun compiler. Still it is strange that this syntax is allowed at all!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2008/02/16/sun-compiler-silently-accepts-annotation-syntax-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eclipse 3.3 and WAR file imports</title>
		<link>http://www.martinahrer.at/2008/02/12/eclipse-33-and-war-file-imports/</link>
		<comments>http://www.martinahrer.at/2008/02/12/eclipse-33-and-war-file-imports/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 13:45:01 +0000</pubDate>
		<dc:creator>Martin Ahrer</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.martinahrer.at/2008/02/12/eclipse-33-and-war-file-imports/</guid>
		<description><![CDATA[eclipse 3.3.1.1 has an annoying bug. Try to import a WAR file that contains class files in WEB-INF/classes. Thes class files are not imported into the right folder in the imported project structure. Importing a WAR file gets you a special folder ImportedClasses which is supposed to contain the package/folder structure for imported classes. Due [...]]]></description>
			<content:encoded><![CDATA[<p>eclipse 3.3.1.1 has an annoying bug. Try to import a WAR file that contains class files in WEB-INF/classes.  Thes class files are not imported into the right folder in the imported project structure.</p>
<p>Importing a WAR file gets you a special folder <strong>ImportedClasses</strong> which is supposed to contain the package/folder structure for imported classes. Due to a bug in the eclipse WAR importer they are copied to <strong>ImportedClasses/WEB-INF/classes</strong>. As a result, starting a deployed web application presents plenty of ClassNotFoundExceptions and the like.</p>
<p><a href='http://www.martinahrer.at/wp-content/uploads/2008/02/importedclasses.png' title='ImportedClasses folder'><img src='http://www.martinahrer.at/wp-content/uploads/2008/02/importedclasses.png' alt='ImportedClasses folder' width="100%" height="100%"/></a></p>
<p>Today I tried this again with eclipse 3.4-M4 and was glad to see this bug fixed, I was already preparing to file a bug. Until 3.4 is released the classes must be moved manually to the right folder!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.martinahrer.at/2008/02/12/eclipse-33-and-war-file-imports/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

