<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alfred's Computing Weblog</title>
	<atom:link href="http://alfredjava.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alfredjava.wordpress.com</link>
	<description>Alfred Java-cored Computing Weblog</description>
	<lastBuildDate>Tue, 22 Nov 2011 02:53:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alfredjava.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Alfred's Computing Weblog</title>
		<link>http://alfredjava.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alfredjava.wordpress.com/osd.xml" title="Alfred&#039;s Computing Weblog" />
	<atom:link rel='hub' href='http://alfredjava.wordpress.com/?pushpress=hub'/>
		<item>
		<title>org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException</title>
		<link>http://alfredjava.wordpress.com/2011/09/15/xmlbeandefinitionstoreexception/</link>
		<comments>http://alfredjava.wordpress.com/2011/09/15/xmlbeandefinitionstoreexception/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 09:40:46 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[XmlBeanDefinitionStoreException]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=225</guid>
		<description><![CDATA[ERROT: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException STORY: I was setting up a Spring powered web application for testing. I edited the configurations files (*.xml) to add in some new configuration for testing / POC. The following error is shown when I deployed the WAR file in tomcat org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 40 in XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is invalid; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=225&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>ERROT:</strong><br />
<code>org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException</code></p>
<p><strong>STORY:</strong><br />
I was setting up a Spring powered web application for testing.<br />
I edited the configurations files (*.xml) to add in some new configuration for testing / POC.<br />
The following error is shown when I deployed the WAR file in tomcat<br />
<code>org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: <span style="color:#0000ff;"><strong>Line 40 in XML</strong></span> document from ServletContext resource [/WEB-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'bean'. One of '{"http://www.springframework.org/schema/beans":description, "http://www.springframework.org/schema/beans":meta, "http://www.springframework.org/schema/beans":constructor-arg, "http://www.springframework.org/schema/beans":property, "http://www.springframework.org/schema/beans":qualifier, "http://www.springframework.org/schema/beans":lookup-method, "http://www.springframework.org/schema/beans":replaced-method, WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.</code></p>
<p><strong>SOLUTION:</strong><br />
As highlighted above, there is error in the mentioned XML file.<br />
After I opened the XML file, I found that is some missed-closed bean definition ABOVE the mentioned line (Line 40 in XML).<br />
The error bean definition as below:</p>
<p><pre class="brush: java;">&lt;bean id=&quot;accountManager&quot; class=&quot;alfred.sandbox.AccountManager&quot;&gt;</pre></p>
<p>Added in a BLACK SLASH &#8220;/&#8221; to close the bean definition properly will solve the error:</p>
<p><pre class="brush: java;">&lt;bean id=&quot;accountManager&quot; class=&quot;alfred.sandbox.AccountManager&quot;/&gt;</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=225&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2011/09/15/xmlbeandefinitionstoreexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect</title>
		<link>http://alfredjava.wordpress.com/2011/09/14/java-lang-noclassdeffounderror-orgaspectjlangannotationaspect/</link>
		<comments>http://alfredjava.wordpress.com/2011/09/14/java-lang-noclassdeffounderror-orgaspectjlangannotationaspect/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 02:41:17 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[maven]]></category>
		<category><![CDATA[aspectj]]></category>
		<category><![CDATA[aspectjrt]]></category>
		<category><![CDATA[aspectjweaver]]></category>
		<category><![CDATA[NoClassDefFoundError]]></category>
		<category><![CDATA[org/aspectj/lang/annotation/Aspect]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=217</guid>
		<description><![CDATA[ERROR: Hits the error java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect when I try to start a webapp in tomcat. STORY: I was trying to add AOP to an existing web application. The AOP configuration I added is: SOLUTION: Add the AspectJ library to the classpath. The required AspectJ library are: 1. aspectjrt 2. aspectjweaver My webapps is using Maven, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=217&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>ERROR:</strong><br />
Hits the error <code>java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect</code> when I try to start a webapp in tomcat.</p>
<p><strong>STORY:</strong><br />
I was trying to add AOP to an existing web application. The AOP configuration I added is:<br />
<pre class="brush: java;">
&lt;aop:aspectj-autoproxy /&gt;
</pre></p>
<p><strong>SOLUTION:</strong><br />
Add the AspectJ library to the classpath. The required AspectJ library are:<br />
1. aspectjrt<br />
2. aspectjweaver</p>
<p>My webapps is using Maven, so I added the dependencies to pom.xml as below:<br />
<pre class="brush: java;">
&lt;!-- AspectJ --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
    &lt;artifactId&gt;aspectjrt&lt;/artifactId&gt;
    &lt;version&gt;1.6.11&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.aspectj&lt;/groupId&gt;
    &lt;artifactId&gt;aspectjweaver&lt;/artifactId&gt;
    &lt;version&gt;1.6.11&lt;/version&gt;
&lt;/dependency&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/217/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/217/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/217/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=217&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2011/09/14/java-lang-noclassdeffounderror-orgaspectjlangannotationaspect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux &#124; Find string in files</title>
		<link>http://alfredjava.wordpress.com/2011/08/17/linux-find-string-in-files/</link>
		<comments>http://alfredjava.wordpress.com/2011/08/17/linux-find-string-in-files/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 06:58:57 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=204</guid>
		<description><![CDATA[Problem I am trying to search for a string from the XML files (yup, more than an XML file) Solution I use grep with option &#8220;-an&#8221; which will print out the file name and line number of the found string. The command below will search for text &#8220;my text&#8221; from all XML files in my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=204&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
I am trying to search for a string from the XML files (yup, more than an XML file)</p>
<p><strong>Solution</strong><br />
I use <a href="http://www.computerhope.com/unix/ugrep.htm" title="grep" target="_blank">grep</a> with option &#8220;-an&#8221; which will print out the file name and line number of the found string.<br />
The command below will search for text &#8220;my text&#8221; from all XML files in my current working directory.</p>
<p><pre class="brush: java;">
grep -an &quot;my text&quot; *.xml
</pre></p>
<p>15 Practical GREP, <a href="http://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/" target="_blank">resource</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=204&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2011/08/17/linux-find-string-in-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>SSL ya Tomcat</title>
		<link>http://alfredjava.wordpress.com/2011/07/25/ssl-ya-tomcat/</link>
		<comments>http://alfredjava.wordpress.com/2011/07/25/ssl-ya-tomcat/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 06:20:21 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[tomcat]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=198</guid>
		<description><![CDATA[Steps to enable SSL for your tomcat 1. Generate SSL key for your computer. Reminder: check ../tomcat/conf/tomcat-user.xml for tomcat user&#8217;s password 2. Edit server.xml - Open ../tomcat/conf/server.xml - Uncomment following lines and add in &#8220;keystoreFile&#8221; and &#8220;keystorePass&#8221; 3. You are DONE. You can try to access HTTPS with Port 8443 now. Eg: https://www.example.com/SecretResource/1234567 Reference: Tomcat [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=198&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Steps to enable SSL for your tomcat</strong></p>
<p><em><strong>1. Generate SSL key for your computer.</strong></em><br />
<pre class="brush: bash;">
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /path/to/my/keystore
</pre><br />
Reminder: check ../tomcat/conf/tomcat-user.xml for tomcat user&#8217;s password</p>
<p><em><strong>2. Edit server.xml</strong></em><br />
- Open ../tomcat/conf/server.xml<br />
- Uncomment following lines and add in &#8220;keystoreFile&#8221; and &#8220;keystorePass&#8221;<br />
<pre class="brush: xml;">
 &lt;Connector port=&quot;8443&quot; protocol=&quot;HTTP/1.1&quot; SSLEnabled=&quot;true&quot;
               maxThreads=&quot;150&quot; scheme=&quot;https&quot; secure=&quot;true&quot;
               keystoreFile=&quot;/path/to/my/keystore&quot; keystorePass=&quot;password&quot;
               clientAuth=&quot;false&quot; sslProtocol=&quot;TLS&quot; /&gt;
</pre></p>
<p><em><strong>3. You are DONE.</strong></em> You can try to access HTTPS with Port 8443 now.<br />
Eg: https://www.example.com/SecretResource/1234567</p>
<p>Reference: Tomcat 6.0 SSL Configuration, <a href="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#SSL_and_Tomcat" title="Tomcat SSL config" target="_blank">here</a>.</p>
<p>My environment:<br />
Apache Tomcat v6.0.32<br />
Sun Java v1.6.0_21<br />
Red Hat 4.1.2-50</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=198&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2011/07/25/ssl-ya-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>Java &#124; Loop a Map</title>
		<link>http://alfredjava.wordpress.com/2011/06/29/java-loop-a-map/</link>
		<comments>http://alfredjava.wordpress.com/2011/06/29/java-loop-a-map/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 03:27:03 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[hashmap]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[map]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=188</guid>
		<description><![CDATA[I think this is the best way I found to loop through a Map in Java. Reference Source<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=188&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think this is the best way I found to loop through a Map in Java.</p>
<p><pre class="brush: java;">
public void printMap(Map mp) {
    Iterator it = mp.entrySet().iterator();
    while (it.hasNext()) {
        Map.Entry pairs = (Map.Entry)it.next();
        System.out.println(&quot;Key:&quot; + pairs.getKey() + &quot;, Value:&quot; + pairs.getValue());
    }
}
</pre></p>
<p><a href="http://stackoverflow.com/questions/1066589/java-iterate-through-hashmap" title="Reference Source" target="_blank">Reference Source</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=188&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2011/06/29/java-loop-a-map/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>Plain text shows Encoded Chars</title>
		<link>http://alfredjava.wordpress.com/2011/06/28/plain-text-shows-encoded-chars/</link>
		<comments>http://alfredjava.wordpress.com/2011/06/28/plain-text-shows-encoded-chars/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 07:54:31 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[jstl]]></category>
		<category><![CDATA[UTF-8 Encoding]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=178</guid>
		<description><![CDATA[Just started to have a chance to try out Spring 3.0, a lot of new features introduced, yet not enough time to read up all features. I started a simple web apps project to try out Spring 3.0. The web apps is pretty simple, a REST server alike. Client init HTTP calls to the web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=178&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just started to have a chance to try out Spring 3.0,  a lot of new features introduced, yet not enough time to read up all features.</p>
<p>I started a simple web apps project to try out Spring 3.0. The web apps is pretty simple, a REST server alike. Client init HTTP calls to the web apps with specific Servlet name and parameter, the web apps will returns the result JSON with Plain text mode. Since I am using Spring MVC, the result is printed with JSTL.</p>
<p>Sample call from client: <em>http://myserver.com/getUser?userId=001</em></p>
<p>Expected result from server:<br />
<strong>{&#8220;name&#8221;:&#8221;Bob&#8221;,&#8221;age&#8221;:&#8221;30&#8243;,&#8221;gender&#8221;:&#8221;male&#8221;}</strong></p>
<p>I get what I expected when I test my web apps with browser.</p>
<p>But the &#8216;interesting&#8217; comes when I test it with little Java Post program (use HttpClient, init HTTP call and inspect the result).<br />
I did not get the expected result, I get below:<br />
<strong><em>{&amp;&#035;034;name&amp;&#035;034;:&amp;&#035;034;Bob&amp;&#035;034;,&amp;&#035;034;age&amp;&#035;034;:&amp;&#035;034;30&amp;&#035;034;,&amp;&#035;034;gender&amp;&#035;034;:&amp;&#035;034;male&amp;&#035;034;}</em></strong></p>
<p>All double-quat / quotation being replaced with &#034;, its clearly the contain is being HTML encoded.</p>
<p>Below are my trouble-shooting steps:<br />
Step 1. Check tomcat configuration<br />
- Ensure the tomcat UTF-8 by default. <a href="http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q1" title="Tomcat Character Encoding" target="_blank">More info</a><br />
Step 2. Check web apps JSPs<br />
- Ensure all JSP are UTF-8 as default encoding.</p>
<p>But both Step 1 &amp; 2 does not fix my problem yet.<br />
Step 3. Google &#8220;jstl without html encoded&#8221;<br />
- Finally, I get the answer <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
- add in escapeXML properties when printing the result in JSTL<br />
Before: &lt;c:out value=&quot;${result}&quot; /&gt;<br />
After: &lt;c:out value=&quot;${result}&quot; <strong>escapeXml=&#8221;false&#8221;</strong>/&gt;<br />
<a href="http://www.java2s.com/Tutorial/Java/0380__JSTL/OutputwithwithoutEncode.htm" title="Tutorial - Output with / without Encode" target="_blank">Tutorial &#8211; Output with / without Encode</a></p>
<p><strong>Lesson Learn</strong>:<br />
When you want to print a PLAIN TEXT with JSTL, do remember to include <strong><code>escapeXML="false"</code></strong> to ensure that end user will get the actual expected result without HTML/XML encoded.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=178&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2011/06/28/plain-text-shows-encoded-chars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>Spring &#124; NoSuchMethodError: GenericTypeResolver</title>
		<link>http://alfredjava.wordpress.com/2011/06/20/spring-generictyperesolver-resolvetypearguments/</link>
		<comments>http://alfredjava.wordpress.com/2011/06/20/spring-generictyperesolver-resolvetypearguments/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 10:02:06 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[GenericTypeResolver]]></category>
		<category><![CDATA[NoSuchMethodError]]></category>
		<category><![CDATA[resolveTypeArguments]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=170</guid>
		<description><![CDATA[ERROR: java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class; STORY: I am starting a new webapps recently, since its a new webapps, I decided to use the latest Spring version 3.1.0.M2. Everything looks fine when the development is still in standalone environment. After dive into the development, the webapps I&#8217;m working on need to &#8216;talk&#8217; to some other existing components in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=170&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>ERROR</strong>: java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class;</p>
<p><strong>STORY</strong>:<br />
I am starting a new webapps recently, since its a new webapps, I decided to use the latest Spring version 3.1.0.M2. Everything looks fine when the development is still in standalone environment. After dive into the development, the webapps I&#8217;m working on need to &#8216;talk&#8217; to some other existing components in the system. After I have integrated my webapps with the existing components and I restart my tomcat, I get the error <em>java.lang.NoSuchMethodError: org.springframework.core.GenericTypeResolver.resolveTypeArguments(Ljava/lang/Class;Ljava/lang/Class;)[Ljava/lang/Class;</em></p>
<p>First of all, for Java developer, when you see &#8216;NoSuchMethodError&#8217;, you will directly check the existence of the mentioned method in your JAR file. But &#8216;sadly&#8217; the mentioned class file and method is there. </p>
<p><strong>SOLUTION</strong>:<br />
Thanks to Google, I got my answer in <a href="http://forum.springsource.org/archive/index.php/t-41143.html" title="Spring Forum" target="_blank">Spring Forum</a>. The answer is pretty simple, I have more than 1 version of Spring in the classpath. As mentioned earlier, the new webapps is running on latest Spring (v3.1.0.M2) but the existing components I integrates with only running on Spring v2.5. So, pls ensure that there is only ONE SPRING VERSION in your classpath.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=170&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2011/06/20/spring-generictyperesolver-resolvetypearguments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>Java &#124; ERROR: java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String</title>
		<link>http://alfredjava.wordpress.com/2010/06/22/error-java-lang-classcastexception-java-ljava-lang-string-cannot-be-cast-to-java-lang-string/</link>
		<comments>http://alfredjava.wordpress.com/2010/06/22/error-java-lang-classcastexception-java-ljava-lang-string-cannot-be-cast-to-java-lang-string/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 12:08:34 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[Parameter]]></category>
		<category><![CDATA[Request]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=163</guid>
		<description><![CDATA[ERROR: java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String Story: Ok, I hits the above error when I try to loop through the request parameters, and print out all parameter Key and Value. The ClassCastException is a general exception, it will be thrown when you try to cast an Apple to an Orange. Thats simple! When [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=163&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>ERROR: </strong> java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String</p>
<p><strong>Story:</strong><br />
Ok, I hits the above error when I try to loop through the request parameters, and print out all parameter Key and Value.<br />
The ClassCastException is a general exception, it will be thrown when you try to cast an Apple to an Orange. Thats simple!<br />
When the first time I read this exception message, "[Ljava.lang.String; cannot be cast to java.lang.String", I though there is some typo in the compiler <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
What is the difference between "[Ljava.lang.String" and "java.lang.String"?<br />
From the wording itself, quite straight forward. The later do not have "[L", but what is the "[L"?<br />
Thanks for some stupid errors I hit before, I recall that the "[L" is the representation of Array object!</p>
<p><strong>CODE / SOLUTION:</strong><br />
Here is the way I used to print out all parameter Key and Value. I'm not sure its a correct / best way, but its works!</p>
<p><pre class="brush: java;">
Map paramMap = request.getParameterMap();
Iterator iter = paramMap.entrySet().iterator();
while(iter.hasNext()) {
    Entry&lt;String, String[]&gt; entry =  (Entry&lt;String, String[]&gt;) iter.next();
    String key = entry.getKey();
    String value = entry.getValue()[0];
    logger.debug(&quot;key[{}] value[{}]&quot;, key, value);
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=163&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2010/06/22/error-java-lang-classcastexception-java-ljava-lang-string-cannot-be-cast-to-java-lang-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>Struts1 &#124; Forward Page</title>
		<link>http://alfredjava.wordpress.com/2009/06/19/struts1-forward-page/</link>
		<comments>http://alfredjava.wordpress.com/2009/06/19/struts1-forward-page/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 07:28:43 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[Struts1]]></category>
		<category><![CDATA[forward page]]></category>
		<category><![CDATA[ForwardAction]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=159</guid>
		<description><![CDATA[This is a simple and quick solution to forward / go to a page in struts1. In normal case, we have to call to a class extending ActionForm before you&#8217;re going to the next JSP page. For cases that you do not need any action to perform before you reach that JSP, you can call [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=159&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a simple and quick solution to forward / go to a page in struts1.</p>
<p>In normal case, we have to call to a class extending ActionForm before you&#8217;re going to the next JSP page. For cases that you do not need any action to perform before you reach that JSP, you can call the class <code>org.apache.struts.actions.<strong>ForwardAction</strong></code>.  So that, you only have to prepare the JSP file and do the configuration in <code>struts-config.xml</code> as below.</p>
<p><pre class="brush: xml;">
&lt;action-mappings&gt;
    ....
    &lt;action path=&quot;/ForwardLogin&quot;
        parameter=&quot;/WEB-INF/pages/login/login.jsp&quot;
        type=&quot;org.apache.struts.actions.ForwardAction&quot;
        scope=&quot;request&quot;
        validate=&quot;false&quot;/&gt;
    ....
&lt;action-mappings&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=159&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2009/06/19/struts1-forward-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
		<item>
		<title>Disable BEEP sound in Terminal</title>
		<link>http://alfredjava.wordpress.com/2009/06/16/disable-beep-sound-in-terminal/</link>
		<comments>http://alfredjava.wordpress.com/2009/06/16/disable-beep-sound-in-terminal/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 10:36:10 +0000</pubDate>
		<dc:creator>Alfred</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[beep sound]]></category>
		<category><![CDATA[disable sound]]></category>
		<category><![CDATA[error sound]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://alfredjava.wordpress.com/?p=157</guid>
		<description><![CDATA[I&#8217;m not sure this is the best solution or not, but its work! This is an output of my google when I want to disable the error beep sound in terminal. The beep sound I&#8217;m talking about is the annoying sounds like &#8220;beep&#8221; or &#8220;tuuu&#8221; when you&#8217;re over pressing backspace or type something wrong in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=157&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure this is the best solution or not, but its work!<br />
This is an output of my google when I want to disable the error beep sound in terminal.<br />
The beep sound I&#8217;m talking about is the annoying sounds like<br />
&#8220;beep&#8221; or &#8220;tuuu&#8221; when you&#8217;re over pressing backspace or type something wrong in terminal.</p>
<p>The solution that I&#8217;m going to share here is <strong>COPY</strong> from <a href="http://en.kioskea.net/faq/sujet-1018-linux-disable-the-system-beeps">netty5</a>.<br />
I feel that its very useful especially to those who is not familiar with terminal,<br />
coz everything can be done by few mouse clicks.</p>
<p>1. Move your pointer to the top-left corner of your desktop.<br />
2. Click on &#8220;Applications&#8221; &gt; &#8220;Accessories&#8221; &gt; &#8220;Terminal&#8221;. A terminal will be pop up.<br />
3. On the Terminal, click on &#8220;Edit&#8221; &gt; &#8220;Profiles..&#8221;. A small windows named &#8220;Profile&#8221; will be pop up and a &#8220;Default&#8221; profile is selected by default.<br />
4. Click on &#8220;Edit&#8221; in the Profile window. Another small window will be pop up.<br />
5. Click on &#8220;General&#8221; tab, UNCHECK the &#8220;Terminal bell&#8221;, and close all poped up windows. And you&#8217;re done. no more &#8220;beeeep&#8221; or &#8220;tuuuuu&#8221; sounds <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>FYI, I&#8217;m using Ubuntu 9.04 at the moment.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alfredjava.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alfredjava.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alfredjava.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alfredjava.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alfredjava.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alfredjava.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alfredjava.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alfredjava.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alfredjava.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alfredjava.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alfredjava.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alfredjava.wordpress.com/157/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alfredjava.wordpress.com/157/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alfredjava.wordpress.com/157/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alfredjava.wordpress.com&amp;blog=3556657&amp;post=157&amp;subd=alfredjava&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alfredjava.wordpress.com/2009/06/16/disable-beep-sound-in-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/838ced5c57e73d36bdf097d4bba02a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alfred</media:title>
		</media:content>
	</item>
	</channel>
</rss>
