<?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; exception</title>
	<atom:link href="http://www.ab-weblog.com/en/tag/exception/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>
	</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! -->