[mapguide-users] RE: installation problem on Apache/Tomcat with Java
Alain Lebatard
alain.lebatard at autodesk.com
Wed Mar 29 13:11:45 EST 2006
Vlad,
I don't have an answer to your third question, but for the first two:
1) In order to run the sample you need both lines. The second line is
necessary so Apache forward to Tomcat the requests made to the JSP pages
of the sample application (such as
/mapguide/javaviewersample/ajaxviewersample.jsp)
2) The port number in the redirect statement must be the Apache
listening port, not Tomcat's. In your case it's 8008. Also, the host
name should be your machine name (or IP) otherwise this redirection will
work only when the client runs on the same machine as the web server.
Alain
-----Original Message-----
From: Vladimir G. Kogut [mailto:vgkogut at chesterwater.com]
Sent: Wednesday, March 29, 2006 8:08 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] RE: installation problem on Apache/Tomcat with
Java
Stacked with simple problem probably related to installation (Apache and
Tomcat with Java):
--------------------
1) According to "Installing and Configuring on Windows.pdf" (page 27),
Apache configuration file httpd.conf must have line:
JkMount /mapguide/mapviewerjava/* worker1 (and that's what script has
created).
On the other hand, the "Installing Sample Data and Viewer Sample
Application.pdf" (page 8) says that this line should be as follows:
JkMount /mapguide/javaviewersample/* worker1
My question is, which line is correct or should I have both?
---------------
2) The same page 27 says that there are 2 additional lines should be
added to httpd.conf:
Redirect /mapguide/mapviewerajax/
http://<hostname>:<port>/mapguide/mapviewerjava/ajaxviewer.jsp
Redirect /mapguide/mapviewerdwf/
http://<hostname>:<port>/mapguide/mapviewerjava/dwfviewer.jsp
In my default installation case (Apache on port 8008 and Tomcat on port
8080) these lines, I guess, should be:
Redirect /mapguide/mapviewerajax/
http://localhost:8080/mapguide/mapviewerjava/ajaxviewer.jsp
Redirect /mapguide/mapviewerdwf/
http://localhost:8080/mapguide/mapviewerjava/dwfviewer.jsp
Is that correct?
----------------
3) Maybe it'll help to find resolution:
After playing for some time with the samples I have found error message
in Tomcats log "localhost.2006-03-29.log"
Mar 29, 2006 10:16:21 AM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.osgeo.mapguide.MgApplicationException: Permission denied to
resource: Session:e47db492-ffff-ffff-8000-00142237a530_en//Sheboygan.Map
at
org.osgeo.mapguide.MapGuideJavaApiJNI.MgResource_Save__SWIG_1(Native
Method)
at org.osgeo.mapguide.MgResource.Save(MgResource.java:55)
at
org.apache.jsp.mapviewerjava.mapframe_jsp._jspService(org.apache.jsp.map
viewerjava.mapframe_jsp:348)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
8)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:663)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)
Thanks,
Vlad Kogut
Software Application Analyst
Chester Water Authority
437 West Front Str.
Chester, PA 19013
vgkogut at chesterwater.com
610-876-876-0940x231
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org
More information about the Mapguide-users
mailing list