RE: [OpenMap Users] Problem with WMSPlugin

From: Keith Alphonso <kalphonso@diamonddata.com>
Date: Mon Nov 18 2002 - 19:24:32 EST

Using it as a layer seems to work, except that it cannot make the
connection, but I'll figure that out.

Thanks!

-----Original Message-----
From: Don Dietrick [mailto:dietrick@bbn.com]
Sent: Monday, November 18, 2002 5:15 PM
To: Keith Alphonso
Cc: 'openmap-users@bbn.com'
Subject: Re: [OpenMap Users] Problem with WMSPlugin

Hi Keith,

This error usually happens when the class cannot be created with an
empty constructor. This usually happens as a result of a classpath
error, or a misspelling in the properties, like a misnamed classname
used in the .class property. The properties you've provided don't seem
to have a spelling or naming problem, so I'd check the classpath or
contents of the openmap.jar if you've rebuild it.

The other thing you might want to try is treating the plugin as a layer
in the properties file. Here's what I have for my WMSPlugIn:

wmspi_NHD.class=com.bbn.openmap.plugin.wms.WMSPlugIn
wmspi_NHD.prettyName=Cubewerx WMS Server
wmspi_NHD.wmsserver=http://demo.cubewerx.com/demo/cubeserv/cubeserv.cgi
wmspi_NHD.wmsversion=1.0.0
wmspi_NHD.format=GIF
wmspi_NHD.transparent=true
wmspi_NHD.backgroundcolor=0xbdde83
wmspi_NHD.layers= < you'll have to add your own layer descriptions here
>

where wmspi_NHD is the markername used in the openmap.layers property

Hope this helps,

Don

On Monday, November 18, 2002, at 04:46 PM, Keith Alphonso wrote:

> I added the following to the openmap.properties file
>
> ...
> openmap.layers=wmsPluginLayer_NHD date drawing quake daynight cities
> test
> graticule demo shapePolitical politicalCombo
> ...
> openmap.startUpLayers=wmsPluginLayer_NHD graticule drawing
> shapePolitical
> ...
> # PlugIn layer for the WMSPlugin using a public ArcIMS server
> providing data
> from USGS National Hydrography Dataset
> wmsPluginLayer_NHD.class=com.bbn.openmap.plugin.PlugInLayer
> wmsPluginLayer_NHD.prettyName=USGS National Hydrography Dataset (WMS)
> wmsPluginLayer_NHD.plugin=com.bbn.openmap.plugin.wms.WMSPlugIn
> wmsPluginLayer_NHD.plugin.wmsserver=http://gisdata.usgs.net/servlet/
> com.esri
> .wms.Esrimap
> wmsPluginLayer_NHD.plugin.wmsversion=1.0.0
> wmsPluginLayer_NHD.plugin.format=JPEG
> wmsPluginLayer_NHD.plugin.transparent=false
> wmsPluginLayer_NHD.plugin.backgroundcolor=0xbdde83
> wmsPluginLayer_NHD.plugin.layers=NHD_Waterbodies,NHD_Waterbody_Reaches,
> NHD_T
> ransport_Reaches,NHD_Network
> #wmsPluginLayer_NHD.plugin.styles=
> wmsPluginLayer_NHD.plugin.vendorspecificnames=servicename
> wmsPluginLayer_NHD.plugin.vendorspecificvalues=USGS_WMS_NHD
> #wmsPluginLayer_NHD.plugin.wmsname=???
>
> But when I run openmap I get the error:
>
> *** ERROR ***
> LayerHandler: Skipped "wmsPluginLayer_NHD" - unable to create
> *************
>
> Anybody got any ideas why this would happen? I got the parameters
> from some
> previous openmap mail archive entries.
>
> --
> [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"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Mon Nov 18 19:23:55 2002

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