<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0"> <channel><title>While it compiles</title> <link>http://whileitcompiles.com</link> <description /> <lastBuildDate>Fri, 10 Jun 2011 16:02:15 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/WhileItCompiles" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="whileitcompiles" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>Fixing problem Vimeo Desktop Uploader stuck on “Loading” message</title><link>http://whileitcompiles.com/tools/fixing-problem-vimeo-desktop-uploader-stuck-on-loading-message/</link> <comments>http://whileitcompiles.com/tools/fixing-problem-vimeo-desktop-uploader-stuck-on-loading-message/#comments</comments> <pubDate>Fri, 10 Jun 2011 16:02:15 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Adobe AIR]]></category> <category><![CDATA[vimeo]]></category> <category><![CDATA[Vimeo Desktop Uploader]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=192</guid> <description><![CDATA[I&#8217;ve been using Vimeo Desktop Uploader for over a year. It is simple tool written in Adobe AIR which allows batch upload of videos to Vimeo. From time to time, when I try to run application, it hangs with &#8220;Loading&#8221; message. Restarting application does not help. Unauthorizing application either. I searched for similar problem on [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Ivg4w55jGJClQXEjL2l2Op-1VT0/0/da"><img src="http://feedads.g.doubleclick.net/~a/Ivg4w55jGJClQXEjL2l2Op-1VT0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Ivg4w55jGJClQXEjL2l2Op-1VT0/1/da"><img src="http://feedads.g.doubleclick.net/~a/Ivg4w55jGJClQXEjL2l2Op-1VT0/1/di" border="0" ismap="true"></img></a></p><p>I&#8217;ve been using Vimeo Desktop Uploader for over a year. It is simple tool written in Adobe AIR which allows batch upload of videos to Vimeo. From time to time, when I try to run application, it hangs with &#8220;Loading&#8221; message. Restarting application does not help. Unauthorizing application either. I searched for similar problem on Vimeo Help Forum and found <a
title="Air file damaged or something" href="http://vimeo.com/forums/topic:24002">this</a> topic. Looked promising so I&#8217;ve follow the advice and deleted vimeo files in <em><strong>~/.appdata/Adobe/AIR/ELS/ </strong></em>on my Ubuntu. But that didn&#8217;t help. After application authorization on Vimeo it was still displaying &#8220;Loading&#8221; message forever.</p><p>But than I thought that it is a good track and decided to clean entire AIR . I&#8217;ve deleted <em><strong>~/.appdata/Adobe/AIR/</strong></em> directory. And that was it! I could use Vimeo Desktop Uploader once again.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/tools/fixing-problem-vimeo-desktop-uploader-stuck-on-loading-message/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to gain couple of Gigabytes of free space on Linux?</title><link>http://whileitcompiles.com/linux/how-to-gain-couple-of-gigabytes-of-free-space-on-linux/</link> <comments>http://whileitcompiles.com/linux/how-to-gain-couple-of-gigabytes-of-free-space-on-linux/#comments</comments> <pubDate>Fri, 08 Oct 2010 09:38:18 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[partition]]></category> <category><![CDATA[tune2fs]]></category> <category><![CDATA[Ubuntu]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=180</guid> <description><![CDATA[Lately I have problems with free space on my /home partition on my laptop. The problem is that I have nothing else to delete. The only option would be to buy a additional USB hard disc (I find it cumbersome) or buy a new, bigger hard drive for my laptop and exchange it with my [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/rTLmSyYGTZLy3O3CX3MSCYWndds/0/da"><img src="http://feedads.g.doubleclick.net/~a/rTLmSyYGTZLy3O3CX3MSCYWndds/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rTLmSyYGTZLy3O3CX3MSCYWndds/1/da"><img src="http://feedads.g.doubleclick.net/~a/rTLmSyYGTZLy3O3CX3MSCYWndds/1/di" border="0" ismap="true"></img></a></p><p>Lately  I have problems with free space on my /home partition on my laptop. The  problem is that I have nothing else to delete. The only option would be  to buy a additional USB hard disc (I find it cumbersome) or buy a new,  bigger hard drive for my laptop and exchange it with my current one.</p><p><span
id="more-180"></span>When I was checking space left on my hard drive (using df command) I&#8217;ve noticed that</p><div
id="wpshdo_1" class="wp-synhighlighter-outer"><div
id="wpshdt_1" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_1"></a><a
id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="text" style="font-family:monospace;">lukas@acer:~$ df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sda3 126G 117G 2,5G 98% /home</pre></div></div><br
/> sum of Used and Avail column does not equal to Size of the partition. The difference was about 6Gb. Weird&#8230;</p><h3>Reserved Block Count on partition</h3><p>I  found an explanation (using Google ofcors) that some percent of blocks  on each partition is being reserved to reduce system defragmentation,  allow root login for maintenance and to allow Linux system logging  facility to function properly in case of lack of free space on  partition. It is called Reserved Block Count and it is set to 5% of  partition size by default.</p><p>You can check current Reserved Block Count value using dumpe2fs command</p><div
id="wpshdo_2" class="wp-synhighlighter-outer"><div
id="wpshdt_2" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_2"></a><a
id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="text" style="font-family:monospace;">lukas@acer:~$ sudo dumpe2fs /dev/sda3 | grep &quot;Reserved block count&quot;
dumpe2fs 1.41.12 (17-May-2010)
Reserved block count: 1653590</pre></div></div><p>Block  size of my partition is 4096 (it can be checked using dumpe2fs  command). So reserved space on my partition is about 6,3 Gb and equal  missing size from hd command.</p><p>How to change Reserved Block Count<br
/> Reserved Block Count for given partition can be changed using tune2fs command</p><div
id="wpshdo_3" class="wp-synhighlighter-outer"><div
id="wpshdt_3" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_3"></a><a
id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="text" style="font-family:monospace;">sudo tune2fs -m 0 /dev/sda3</pre></div></div><p>where /dev/sda3 is your file system identifier</p><p>-m option sets the percentage of reserved file system blocks (in this case it is being set to 0%)</p><p>Then I&#8217;ve checked again free space in my system:</p><div
id="wpshdo_4" class="wp-synhighlighter-outer"><div
id="wpshdt_4" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_4"></a><a
id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="text" style="font-family:monospace;">lukas@acer:~$ df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sda3 126G 117G 8,8G 94% /home</pre></div></div><p>I have additional 6Gb on my home partition!</p><h3>Is it safe?</h3><p>You  can disable Reserved Block Count (by setting the percentage of reserved  filesystem blocks to 0%) safely on not-system partitions (such as /home  partitions). You shouldn&#8217;t do this on partitions used by root  (especially / and /root) and on partitions used by OS for logging and  storing temporary files (e.g. /var and /tmp).</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/linux/how-to-gain-couple-of-gigabytes-of-free-space-on-linux/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Problem with Chromium browser after upgrade to Ubuntu 10.10</title><link>http://whileitcompiles.com/ubuntu/problem-with-chromium-browser-after-upgrade-to-ubuntu-10-10/</link> <comments>http://whileitcompiles.com/ubuntu/problem-with-chromium-browser-after-upgrade-to-ubuntu-10-10/#comments</comments> <pubDate>Tue, 05 Oct 2010 19:23:13 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[bug]]></category> <category><![CDATA[Chrome]]></category> <category><![CDATA[Chromium]]></category> <category><![CDATA[libmoon]]></category> <category><![CDATA[Ubuntu 10.10]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=170</guid> <description><![CDATA[Today I&#8217;ve upgraded Ubuntu on my laptop to Ubuntu 10.10 (Maverick Meerkat) Release Candidate. Everything went smoothly. Ubuntu downloaded all needed packages and upgraded system. I had no problem during startup nor during work with new Ubuntu. Thou when I tried to launch my Chromium browser I shut down immediatly after startup. I tried once [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/JNIPwdBEmu2F1Iko7BTUtm-DXzc/0/da"><img src="http://feedads.g.doubleclick.net/~a/JNIPwdBEmu2F1Iko7BTUtm-DXzc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JNIPwdBEmu2F1Iko7BTUtm-DXzc/1/da"><img src="http://feedads.g.doubleclick.net/~a/JNIPwdBEmu2F1Iko7BTUtm-DXzc/1/di" border="0" ismap="true"></img></a></p><p>Today I&#8217;ve upgraded Ubuntu on my laptop to Ubuntu 10.10 (Maverick Meerkat) Release Candidate. Everything went smoothly. Ubuntu downloaded all needed packages and upgraded system. I had no problem during startup nor during work with new Ubuntu. Thou when I tried to launch my Chromium browser I shut down immediatly after startup. I tried once again, this time lauching browser from Gnome Terminal.</p><p><span
id="more-170"></span></p><p>I got followin message:</p><div
id="wpshdo_5" class="wp-synhighlighter-outer"><div
id="wpshdt_5" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_5"></a><a
id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="dos" style="font-family:monospace;">OpenOffice path before fixup is '/usr/lib/openoffice'
OpenOffice path is '/usr/lib/openoffice
Attempting to load the system libmoon
Segmentation fault</pre></div></div><p>I found following <a
title="cannot open Firefox/Chromium/Google Chrome when libmoon is installed  " href="https://bugs.launchpad.net/ubuntu/+source/moon/+bug/538796" target="_blank">bug</a> in Google and I&#8217;ve followed last note saing “Uninstalling libmoon solved the problem”.</p><p>So I&#8217;ve uninstalled libmoon and then I could lauch Chromium browser.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/ubuntu/problem-with-chromium-browser-after-upgrade-to-ubuntu-10-10/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Atlassian aquires Bitbucket.org</title><link>http://whileitcompiles.com/tools/atlassian-aquires-bitbucket-org/</link> <comments>http://whileitcompiles.com/tools/atlassian-aquires-bitbucket-org/#comments</comments> <pubDate>Thu, 30 Sep 2010 19:57:45 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[News]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[atlassian]]></category> <category><![CDATA[bitbucket]]></category> <category><![CDATA[comparison]]></category> <category><![CDATA[git]]></category> <category><![CDATA[github]]></category> <category><![CDATA[mercurial]]></category> <category><![CDATA[SCM]]></category> <category><![CDATA[VCS]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=157</guid> <description><![CDATA[Atlassian has aquired Bitbucket.org, a hosted code collaboration site for Mercurial distributed version control system. What is more important for developers, from friday Bitbucket will offer a free account for five developers and unlimited numer of repositories (ideal for small teams). Comparable account on github.com (popular collaboration site for Git, main Mercurial competitor) would cost [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/iKX-Xj7Tmv3RinRt9qZcklMOa0o/0/da"><img src="http://feedads.g.doubleclick.net/~a/iKX-Xj7Tmv3RinRt9qZcklMOa0o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iKX-Xj7Tmv3RinRt9qZcklMOa0o/1/da"><img src="http://feedads.g.doubleclick.net/~a/iKX-Xj7Tmv3RinRt9qZcklMOa0o/1/di" border="0" ismap="true"></img></a></p><p
style="text-align: left;">Atlassian has aquired <a
title="Bitbucket.org" href="http://bitbucket.org" target="_blank">Bitbucket.org</a>, a hosted code collaboration site for <a
title="Mercurial SCM" href="http://mercurial.selenic.com" target="_blank">Mercurial</a> distributed version control system.</p><p
style="text-align: left;"><span
id="more-157"></span>What is more important for developers, from friday Bitbucket will offer a free account for five developers and unlimited numer of repositories (ideal for small teams). Comparable account on <a
title="Github.com" href="http://github.com" target="_blank">github.com</a> (popular collaboration site for <a
title="Git SCM" href="http://git-scm.com" target="_blank">Git</a>, main Mercurial competitor) would cost us $7 per month.<a
href="http://whileitcompiles.com/wp-content/uploads/2010/09/BitBucket_Home.png"></a></p><p
style="text-align: left;"><a
href="http://whileitcompiles.com/wp-content/uploads/2010/09/BitBucket_Home.png"><br
/> </a><a
href="http://whileitcompiles.com/wp-content/uploads/2010/09/BitBucket_Home.png"><img
class="aligncenter size-large wp-image-161" title="BitBucket.org" src="http://whileitcompiles.com/wp-content/uploads/2010/09/BitBucket_Home-1024x1024.png" alt="Bitbucket home page" width="600" height="600" /></a></p><p>I hope that github will soon offer comparable free account. I&#8217;m using Git and don&#8217;t wan&#8217;t to switch to Mercurial.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/tools/atlassian-aquires-bitbucket-org/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Problem with sqlite3.dll</title><link>http://whileitcompiles.com/programming/rails/problem-with-sqlite3-dll/</link> <comments>http://whileitcompiles.com/programming/rails/problem-with-sqlite3-dll/#comments</comments> <pubDate>Fri, 17 Sep 2010 11:38:00 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Rails]]></category> <category><![CDATA[rails]]></category> <category><![CDATA[sqlite]]></category> <category><![CDATA[windows]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=146</guid> <description><![CDATA[After successfully installed Rails I’ve created clean project using command and installed sqlite3 gem. When I tried to start application I got error dialog box with message: “The program can&#8217;t start because sqlite3.dll is missing from your computer. Try reinstalling the program to fix the problem.” Another confusing error… Luckily I was able to fix [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/DkdPtmm1ClgiCaCsSRMKABMTC6o/0/da"><img src="http://feedads.g.doubleclick.net/~a/DkdPtmm1ClgiCaCsSRMKABMTC6o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DkdPtmm1ClgiCaCsSRMKABMTC6o/1/da"><img src="http://feedads.g.doubleclick.net/~a/DkdPtmm1ClgiCaCsSRMKABMTC6o/1/di" border="0" ismap="true"></img></a></p><p>After successfully installed Rails I’ve created clean project using</p><div
id="wpshdo_6" class="wp-synhighlighter-outer"><div
id="wpshdt_6" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_6"></a><a
id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="dos" style="font-family:monospace;">rails new helloworld_project</pre></div></div><p>command and installed sqlite3 gem.</p><p><span
id="more-146"></span></p><p>When I tried to start application I got error dialog box with message:</p><p>“The program can&#8217;t start because sqlite3.dll is missing from your computer. Try reinstalling the program to fix the problem.”</p><p>Another confusing error…</p><p>Luckily I was able to fix this quickly.</p><p>First I’ve downloaded sqlitedll zip from <a
href="http://www.sqlite.org/download.html">http://www.sqlite.org/download.html</a> site, and then I’ve put sqlite3.dll to my ruby installation bin directory.</p><p>Then I was able to successfully launch my rails application.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/programming/rails/problem-with-sqlite3-dll/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Using gem from behind a proxy</title><link>http://whileitcompiles.com/programming/rails/using-gem-from-behind-a-proxy/</link> <comments>http://whileitcompiles.com/programming/rails/using-gem-from-behind-a-proxy/#comments</comments> <pubDate>Fri, 17 Sep 2010 10:22:28 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Rails]]></category> <category><![CDATA[gem]]></category> <category><![CDATA[proxy]]></category> <category><![CDATA[rails]]></category> <category><![CDATA[windows]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=139</guid> <description><![CDATA[Lately I&#8217;ve changed computer to new one and I&#8217;ve lost my Rails installation. Today I decided to recreate my environment. My computer is behind a HTTP proxy so I&#8217;ve knew that I will have some problems with installing Rails using gem installer. Of course running command didn&#8217;t work. I received following error message: I&#8217;ve created [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/F3CHV8PWxaDLkTyehdNlPCUQmD0/0/da"><img src="http://feedads.g.doubleclick.net/~a/F3CHV8PWxaDLkTyehdNlPCUQmD0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/F3CHV8PWxaDLkTyehdNlPCUQmD0/1/da"><img src="http://feedads.g.doubleclick.net/~a/F3CHV8PWxaDLkTyehdNlPCUQmD0/1/di" border="0" ismap="true"></img></a></p><p>Lately I&#8217;ve changed computer to new one and I&#8217;ve lost my Rails installation. Today I decided to recreate my environment. My computer is behind a HTTP proxy so I&#8217;ve knew that I will have some problems with installing Rails using gem installer.</p><p><span
id="more-139"></span></p><p>Of course running command</p><div
id="wpshdo_7" class="wp-synhighlighter-outer"><div
id="wpshdt_7" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_7"></a><a
id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="dos" style="font-family:monospace;">gem install rails</pre></div></div><p>didn&#8217;t work.</p><p>I received following error message:</p><div
id="wpshdo_8" class="wp-synhighlighter-outer"><div
id="wpshdt_8" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_8"></a><a
id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="dos" style="font-family:monospace;">&gt; gem install rails
ERROR:  http://rubygems.org/ does <a href="http://www.ss64.com/nt/not.html"><span class="kw2">not</span></a> appear to be a repository
ERROR:  Could <a href="http://www.ss64.com/nt/not.html"><span class="kw2">not</span></a> find a valid gem 'rails' <span class="br0">&#40;</span>&gt;= 0<span class="br0">&#41;</span> <a href="http://www.ss64.com/nt/in.html"><span class="kw1">in</span></a> any repository</pre></div></div><p>I&#8217;ve created .gemrc file in my home directory and specified http_proxy option and added following line</p><div
id="wpshdo_9" class="wp-synhighlighter-outer"><div
id="wpshdt_9" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_9"></a><a
id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><pre class="dos" style="font-family:monospace;">http_proxy: http://proxy_ip:proxy_port</pre></div></div><p>into it.</p><p>But that didn&#8217;t help. I was a little bit confused because it was the way I did it last time (very long time ago thou).</p><p>I&#8217;ve tried to use -http_proxy in command line but gem could not understand this option (why, if documentation say it is a proper way to configure proxy?!). Then I&#8217;ve tried last option mentioned in documentation (-p as a shortcut of -http_proxy option) and, surprisingly, it worked.</p><p>I have to remember that: use</p><div
id="wpshdo_10" class="wp-synhighlighter-outer"><div
id="wpshdt_10" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_10"></a><a
id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><pre class="dos" style="font-family:monospace;">gem install -p http://proxy_ip:proxy_port rails</pre></div></div><p>next time.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/programming/rails/using-gem-from-behind-a-proxy/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How to remove envelope from Indicator applet?</title><link>http://whileitcompiles.com/ubuntu/how-to-remove-envelope-from-indicator-applet/</link> <comments>http://whileitcompiles.com/ubuntu/how-to-remove-envelope-from-indicator-applet/#comments</comments> <pubDate>Tue, 08 Jun 2010 17:44:54 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[indicator applet]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=130</guid> <description><![CDATA[In Ubuntu 10.04 Indicator applet replaced separate applets in taskbar (e.g. sound applet, battery applet, network applet). Its main purpose was to unify messages being shown to user. Personally, I do not like this solution. First of all I can not switch back to previously used applets. There is also problem with space between icons [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/jRQxqHMFcjH0tvoqGG5uTIGtpVE/0/da"><img src="http://feedads.g.doubleclick.net/~a/jRQxqHMFcjH0tvoqGG5uTIGtpVE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jRQxqHMFcjH0tvoqGG5uTIGtpVE/1/da"><img src="http://feedads.g.doubleclick.net/~a/jRQxqHMFcjH0tvoqGG5uTIGtpVE/1/di" border="0" ismap="true"></img></a></p><p>In Ubuntu 10.04 Indicator applet replaced separate applets in taskbar (e.g. sound applet, battery applet, network applet). Its main purpose was to unify messages being shown to user.</p><p><span
id="more-130"></span>Personally, I do not like this solution. First of all I can not switch back to previously used applets. There is also problem with space between icons in applet. For example distance between other elements in my taskbar (e.g. clock and Pidgin icon) is less than between indicator applet icons (which looks strange on my desktop). Moreover I use only web interface to my Gmail account so I don&#8217;t need envelope icon for Evolution/Thunderbird events. Having unused icon in taskbar is irritating, but I managed to remove it.</p><p>I executed following command:</p><div
id="wpshdo_11" class="wp-synhighlighter-outer"><div
id="wpshdt_11" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_11"></a><a
id="wpshat_11" class="wp-synhighlighter-title" href="#codesyntax_11"  onClick="javascript:wpsh_toggleBlock(11)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_11" onClick="javascript:wpsh_code(11)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_11" onClick="javascript:wpsh_print(11)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_11" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">sudo</span> <span class="kw2">aptitude</span> purge indicator-me indicator-messages gwibber</pre></div></div><p>Then I removed Indicator applet from by taskbar and then added it once again.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/ubuntu/how-to-remove-envelope-from-indicator-applet/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Speed Dial for Chrome browser</title><link>http://whileitcompiles.com/tools/speed-dial-for-chrome-browser/</link> <comments>http://whileitcompiles.com/tools/speed-dial-for-chrome-browser/#comments</comments> <pubDate>Tue, 18 May 2010 18:00:40 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Tools]]></category> <category><![CDATA[Chrome]]></category> <category><![CDATA[extensions]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=122</guid> <description><![CDATA[Today I discovered cool extension for Chrome browser: Speed Dial. It replaces new tab page with your predefined visual bookmarks. Pretty straightforward but can save a lot of time entering once again Gmail or Google Reader address in browser.]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/MDTM279AN0W0Maqqr35qkx2h_ho/0/da"><img src="http://feedads.g.doubleclick.net/~a/MDTM279AN0W0Maqqr35qkx2h_ho/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/MDTM279AN0W0Maqqr35qkx2h_ho/1/da"><img src="http://feedads.g.doubleclick.net/~a/MDTM279AN0W0Maqqr35qkx2h_ho/1/di" border="0" ismap="true"></img></a></p><p>Today I discovered cool extension for Chrome browser: <a
title="Speed Dial" href="https://chrome.google.com/extensions/detail/dgpdioedihjhncjafcpgbbjdpbbkikmi#" target="_blank" rel="nofollow">Speed Dial</a>.</p><p><span
id="more-122"></span><a
href="http://whileitcompiles.com/wp-content/uploads/2010/05/Speed-Dial.png"><img
class="aligncenter size-medium wp-image-123" title="Speed Dial" src="http://whileitcompiles.com/wp-content/uploads/2010/05/Speed-Dial-300x240.png" alt="" width="300" height="240" /></a><br
/> It  replaces new tab page with your predefined visual bookmarks. Pretty  straightforward but can save a lot of time entering once again Gmail or  Google Reader address in browser.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/tools/speed-dial-for-chrome-browser/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Setting window buttons layout in Ubuntu 10.04</title><link>http://whileitcompiles.com/ubuntu/setting-window-buttons-layout-in-ubuntu-10-04/</link> <comments>http://whileitcompiles.com/ubuntu/setting-window-buttons-layout-in-ubuntu-10-04/#comments</comments> <pubDate>Sun, 25 Apr 2010 19:27:35 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[Ubuntu 10.04]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=113</guid> <description><![CDATA[Today I&#8217;ve upgraded Ubuntu on my laptop to 10.04 version release candidate. Update went smoothly. After 10 minutes I had all packages downloaded. After another 20-30 minutes all packages were installed and after restart I had new Ubuntu release installed. The only thing that was annoying me was a default window button layout. Minimize, maximize [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/CFs6mFMph4wtr5LdWBbvy-jM7B8/0/da"><img src="http://feedads.g.doubleclick.net/~a/CFs6mFMph4wtr5LdWBbvy-jM7B8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CFs6mFMph4wtr5LdWBbvy-jM7B8/1/da"><img src="http://feedads.g.doubleclick.net/~a/CFs6mFMph4wtr5LdWBbvy-jM7B8/1/di" border="0" ismap="true"></img></a></p><p>Today I&#8217;ve upgraded Ubuntu on my laptop to 10.04 version release candidate. Update went smoothly. After 10 minutes I had all packages downloaded. After another 20-30 minutes all packages were installed and after restart I had new Ubuntu  release installed.</p><p>The only thing that was annoying me was a default window button layout. Minimize, maximize and close buttons were moved from right to left.</p><p><span
id="more-113"></span></p><p><a
href="http://whileitcompiles.com/wp-content/uploads/2010/04/Ubuntu-10.04.jpg"><img
class="aligncenter size-medium wp-image-114" title="Ubuntu 10.04" src="http://whileitcompiles.com/wp-content/uploads/2010/04/Ubuntu-10.04-300x226.jpg" alt="Buttons position in Ubuntu 10.04" width="300" height="226" /></a></p><p>After a minute Googling for solution I found it. I had to run gconf-editor (ALT+F2 to open Run command window) and then change settings for apps-&gt;metacity-&gt;general-&gt;button layout property from</p><p><strong><em>maximize, minimize, close:</em></strong></p><p>to</p><p><strong><em>:minimize,maximize,close</em></strong></p><p>Colon position is most important: it determines buttons position in window bar.</p><p>Changes were applied immediately and I had good, old buttons layout.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/ubuntu/setting-window-buttons-layout-in-ubuntu-10-04/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Getting started with Google App Engine and JSF</title><link>http://whileitcompiles.com/programming/java/getting-started-with-google-app-engine-and-jsf/</link> <comments>http://whileitcompiles.com/programming/java/getting-started-with-google-app-engine-and-jsf/#comments</comments> <pubDate>Thu, 25 Mar 2010 19:44:27 +0000</pubDate> <dc:creator>lukas</dc:creator> <category><![CDATA[Java]]></category> <category><![CDATA[Google App Engine]]></category> <category><![CDATA[JSF]]></category> <guid isPermaLink="false">http://whileitcompiles.com/?p=65</guid> <description><![CDATA[Some time ago I decided to familiarize with Google App Engine capabilities. Lately I read a document about GAE Java SDK version capabilities. I was surprised that a big part of JEE stack is supported e.g.: JPA and JSF. That moment I decided to make simple JSF-based demo application. Google App Engine Google App Engine [...]]]></description> <content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/qHxTx4pyE8a8X_w5JTEBIxsreEY/0/da"><img src="http://feedads.g.doubleclick.net/~a/qHxTx4pyE8a8X_w5JTEBIxsreEY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qHxTx4pyE8a8X_w5JTEBIxsreEY/1/da"><img src="http://feedads.g.doubleclick.net/~a/qHxTx4pyE8a8X_w5JTEBIxsreEY/1/di" border="0" ismap="true"></img></a></p><p>Some time ago I decided to  familiarize with Google App Engine capabilities. Lately I read a <a
title="Will it play in App Engine" rel="nofollow" href="http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine" target="_blank">document</a> about GAE Java SDK  version capabilities. I was surprised that a  big part of JEE stack is supported  e.g.: JPA  and JSF. That  moment I decided to make simple JSF-based demo application.</p><p><span
id="more-65"></span></p><h2>Google  App Engine</h2><p>Google App Engine (GAE) is a hosting service which allows you  to run your web application in Google data center infrastructure. GAE  is responsible for scalling  and assuring accesibility  of your application. At this moment Python and Java  runtime environments are  supported. Using GAE is free up to certain limits. Free version  is limited to 1,300,000 requests, 1Gb of outgoing and 1Gb of ingoing  bandwidth daily. It is not much but should be sufficient at the begining.  You can read about GAE quotas and billing <a
title="Google App Engine Quotas" rel="nofollow" href="http://code.google.com/intl/pl/appengine/docs/quotas.html" target="_blank">here</a>.</p><h2>Prerequisites</h2><p>I&#8217;ve used <a
title="SpringSource Tool Suite" rel="nofollow" href="http://www.springsource.com/products/sts" target="_blank">SpringSource Tool Suite</a> 2.3.0 but you can use any Eclipse from version 3.3 to 3.5. You will also need to get and install <a
title="Google Plugin for Eclipse" rel="nofollow" href="http://code.google.com/intl/pl/eclipse" target="_blank">Google Plugin for Eclipse</a>. I&#8217;ve used Software Update feature to  install plugin but you can  download and install it by hand. For details read  official <a
title="Using the Google Plugin for Eclipse" rel="nofollow" href="http://code.google.com/intl/pl/appengine/docs/java/tools/eclipse.html" target="_blank">Google App Engine documentation</a>.</p><h2>Create  Google Web Application project</h2><p>Basically I&#8217;ve followed instructions on <a
title="Configuring JavaServer Faces 2.0 to run on the Google App Engine Using Eclipse" rel="nofollow" href="https://sites.google.com/a/wildstartech.com/adventures-in-java/Java-Platform-Enterprise-Edition/JavaServer-Faces/sun-javaserver-faces-reference-implementation/configuring-jsf-20-to-run-on-the-google-appengine" target="_blank">Configuring  JavaServer Faces 2.0 to  run on the Google App Engine Using Eclipse page</a>. First  I&#8217;ve  created new Google Web Project by selecting <strong>File</strong>-&gt;<strong>New  project</strong>-&gt;<strong>Other</strong>-&gt;<strong>Google</strong>-&gt;<strong>Web Application Project</strong>.</p><p
style="text-align: center;"><a
href="http://whileitcompiles.com/wp-content/uploads/2010/03/Google-Web-Project-0.jpg"><img
class="aligncenter size-medium wp-image-89" title="Google Web Project step 1" src="http://whileitcompiles.com/wp-content/uploads/2010/03/Google-Web-Project-0-300x285.jpg" alt="" width="300" height="285" /></a></p><div
id="h_i2"><div
style="text-align: left;"><p>On the project properties page  I&#8217;ve  deselected <em><strong>Use Google Web Toolkit </strong></em>checkbox.</p><p
style="text-align: center;"><a
href="http://whileitcompiles.com/wp-content/uploads/2010/03/Google-Web-Project-1.jpg"><img
class="aligncenter size-medium wp-image-90" title="Google Web Project step 2" src="http://whileitcompiles.com/wp-content/uploads/2010/03/Google-Web-Project-1-257x300.jpg" alt="" width="300" height="303" /></a></p></div></div><p>Then I&#8217;ve downloaded  following libraries into <strong>war/WEB-INF/lib</strong> folder:<br
/> - <a
title="Unified Expression Language libraries download" rel="nofollow" href="https://uel.dev.java.net/download.html" target="_blank">Unified Expression Language</a> libraries: el-api-1.1.jar and  el-impl-1.1.jar<br
/> - <a
title="Mojarra download" rel="nofollow" href="https://javaserverfaces.dev.java.net/files/documents/1866/146040/mojarra-2.0.2-FCS-binary.zip" target="_blank">JavaServer Faces</a> libraries: jsf-api.jar  and jsf-impl.jar<br
/> - <a
title="Apache Xalan download" rel="nofollow" href="http://xml.apache.org/xalan-j/downloads.html" target="_blank">Apache Xalan</a> libraries: serializer.jar,  xalan.jar,  xercesImpl.jar, xml-apis.jar, xsltc.jar</p><p>TIP: I&#8217;ve downloaded <a
rel="nofollow" href="http://ftp.tpnet.pl/vol/d1/apache/xml/xalan-j/binaries/xalan-j_2_7_0-bin-2jars.zip">xalan-j_2_7_0-bin-2jars.zip</a> version and extracted needed Xalan libraries.</p><p>Next thing to do was to copy JavaServer Faces Tag library definition. I&#8217;ve downloaded Mojarra <a
title="Mojarra source download" rel="nofollow" href="https://javaserverfaces.dev.java.net/files/documents/1866/146041/mojarra-2.0.2-FCS-source.zip" target="_blank">source distribution</a> and copied <strong>jsf_core.tld</strong> and <strong>ui.tld</strong> files from jsf-ri/conf/share directory into war/WEB-INF directory.</p><p>That  I&#8217;ve  updated <strong>appengine-web.xml<em> </em></strong>file and  added <span
style="font-family: 'courier new',monospace;">&lt;sessions-enabled&gt;true&lt;/sessions-enabled&gt;</span> tag</p><div
id="wpshdo_12" class="wp-synhighlighter-outer"><div
id="wpshdt_12" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_12"></a><a
id="wpshat_12" class="wp-synhighlighter-title" href="#codesyntax_12"  onClick="javascript:wpsh_toggleBlock(12)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_12" onClick="javascript:wpsh_code(12)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_12" onClick="javascript:wpsh_print(12)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_12" class="wp-synhighlighter-inner" style="display: block;"><pre class="xml" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;?xml</span> <span class="re0">version</span>=<span class="st0">&quot;1.0&quot;</span> <span class="re0">encoding</span>=<span class="st0">&quot;utf-8&quot;</span><span class="re2">?&gt;</span></span>
<span class="sc3"><span class="re1">&lt;appengine-web-app</span> <span class="re0">xmlns</span>=<span class="st0">&quot;http://appengine.google.com/ns/1.0&quot;</span><span class="re2">&gt;</span></span>
&nbsp;
<span class="sc3"><span class="re1">&lt;application<span class="re2">&gt;</span></span></span>simpleloancalculator<span class="sc3"><span class="re1">&lt;/application<span class="re2">&gt;</span></span></span>
	<span class="sc3"><span class="re1">&lt;version<span class="re2">&gt;</span></span></span>1<span class="sc3"><span class="re1">&lt;/version<span class="re2">&gt;</span></span></span>
	<span class="sc3"><span class="re1">&lt;sessions-enabled<span class="re2">&gt;</span></span></span>true<span class="sc3"><span class="re1">&lt;/sessions-enabled<span class="re2">&gt;</span></span></span>
&nbsp;
	<span class="sc-1">&lt;!-- Configure java.util.logging --&gt;</span>
	<span class="sc3"><span class="re1">&lt;system-properties<span class="re2">&gt;</span></span></span>
		<span class="sc3"><span class="re1">&lt;property</span> <span class="re0">name</span>=<span class="st0">&quot;java.util.logging.config.file&quot;</span></span>
<span class="sc3">                      <span class="re0">value</span>=<span class="st0">&quot;WEB-INF/logging.properties&quot;</span><span class="re2">/&gt;</span></span>
	<span class="sc3"><span class="re1">&lt;/system-properties<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/application<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/appengine-web-app<span class="re2">&gt;</span></span></span></pre></div></div><p>and  JSF faces-config.xml and web.xml files with default  content</p><p><strong>faces-config.xml</strong></p><div
id="wpshdo_13" class="wp-synhighlighter-outer"><div
id="wpshdt_13" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_13"></a><a
id="wpshat_13" class="wp-synhighlighter-title" href="#codesyntax_13"  onClick="javascript:wpsh_toggleBlock(13)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_13" onClick="javascript:wpsh_code(13)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_13" onClick="javascript:wpsh_print(13)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_13" class="wp-synhighlighter-inner" style="display: block;"><pre class="xml" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;?xml</span> <span class="re0">version</span>=<span class="st0">'1.0'</span> <span class="re0">encoding</span>=<span class="st0">'UTF-8'</span><span class="re2">?&gt;</span></span>
<span class="sc3"><span class="re1">&lt;faces-config</span> <span class="re0">xmlns</span>=<span class="st0">&quot;http://java.sun.com/xml/ns/javaee&quot;</span></span>
<span class="sc3"><span class="re0">xmlns:xsi</span>=<span class="st0">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span></span>
<span class="sc3"><span class="re0">xsi:schemaLocation</span>=<span class="st0">&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd&quot;</span></span>
<span class="sc3"><span class="re0">version</span>=<span class="st0">&quot;2.0&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;application<span class="re2">&gt;</span></span></span>
	<span class="sc3"><span class="re1">&lt;locale-config<span class="re2">&gt;</span></span></span>
		<span class="sc3"><span class="re1">&lt;default-locale<span class="re2">&gt;</span></span></span>en<span class="sc3"><span class="re1">&lt;/default-locale<span class="re2">&gt;</span></span></span>
	<span class="sc3"><span class="re1">&lt;/locale-config<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/application<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/faces-config<span class="re2">&gt;</span></span></span></pre></div></div><p><strong>web.xml</strong></p><div
id="wpshdo_14" class="wp-synhighlighter-outer"><div
id="wpshdt_14" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_14"></a><a
id="wpshat_14" class="wp-synhighlighter-title" href="#codesyntax_14"  onClick="javascript:wpsh_toggleBlock(14)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_14" onClick="javascript:wpsh_code(14)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_14" onClick="javascript:wpsh_print(14)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_14" class="wp-synhighlighter-inner" style="display: block;"><pre class="xml" style="font-family:monospace;"><span class="sc3"><span class="re1">&lt;?xml</span> <span class="re0">version</span>=<span class="st0">&quot;1.0&quot;</span> <span class="re0">encoding</span>=<span class="st0">&quot;utf-8&quot;</span><span class="re2">?&gt;</span></span>
<span class="sc3"><span class="re1">&lt;web-app</span> <span class="re0">version</span>=<span class="st0">&quot;2.5&quot;</span> <span class="re0">xmlns</span>=<span class="st0">&quot;http://java.sun.com/xml/ns/javaee&quot;</span></span>
<span class="sc3">    <span class="re0">xmlns:xsi</span>=<span class="st0">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span></span>
<span class="sc3">    <span class="re0">xsi:schemaLocation</span>=<span class="st0">&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;</span><span class="re2">&gt;</span></span>
    <span class="sc3"><span class="re1">&lt;display-name<span class="re2">&gt;</span></span></span>Wildstar Technologies, LLC. Google AppEngine JSF 2.0
        Template<span class="sc3"><span class="re1">&lt;/display-name<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;description<span class="re2">&gt;</span></span></span>
        Template JSF 2.0 application configured to run on the Google
        AppEngine for Java.
      <span class="sc3"><span class="re1">&lt;/description<span class="re2">&gt;</span></span></span>
    <span class="sc-1">&lt;!--</span>
<span class="sc-1">        ***** GAE 1.3.0 appears to handle server-side state saving. *****</span>
<span class="sc-1">    --&gt;</span>
    <span class="sc3"><span class="re1">&lt;context-param<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-name<span class="re2">&gt;</span></span></span>javax.faces.STATE_SAVING_METHOD<span class="sc3"><span class="re1">&lt;/param-name<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-value<span class="re2">&gt;</span></span></span>server<span class="sc3"><span class="re1">&lt;/param-value<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/context-param<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;context-param<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-name<span class="re2">&gt;</span></span></span>javax.faces.DEFAULT_SUFFIX<span class="sc3"><span class="re1">&lt;/param-name<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-value<span class="re2">&gt;</span></span></span>.xhtml<span class="sc3"><span class="re1">&lt;/param-value<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/context-param<span class="re2">&gt;</span></span></span>
    <span class="sc-1">&lt;!-- GAE Bug 1506 JSP 2.1 API but 2.0 Implementation --&gt;</span>
    <span class="sc3"><span class="re1">&lt;context-param<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-name<span class="re2">&gt;</span></span></span>com.sun.faces.expressionFactory<span class="sc3"><span class="re1">&lt;/param-name<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-value<span class="re2">&gt;</span></span></span>com.sun.el.ExpressionFactoryImpl<span class="sc3"><span class="re1">&lt;/param-value<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/context-param<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;context-param<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;description<span class="re2">&gt;</span></span></span>
          Set this flag to true if you want the JavaServer Faces
          Reference Implementation to validate the XML in your
          faces-config.xml resources against the DTD. Default
          value is false.
        <span class="sc3"><span class="re1">&lt;/description<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-name<span class="re2">&gt;</span></span></span>com.sun.faces.validateXml<span class="sc3"><span class="re1">&lt;/param-name<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-value<span class="re2">&gt;</span></span></span>true<span class="sc3"><span class="re1">&lt;/param-value<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/context-param<span class="re2">&gt;</span></span></span>
    <span class="sc-1">&lt;!--</span>
<span class="sc-1">        ***** Accommodate Single-Threaded Requirement of Google AppEngine</span>
<span class="sc-1">    --&gt;</span>
    <span class="sc3"><span class="re1">&lt;context-param<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;description<span class="re2">&gt;</span></span></span>
          When enabled, the runtime initialization and default ResourceHandler
          implementation will use threads to perform their functions. Set this
          value to false if threads aren't desired (as in the case of running
          within the Google Application Engine).
&nbsp;
          Note that when this option is disabled, the ResourceHandler will not
          pick up new versions of resources when ProjectStage is development.
        <span class="sc3"><span class="re1">&lt;/description<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-name<span class="re2">&gt;</span></span></span>com.sun.faces.enableThreading<span class="sc3"><span class="re1">&lt;/param-name<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;param-value<span class="re2">&gt;</span></span></span>false<span class="sc3"><span class="re1">&lt;/param-value<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/context-param<span class="re2">&gt;</span></span></span>
    <span class="sc-1">&lt;!-- Faces Servlet --&gt;</span>
    <span class="sc3"><span class="re1">&lt;servlet<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;servlet-name<span class="re2">&gt;</span></span></span>Faces Servlet<span class="sc3"><span class="re1">&lt;/servlet-name<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;servlet-class<span class="re2">&gt;</span></span></span>javax.faces.webapp.FacesServlet<span class="sc3"><span class="re1">&lt;/servlet-class<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;load-on-startup<span class="re2">&gt;</span></span></span>1<span class="sc3"><span class="re1">&lt;/load-on-startup<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/servlet<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;servlet-mapping<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;servlet-name<span class="re2">&gt;</span></span></span>Faces Servlet<span class="sc3"><span class="re1">&lt;/servlet-name<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;url-pattern<span class="re2">&gt;</span></span></span>/faces/*<span class="sc3"><span class="re1">&lt;/url-pattern<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;url-pattern<span class="re2">&gt;</span></span></span>*.jsf<span class="sc3"><span class="re1">&lt;/url-pattern<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/servlet-mapping<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;session-config<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;session-timeout<span class="re2">&gt;</span></span></span>30<span class="sc3"><span class="re1">&lt;/session-timeout<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/session-config<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;welcome-file-list<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;welcome-file<span class="re2">&gt;</span></span></span>index.jsp<span class="sc3"><span class="re1">&lt;/welcome-file<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;welcome-file<span class="re2">&gt;</span></span></span>index.xhtml<span class="sc3"><span class="re1">&lt;/welcome-file<span class="re2">&gt;</span></span></span>
        <span class="sc3"><span class="re1">&lt;welcome-file<span class="re2">&gt;</span></span></span>index.html<span class="sc3"><span class="re1">&lt;/welcome-file<span class="re2">&gt;</span></span></span>
    <span class="sc3"><span class="re1">&lt;/welcome-file-list<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/web-app<span class="re2">&gt;</span></span></span></pre></div></div><p>Then  I&#8217;ve created <em><strong><span
style="font-style: normal;">index.jsp</span> </strong></em>file which basically redirects all request to <strong>welcome.jsf </strong>page.</p><div
id="wpshdo_15" class="wp-synhighlighter-outer"><div
id="wpshdt_15" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_15"></a><a
id="wpshat_15" class="wp-synhighlighter-title" href="#codesyntax_15"  onClick="javascript:wpsh_toggleBlock(15)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_15" onClick="javascript:wpsh_code(15)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_15" onClick="javascript:wpsh_print(15)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_15" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/html.html"><span class="kw2">html</span></a>&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/head.html"><span class="kw2">head</span></a>&gt;</span>
	<span class="sc2">&lt;<a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>Initial Redirect Page<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/head.html"><span class="kw2">head</span></a>&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/body.html"><span class="kw2">body</span></a>&gt;</span>
	<span class="sc2">&lt;% response.sendRedirect<span class="br0">&#40;</span><span class="st0">&quot;welcome.jsf&quot;</span><span class="br0">&#41;</span>; %&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/body.html"><span class="kw2">body</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/html.html"><span class="kw2">html</span></a>&gt;</span></pre></div></div><p><strong>welcome.xhtml</strong><strong> </strong>file prints welcome message using<strong> &lt;h:outputText /&gt;</strong> JSF tag.</p><div
id="wpshdo_16" class="wp-synhighlighter-outer"><div
id="wpshdt_16" class="wp-synhighlighter-expanded"><table
border="0" width="100%"><tr><td
align="left" width="80%"><a
name="#codesyntax_16"></a><a
id="wpshat_16" class="wp-synhighlighter-title" href="#codesyntax_16"  onClick="javascript:wpsh_toggleBlock(16)" title="Click to show/hide code block">Code block</a></td><td
align="right"><a
href="#codesyntax_16" onClick="javascript:wpsh_code(16)" title="Show code only"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a
href="#codesyntax_16" onClick="javascript:wpsh_print(16)" title="Print code"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a
href="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img
border="0" style="border: 0 none" src="http://whileitcompiles.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div
id="wpshdi_16" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc0">&lt;!DOCTYPE html</span>
<span class="sc0">PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;</span>
<span class="sc0">       &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/html.html"><span class="kw2">html</span></a> xmlns<span class="sy0">=</span><span class="st0">&quot;http://www.w3.org/1999/xhtml&quot;</span> xml:<span class="kw3">lang</span><span class="sy0">=</span><span class="st0">&quot;en&quot;</span> <span class="kw3">lang</span><span class="sy0">=</span><span class="st0">&quot;en&quot;</span></span>
<span class="sc2">xmlns:f<span class="sy0">=</span><span class="st0">&quot;http://java.sun.com/jsf/core&quot;</span></span>
<span class="sc2">xmlns:h<span class="sy0">=</span><span class="st0">&quot;http://java.sun.com/jsf/html&quot;</span></span>
<span class="sc2">xmlns:ui<span class="sy0">=</span><span class="st0">&quot;http://java.sun.com/jsf/facelets&quot;</span>&gt;</span>
<span class="sc2">&lt;h:head <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;head&quot;</span>&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/meta.html"><span class="kw2">meta</span></a> <span class="kw3">http-equiv</span><span class="sy0">=</span><span class="st0">&quot;Content-Type&quot;</span> <span class="kw3">content</span><span class="sy0">=</span><span class="st0">&quot;text/html; charset=UTF-8&quot;</span> <span class="sy0">/</span>&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>Welcome to JSF 2.0 on the Google AppEngine!<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span>h:head&gt;</span>
<span class="sc2">&lt;h:body <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;body&quot;</span>&gt;</span>
	<span class="sc2">&lt;f:view contentType<span class="sy0">=</span><span class="st0">&quot;text/html&quot;</span>&gt;</span>
		<span class="sc2">&lt;<a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;&lt;h:outputText <span class="kw3">value</span><span class="sy0">=</span><span class="st0">&quot;You are now up and running with JavaServer Faces 2.0 on the Google App Engine.&quot;</span><span class="sy0">/</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/p.html"><span class="kw2">p</span></a>&gt;</span>
	<span class="sc2">&lt;<span class="sy0">/</span>f:view&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span>h:body&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/html.html"><span class="kw2">html</span></a>&gt;</span></pre></div></div><p>When I&#8217;ve  tried to run my project I&#8217;ve got following exception:</p><pre>java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class. Please see the Google  App Engine developer's guide for more details.
at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
at com.sun.faces.config.WebConfiguration.processJndiEntries(WebConfiguration.java:578)
at com.sun.faces.config.WebConfiguration.&lt;init&gt;(WebConfiguration.java:114)
at com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:174)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:161)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:188)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:147)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:219)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.&lt;init&gt;(DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:89)</pre><p>I&#8217;ve double checked  all settings and library dependencies but couldn&#8217;t figure  out the source of this exception. Then I&#8217;ve Googled this <a
title="Mojarra JSF 2.0 RC2 and Google App Engine SDK 1.2.6" href=" http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-google-app-engine-sdk-1-2-6" target="_blank">article</a>.  I&#8217;ve  followed instructions on this blog (thanks Josh)  com.sun.faces.config.WebConfiguration class in under my project. Content  of this class can be found <a
title="WebConfiguration.java patch" href="http://code.google.com/p/joshjcarrier/source/browse/trunk/Sun%20JSF%20GAE/src/com/sun/faces/config/WebConfiguration.java" target="_blank">here</a>.</p><p>After  that I was able to run my project.</p><p><a
title="Loan calculator" href="http://simpleloancalculator.appspot.com" target="_blank">Demo</a> of my  application.</p><p><a
title="Source code for Simple Loan Calculator" href="http://whileitcompiles.googlecode.com/files/SimpleLoanCalculator-1.0.zip" target="_blank">Source  code</a> with all required libraries.</p> ]]></content:encoded> <wfw:commentRss>http://whileitcompiles.com/programming/java/getting-started-with-google-app-engine-and-jsf/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss><!-- Dynamic page generated in 1.982 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-02-06 11:57:41 --><!-- Compression = gzip -->

