[mapguide-users] Can not run Simple Application(Java)

messagesky messagesky at 126.com
Tue Apr 1 02:16:31 EDT 2008


My Computer: Windows XP, Java:1.5

(1) install MgServerSetup-2.0.0.exe
(2) install MgWebServerExtensionsSetup-2.0.0.exe
     Select "Bundled Configuration" ---> Java
(3) Download Sheboygan.mgp from http://download.osgeo.org/mapguide/releases/2.0.0/samples/Sheboygan.mgp. And put it to "MapGuideOpenSource\Server\Packages"

(4) Visit:http://127.0.0.1:8008/mapguide/mapadmin/login.php. Login in by Administrator, admin
     load package:Sheboygan.mgp succeeded.

(5) Visit: http://127.0.0.1:8008/mapguide/javaviewersample/ajaxviewersample.jsp
    Just like this:

          <%@ page import="org.osgeo.mapguide.*" %>
          <%@ page import="java.util.*" %>
          <%@ page import="java.io.*" %>
          <%@ page import="java.text.*" %>
          <%@ page import="javax.servlet.jsp.*" %>
          <%@ page import="javax.servlet.http.*" %>
          <%@ include file ="utilityfunctions.jsp" %>

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"                     "http://www.w3.org/TR/html4/frameset.dtd">

(6) When I Opet the file: WebServerExtensions\Apache2\conf\httpd.conf, add "JkMount  /mapguide2008/javaviewersample/* worker1" at the end of file.
     restart apache. Visit: http://127.0.0.1:8008/mapguide/javaviewersample/ajaxviewersample.jsp
  Just like this:
          <%--
            -Copyright (C) 2004-2006  Autodesk, Inc.
            -This library is free software; you can redistribute it and/or
            -modify it under the terms of version 2.1 of the GNU Lesser
            -General Public License as published by the Free Software Foundation.

            -This library is distributed in the hope that it will be useful,
            -but WITHOUT ANY WARRANTY; without even the implied warranty of
            -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
            -Lesser General Public License for more details.

            -You should have received a copy of the GNU Lesser General Public
            -License along with this library; if not, write to the Free Software
            -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
          --%>

          <%@ page import="org.osgeo.mapguide.*" %>
          <%@ page import="java.util.*" %>
          <%@ page import="java.io.*" %>
          <%@ page import="java.text.*" %>
          <%@ page import="javax.servlet.jsp.*" %>
          <%@ page import="javax.servlet.http.*" %>
          <%@ include file ="utilityfunctions.jsp" %>



My Englis is very poor. Would you like give me some help?
Thanks a lot.




2008-04-01 



messagesky 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080401/ae9c6751/attachment.html


More information about the mapguide-users mailing list