[mapguide-users] Newbie problem withWebserverextensionsconfiguration

Andy Morsell amorsell at spatialgis.com
Mon May 14 01:19:55 EDT 2007


Hi Brad,
That's not correct.  The port number is Apache/Tomcat specific and if using
the Java web extensions, you must explicitly specify the port at the URL
regardless of whether calling the AJAX or DWF viewer web layout. 


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

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Brad Nesom
Sent: Sunday, May 13, 2007 7:48 PM
To: mapguide-users at lists.osgeo.org
Subject: RE: [mapguide-users] Newbie problem
withWebserverextensionsconfiguration

I could be wrong but I think I remember that the ajaxviewer doesn't use the
8008. just leave it out.


>>>>
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

HYPERLINK
"http://localhost:8008/mapguide/mapviewerjava/ajaxviewer.jsp?WEBLAYOUT=Libra
ry://ATest.WebLayout"http://localhost:8008/mapguide/mapviewerjava/ajaxviewer
.jsp?WEBLAYOUT=Library://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



_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

_________________________________________________________________
Make every IM count. Download Messenger and join the i’m Initiative now. 
It’s free. http://im.live.com/messenger/im/home/?source=TAGHM_MAY07

_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users




More information about the mapguide-users mailing list