Failed to draw layer error with mysql points

Sarah Parrott parrott.sarah at GOOGLEMAIL.COM
Mon Jul 31 13:53:01 PDT 2006


Hi,

 You were right about that - somehow it had left off ogr support.

I've fixed that now and the map file draws fine with shp2img.

But I still get the same error when I try and do it from the JSP page. I've
attached all the files I'm using and below are the errors I end up with.

Is there anything specific I need to know about OGR and java mapscript? I
have tried remaking the java mapscript jar after recompiling mapserver but
it doesn't seem to have made any difference.

Cheers,
Sarah

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*

org.apache.jasper.JasperException: Exception in JSP:
/boxes/simple_points/points.jsp:14

11:
12: 	String vMapFile =
"/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/simple_points/points.mapfile";
13: 	vMap.setMappath(vMapName);
14: 	imageObj img = vMap.draw();
15: 	img.save(vMapFile,vMap);
16:
17:


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

javax.servlet.ServletException: Failed to draw layer named 'test_gis'.
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
	org.apache.jsp.boxes.simple_005fpoints.points_jsp._jspService(points_jsp.java:74)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

java.lang.UnknownError: Failed to draw layer named 'test_gis'.
	edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)
	edu.umn.gis.mapscript.mapObj.draw(mapObj.java:382)
	org.apache.jsp.boxes.simple_005fpoints.points_jsp._jspService(points_jsp.java:56)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)





>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060731/386d489f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: points.jsp
Type: application/octet-stream
Size: 734 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060731/386d489f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: points.map
Type: application/octet-stream
Size: 575 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060731/386d489f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_gis.ovf
Type: application/octet-stream
Size: 348 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060731/386d489f/attachment-0002.obj>


More information about the MapServer-users mailing list