HTTP 500 - Internal Server Error when deploying geoserver as multi-level context in Tomcat
------------------------------------------------------------------------------------------
Key: GEOS-3945
URL: http://jira.codehaus.org/browse/GEOS-3945
Project: GeoServer
Issue Type: Bug
Affects Versions: 2.0.1
Environment: RHEL 5 x86_64, Tomcat 6.0, JDK 1.6.0
Reporter: Abel Martín
Assignee: Andrea Aime
Priority: Minor
There seems to be a problem when deploying geoserver using multi-level context in tomcat. I tried to publish geoserver on www.somedomain.com/foo/bar by creating the directory foo#bar
inside $CATALINA_HOME/webapps. Everything seems to work fine: the
context is now foo/bar and I can work with geoserver like I used to,
but when I disable WMS service and ask for it I get a HTTP 500 error
instead of an XML reporting that WMS service is disabled.
With WMS disabled the following lines appear in my browser:
2010-05-04 11:20:30,924 DEBUG [geoserver.filters] - filtering
http://myhost:8080/foo/bar/wms
2010-05-04 11:20:30,926 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException:
org.geoserver.platform.ServiceException: Service WMS is disabled
at org.geoserver.ows.DisabledServiceCheck.serviceDispatched(DisabledServiceCheck.java:58)
[snip - many lines follow...]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.geoserver.platform.ServiceException: Service WMS is disabled
at org.geoserver.ows.DisabledServiceCheck.serviceDispatched(DisabledServiceCheck.java:53)
... 53 more
2010-05-04 11:20:30,927 DEBUG [geotools.xml] - building schema for
schema: http://www.opengis.net/ows
2010-05-04 11:20:30,927 ERROR [geoserver.ows] -
java.lang.IllegalArgumentException: no archive separator
at org.eclipse.emf.common.util.URI.parseIntoURI(URI.java:701)
at org.eclipse.emf.common.util.URI.createURIWithCache(URI.java:663)
at org.eclipse.emf.common.util.URI.createURI(URI.java:535)
at org.geotools.xml.Schemas.parse(Schemas.java:238)
[snip - more lines...]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
If WMS is enabled I can see the following in geoserver logs:
2010-05-04 11:24:32,603 DEBUG [data.shapefile] - Read lock:
file:/opt/tomcat/webapps/foo%23bar/data/data/sf/bugsites.fix by
org.geotools.data.shapefile.indexed.IndexedShapefileDataStore: bugsites
Asking for GML3 also results in a HTTP 500 error.
It looks like there's some kind of problem when parsing the filesystem
path because of the '#' character.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira