PDA

View Full Version : Configuring WMS Server, and client connections


LetThereBedwight
04-10-2012, 07:42 PM
Hello Forums!

So I've decided to try and set up WMS to enable clients to pull data from a local network, and it will not have to be accessed remotely at any point.

I've started just trying to set it up with bmng200405 data set.

I've got the server up and running, but when I go to http://192.168.8.209:8000/wms?service=WMS&request=GetCapabilities, I get

<WMT_MS_Capabilities version="1.3.0"><Service><Name>OGC:WMS</Name><Title>NASA WorldWind WMS</Title><Abstract> </Abstract><KeywordList><Keyword>WMS</Keyword></KeywordList><OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/wms?"/><ContactInformation><ContactPersonPrimary><ContactPerson/><ContactOrganization/></ContactPersonPrimary><ContactPosition/><ContactAddress><AddressType/><Address/><City/><StateOrProvince/><PostCode/><Country/></ContactAddress><ContactVoiceTelephone/><ContactFacsimileTelephone/><ContactElectronicMailAddress/></ContactInformation><!-- Fees or access constraints imposed. --><Fees>NONE</Fees><AccessConstraints>NONE</AccessConstraints><LayerLimit>1</LayerLimit><MaxWidth>2048</MaxWidth><MaxHeight>2048</MaxHeight></Service><Capability><Request><!-- GetCapabilities request --><GetCapabilities><Format>application/vnd.ogc.wms_xml</Format><DCPType><HTTP><Get><OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/wms?"/></Get></HTTP></DCPType></GetCapabilities><!-- The GetMap request. --><GetMap><Format>image/dds</Format><Format>image/png</Format><Format>image/jpeg</Format><Format>image/tiff</Format><DCPType><HTTP><Get><OnlineResource xlink:type="simple" xlink:href="http://localhost:8000/wms?"/></Get></HTTP></DCPType></GetMap><!-- GetFeatureInfo request currently not supported. <GetFeatureInfo> <Format>text/plain</Format> <Format>text/html</Format> <Format>application/vnd.ogc.gml</Format> <DCPType> <HTTP> <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8000/wms?"/></Get> </HTTP> </DCPType> </GetFeatureInfo> --></Request><Exception><Format>application/vnd.ogc.se_xml</Format></Exception><!-- not currently supported <UserDefinedSymbolization SupportSLD="1" UserLayer="1" UserStyle="1" RemoteWFS="0"/> --><Layer><Title/><Abstract/><CRS>EPSG:4326</CRS><!-- nested layer descriptions are programmatically placed here by the WMS. The <insert></insert> pair is a textual find&replace marker for the server. --><Layer queryable="false"><Name>bmng200405</Name><Title>Blue Marble (WMS) 2004</Title><Abstract>Blue Marble (WMS) 2004</Abstract><CRS>EPSG:4326</CRS><EX_GeographicBoundingBox><westBoundLongitude>-180.0</westBoundLongitude><eastBoundLongitude>180.0</eastBoundLongitude><southBoundLatitude>-90.0</southBoundLatitude><northBoundLatitude>90.0</northBoundLatitude></EX_GeographicBoundingBox><BoundingBox miny="-90.0" minx="-180.0" maxy="90.0" maxx="180.0" CRS="EPSG:4326"/><LastUpdate>1238025600000</LastUpdate></Layer></Layer></Capability></WMT_MS_Capabilities>

Seems pretty normal, except this doesn't match anything I have on my machine(I imagine this is not actually true, but I cannot find it anywhere)

And my wms0.log is
Apr 10, 2012 2:31:13 PM gov.nasa.worldwind.servers.app.Applicati onServerLauncher main
INFO: Application server is starting up: NASA World Wind Java 1.2 1.2.0
Apr 10, 2012 2:31:13 PM gov.nasa.worldwind.servers.app.Applicati onServer verifyConfigurationParameters
WARNING: Path to GDAL command line utilities (gdalwarp,gdal_translate) is not configured: (gov.nasa.worldwind.avkey.GDAL.Path)
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.cache.AbstractFileSto re buildWritePaths
FINER: Attempting to use write store at /var/cache/WorldWindData
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.cache.AbstractFileSto re buildWritePaths
FINER: Making directories for /var/cache/WorldWindData
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.cache.AbstractFileSto re buildWritePaths
FINER: Attempting to use write store at /home/dwight/var/cache/WorldWindData
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.cache.AbstractFileSto re buildWritePaths
FINER: Successfully located write store for /home/dwight/var/cache/WorldWindData
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.app.Applicati onServer parseWebAppConfigFile
INFO: Application "NASA WorldWind WMS Imagery Server" is starting up
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.Configura tion getDataFileStoreFilter
INFO: Falling back to default data file-store filter: gov.nasa.worldwind.servers.wms.WMSDataCo nfigurationFilter
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.cache.AbstractFileSto re initialize
WARNING: No writable locations exist for the file store. Continuing without write capability.
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.WMSDataDi scoveryThread doRun
FINE: Discovery Task: Looking for added/removed layers...
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.app.Applicati onServer register
FINE: Address already in use
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.app.Applicati onServer register
SEVERE: Cannot register the server application "NASA WorldWind WMS Imagery Server": Cannot connect and bind to the port "8,000"
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.app.Applicati onServer waitToFinish
SEVERE: Application server is shutting down: There are no active server applications detected
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.app.Applicati onServerLauncher main
INFO: Application server is shutting down: OK
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.WMSDataDi scoveryThread doRun
FINE: Discovery Task: New layer configuration found: BMNGWMS/bmng200405.xml
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.BasicMapR egistry doAdd
INFO: Initializing mapsource bmng200405 ...
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.generator s.WorldWindTiledLayer initialize
INFO: WorldWindTiledLayer:initialize(): started...
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.generator s.WorldWindTiledLayer initialize
INFO: WorldWindTiledLayer:initialize(): status=Done! type=imagery with coverage=(-90.0°, -180.0°), (90.0°, 180.0°)
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.BasicMapR egistry doAdd
INFO: Initializition of mapsource bmng200405 was successful.
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.BasicMapR egistry doLayerAdded
INFO: Layer BMNGWMS/bmng200405.xml added
Apr 10, 2012 2:31:14 PM gov.nasa.worldwind.servers.wms.WMSDataDi scoveryThread doRun
FINE: Discovery Task: No existing layer configurations removed.

After I start up again (a question being how do I safely stop the server, but it seems as though running this script stops it and restarts it).

Upon running my app, I get an error that says
WARNING: Creation from configuration file failed config/worldwind.layers.xml
gov.nasa.worldwind.exception.WWRuntimeEx ception: Creation from configuration file failed config/worldwind.layers.xml


I don't really know what all info would be good to give, but I'm sure I can find it if requested.

I guess my question really boils down to, where are the capabilities accessed in my browser being pulled from, and does that need to be modified to allow clients to properly access the data?

LetThereBedwight
04-11-2012, 04:02 PM
Okay, for anybody searching, that warning was caused by an SHA-1 digest error, by java. It wasn't a config or WW issue. It was cleared up by using the same jar that was used to build the WMS server when linking to the client application.