[Geoserver-users] TileCache

Hi,

I am working with Geoserver and OpenLayers, and trying to use TileCache.

I followed the tutorial at the site (http://www.tilecache.org) but it didnt work.

I am using Tomcat, and allowed CGI following the tutorial at: http://tomcat.apache.org/tomcat-5.0-doc/cgi-howto.html

When I try to access the page: http://localhost/maps/cgi-bin/tilecache-1.8.1/index.html I get the following error:

java.io.IOException: java.io.IOException: CreateProcess: perl C:\Java\apache-tomcat-5.5.20\webapps\maps\WEB-INF\cgi\tilecache-1.8.1\index.html error=2
org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java :1789)
org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:597)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414)

What can it be?

Thanks,

Daniel

Hi Daniel,

I don't believe you can server up raw html content via cgi with tomcat, it will only run cgi scripts. I suggest you only copy the tilecache.cgi script to the "cgi" directory of your webapp, and serve the rest of the html docs the normal way.

-Justin

Daniel Ferreira wrote:

Hi,
I am working with Geoserver and OpenLayers, and trying to use TileCache.
I followed the tutorial at the site (http://www.tilecache.org) but it didnt work.
I am using Tomcat, and allowed CGI following the tutorial at: http://tomcat.apache.org/tomcat-5.0-doc/cgi-howto.html
When I try to access the page: http://localhost/maps/cgi-bin/tilecache-1.8.1/index.html I get the following error:
java.io.IOException: java.io.IOException: CreateProcess: perl C:\Java\apache-tomcat-5.5.20\webapps\maps\WEB-INF\cgi\tilecache-1.8.1\index.html error=2
     org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java :1789)
     org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:597)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414)
What can it be?
Thanks,
Daniel
!DSPAM:4007,464b6ec461641015089218!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

!DSPAM:4007,464b6ec461641015089218!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,464b6ec461641015089218!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

I've heard cgis in tomcat run pretty slowly. You might try just putting it in Apache. We've got a bit of a tutorial at GeoServer too: http://docs.codehaus.org/display/GEOSDOC/TileCache+Tutorial

Chris

Justin Deoliveira wrote:

Hi Daniel,

I don't believe you can server up raw html content via cgi with tomcat, it will only run cgi scripts. I suggest you only copy the tilecache.cgi script to the "cgi" directory of your webapp, and serve the rest of the html docs the normal way.

-Justin

Daniel Ferreira wrote:

Hi,
I am working with Geoserver and OpenLayers, and trying to use TileCache.
I followed the tutorial at the site (http://www.tilecache.org) but it didnt work.
I am using Tomcat, and allowed CGI following the tutorial at: http://tomcat.apache.org/tomcat-5.0-doc/cgi-howto.html
When I try to access the page: http://localhost/maps/cgi-bin/tilecache-1.8.1/index.html I get the following error:
java.io.IOException: java.io.IOException: CreateProcess: perl C:\Java\apache-tomcat-5.5.20\webapps\maps\WEB-INF\cgi\tilecache-1.8.1\index.html error=2
     org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java :1789)
     org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:597)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414)
What can it be?
Thanks,
Daniel

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

!DSPAM:4007,464b6ec461641015089218!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,464b6ec461641015089218!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org