<?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>Occasional Musings on GIS and Web technology</title>
	<atom:link href="http://arkblog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://arkblog.wordpress.com</link>
	<description>This is a personal blog which talks about specific topics on developing web applications using ESRI Server technologies</description>
	<lastBuildDate>Fri, 19 Jun 2009 06:51:24 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='arkblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/35e157d5f93f81529a6c69cab556f54f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Occasional Musings on GIS and Web technology</title>
		<link>http://arkblog.wordpress.com</link>
	</image>
			<item>
		<title>New sample : GeoIP + ArcGIS &#8211; Where Am I</title>
		<link>http://arkblog.wordpress.com/2009/06/18/new-sample-geoip-arcgis-where-am-i/</link>
		<comments>http://arkblog.wordpress.com/2009/06/18/new-sample-geoip-arcgis-where-am-i/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 06:51:24 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[HTML + Javscript + CSS]]></category>
		<category><![CDATA[JS API]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[geoip]]></category>
		<category><![CDATA[where am i]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=171</guid>
		<description><![CDATA[New sample shows how to use the free GeoIP service to find the location and show the lat/lon of the visitor on a map. Here is the link to the sample : http://sathyaprasad.appspot.com/geoip.html
If you go to my homepage http://sathyaprasad.appspot.com you can see how I have used the smaller version of the sample inside of a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=171&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>New sample shows how to use the free GeoIP service to find the location and show the lat/lon of the visitor on a map. Here is the link to the sample : <a href="http://sathyaprasad.appspot.com/geoip.html" target="_blank">http://sathyaprasad.appspot.com/geoip.html</a></p>
<p>If you go to my homepage <a href="http://sathyaprasad.appspot.com" target="_blank">http://sathyaprasad.appspot.com</a> you can see how I have used the smaller version of the sample inside of a page using an iframe to locate the website visitors. Feel free to copy the code and use it in your site.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=171&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2009/06/18/new-sample-geoip-arcgis-where-am-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
		<item>
		<title>New sample &#8211; OpenLayers API + ArcGIS Services</title>
		<link>http://arkblog.wordpress.com/2009/06/16/new-sample-posted/</link>
		<comments>http://arkblog.wordpress.com/2009/06/16/new-sample-posted/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 17:41:05 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[HTML + Javscript + CSS]]></category>
		<category><![CDATA[ArcGIS]]></category>
		<category><![CDATA[ESRI]]></category>
		<category><![CDATA[openlayers]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=166</guid>
		<description><![CDATA[Posted a new sample showing how to consume ArGIS Services (dynamic and cached) using OpenLayers API.
Check it out: http://sathyaprasad.appspot.com/openlayers.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=166&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Posted a new sample showing how to consume ArGIS Services (dynamic and cached) using OpenLayers API.</p>
<p>Check it out: <a href="http://sathyaprasad.appspot.com/openlayers.html">http://sathyaprasad.appspot.com/openlayers.html</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/166/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/166/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/166/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=166&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2009/06/16/new-sample-posted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
		<item>
		<title>Here&#8217;s a wierd one &#8211; Address already in use</title>
		<link>http://arkblog.wordpress.com/2009/06/03/heres-a-wierd-one-address-already-in-use/</link>
		<comments>http://arkblog.wordpress.com/2009/06/03/heres-a-wierd-one-address-already-in-use/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 20:36:45 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[address already in use]]></category>
		<category><![CDATA[arcgis rest]]></category>
		<category><![CDATA[bindexception]]></category>
		<category><![CDATA[port 8300]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=162</guid>
		<description><![CDATA[Today I encounterd a strange error-
I started the ArcGIS Manager Service to use the Restful Services Directory and to my surprise it did not work. I have installed ArcGIS Server 9.3.1 for a few weeks now and was working fine.
I tried the following url&#8217;s:
http://localhost:8399/arcgis/rest &#8211; restful services direcoty &#8211; did not work
http://localhost:8399/arcgis/services?wsdl  &#8211; services [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=162&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today I encounterd a strange error-</p>
<p>I started the <strong>ArcGIS Manager Service</strong> to use the Restful Services Directory and to my surprise it did not work. I have installed ArcGIS Server 9.3.1 for a few weeks now and was working fine.</p>
<p>I tried the following url&#8217;s:</p>
<p><span style="color:#800000;">http://localhost:8399/arcgis/rest</span> &#8211; restful services direcoty &#8211; did not work</p>
<p><span style="color:#800000;">http://localhost:8399/arcgis/services?wsd</span><span style="color:#800000;">l </span> &#8211; services catalog soap end point &#8211; did not work</p>
<p><span style="color:#800000;">http://localhost:8399</span> &#8211; directory listing of  &#8221;C:\Program Files\ArcGIS\java\web_output&#8221; - did not work<span id="more-162"></span></p>
<p>Wearing my trouble shooting hat, I checked the log files at location: &#8220;<strong>C:\Program Files\ArcGIS\java\manager\service\logs</strong>&#8220;</p>
<p>1. <strong>manager_stderr.txt</strong> &#8211; did not indicate any issues</p>
<p>2.<strong> managerappserver0.log</strong> &#8211; here I found the following error:</p>
<p><code>Jun 3, 2009 12:46:00 PM org.apache.catalina.core.StandardServer await<br />
SEVERE: StandardServer.await: create[8300]:<br />
java.net.BindException: Address already in use: JVM_Bind<br />
at java.net.PlainSocketImpl.socketBind(Native Method)<br />
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)<br />
at java.net.ServerSocket.bind(ServerSocket.java:319)<br />
at java.net.ServerSocket.(ServerSocket.java:185)<br />
at org.apache.catalina.core.StandardServer.await(StandardServer.java:346)<br />
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)<br />
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
at java.lang.reflect.Method.invoke(Method.java:585)<br />
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)<br />
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)<br />
</code></p>
<p>The error message indicates that port 8300 was blocked/taken in my machine.</p>
<p>The cuplrit was the Aptana IDE which was open and the port 8300 was used up.</p>
<p>Digging deeper: Aptana IDE is bundled with the Jaxer support. Jaxer Console for internal Jaxer Server uses a free port between 8300-8500. It so happened that Since ArcGIS Server Manager was not yet started when I opened Aptana IDE, it used the 8300. So the order matters. Could&#8217;nt find a simple way to change the port range within Aptana. This could be fodder for a different post.</p>
<p>Incase you are wondering why is ArcGIS Server Manager using port 8300 (the well known ports are 8399 and 8099) then the answer is here &#8220;C:\Program Files\ArcGIS\java\manager\service\tomcat\managerappserver\conf\server.xml&#8221;. The manager appserver (tomcat) uses port 8300 as shutdown port. And yes, you can edit shutdown port from 8300 to 8299 (or any other unique port)  and restart the ArcGIS Server Manager service.</p>
<p>Easier Solution would be to close Aptana IDE. Restart <strong>ArcGIS Server Manager</strong> (manager.exe) service and then open Aptana IDE.</p>
<p>Voila, all back to normal &#8230; back to work now &#8230;</p>
<p>Let me know if anyone else had the same issue.</p>
<p><em><span style="color:#ff0000;">Note: This post is not applicable to ArcGIS Server .Net</span></em></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=162&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2009/06/03/heres-a-wierd-one-address-already-in-use/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing and running the Custom Rest Service &#8211; Mapservice legends sample</title>
		<link>http://arkblog.wordpress.com/2009/05/19/installing-and-running-the-custom-rest-service-mapservice-legends-sample/</link>
		<comments>http://arkblog.wordpress.com/2009/05/19/installing-and-running-the-custom-rest-service-mapservice-legends-sample/#comments</comments>
		<pubDate>Tue, 19 May 2009 19:09:21 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[9.3.1]]></category>
		<category><![CDATA[codegallery]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ganymede]]></category>
		<category><![CDATA[legends]]></category>
		<category><![CDATA[mapservice]]></category>
		<category><![CDATA[restservice]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[webadf]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/2009/05/19/installing-and-running-the-custom-rest-service-mapservice-legends-sample/</guid>
		<description><![CDATA[I recently saw that there has been lots of discussion on the custom rest service legend sample posted on the code gallery in terms of getting the sample up and running successfully. If you have no clue on what I am talking about, here is the link.
This post should help you get the sample running [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=135&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I recently saw that there has been lots of discussion on the custom rest service legend sample posted on the code gallery in terms of getting the sample up and running successfully. If you have no clue on what I am talking about, here is the <a href="http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&amp;scriptID=16096">link.</a></p>
<p>This post should help you get the sample running in no time (almost):</p>
<p><em>I am using Eclipse (screen-shots show version 3.4/Ganymede, 3.3/Europa should work as well) as my IDE and ArcGIS Server 9.3.1 Java ADF libraries.</em></p>
<p><strong>1. Download the sample on to the disk:</strong></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/1.jpg"><img class="alignnone size-medium wp-image-137" title="sample" src="http://arkblog.files.wordpress.com/2009/05/1.jpg?w=300&#038;h=238" alt="sample" width="300" height="238" /></a></p>
<p><span id="more-135"></span></p>
<p><img class="alignnone size-medium wp-image-136" style="border:1px solid black;" title="download" src="http://arkblog.files.wordpress.com/2009/05/2.jpg?w=300&#038;h=238" alt="download" width="300" height="238" /></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/3.jpg"><img class="alignnone size-full wp-image-149" title="unzip" src="http://arkblog.files.wordpress.com/2009/05/3.jpg?w=300&#038;h=233" alt="unzip" width="300" height="233" /></a></p>
<p><strong>The sample comes with &#8220;json.jar&#8221; library, as shown in the screen-shot here:</strong></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/4.jpg"><img class="alignnone size-medium wp-image-150" title="library-included" src="http://arkblog.files.wordpress.com/2009/05/4.jpg?w=300&#038;h=233" alt="library-included" width="300" height="233" /></a></p>
<p><strong>2. Create a new project in eclipse</strong></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/seven.jpg"><img class="alignnone size-medium wp-image-142" title="new-project-1" src="http://arkblog.files.wordpress.com/2009/05/seven.jpg?w=300&#038;h=227" alt="new-project-1" width="300" height="227" /></a></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/eight.jpg"><img class="alignnone size-medium wp-image-140" title="new-project-2" src="http://arkblog.files.wordpress.com/2009/05/eight.jpg?w=258&#038;h=300" alt="new-project-2" width="258" height="300" /></a></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/nine.jpg"><img class="alignnone size-medium wp-image-141" title="new-project-3" src="http://arkblog.files.wordpress.com/2009/05/nine.jpg?w=258&#038;h=300" alt="new-project-3" width="258" height="300" /></a></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/ten.jpg"><img class="alignnone size-medium wp-image-139" title="new-project-4" src="http://arkblog.files.wordpress.com/2009/05/ten.jpg?w=287&#038;h=300" alt="new-project-4" width="287" height="300" /></a></p>
<p><strong>3. Import the source files and web-inf folder from the sample to the project</strong></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/after-import.jpg"><img class="alignnone size-full wp-image-153" style="border:1px solid black;" title="after-import" src="http://arkblog.files.wordpress.com/2009/05/after-import.jpg?w=268&#038;h=292" alt="after-import" width="268" height="292" /></a></p>
<p><strong>As you see, IDE complains that there are missing imports. We are going to fix them in step 4</strong></p>
<p><strong>4. Copy (drag and drop) the following libraries into the project from the Web ADF library collection</strong><br />
<em>Note: You do not need ArcGIS Server to run this sample, just the Java Web ADF libraries is good. You can copy the required libraries from other machine if needed<br />
</em><br />
<a href="http://arkblog.files.wordpress.com/2009/05/five.jpg"><img class="alignnone size-medium wp-image-147" title="select-libraries" src="http://arkblog.files.wordpress.com/2009/05/five.jpg?w=300&#038;h=281" alt="select-libraries" width="300" height="281" /></a></p>
<p><strong>After completing steps 3 and 4 you project should look like:</strong></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/11.jpg"><img class="alignnone size-medium wp-image-143" title="after-adding-libraries" src="http://arkblog.files.wordpress.com/2009/05/11.jpg?w=200&#038;h=300" alt="after-adding-libraries" width="200" height="300" /></a></p>
<p><strong>5. Run the web app (Assumption is that you have eclipse configured with web server like tomcat or jetty. I am using tomcat 6)</strong></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/tomcat.jpg"><img class="alignnone size-medium wp-image-151" title="run-with-tomcat" src="http://arkblog.files.wordpress.com/2009/05/tomcat.jpg?w=230&#038;h=300" alt="run-with-tomcat" width="230" height="300" /></a>    </p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/12.jpg"><img class="alignnone size-medium wp-image-144" title="run1" src="http://arkblog.files.wordpress.com/2009/05/12.jpg?w=300&#038;h=227" alt="run1" width="300" height="227" /></a><br />
 <br />
<a href="http://arkblog.files.wordpress.com/2009/05/13.jpg"><img class="alignnone size-medium wp-image-145" title="run2" src="http://arkblog.files.wordpress.com/2009/05/13.jpg?w=300&#038;h=226" alt="run2" width="300" height="226" /></a></p>
<p><strong>6. Optionally, you can export this into a war file for deployment</strong></p>
<p><a href="http://arkblog.files.wordpress.com/2009/05/14.jpg"><img class="alignnone size-medium wp-image-146" title="export-to-war" src="http://arkblog.files.wordpress.com/2009/05/14.jpg?w=300&#038;h=226" alt="export-to-war" width="300" height="226" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=135&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2009/05/19/installing-and-running-the-custom-rest-service-mapservice-legends-sample/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/1.jpg?w=300" medium="image">
			<media:title type="html">sample</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/2.jpg?w=300" medium="image">
			<media:title type="html">download</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/3.jpg?w=300" medium="image">
			<media:title type="html">unzip</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/4.jpg?w=300" medium="image">
			<media:title type="html">library-included</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/seven.jpg?w=300" medium="image">
			<media:title type="html">new-project-1</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/eight.jpg?w=258" medium="image">
			<media:title type="html">new-project-2</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/nine.jpg?w=258" medium="image">
			<media:title type="html">new-project-3</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/ten.jpg?w=287" medium="image">
			<media:title type="html">new-project-4</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/after-import.jpg" medium="image">
			<media:title type="html">after-import</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/five.jpg?w=300" medium="image">
			<media:title type="html">select-libraries</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/11.jpg?w=200" medium="image">
			<media:title type="html">after-adding-libraries</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/tomcat.jpg?w=230" medium="image">
			<media:title type="html">run-with-tomcat</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/12.jpg?w=300" medium="image">
			<media:title type="html">run1</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/13.jpg?w=300" medium="image">
			<media:title type="html">run2</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2009/05/14.jpg?w=300" medium="image">
			<media:title type="html">export-to-war</media:title>
		</media:content>
	</item>
		<item>
		<title>Devsummit 2009 Demo &#8211; infoTips posted on code gallery for download</title>
		<link>http://arkblog.wordpress.com/2009/04/01/devsummit-2009-demo-infotips-posted-on-code-gallery-for-download/</link>
		<comments>http://arkblog.wordpress.com/2009/04/01/devsummit-2009-demo-infotips-posted-on-code-gallery-for-download/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 23:47:44 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[JS API]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=121</guid>
		<description><![CDATA[Just posted a new sample on code gallery. This sample was demoed in the devsummit 2009 session and as promised I have upload a zip file with samples, documentation and source file.
Here are quick links to the sample :
Resource Center &#8211; Code Gallery Post
View it live link
Rate the sample and post any comments directly at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=121&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just posted a new sample on code gallery. This sample was demoed in the devsummit 2009 session and as promised I have upload a zip file with samples, documentation and source file.</p>
<p>Here are quick links to the sample :</p>
<p><a href="http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&amp;scriptID=16189">Resource Center &#8211; Code Gallery Post</a></p>
<p><a href="http://serverapps.esri.com/javascript_examples/infoTipSample">View it live link</a></p>
<p>Rate the sample and post any comments directly at that site or here in my blog. Based on the comments I will add more functionality to the infoTip class.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=121&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2009/04/01/devsummit-2009-demo-infotips-posted-on-code-gallery-for-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
		<item>
		<title>Working with esri.graphics</title>
		<link>http://arkblog.wordpress.com/2009/04/01/working-with-esrigraphics/</link>
		<comments>http://arkblog.wordpress.com/2009/04/01/working-with-esrigraphics/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 22:54:16 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[JS API]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=125</guid>
		<description><![CDATA[Few common scenarios when you are working with the graphics layer (@ version 1.3) in the ArcGIS Server JS API
1. map.graphics returns the graphics layer
2. map.graphics.graphics returns the array of graphic elements (geometry, symbol, attribute, infotemplate) added to the graphics layer
To remove all graphic elements in the graphic layer
map.graphics.clear();
To show/hide specific graphic element
map.graphics.graphics[index].show();
map.graphics.graphics[index].hide();
To check if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=125&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Few common scenarios when you are working with the graphics layer (@ version 1.3) in the ArcGIS Server JS API</p>
<p>1. map.graphics returns the graphics layer<br />
2. map.graphics.graphics returns the array of graphic elements (geometry, symbol, attribute, infotemplate) added to the graphics layer</p>
<p>To remove all graphic elements in the graphic layer<br />
<code>map.graphics.clear();</code></p>
<p>To show/hide specific graphic element<br />
<code>map.graphics.graphics[index].show();<br />
map.graphics.graphics[index].hide();</code></p>
<p>To check if any specific graphic element is being shown or not:<br />
<code>// 'none' is hidden and 'block' is visible<br />
map.graphics.graphics[index].getDojoShape().rawNode.style.display</code></p>
<p>Loop through all the graphic elements<br />
<code>var graphics = map.graphics.graphics;<br />
for (var i=0; i&lt; graphics.length; i++)<br />
{<br />
  // do something with graphics[i]<br />
}</code></p>
<p>even better</p>
<p><code><br />
dojo.forEach(map.graphics.graphics, "console.log(item.getDojoShape().rawNode.style.display)");<br />
//or<br />
dojo.forEach(map.graphics.graphics, "console.log(item,index,array)");<br />
//or<br />
dojo.forEach(map.graphics.graphics, function(item){//item is a graphic element });<br />
</code></p>
<p>Note: @version 1.4 you will have ability to add multiple graphics layers (in addition to the default graphics layer) and can control the stack order (z-index).</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=125&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2009/04/01/working-with-esrigraphics/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
		<item>
		<title>Ready to use Sample layouts using Dojo</title>
		<link>http://arkblog.wordpress.com/2009/01/21/118/</link>
		<comments>http://arkblog.wordpress.com/2009/01/21/118/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 19:40:46 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[JS API]]></category>
		<category><![CDATA[bordercontainer]]></category>
		<category><![CDATA[contentpane]]></category>
		<category><![CDATA[dojo]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=118</guid>
		<description><![CDATA[Just posted a blog entry on the ArcGIS Server Blog. Check it out.
Blog talks about how to use Dojo Dijits &#8211; BorderContainer (dijit.layout.BorderContainer) and ContentPane (dijit.layout.ContentPane) to design your layouts for application. I have created a bunch of sample layouts with most of the commonly used layouts, check out the links below.
You an try the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=118&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just posted a blog entry on the <a href="http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/01/21/Using-the-Dojo-BorderContainer-to-design-application-layouts.aspx">ArcGIS Server Blog</a>. Check it out.</p>
<p>Blog talks about how to use Dojo Dijits &#8211; BorderContainer (dijit.layout.BorderContainer) and ContentPane (dijit.layout.ContentPane) to design your layouts for application. I have created a bunch of sample layouts with most of the commonly used layouts, check out the links below.</p>
<p>You an try the live sample at: <a href="http://serverapps.esri.com/templates/index.html">http://serverapps.esri.com/templates/index.html</a></p>
<p>You can download the samples at: <a href="http://resources.esri.com/arcgisserver/apis/javascript/arcgis/index.cfm?fa=codeGalleryDetails&amp;scriptID=15998">Resource Center Code Gallery</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=118&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2009/01/21/118/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
		<item>
		<title>Good Javascript and Dojo Resources</title>
		<link>http://arkblog.wordpress.com/2008/12/10/good-javascript-and-dojo-resources/</link>
		<comments>http://arkblog.wordpress.com/2008/12/10/good-javascript-and-dojo-resources/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 00:15:54 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[HTML + Javscript + CSS]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=100</guid>
		<description><![CDATA[Here is a list of Javascript and Dojo learning resources (thanks Grayson) that I use. If you know of any good links, add in a comment and I will update the post.
Javascript
Essential Javascript &#8211; A Javascript Tutorial
http://www.comptechdoc.org/independent/web/cgi/javamanual/
http://www.w3schools.com/jsref/default.asp
http://javascript.crockford.com/
Dojo
http://dojotoolkit.org/key-links
Dojo Feature Explorer
http://www.sitepen.com/labs/dojo.php
http://archive.dojotoolkit.org/nightly/checkout/ (Great source for learning how to use dijits and dojox widgets, check out the tests folder)
http://www.roseindia.net/dojo/
10 helpings [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=100&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here is a list of Javascript and Dojo learning resources (thanks Grayson) that I use. If you know of any good links, add in a comment and I will update the post.</p>
<p><strong>Javascript</strong></p>
<p><a href="http://www.hunlock.com/blogs/Essential_Javascript_--_A_Javascript_Tutorial">Essential Javascript &#8211; A Javascript Tutorial</a></p>
<p><a href="http://www.comptechdoc.org/independent/web/cgi/javamanual/">http://www.comptechdoc.org/independent/web/cgi/javamanual/</a></p>
<p><a href="http://www.w3schools.com/jsref/default.asp">http://www.w3schools.com/jsref/default.asp</a></p>
<p><a href="http://javascript.crockford.com/">http://javascript.crockford.com/</a></p>
<p><strong>Dojo</strong></p>
<p><strong><span><a href="http://dojotoolkit.org/key-links">http://dojotoolkit.org/key-links</a></span></strong></p>
<p><strong><span><a href="http://dojocampus.org/explorer">Dojo Feature Explorer</a></span></strong></p>
<p><strong><span><a href="http://www.sitepen.com/labs/dojo.php">h</a></span><span><a href="http://www.sitepen.com/labs/dojo.php">ttp://www.sitepen.com/labs/dojo.php</a></span></strong></p>
<p><strong><span><span><a href="http://archive.dojotoolkit.org/nightly/checkout/">http://archive.dojotoolkit.org/nightly/checkout/</a> (Great source for learning how to use dijits and dojox widgets, check out the tests folder)</span></span></strong></p>
<p><strong><span><span><a href="http://www.roseindia.net/dojo/">http://www.roseindia.net/dojo/</a></span></span></strong></p>
<p><strong><span><span><a href="http://news.oreilly.com/2008/08/10-helpings-of-dojo-goodness.html">10 helpings of Dojo goodness</a></span></span></strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=100&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2008/12/10/good-javascript-and-dojo-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
		<item>
		<title>Minify JavaScript and CSS files in IDE &#8211; netbeans and eclipse</title>
		<link>http://arkblog.wordpress.com/2008/12/02/minify-javascript-and-css-files-in-ide-netbeans-and-eclipse/</link>
		<comments>http://arkblog.wordpress.com/2008/12/02/minify-javascript-and-css-files-in-ide-netbeans-and-eclipse/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 19:15:38 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[HTML + Javscript + CSS]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[europa]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[YUI Compressor]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=79</guid>
		<description><![CDATA[This post talks about how to go about minifying the javascript and css files directly from your IDE (Eclipse and Netbeans) using the YUICompressor and YUIAnt jar files.
Before we look into more specifics you will have to download these two:
1. YUICompression jar from the Yahoo developer site, here are the links : More Info &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=79&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This post talks about how to go about minifying the javascript and css files directly from your IDE (Eclipse and Netbeans) using the YUICompressor and YUIAnt jar files.</p>
<p>Before we look into more specifics you will have to download these two:<br />
1. YUICompression jar from the Yahoo developer site, here are the links : <a href="http://developer.yahoo.com/yui/compressor/">More Info</a> &#8211; <a href="http://www.julienlecomte.net/yuicompressor/">Download</a><br />
2. YUIAnt jar file from this <a href="http://www.ubik-ingenierie.com/miscellanous/YUIAnt/">link</a><br />
<span id="more-79"></span></p>
<p><strong>For Netbeans:</strong> (version tested 6.5)</p>
<p>For web applications that you want to build with compressed js/css files add the folloing xml to the build.xml for the project, overiding the &#8220;-pre-dist&#8221; ant target which is not currently configured by default in netbeans.<br />
<code><br />
&lt;project name=&quot;YUICompression&quot; default=&quot;default&quot; basedir=&quot;.&quot;&gt;<br />
    &lt;description&gt;Builds, tests, and runs the project YUICompression.&lt;/description&gt;<br />
    &lt;import file=&quot;nbproject/build-impl.xml&quot;/&gt;</p>
<p>    &lt;target name=&quot;-pre-dist&quot; &gt;<br />
    &lt;condition property=&quot;dont.do.compression&quot;&gt;<br />
&lt;istrue value=&quot;${auxiliary.org-netbeans-modules-web-client-tools-api.clientdebug}&quot;/&gt;<br />
&lt;/condition&gt;<br />
        &lt;antcall target=&quot;-do-compression&quot;/&gt;<br />
    &lt;/target&gt;<br />
    &lt;target name=&quot;-do-compression&quot; unless=&quot;dont.do.compression&quot; &gt;<br />
        &lt;echo level=&quot;info&quot; message=&quot;Compressing JavaScript and CSS files....&quot; /&gt;<br />
        &lt;path id=&quot;yuicompressor.classpath&quot;&gt;<br />
            &lt;fileset dir=&quot;${build.dir}/web/WEB-INF/lib&quot;&gt;<br />
                &lt;include name=&quot;YUIAnt.jar&quot;/&gt;<br />
                &lt;include name=&quot;yuicompressor-2.4.2.jar&quot;/&gt;<br />
            &lt;/fileset&gt;<br />
        &lt;/path&gt;<br />
        &lt;taskdef name=&quot;yuicompress&quot; classname=&quot;com.yahoo.platform.yui.compressor.YUICompressTask&quot; &gt;<br />
            &lt;classpath&gt;<br />
                &lt;path refid=&quot;yuicompressor.classpath&quot;/&gt;<br />
            &lt;/classpath&gt;<br />
        &lt;/taskdef&gt;<br />
        &lt;yuicompress linebreak=&quot;16000&quot; warn=&quot;false&quot; munge=&quot;no&quot; preserveallsemicolons=&quot;true&quot;<br />
outputfolder=&quot;${basedir}/${build.web.dir}&quot; &gt;<br />
            &lt;fileset dir=&quot;${basedir}/web&quot; excludes=&quot;&quot; &gt;<br />
                &lt;include name=&quot;**/*.js&quot; /&gt;<br />
                &lt;include name=&quot;**/*.css&quot; /&gt;<br />
            &lt;/fileset&gt;<br />
        &lt;/yuicompress&gt;<br />
        &lt;echo level=&quot;info&quot; message=&quot;Compression Complete&quot; /&gt;<br />
    &lt;/target&gt;<br />
&lt;/project&gt;<br />
</code><br />
Make sure to edit the name/version of the jar files being used. You can also choose to set includes and excludes for the files you do not want to minify. Compression only takes place if client side debugging is configured off.</p>
<p> </p>
<p>When you build and run the project the custom ant task will get called and the minified files will be present in the WAR file that gets deployed.<br />
<img class="alignleft size-full wp-image-91" title="netbeans-1" src="http://arkblog.files.wordpress.com/2008/12/netbeans-1.jpg?w=320&#038;h=124" alt="netbeans-1" width="320" height="124" /></p>
<p> </p>
<p> </p>
<p> <br />
<img class="alignleft size-full wp-image-93" title="netbeans-21" src="http://arkblog.files.wordpress.com/2008/12/netbeans-21.jpg?w=320&#038;h=116" alt="netbeans-21" width="320" height="116" /></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><strong>For Eclipse</strong> (version tested on 3.3.1/Europa) :</p>
<p>Eclipse build process for the web applications is not exposed directly in the IDE. However its possible to have custom ant build files to run inside of a web application. Taking this approach here is a sample build file for minifying the .js and .css files in the web application.<br />
<code><br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;project name=&quot;YUICompression&quot; basedir=&quot;.&quot;&gt;<br />
&lt;target name=&quot;default&quot; description=&quot;Minifiy a set of files&quot;&gt;<br />
&lt;taskdef name=&quot;yuicompress&quot; classname=&quot;com.yahoo.platform.yui.compressor.YUICompressTask&quot;&gt;<br />
		&lt;classpath&gt;<br />
			&lt;pathelement path=&quot;${basedir}/WebContent/WEB-INF/lib/yuicompressor-2.4.2.jar&quot; /&gt;<br />
			&lt;pathelement path=&quot;${basedir}/WebContent/WEB-INF/lib/YUIAnt.jar&quot; /&gt;<br />
		&lt;/classpath&gt;<br />
		&lt;/taskdef&gt;<br />
		&lt;yuicompress linebreak=&quot;16000&quot; warn=&quot;false&quot; munge=&quot;no&quot; preserveallsemicolons=&quot;true&quot;<br />
			outputfolder=&quot;${basedir}/WebContent&quot;&gt;<br />
			&lt;fileset dir=&quot;${basedir}/WebContent&quot; &gt;<br />
				&lt;include name=&quot;**/*.js&quot; /&gt;<br />
				&lt;include name=&quot;**/*.css&quot; /&gt;<br />
			&lt;/fileset&gt;<br />
		&lt;/yuicompress&gt;<br />
&lt;/target&gt;<br />
&lt;/project&gt;<br />
</code><br />
Steps:<br />
1. Copy over the two jar files into the library (WebContent/Web-INF/lib)<br />
2. Create a new file at the root level of your web app and call it build.xml<br />
<img class="alignnone size-full wp-image-86" title="eclipse-build-1" src="http://arkblog.files.wordpress.com/2008/12/eclipse-build-1.jpg?w=284&#038;h=168" alt="eclipse-build-1" width="284" height="168" /><br />
3. Paste the above xml snippet into build .xml<br />
4. Edit the version number and/or name of the jar files referenced if needed<br />
5. Right click on the build.xml file and run as &#8220;Ant build&#8221;<br />
<img class="alignnone size-full wp-image-87" title="eclipse-build-2" src="http://arkblog.files.wordpress.com/2008/12/eclipse-build-2.jpg?w=320&#038;h=274" alt="eclipse-build-2" width="320" height="274" /><br />
6. In the output view observe that the build is running<br />
<img class="alignnone size-full wp-image-88" title="eclipse-build-3" src="http://arkblog.files.wordpress.com/2008/12/eclipse-build-3.jpg?w=320&#038;h=97" alt="eclipse-build-3" width="320" height="97" /><br />
7. Open the .js and .css files now you should see them minified.</p>
<p>References used:<br />
<a href="http://nnbs.blogspot.com/2008/11/updated-minified-javascript-and-css.html">Neil&#8217;s netBeans Stuff</a><br />
<a href="http://www.ubik-ingenierie.com/ubikwiki/index.php?title=Minifying_JS/CSS">Minifying JS/CSS</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=79&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2008/12/02/minify-javascript-and-css-files-in-ide-netbeans-and-eclipse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2008/12/netbeans-1.jpg" medium="image">
			<media:title type="html">netbeans-1</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2008/12/netbeans-21.jpg" medium="image">
			<media:title type="html">netbeans-21</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2008/12/eclipse-build-1.jpg" medium="image">
			<media:title type="html">eclipse-build-1</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2008/12/eclipse-build-2.jpg" medium="image">
			<media:title type="html">eclipse-build-2</media:title>
		</media:content>

		<media:content url="http://arkblog.files.wordpress.com/2008/12/eclipse-build-3.jpg" medium="image">
			<media:title type="html">eclipse-build-3</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploying Java Web ADF application on Jetty</title>
		<link>http://arkblog.wordpress.com/2008/11/25/deploying-java-web-adf-application-on-jetty/</link>
		<comments>http://arkblog.wordpress.com/2008/11/25/deploying-java-web-adf-application-on-jetty/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 02:00:32 +0000</pubDate>
		<dc:creator>sathyaprasad</dc:creator>
				<category><![CDATA[ArcGIS Server]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[jetty]]></category>
		<category><![CDATA[jetty arcgis]]></category>
		<category><![CDATA[jetty arcgis server adf]]></category>
		<category><![CDATA[jetty eclipse]]></category>

		<guid isPermaLink="false">http://arkblog.wordpress.com/?p=71</guid>
		<description><![CDATA[Recently I installed and successfully deployed a ESRI ArcGIS Server based Java Web Mapping application on Jetty 6.1.14
Though Jetty is not officially supported deployment container, since its standards based it works without any issues.
For starters, if you are new to Jetty or if you are looking for an alternative to Tomcat find out more on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=71&subd=arkblog&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I installed and successfully deployed a ESRI ArcGIS Server based Java Web Mapping application on Jetty 6.1.14</p>
<p>Though Jetty is not officially supported deployment container, since its standards based it works without any issues.</p>
<p>For starters, if you are new to Jetty or if you are looking for an alternative to Tomcat find out more on Jetty at <a href="http://www.mortbay.org/jetty/">http://www.mortbay.org/jetty/</a><br />
<span id="more-71"></span><br />
Steps to deploy web mapping application:</p>
<p>1. Download and install Jetty 6.x version on to the machine.</p>
<p>2. Export war file either from Manager or Eclipse</p>
<p>3. Navigate to &lt;jetty root &gt;\webapps folder and drop the war file</p>
<p>4. Start jetty in command line: </p>
<pre>
<pre class="brush: xml;">java -jar etc\jetty.xml 1&gt;logs/out.log 2&gt;logs/err.log</pre>
</pre>
<p>or create a batch file and paste the above line in the batch file</p>
<p>5. Access the webapplication at: http://localhost:8080/&lt;web app name&gt;</p>
<p>For folks looking into using Jetty with Eclipse, you will have to install a plugin. Here is a good link showing how to go about it : <a href="http://docs.codehaus.org/display/JETTY/Web+Tooling+Support" target="_blank">http://docs.codehaus.org/display/JETTY/Web+Tooling+Support</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/arkblog.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/arkblog.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/arkblog.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/arkblog.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/arkblog.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/arkblog.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/arkblog.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/arkblog.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/arkblog.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/arkblog.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=arkblog.wordpress.com&blog=1812069&post=71&subd=arkblog&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://arkblog.wordpress.com/2008/11/25/deploying-java-web-adf-application-on-jetty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d260507d6b4976d41f6d2d415aba9a6b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">truth</media:title>
		</media:content>
	</item>
	</channel>
</rss>