Hi,<br><br> You were right about that - somehow it had left off ogr support.<br><br>I've fixed that now and the map file draws fine with shp2img.<br><br>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.
<br><br>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.<br><br>Cheers,<br>Sarah
<br><br><b><span style="font-weight: bold;">ty</span>pe</b> Exception report<p><b>message</b> </p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p>
<p><b>exception</b> </p><pre>org.apache.jasper.JasperException: Exception in JSP: /boxes/simple_points/points.jsp:14<br><br>11: <br>12: String vMapFile = "/usr/local/apache-tomcat-5.5.17/webapps/ROOT/boxes/simple_points/points.mapfile";
<br>13: vMap.setMappath(vMapName);<br>14: imageObj img = vMap.draw();<br>15: img.save(vMapFile,vMap);<br>16: <br>17: <br><br><br>Stacktrace:<br> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java
:504)<br> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)<br> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)<br> org.apache.jasper.servlet.JspServlet.service(JspServlet.java
:264)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br></pre><p><b>root cause</b> </p><pre>javax.servlet.ServletException: Failed to draw layer named 'test_gis'.<br> org.apache.jasper.runtime.PageContextImpl.doHandlePageException
(PageContextImpl.java:858)<br> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)<br> org.apache.jsp.boxes.simple_005fpoints.points_jsp._jspService(points_jsp.java:74)<br> org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:97)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)<br> org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:314)<br> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br></pre><p><b>root cause</b> </p><pre>java.lang.UnknownError: Failed to draw layer named 'test_gis'.
<br> edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method)<br> edu.umn.gis.mapscript.mapObj.draw(mapObj.java:382)<br> org.apache.jsp.boxes.simple_005fpoints.points_jsp._jspService(points_jsp.java:56)<br> org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:97)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)<br> org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:314)<br> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br></pre><br><br><div><span class="gmail_quote"><br></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br></blockquote></div><br>