[mapguide-users] Making MapGuide JSP to work with IIS (the missing link -- almost there!)

inspiron2 vistav20 at yahoo.com
Sun Sep 14 22:28:27 EDT 2008


Further to my last post asking for help:

I spotted an error in the uriworker.properties file. I wasn't putting in an
"=" sign in between the alias and worker. I fixed that, and that made the
JSP's work. But, the map etc still doesn't function. I don't even get a
skeleton page. Error messages indicate that all MapGuide related references
could not be resolved while compilting JAVA files.

>From previous experience of working with JSP's, such errors may indicate
that class_path available to MapGuide JSP's can't resolve MapGuide related
declares. But how do I fix that. 

The only difference between this non-working version and the working version
is that the working one is called through Apache, and the non-working one is
being called from IIS 6. All files etc are EXACTLY the same (i.e. the same
files, not just copies of same files).

thx


inspiron2 wrote:
> 
> Hi,
> 
> I am trying to make MapGuide open source work with IIS, and using JSP
> (java) as development language.
> 
> I am able to make MapGuide Java (JSP) work in Tomcat + Apache.
> ajaxViewersample.jsp and ajaxtiledviewersample.jsp work just fine.
> 
> Also, I am able to make Tomcat work with IIS 6 in Windows 2003. The ISAPI
> redirect DLL loads fine, and I am able to execute all JSP examples.
> 
> I am also able to configue IIS + PHP manually. PHP samples and Site Admin
> work fine under IIS 6 (W 2003 SP2 standard).
> 
> What I am not able to figure out is how to make MapGuide's java side (i.e.
> JSP) work with IIS. Here is what I have done so far: (IIS 6 + W2003
> standard SP2)
> 
> As described above, successfuly integrated isapi_redirect.dll into IIS,
> and it run's Tomcat's JSP examples just fine. Note: Tomcat is installed by
> the MapGuide install program in it's default location (C:\Program
> Files\MapGuideOpenSource2.0\WebServerExtensions\Tomcat), and since
> MapGuide install doesn't include JSP example files, I had to copy the
> example files into the C:\Program
> Files\MapGuideOpenSource2.0\WebServerExtensions\Tomcat\webapps\examples
> directory.
> 
> Created a new Web Service Extension in IIS. extension: mapagent; pointed
> it to isapi_MapAgent.dll in www\mapagent directory. The status is
> "Allowed"
> 
> Created an application called "mapguide" in IIS under the Default Web
> Site, and pointed it to the www directory. Execute permissions are
> "Scripts adn Executables". An extension ".php" was defined under it's
> configuration, and the executable picked was php5isapi.dll in Php
> directory.
> 
> Created an application called "mapagent" in IIS under the above created
> mapguide application. It's dir was pointed to \mapguide\mapagent, and it
> also had "Scripts and Executables" permission. Under it's configuration,
> an extension ".fcgi" was created and linked to isapi_MapAgent.dll
> executable.
> 
> At this point:
>  - PHP based site admin (for MapGuide) worked fine!
> (http://localhost/mapguide/mapadmin/login.php)
>  - MapAgent worked fine.
> http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=ENUMERATERESOURCES&VERSION=1.0.0&LOCALE=en&RESOURCEID=Library://&TYPE=&DEPTH=-1
> resulted in an XML document following a user-id/password prompt.
>  - Web Extensions worked fine.
> http://localhost/mapguide/mapviewerajax/ajaxviewer.php?WEBLAYOUT=Library://ATest.WebLayout
> and
> http://localhost/mapguide/mapviewerajax/ajaxviewer.aspx?WEBLAYOUT=Library://ATest.WebLayout
> gave the expected "Resource not found" message.
> 
> At this point, I created two virtual directories under "mapguide" level,
> called them javaviewersample and javasamples, and linked them to
> corresponding physical directories in the www folder.
> 
> The uriworkermap.properties files in the Tomcat conf directory contains
> following lines:
> 
> /examples/*=worker1  <-- this one works, so I know that isapi_redirect
> mechanism and Tomcat are working.
> /mapguide/javaviewersample/* worker1
> /mapguide/javasamples/* worker1
> /mapguide/mapviewerajax/* worker1
> 
> When I try any of the following URL's, I get page not found error.  Any
> ideas?
> 
> http://w2003/mapguide/javaviewersample/ajaxviewersample.jsp
> http://w2003/mapguide/javaviewersample/ajaxtiledviewersample.jsp
> http://w2003/mapguide/javasamples/index.jsp
> http://w2003/mapguide/mapviewerajax/ajaxviewer.jsp?WEBLAYOUT=Library://ATest.WebLayout
> 
> I know that I am this close, but can't figure out the missing link. I can
> guess that "examples" context is working because it is in Tomcat's default
> location (i.e. Webapps) folder. But how do I make it work for applications
> which are not in the default webapps folder, but others (e.g. javasamples
> and javaviewersample). Or, may be, my problem lies else where.
> 
> I WOULD REALLY APPRECIATE ANY HELP I COULD GET IN THIS REGARD!
> 
> THANKS!!!!!!
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Making-MapGuide-JSP-to-work-with-IIS-%28the-missing-link----almost-there%21%29-tp19485081p19486470.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list