Re: hi..omapplet help

From: anoop <anoopkumar.v@tatainfotech.com>
Date: Wed Nov 21 2001 - 00:38:29 EST

thank u Tennessee...i learnt a lot more than i knew. It is really
relieving to know that there is support for shape files in applets now.

but i hvnt yet been able to get the applet up.
Let me tell u what all i have done.

First of all i have set up the classpath to incude the 3 jar files under
openmap-4.4.1/lib. had also added the shape files found under share/data/shape
to openmap.jar. And have also added this share/data/shape to te classpath.

Next i restarted my machine and at the command prompt gave..

D:\openmap-4.4.1>java com.bbn.openmap.layer.link.shape.ShapeServerStarter dcwpo-
browse.shp dcwpo-browse.ssx -port 7001
ShapeServerStarter: Starting up on port 7001.
LinkServerStarter: running on port 7001

So now the ShapeServer is running at port 7001.
Next i opened up my IE and gave as the url http://localhost:7001/omapplet.html
but it said "The page cannot be displayed ".
But the Shape server did respond and said..

LinkServer: fielding connection
LinkServer: Client disconnected
LinkServer: fielding connection
LinkServer: Client disconnected

Next i even tried double-clicking on the omapplet.html file
but the java-console gave these errors.

Java(TM) Plug-in: Version 1.3.1_01
Using JRE version 1.3.1_01 Java HotSpot(TM) Client VM
User home directory = C:\WINNT\Profiles\anoop
User has overriden browser's proxy settings.
Proxy Configuration: Manual Configuration
     Proxy: http=163.122.1.70:8080
     Proxy Overrides:
Warning: default mime table not found: e:\JDK13~1.1_0\lib\content-types.properties
security properties not found. using defaults.
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
OpenMap(tm) Version 4.4.1
  Copyright 1998-2001, BBNT Solutions LLC, a part of Verizon.
  See http://openmap.bbn.com/ for details.
*** ERROR ***
LayerHandler: Skipped "date" - unable to create
*************
*** ERROR ***
LayerHandler: Skipped "drawing" - unable to create
*************
*** ERROR ***
LayerHandler: Skipped "quake" - unable to create
*************
*** ERROR ***
LayerHandler: Skipped "daynight" - unable to create
*************
*** ERROR ***
LayerHandler: Skipped "test" - unable to create
*************
*** ERROR ***
LayerHandler: Skipped "graticule" - unable to create
*************
*** ERROR ***
LayerHandler: Skipped "demo" - unable to create
*************
*** ERROR ***
LayerHandler: Skipped "shapePolitical" - unable to create
*************
Exception:java.io.FileNotFoundException: e:\JDK13~1.1_0\lib\flavormap.properties (The system cannot find the file specified) while loading default flavormap.properties file URL:file:e:\JDK13~1.1_0\lib\flavormap.properties

But the ShapeServer did not respond at all now....i hv also added the flavormap.properties in the jdk1.3/lib folder.
Any help??

anoop

  ----- Original Message -----
  From: Tennessee
  To: anoop
  Sent: Wednesday, November 21, 2001 6:13 AM
  Subject: Re: hi..omapplet help

  Hi,

  Yes, in order to access a shapefile through an applet, you need a
  shapeserver. It's very simple - there is a class for it already
  someplace. You then add a LinkLayer, and away you go. I altered my code so
  that the properties file was read from parameters to the applet, so I am
  not really sure where it goes normally. I think it can either be inside
  the jar file, or a URL can be specified to get it from a server. The
  openmap FAQ and the openmap mailing list are both good sources of help.

  The following fragment was taken from the Openmap FAQ

  11.5. Why don't shape files work in an Applet? Now they do! **
  OpenMap used to have a constraint where Shape file could not be read by
  applets. This has changed, and now layers can access data files in a
  number of ways - via a direct URL to the data file, as a resource in a jar
  file, and as before, as a local file (the local file option isn't possible
  for an OpenMap applet).
  In the properties file for the layer, simply reference the data file as a
  URL on the applet server. Applets can only contact the machine they were
  loaded from. If you want to store the data file in a jar file, the file
  should be referenced according to its full path from the root inside the
  jar file. You'll also have to use an AppletDataNugget.

  Alternatively, Shape data can be displayed in an applet if it is displayed
  through a layer that is contacting a server (as opposed to having the data
  be local). An example of this would be our link layer. We will soon add
  entries to the FAQ about how to use this layer, but for now check out the
  API documentation. There's a shape directory in the link layer code that
  may give you some hints.

  Edit this entry / Log info / Last changed on Tue Nov 20 09:25:36 2001 by
  Donald Dietrick

  ----

  Hope this helps

  -Tennessee

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Nov 21 00:26:53 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT