<?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>Kittivong&#039;s Blog</title>
	<atom:link href="http://kittivong.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kittivong.wordpress.com</link>
	<description>Journey of Desperate Programmer ...</description>
	<lastBuildDate>Wed, 20 Jan 2010 04:28:21 +0000</lastBuildDate>
	<language>th</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='kittivong.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Kittivong&#039;s Blog</title>
		<link>http://kittivong.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://kittivong.wordpress.com/osd.xml" title="Kittivong&#039;s Blog" />
	<atom:link rel='hub' href='http://kittivong.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Data Query String in URL with percent symbol (%)</title>
		<link>http://kittivong.wordpress.com/2010/01/20/data-query-string-in-url-with-percent-symbol/</link>
		<comments>http://kittivong.wordpress.com/2010/01/20/data-query-string-in-url-with-percent-symbol/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 04:28:21 +0000</pubDate>
		<dc:creator>kittivong</dc:creator>
				<category><![CDATA[REST]]></category>
		<category><![CDATA[Web Service]]></category>

		<guid isPermaLink="false">http://kittivong.wordpress.com/?p=20</guid>
		<description><![CDATA[In my project, I develops RESTful Web Services to act as interfaces for each of my data sources application in my data integration project. To make it flexible enough to handle uncertain requirement. I decided to allow web service GET method to accept data query string (actually JPA Query Language). After testing I found that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=20&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my project, I develops RESTful Web Services to act as interfaces for each of my data sources application in my data integration project. To make it flexible enough to handle uncertain requirement. I decided to allow web service GET method to accept data query string (actually JPA Query Language). After testing I found that it return wrong result when where condition got percent symbol(%) in it.</p>
<p>For Example<br />
<code><br />
http://data.xxx.net/myresource?criteria= Resource1.x like '%2%'<br />
</code></p>
<p>After look at it for a while .. I found that in <a title="URL Encoding" href="http://www.blooberry.com/indexdot/html/topics/urlencoding.htm" target="_blank">RFC 1738: Uniform Resource Locators (URL) specification</a> when we pass url percent symbol is reserved symbol use in order to send special character then .. to be able to pass percent symbol correctly viw GET method. I need to follow URL Spec. by using %25 instead of percent symbol(%) then the correct GET url should be like this<br />
<code><br />
http://data.xxx.net/myresource?criteria= Resource1.x like '%252%25'<br />
</code><br />
Now it works&#8230;</p>
<p>I think this should be one point of concern for other special character also when manually create url in GET method.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kittivong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kittivong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kittivong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kittivong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kittivong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kittivong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kittivong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kittivong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kittivong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kittivong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kittivong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kittivong.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kittivong.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kittivong.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=20&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kittivong.wordpress.com/2010/01/20/data-query-string-in-url-with-percent-symbol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c5f205dbe8391c9c7129751f889e77e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Lenk</media:title>
		</media:content>
	</item>
		<item>
		<title>Comic on PRS-600</title>
		<link>http://kittivong.wordpress.com/2010/01/05/comic-on-prs-600/</link>
		<comments>http://kittivong.wordpress.com/2010/01/05/comic-on-prs-600/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 07:18:49 +0000</pubDate>
		<dc:creator>kittivong</dc:creator>
				<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Gadget]]></category>
		<category><![CDATA[Manga]]></category>

		<guid isPermaLink="false">http://kittivong.wordpress.com/?p=16</guid>
		<description><![CDATA[I&#8217;m manga fan and one of main reason I bought PRS-600 was for me to easily read my comic book on trip. Since PRS-600 not directly support zip/rar files, I needs to find someway to do it myself. After googled I found this great tool ﻿﻿Comic2lrf http://www.mobileread.com/forums/showthread.php?t=11123 Since, it&#8217;s a command line software then I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=16&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m manga fan and one of main reason I bought PRS-600 was for me to easily read my comic book on trip.</p>
<p>Since PRS-600 not directly support zip/rar files, I needs to find someway to do it myself. After googled I found this great tool</p>
<p>﻿﻿Comic2lrf<br />
<a href="http://www.mobileread.com/forums/showthread.php?t=11123">http://www.mobileread.com/forums/showthread.php?t=11123</a></p>
<p>Since, it&#8217;s a command line software then I create a .bat file to help me easier run it<br />
<code><br />
comiclrf *.cb*<br />
PAUSE<br />
</code></p>
<p>When I first trying it out I got error &#8230; and I comes to learn that this tool has following constrain:</p>
<ol>
<li>It support only files with cbz,cbr extension</li>
<li>It support only files name without special charactor ([,],(,etc.)</li>
<li>It support only one level folder</li>
</ol>
<p><span id="more-16"></span></p>
<p>Then for first constrain I create 2 new .bat files<br />
rename_zip.bat<br />
<code>rename_extension.bat *.zip *.cbz</code><br />
rename_rar.bat<br />
<code>rename_extension.bat *.rar *.cbr</code></p>
<p>for second constriain, I coudn&#8217;t find command tool to do it automatically instead I need to use windows software to do it I use<br />
<code><br />
Metamorphose</p>
<p>http://file-folder-ren.sourceforge.net/</code></p>
<p>I browse to folder and use Main tab with Operations Name &#8211; Search &#8211; Text to remove all invalid char with Replace with blank option</p>
<p>For third issue, I have no way except extract and re-zip it again manually.. luckily my comics has not many of this case.</p>
<p>After that I run comic2lrf again and now .. all comics are convert to lrf and ready to view in my PRS-600</p>
<p>NOTE: comic2lrf needs sometimes to run then please be prepare</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kittivong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kittivong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kittivong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kittivong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kittivong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kittivong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kittivong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kittivong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kittivong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kittivong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kittivong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kittivong.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kittivong.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kittivong.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=16&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kittivong.wordpress.com/2010/01/05/comic-on-prs-600/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c5f205dbe8391c9c7129751f889e77e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Lenk</media:title>
		</media:content>
	</item>
		<item>
		<title>eUML2 Free Edition with Galileo</title>
		<link>http://kittivong.wordpress.com/2010/01/04/euml2-free-edition-with-galileo/</link>
		<comments>http://kittivong.wordpress.com/2010/01/04/euml2-free-edition-with-galileo/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 06:23:13 +0000</pubDate>
		<dc:creator>kittivong</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[UML]]></category>
		<category><![CDATA[eUML]]></category>

		<guid isPermaLink="false">http://kittivong.wordpress.com/?p=13</guid>
		<description><![CDATA[eUML2 is a good UML tools that support round-trip code generation. It offer free edition that has enough feature to get thing done After downloaded eUML2 for Galeleo free Edition from its website (http://www.soyatec.com/euml2/installation/offline.php#offline) and tried install it offline I got following error Missing requirement: Modeling toolset 2.5.0.20091121 (org.soyatec.tools.modeling 2.5.0.20091121) requires 'bundle org.eclipse.gmf.runtime.emf.ui.properties 0.0.0' but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=13&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>eUML2 is a good UML tools that support round-trip code generation. It offer free edition that has enough feature to get thing done</p>
<p>After downloaded eUML2 for Galeleo free Edition from its website (<a href="http://www.soyatec.com/euml2/installation/offline.php#offline">http://www.soyatec.com/euml2/installation/offline.php#offline</a>) and tried install it offline I got following error</p>
<p><code>Missing requirement: Modeling toolset 2.5.0.20091121 (org.soyatec.tools.modeling 2.5.0.20091121) requires 'bundle org.eclipse.gmf.runtime.emf.ui.properties 0.0.0' but it could not be found</code></p>
<p>and others got similar errors. (<a href="http://www.soyatec.fr/forum/viewtopic.php?p=2073&amp;sid=d9e401e99e2f3dbd137e1df20a9e18bf">http://www.soyatec.fr/forum/viewtopic.php?p=2073&amp;sid=d9e401e99e2f3dbd137e1df20a9e18bf</a>) but it seems that its support for free community is very hard to get and not very welcome (<a href="http://www.soyatec.com/forum/viewtopic.php?t=894">http://www.soyatec.com/foru m/viewtopic.php?t=894</a>).</p>
<p>After I take a look at log I found that it report missing gmf &#8230;  I tried download GMF manually from eclipse site but got some kinds of dependency maze (it really remind me of old days linux)  .. after several tried I still got more and more dependency errors then I came across<br />
<a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-modeling-galileo-SR1-incubation-win32.zip">Eclipse Modeling Tools (includes Incubating components) (371 MB)</a></p>
<p><a href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR1/eclipse-modeling-galileo-SR1-incubation-win32.zip"></a>I tried its UML Tools but it can&#8217;t generate code yet but I thought it may help me with dependency problems. I download and install eUML on this instead and now it works!. This may just an easy way out but it fine for me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kittivong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kittivong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kittivong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kittivong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kittivong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kittivong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kittivong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kittivong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kittivong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kittivong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kittivong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kittivong.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kittivong.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kittivong.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=13&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kittivong.wordpress.com/2010/01/04/euml2-free-edition-with-galileo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c5f205dbe8391c9c7129751f889e77e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Lenk</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse 3.5.1 &#8211; eclipse ini</title>
		<link>http://kittivong.wordpress.com/2010/01/04/eclipse-3-5-1-ini-setting/</link>
		<comments>http://kittivong.wordpress.com/2010/01/04/eclipse-3-5-1-ini-setting/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 03:27:37 +0000</pubDate>
		<dc:creator>kittivong</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JVM]]></category>

		<guid isPermaLink="false">http://kittivong.wordpress.com/?p=5</guid>
		<description><![CDATA[ "JVM terminated. Exit code=-1" <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=5&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Start up Eclipse can be trivial matter but setting Eclipse ini is tricky. I found that even though I got 4 GB of memory I can&#8217;t set xmx over 512 m without getting <em>&#8220;JVM terminated. Exit code=-1&#8243;</em> and sometimes (even worst) it come down to 128m.</p>
<p>My Environment are followings</p>
<ul>
<li>Windows XP SP3</li>
<li>4 gb memory</li>
<li>JDK 1.6 u16 b1</li>
</ul>
<p>After doing some research some says that it about java using extra memory and make available memory lower than it used to be.</p>
<p>After long search, I found this website that have suggestion on eclipse.ini config.</p>
<p><a href="http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse">http://stackoverflow.com/questions/142357/what-are-the-best-jvm-settings-for-eclipse</a></p>
<p>It sound promising and after I tried I still got same problem with Xmx maximum limit. I decided to trail and error them by cutting them out one by one and found that the issue is from</p>
<pre><code>--launcher.XXMaxPermSize
384m</code></pre>
<p>The website said it was for some environment that not accept passing MaxPermSize directly to JVM and needs to pass via Eclipse launcher instead. After I remove this line everything works. Maybe I will spend sometime doing more research on it but it work now for me.</p>
<p>my final config</p>
<p><code>-data<br />
d:/workspace<br />
-showlocation<br />
-showsplash<br />
-startup<br />
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar<br />
--launcher.library<br />
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519<br />
-vm<br />
c:/program files/Java/jdk6/jre/bin/server/jvm.dll<br />
-vmargs<br />
-Dosgi.requiredJavaVersion=1.5<br />
-Xms1024m<br />
-Xmx1024m<br />
-Xss4m<br />
-XX:PermSize=128m<br />
-XX:MaxPermSize=384m<br />
-XX:CompileThreshold=5<br />
-XX:MaxGCPauseMillis=10<br />
-XX:MaxHeapFreeRatio=70<br />
-XX:+UseConcMarkSweepGC<br />
-XX:+CMSIncrementalMode<br />
-XX:+CMSIncrementalPacing<br />
-Dcom.sun.management.jmxremote<br />
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/jv/eclipse/mydropins</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kittivong.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kittivong.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kittivong.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kittivong.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kittivong.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kittivong.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kittivong.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kittivong.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kittivong.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kittivong.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kittivong.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kittivong.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kittivong.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kittivong.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=5&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kittivong.wordpress.com/2010/01/04/eclipse-3-5-1-ini-setting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c5f205dbe8391c9c7129751f889e77e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Lenk</media:title>
		</media:content>
	</item>
		<item>
		<title>Tomcat 6 and SSL on Windows</title>
		<link>http://kittivong.wordpress.com/2009/12/30/tomcat6-ssl-windows/</link>
		<comments>http://kittivong.wordpress.com/2009/12/30/tomcat6-ssl-windows/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 03:49:15 +0000</pubDate>
		<dc:creator>kittivong</dc:creator>
				<category><![CDATA[Admin]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Tomcat 6 and SSL on Windows
<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=1&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste"><span style="font-family:Verdana, sans-serif;line-height:normal;font-size:12px;color:#484848;"></p>
<div><strong><br />
</strong></div>
<ol>
<li><strong>Create a certificate keystore by executing the following command:</strong>
<pre style="background-color:#fafafa;width:906px;border:1px solid #dadada;margin:1em 1em 1em 1.6em;padding:2px;">
*Windows:*
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA</pre>
<pre style="background-color:#fafafa;width:906px;border:1px solid #dadada;margin:1em 1em 1em 1.6em;padding:2px;">*Unix:*
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA</pre>
<p><strong>NOTE</strong>: YOU <strong>MUST</strong> specify a password value of &#8220; <strong><em>changeit</em></strong> &#8220;.</li>
<li>Copy &#8220;.keystore&#8221; file from &#8220;C:\Users\Administrator&#8221;(or any other user used for running keygen) to &#8220;C:\&#8221; <strong>[NOTE: you can specify new location at server.xml]</strong>
<pre style="background-color:#fafafa;width:906px;border:1px solid #dadada;margin:1em 1em 1em 1.6em;padding:2px;"> &lt;!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation --&gt;

    &lt;Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
           keystoreFile="c:\.keystore" keystorePass="changeit"
               clientAuth="false" sslProtocol="TLS" /&gt;</pre>
</li>
<li><strong>Enable SSL</strong>
<ol>
<li>Uncomment the &#8220;SSL HTTP/1.1 Connector&#8221; entry in $CATALINA_BASE/conf/server.xml and tweak as necessary.</li>
</ol>
</li>
<li>restart Tomcat Service</li>
<li>Test by typing <a class="external" style="color:#2a5685;text-decoration:none;padding-left:12px;background-image:url('http://project.egmu-research.org/images/external.png');background-position:0 60%;background-repeat:no-repeat no-repeat;" href="https://localhost:8443/">https://localhost:8443/</a> or <a class="external" style="color:#2a5685;text-decoration:none;padding-left:12px;background-image:url('http://project.egmu-research.org/images/external.png');background-position:0 60%;background-repeat:no-repeat no-repeat;" href="https://localhost/">https://localhost</a> (if you configure port to 443)</li>
</ol>
<p></span></div>
<p>Reference: <a href="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html">http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/kittivong.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/kittivong.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/kittivong.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/kittivong.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/kittivong.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/kittivong.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/kittivong.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/kittivong.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/kittivong.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/kittivong.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/kittivong.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/kittivong.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/kittivong.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/kittivong.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=kittivong.wordpress.com&amp;blog=11162681&amp;post=1&amp;subd=kittivong&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://kittivong.wordpress.com/2009/12/30/tomcat6-ssl-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2c5f205dbe8391c9c7129751f889e77e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Lenk</media:title>
		</media:content>
	</item>
	</channel>
</rss>
