[mapguide-users] Newbie problem with Webserverextensionsconfiguration

Andy Morsell amorsell at spatialgis.com
Mon May 14 11:48:49 EDT 2007


It sounds like you are using a pre-installed version of Apache and Tomcat.
The easiest way to configure this is to do a full, bundled
MGOS/Apache/Tomcat install and then copy the configuration from httpd.conf
to yours.  Here is mine and I hope it helps (change your paths as
appropriate).  If I remember correctly, there was a bug in the original ajax
redirect statement.
 
#-----------------Start MapGuide Enterprise Java web extensions config
 
# MapViewer to MapViewerPhp aliases
ScriptAlias /mapguide/mapagent/mapagent.fcgi "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/mapagent/MapAg
ent.exe"
AliasMatch ^/mapguide/mapviewerajax/([^\?])(.*)$ "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/mapviewerphp/$
1$2"
Alias /mapguide/mapviewerajax "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/mapviewerphp/a
jaxviewer.jsp"
AliasMatch ^/mapguide/mapviewerdwf/([^\?])(.*)$ "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/mapviewerphp/$
1$2"
Alias /mapguide/mapviewerdwf "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/mapviewerphp/d
wfviewer.jsp"
 
Alias /mapguide "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/"
<Directory "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/">
 AllowOverride All
 Options All
 Order allow,deny
 Allow from all
 AddHandler cgi-script .exe
 RewriteEngine on
 RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
</Directory>
 
Alias /PhpViewerSample "C:/Program
Files/Autodesk/MapGuideEnterprise2007/WebServerExtensions/www/PhpViewerSampl
e/"
 
#-----------------End MapGuide Enterprise Java web extensions config
 
#-----------------Start Tomcat connector support
 
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "C:/Program Files/Apache
Group/Apache2/conf/workers.properties"
# Where to put jk logs
JkLogFile "C:/Program Files/Apache Group/Apache2/logs/mod_jk.log"
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
# Send everything for context /examples to worker named
# worker1 (ajp13)
JkMount /mapguide/mapviewerjava/* worker1
Redirect /mapguide/mapviewerajax/
http://127.0.0.1/mapguide/mapviewerjava/ajaxviewer.jsp
Redirect /mapguide/mapviewerdwf/
http://127.0.0.1/mapguide/mapviewerjava/dwfviewer.jsp
 

#-----------------End Tomcat connector support
 
#-----------------Start MapGuide Java sample support
 
JkMount /mapguide/javaviewersample/* worker1
 
#-----------------End MapGuide Java sample support
 

Andy Morsell, P.E. 
Spatial Integrators, Inc. 
http://www.SpatialGIS.com 

  _____  

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of azpublic
Sent: Sunday, May 13, 2007 12:47 PM
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Newbie problem with
Webserverextensionsconfiguration



Ok I’ve been installing a reinstalling MapGuide these past two days but I
still cant have any chance in getting the Apache to render the JSP’s
correctly 
 

 

I’ve been trying to copy MapGuideApi.jar in CATALINA_HOME\common\lib, in
CATALINA_HOME\server\lib, in CATALINA_HOME\shared\lib,. Nothing to do
 

 

I’ve also tried to copy  the library in JAVA_HOME\\lib\ext\ 
 no result 
 

I tried adding "C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\WEB-INF\lib"; to my
classpath .. no result 
 

 

I always get this stupid error from tomcat when requesting 

http://localhost:8008/mapguide/mapviewerjava/ajaxviewer.jsp?WEBLAYOUT=Librar
y://ATest.WebLayout

as suggested in the InstallConfigureMgOpenSourceOnWindows.pdf documentation.


 


Here is the complete error returned by my Tomcat 5.5.17  the first time I
hit the url above : 


exception 

org.apache.jasper.JasperException: no MapGuideJavaApi in java.library.path
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
pper.java:510)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
75)
 
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)

cause mère 

javax.servlet.ServletException: no MapGuideJavaApi in java.library.path
 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:858)
 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:791)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp._jspService(ajaxviewer_jsp.java:
885)
        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:3
32)
 
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)

cause mère 

java.lang.UnsatisfiedLinkError: no MapGuideJavaApi in java.library.path
        java.lang.ClassLoader.loadLibrary(Unknown Source)
        java.lang.Runtime.loadLibrary0(Unknown Source)
        java.lang.System.loadLibrary(Unknown Source)
 
org.osgeo.mapguide.MapGuideJavaApiJNI.<clinit>(MapGuideJavaApiJNI.java:2095)
 
org.osgeo.mapguide.MapGuideJavaApi.MgInitializeWebTier(MapGuideJavaApi.java:
14)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp.InitializeWebTier(ajaxviewer_jsp
.java:36)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp.GenerateMainPage(ajaxviewer_jsp.
java:173)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp._jspService(ajaxviewer_jsp.java:
876)
        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:3
32)
 
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)

note La trace complète de la cause mère de cette erreur est disponible dans
les fichiers journaux de Apache Tomcat/5.5.17.


 


And Here is the error returned by tomcat if I try to refresh the page :


exception 

org.apache.jasper.JasperException
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
pper.java:510)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
75)
 
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)

cause mère 

javax.servlet.ServletException
 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:858)
 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:791)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp._jspService(ajaxviewer_jsp.java:
885)
        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:3
32)
 
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)

cause mère 

java.lang.NoClassDefFoundError
 
org.osgeo.mapguide.MapGuideJavaApi.MgInitializeWebTier(MapGuideJavaApi.java:
14)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp.InitializeWebTier(ajaxviewer_jsp
.java:36)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp.GenerateMainPage(ajaxviewer_jsp.
java:173)
 
org.apache.jsp.mapviewerjava.ajaxviewer_jsp._jspService(ajaxviewer_jsp.java:
876)
        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:3
32)
 
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)

note La trace complète de la cause mère de cette erreur est disponible dans
les fichiers journaux de Apache Tomcat/5.5.17.


 


If someone reads this message please help !  you’re my only hope :-) 


 


 


 


 


 


 


 


 

 

  _____  

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of azpublic
Sent: samedi, 12. mai 2007 10:20
To: 'MapGuide Users Mail List'
Subject: RE: [mapguide-users] Newbie problem with Web
serverextensionsconfiguration

 

Ok  I managed to get something after struggling with httpd.conf. I am now
pretty sure that I managed to communicate with my Tomcat install however I
still have some error  :

 

I encountered a http 500 error when trying to access
http://localhost:8008/mapguide/mapviewerjava/ajaxviewer.jsp?WEBLAYOUT=Librar
y://ATest.WebLayout :

 

org.apache.jasper.JasperException: no MapGuideJavaApi in java.library.path
 
It seems that Tomcat is not able to find the three jars located in
www/WEB-INF/lib/ of the MapGuide Installation ? 
Any idea how I can fix this ? 
 
Thanks in advance :-) 
 
Cheers

 

 

 


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.8/797 - Release Date: 10.05.2007
17:10



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.8/797 - Release Date: 10.05.2007
17:10



No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.8/800 - Release Date: 11.05.2007
19:34



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.8/800 - Release Date: 11.05.2007
19:34



No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.0/801 - Release Date: 12.05.2007
18:40


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070514/03c3034c/attachment-0001.html


More information about the mapguide-users mailing list