[Geoserver-devel] serving static content

Hi all,

When I run geoserver form the web module with jetty6:run, it seems that everything under 'src/main/webapp', is served up by the web server, including everything under WEB-INF.

When I try to run from a different web application module, I cant seem to access any static content under 'src/main/webapp'.

From what I can tell its not a jetty configuration issue because the jetty config is identical for the two modules. I am wondering if anyone knows of some other configuration or voodoo that goes on to make to make geoserver serve this content.

Thanks,

-Justin

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Justin Deoliveira ha scritto:

Hi all,

When I run geoserver form the web module with jetty6:run, it seems that everything under 'src/main/webapp', is served up by the web server, including everything under WEB-INF.

When I try to run from a different web application module, I cant seem to access any static content under 'src/main/webapp'.

From what I can tell its not a jetty configuration issue because the jetty config is identical for the two modules. I am wondering if anyone knows of some other configuration or voodoo that goes on to make to make geoserver serve this content.

Afaik Jetty is taking the liberty of serving stuff under WEB-INF, but every
other server I know hide that directory and makes it completely unavailable
to the outside.

As for serving from another module, I'd say it does not work because the
content of the web module ends up in the classpath, and web servers do
not serve stuff from the classpath unless the application layers does some
magic in order to gather stuff from there (for example Wicket does gather
its pge templates from the classpath by default, the web application folders
contains only configuration files).

Cheers
Andrea Aime

Thanks Andrea,

When you run jetty6:run I believe the server is run from src/main/webapp
so any folders under there should be served up, but it isn't so. I am
sure it is just something I am doing wrong, I will keep digging.

-Justin

Andrea Aime wrote:

Justin Deoliveira ha scritto:

Hi all,

When I run geoserver form the web module with jetty6:run, it seems that
everything under 'src/main/webapp', is served up by the web server,
including everything under WEB-INF.

When I try to run from a different web application module, I cant seem
to access any static content under 'src/main/webapp'.

From what I can tell its not a jetty configuration issue because the
jetty config is identical for the two modules. I am wondering if anyone
knows of some other configuration or voodoo that goes on to make to make
geoserver serve this content.

Afaik Jetty is taking the liberty of serving stuff under WEB-INF, but every
other server I know hide that directory and makes it completely unavailable
to the outside.

As for serving from another module, I'd say it does not work because the
content of the web module ends up in the classpath, and web servers do
not serve stuff from the classpath unless the application layers does some
magic in order to gather stuff from there (for example Wicket does gather
its pge templates from the classpath by default, the web application folders
contains only configuration files).

Cheers
Andrea Aime

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,44e96567193036309890654!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com