Here’s a wierd one – Address already in use

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’s:

http://localhost:8399/arcgis/rest – restful services direcoty – did not work

http://localhost:8399/arcgis/services?wsdl – services catalog soap end point – did not work

http://localhost:8399 – directory listing of  “C:\Program Files\ArcGIS\java\web_output” – did not work Read the rest of this entry »

Installing and running the Custom Rest Service – Mapservice legends sample

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 in no time (almost):

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.

1. Download the sample on to the disk:

sample

Read the rest of this entry »

Deploying Java Web ADF application on Jetty

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 Jetty at http://www.mortbay.org/jetty/
Read the rest of this entry »

Measuring Web Mapping Application Performance using YSlow – part 2

Sorry for the long delay in writing this post. Lots of you have emailed me asking for the concluding part of the performance analysis and here it is. This is a continuation from the last post so its highly recommended you read the earlier post first (Click here for part1)

Here is the listing of YSlow 13 performance rules along with the ratings given to the default web mapping application template.

1. Make Fewer HTTP requests (F)
2. Use a CDN (F)
3. Add an Expires header (F)
4. Gzip components (F)
5. Put CSS at the top (B)
6. Move scripts to the bottom (C)
7. Avoid CSS expressions (A)
8. Make JS and CSS external (-)
9. Reduce DNS lookups (A)
10. Minify JS (A)
11. Avoid redirects (A)
12. Remove duplicate scripts (A)
13. Configure ETags (A)

Now lets analyze a few rules and its ratings to see where we as web developers or front end engineers can contribute to improve the performance of the web mapping application. Read the rest of this entry »

Eclipse – how tos and tips and tricks

Lots of Java ADF enthusiasts have asked for some guidance on working with Eclipse. I do teach them a few in the class but here is more comprehensive listing. Obviously you can find more info on the web but here is a list that is relevant to using Eclipse for web development. Read the rest of this entry »

Configure Routing Task

In one of my recent teaching trips to St. Louis, MO the discussion came up as to how to use the network analyst extension capabilities in the web mapping application. While looking through the Web ADF Java Doc surprisingly I did find the Routing task and an associated taskinfo class. Java Web ADF has a ready to use Routing Task but is not configurable through the manager.

Out of curiosity and with help of fellow employee (Thanks Lloyd) we figured out that if you have ArcGIS Server Service with Network Analysis capability enabled and a Geocode service then you can use these services with the Routing task in your web mapping application. The only thing missing is documentation on how to configure and use the task. Here are the steps to add this task to your application :

Read the rest of this entry »

Measuring Web Mapping Application Performance using YSlow – part 1

I am big fan of Yahoo Developer Network and one of the sections in the site is the “Exceptional Performance” headed until recently by Steve Souders – performance Guru previously at Yahoo and now at Google. Recently Yahoo has come out with a new firefox add-on called YSlow. YSlow is a tool that follows the 13 Rules for High Performance Web Sites as listed on the Yahoo Exception Performance site and analyzes those 13 aspects on your site, giving you a grade (A-F) for each of the rules, and an overall grade for the site. The tool is free to download and installed as an add-on into Firefox firebug plugin.

The 13 benchmarks are listed here

  1. Make fewer HTTP requests
  2. Use a CDN
  3. Add an Expires header
  4. Gzip components
  5. Put CSS at the top
  6. Move scripts to the bottom
  7. Avoid CSS expressions
  8. Make JS and CSS external
  9. Reduce DNS lookups
  10. Minify JS
  11. Avoid redirects
  12. Remove duplicate scripts
  13. Configure ETags

If you are new to YSlow or the 13 rules for high performance, I strongly recommend reading the links above first before following the article. My mission after reading the articles and installing the plugin was to figure out what does these performance rules mean from a web mapping application perspective.

Read the rest of this entry »