I am new to Geoserver so will try my best to use the correct terms to
describe the problem...

We are currently testing geoserver with Glassfish, BEA Weblogic and JBoss. 
We have some code which is able to publish an image/coverage using JBoss and
Weblogic, but not when using Glassfish.  I have been able to enter the
commands manually while Glassfish is the appserver and the commands
succeeded.  The commands entered to the console were cut-and-pasted from the
output of the Java code that did not work on Glassfish.

Has anyone encountered this before?  The output below was the stdout
generated by the code.  Some of what follows is log msgs and there are some
System.out msgs mixed in for additional info while debugging:

// First try to remove the old store/coverage (we don't want duplicates)
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/loginSubmit.do?username=admin&password=geoserver
    [junit] Ingester.java: Calling removeImagery(walter_test);
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/loginSubmit.do?username=admin&password=geoserver
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/config/data/coverageSelectSubmit.do?selectedCoverageName=walter_test%3Awalter_test&buttonAction=Delete
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/config/data/formatSelectSubmit.do?selectedDataFormatId=walter_test&buttonAction=Delete
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/saveToGeoServer.do
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/saveToXML.do
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/loadFromXML.do

// Now, create the coverage

    [junit] Ingester.java: Calling createGeoServerDataStore
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/config/data/formatNewSubmit.do?selectedDescription=Tagged+Image+File+Format+with+Geographic+information&dataFormatID=walter_test&action=New
    [junit] Ingester.java: Calling defineGeoServerDataStoreElements
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/config/data/formatSubmit.do?enabled=on&namespaceId=topp&type=GeoTIFF&url=file%3Adata%2Fcoverages%2Fwalter_test%2Fwalter_test.tiff&description=&action=Submit
    [junit] Ingester.java: Calling applyGeoServerConfig();
    [junit] 11:47:23 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/saveToGeoServer.do
    [junit] Ingester.java: Calling saveGeoServerConfig();
    [junit] 11:47:24 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/saveToXML.do
    [junit] Ingester.java: Calling loadGeoServerConfig();
    [junit] 11:47:24 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/loadFromXML.do
    [junit] Ingester.java: Calling createGeoServerCoverage(walter_test);
    [junit] 11:47:24 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/config/data/coverageNewSubmit.do?selectedNewCoverage=walter_test&action=New
    [junit] Ingester.java: Calling submitGeoServerCoverage();
    [junit] 11:47:24 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/config/data/coverageEditorSubmit.do?action=Submit
    [junit] Ingester.java: Calling applyGeoServerConfig();
    [junit] 11:47:24 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/saveToGeoServer.do
    [junit] Ingester.java: Calling saveGeoServerConfig();
    [junit] 11:47:24 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/saveToXML.do
    [junit] Ingester.java: Calling loadGeoServerConfig();
    [junit] 11:47:24 [DEBUG] GeoServer ingest connect string:
http://localhost:8080/geoserver/admin/loadFromXML.do
    [junit] 11:47:24 [DEBUG] Geoserver WMS string:
http://localhost:8080/geoserver/wms?layers=topp:walter_test    [junit]  
stageData(String srcFilepath): resultUri =
http://localhost:8080/geoserver/wms?layers=topp:walter_test
    [junit] 11:47:24 [DEBUG]
    [junit] 11:47:24 [DEBUG]
**************************************************
    [junit] 11:47:24 [DEBUG]         WMS Ingest to GeoServer Test
    [junit] 11:47:24 [DEBUG]
**************************************************
    [junit] 11:47:24 [DEBUG] Returned result URI:
http://localhost:8080/geoserver/wms?layers=topp:walter_test
    [junit] 11:47:24 [DEBUG] CORRECT_URI:        
http://localhost:8080/geoserver/wms?layers=topp:walter_test
    [junit] WmsCapabilities(String url): url_string =
http://localhost:8080/geoserver/wms?layers=topp:walter_test
    [junit] invoke(): request_url_string =
http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&Service=wms
    [junit] 11:47:24 [DEBUG] Test to see if layer topp:walter_test exists in
getCapabilities
    [junit] hasLayer(String layer_name): layer_name = topp:walter_test
    [junit] hasLayer(String layer_name): search_string =
<Name>topp:walter_test</Name>
    [junit] hasLayer(String layer_name):
capabilities_response.indexOf(search_string) = -1
    [junit] 11:47:24 [DEBUG]    Response = false
    [junit] hasLayer(String layer_name): layer_name = topp:walter_test
    [junit] hasLayer(String layer_name): search_string =
<Name>topp:walter_test</Name>
    [junit] hasLayer(String layer_name):
capabilities_response.indexOf(search_string) = -1
    [junit] 11:47:24 [DEBUG] Image source =
file:/GEOSPATIAL/projects/m1033/imagearchiveingesttest/walter_test.tiff
    [junit] GeoServerWmsOutboundDataStage
    [junit] -----------------------------
    [junit]   hostname = localhost
    [junit]   port = 8080
    [junit]   username = admin
    [junit]   password = geoserver
    [junit]   servlet = geoserver
    [junit]   dataDir =
/localhome/david.s.johnson/dev/SOA_IRAD/../glassfish/domains/domain1/applications/j2ee-modules/geoserver/data/coverages
    [junit] -----------------------------
    [junit] ------------- ---------------- ---------------
    [junit] Testcase:
testResultUri(com.baesystems.irad.test.datastaging.outbound.GeoServerWmsOutboundDataStageTest):
FAILED
    [junit] Checking wms.hasLayer(topp:walter_test)
    [junit] junit.framework.AssertionFailedError: Checking
wms.hasLayer(topp:walter_test)
    [junit]     at
com.baesystems.irad.test.datastaging.outbound.GeoServerWmsOutboundDataStageTest.testResultUri(GeoServerWmsOutboundDataStageTest.java:112)
    [junit]
    [junit]

BUILD FAILED  (because JUnit test could not find topp:walter_test)  works
with JBoss, but not Glassfish

----

curl
"http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&Service=wms"; |
grep -i walter
does not find walter when published using the Java code (unless appserver is
JBoss instead of Glassfish).  The curl command will find walter when
published using the console.

-- 
View this message in context: 
http://www.nabble.com/Problem-publishing-image-from-Java-when-appserver-is-Glassfish-tp18202594p18202594.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to