<?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>AB-WebLog.com&#187; Java</title>
	<atom:link href="http://www.ab-weblog.com/en/category/development/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ab-weblog.com/en</link>
	<description>Andreas Breitschopp</description>
	<lastBuildDate>Wed, 18 Mar 2015 09:47:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>JBoss Startup Takes Very Long</title>
		<link>http://www.ab-weblog.com/en/jboss-startup-takes-very-long/</link>
		<comments>http://www.ab-weblog.com/en/jboss-startup-takes-very-long/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 15:47:19 +0000</pubDate>
		<dc:creator>Andreas Breitschopp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[exception]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.ab-weblog.com/en/?p=199</guid>
		<description><![CDATA[In the last weeks we noted startup problems of our productive JBoss server several times: either it did not startup at all or it took very (up to an hour!) long. In the server log files we found exceptions like this &#8230; <a href="http://www.ab-weblog.com/en/jboss-startup-takes-very-long/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the last weeks we noted startup problems of our productive JBoss server several times: either it did not startup at all or it took very (up to an hour!) long.</p>
<p>In the server log files we found exceptions like this one:</p>
<pre class="brush: text; gutter: true">2011-04-19 08:36:09,484 ERROR [de.absoft.portal.core.listener.PortletContextListener] Exception while parsing &#039;portlet.xml&#039;
org.dom4j.DocumentException: Error on line 573 of document http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd : src-resolve: Cannot resolve the name &#039;xml:lang&#039; to a(n) &#039;attribute declaration&#039; component. Nested exception: src-resolve: Cannot resolve the name &#039;xml:lang&#039; to a(n) &#039;attribute declaration&#039; component.</pre>
<p>We figured out that the exception is thrown when this document on the Sun webpage is – for whatever reason – not reachable. Additionally this error may also occur if you try to start JBoss without an internet connection at all.</p>
<p>But the main problem is that before it throws this exception, it waits for a timeout. This leads to the extremely long startup time in this case.</p>
<p>As it is completely insane that the JBoss startup relies on a Sun server that obviously does not run very steadily, we searched for a solution.</p>
<p>The only reason for this issue was that the validation feature was enabled in code. So we just needed to remove these lines of code:</p>
<pre class="brush: java; gutter: true">reader.setFeature(&quot;http://xml.org/sax/features/validation&quot;, true);
reader.setFeature(&quot;http://apache.org/xml/features/validation/schema&quot;, true);
reader.setFeature(&quot;http://apache.org/xml/features/validation/schema-full-checking&quot;, true);
reader.setFeature(&quot;http://apache.org/xml/features/validation/dynamic&quot;, true);</pre>
<p>Of course, this validation feature is very useful for debugging reasons, but it should definitely be disabled for productive environments.</p>
<p><em>Did you also note JBoss startup problems due to this feature already yourself?</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ab-weblog.com/en/jboss-startup-takes-very-long/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Winner of the Vodafone Android Competition</title>
		<link>http://www.ab-weblog.com/en/winner-of-the-vodafone-android-competition/</link>
		<comments>http://www.ab-weblog.com/en/winner-of-the-vodafone-android-competition/#comments</comments>
		<pubDate>Fri, 03 Dec 2010 14:56:27 +0000</pubDate>
		<dc:creator>Andreas Breitschopp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Vadafone]]></category>

		<guid isPermaLink="false">http://www.ab-weblog.com/en/?p=144</guid>
		<description><![CDATA[Some minutes ago I was informed that I am one of the winners of the Vodafone Android Competition! My Android app Energy Costs Calculator was selected as the best new Android app of this week. I have to admit that &#8230; <a href="http://www.ab-weblog.com/en/winner-of-the-vodafone-android-competition/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some minutes ago I was informed that I am one of the winners of the <a title="Vodafone Android Competition" href="http://developer.vodafone.com/develop-apps/android/android-competition-draw-winners/" target="_blank">Vodafone Android Competition</a>! <img src='http://www.ab-weblog.com/en/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a title="Vodafone Developer Website" href="http://developer.vodafone.com" target="_blank"><img class="aligncenter size-full wp-image-145" title="Vodafone Developer" src="http://www.ab-weblog.com/en/files/vodafone-developer.png" alt="Vodafone Developer" width="241" height="67" /></a></p>
<p>My Android app <a title="Android version of Energy Costs Calculator" href="http://www.ab-tools.com/en/software/energycostscalculator/androidapp/" target="_blank">Energy Costs Calculator</a> was selected as the best new Android app of this week.</p>
<p>I have to admit that I even did not know I was participating in any competition. So this e-mail of Vodafone was a very positive surprise. <img src='http://www.ab-weblog.com/en/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I want to thank Vodafone for the price, a HTC Legend (Android smartphone):<a href="http://www.ab-weblog.com/en/files/htc-legend.png"><img class="aligncenter size-medium wp-image-167" title="HTC Legend" src="http://www.ab-weblog.com/en/files/htc-legend-177x300.png" alt="HTC Legend" width="177" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ab-weblog.com/en/winner-of-the-vodafone-android-competition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing a Browser Toolbar: Mozilla Firefox (2/5)</title>
		<link>http://www.ab-weblog.com/en/developing-a-browser-toolbar-mozilla-firefox-25/</link>
		<comments>http://www.ab-weblog.com/en/developing-a-browser-toolbar-mozilla-firefox-25/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:00:29 +0000</pubDate>
		<dc:creator>Andreas Breitschopp</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[ASPects]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[publication]]></category>
		<category><![CDATA[toolbar]]></category>

		<guid isPermaLink="false">http://www.ab-weblog.com/en/?p=288</guid>
		<description><![CDATA[This post series reflects my article &#8220;Developing a Browser Toolbar&#8221; published in the ASPects in January 2010 (Volume 23, Issue 1), a magazine of the Association of Shareware Professionals (ASP). Developing a toolbar for Firefox is quite easy: it&#8217;s all &#8230; <a href="http://www.ab-weblog.com/en/developing-a-browser-toolbar-mozilla-firefox-25/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>This post series reflects my article &#8220;Developing a Browser Toolbar&#8221; published in the <a title="ASPects Website" href="http://www.asp-shareware.org/about/aspects.asp" target="_blank">ASPects</a> in January 2010 (Volume 23, Issue 1), a magazine of the <a title="Association of Shareware Professionals Website" href="http://www.asp-shareware.org" target="_blank">Association of Shareware Professionals</a> (ASP).</em></p>
<p>Developing a toolbar for Firefox is quite easy: it&#8217;s all done by using XML, a little bit of CSS and especially JavaScript. The last one is also the only crux of the matter, because I really don&#8217;t like to develop in JavaScript. But anyway, it&#8217;s straightforward in this case.</p>
<p>I found a very good <a title="Tutorial on Firefox Toolbar Development" href="http://www.borngeek.com/firefox/toolbar-tutorial/" target="_blank">resource in the web</a>. This tutorial explains the development of a Firefox toolbar in detail and saved me a lot of research work. After you went through the online tutorial, you should already have a fully-functional Firefox toolbar. There are only two things left:</p>
<h2>Automatic online update</h2>
<p>I wanted my toolbar to receive automatic updates from my webserver. But this is also quite easy by using the integrated update system of Firefox. On the same website there is a good tutorial for adding <a title="Tutorial on Automatic Firefox Extension Updates" href="http://www.borngeek.com/firefox/automatic-firefox-extension-updates/" target="_blank">automatic update support</a>, too.</p>
<h2>Uninstall button inside the toolbar</h2>
<p>The disreputability of toolbars is surely not least based on the fact that most of them are really hard to uninstall. Although Firefox provides uninstall support to the user already by using the add-ons manager, I wanted an uninstall button to be included directly into the toolbar itself. After doing some research in the web and at the <a title="Mozilla Developer Center Website" href="https://developer.mozilla.org/en" target="_blank">Mozilla Developer Center</a>, I got together the following piece of code that first successfully uninstalls the toolbar, second shows a webpage to the user (something like &#8220;We&#8217;re sad that you uninstalled…&#8221;) and finally tells the user that a browser restart is needed to finish the uninstallation:</p>
<pre class="brush: javascript; gutter: true">try {
    var tb = document.getElementById('ABTools-Toolbar');
    var text = ABTools_ToolbarData["msg.uninstallToolbarText"].replace("%name%",
                                   ABTools_ToolbarData["toolbar.name"]);
    if (!window.confirm(text))
        return;

    var gExtensionManager = Components.classes["@mozilla.org/extensions/manager;1"]
                            .getService(Components.interfaces.nsIExtensionManager);
    var rds = gExtensionManager.datasource;
    if (gExtensionManager.uninstallItem) gExtensionManager.uninstallItem(ABTools_id);
    if (gExtensionManager.uninstallExtension)
        gExtensionManager.uninstallExtension(ABTools_id);

    ABTools_guid = "";
    ABTools_saveSettings();

    ABTools_LoadURL(getABToolsHomepageLink(9));

    alert(ABTools_ToolbarData["msg.restartBrowserText"]);
} catch(e) {
    if (ABTools_DebugMode) alert(e);
}</pre>
<p>After going through these steps your Firefox toolbar is ready to get installed! It will work on Firefox Version 1.5 or higher, not depending on the version of the operating system.</p>
<p>In the <a title="Developing a Browser Toolbar: Microsoft Internet Explorer (3/5)" href="http://www.ab-weblog.com/en/developing-a-browser-toolbar-microsoft-internet-explorer/">next post</a> I will go to the more complicated browser.</p>
<h2>Contents of Post Series &#8220;Developing a Browser Toolbar&#8221;:</h2>
<ul>
<li><a title="Developing a Browser Toolbar: Introduction (1/5)" href="http://www.ab-weblog.com/en/developing-a-browser-toolbar-introduction/">Introduction</a></li>
<li>Mozilla Firefox</li>
<li><a title="Developing a Browser Toolbar: Microsoft Internet Explorer (3/5)" href="http://www.ab-weblog.com/en/developing-a-browser-toolbar-microsoft-internet-explorer/">Microsoft Internet Explorer</a></li>
<li><a title="Developing a Browser Toolbar: Installation System (4/5)" href="http://www.ab-weblog.com/en/developing-a-browser-toolbar-installation-system/">Installation System</a></li>
<li><a title="Developing a Browser Toolbar: Summary (5/5)" href="http://www.ab-weblog.com/en/developing-a-browser-toolbar-summary/">Summary</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ab-weblog.com/en/developing-a-browser-toolbar-mozilla-firefox-25/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->