[mapguide-users] Connection Problem

Trevor Wekel trevor_wekel at otxsystems.com
Tue Dec 8 04:46:47 EST 2009


Let me recap some of the information provided so far with some details from the Apache/Tomcat install I just ran.

If you have chosen the Apache/Tomcat configuration from the installer by selecting "Bundled Configuration" and then "Java", then you should end up with the web server running on port 8008.  The Apache http.conf file should be located at C:\Program Files\OSGeo\MapGuide\Web\Apache2\conf\http.conf

If you want Apache to also serve on port 80, simply add the following  line (in red) to http.conf
#Listen 12.34.56.78:80
Listen 8008
Listen 80

Then restart Apache by executing

net stop ApacheMapGuide2.1
net start ApacheMapGuide2.1

Kenneth is correct with the redirects.  The following redirects in http.conf should be changed to reflect the IP address of the machine where MapGuide is installed.  Localhost will only work for local browsers.

# MapViewer to MapViewerJava Redirect. Uncomment Redirect for Java API.
Redirect /mapguide/mapviewerajax/ http://localhost:8008/mapguide/mapviewerjava/ajaxviewer.jsp
Redirect /mapguide/mapviewerdwf/ http://localhost:8008/mapguide/mapviewerjava/dwfviewer.jsp

Redirect /mapguide/mapviewerajax/ http://(yourIPAddressHere):8008/mapguide/mapviewerjava/ajaxviewer.jsp
Redirect /mapguide/mapviewerdwf/ http://(yourIPAddressHere):8008/mapguide/mapviewerjava/dwfviewer.jsp

Please note, you can also drop the 8008 in the lines above if you want Apache to only listen on port 80.

I also noticed the following line in http.conf,

ServerName localhost:8008

This may also cause problems for server generated redirects.  It should probably be changed to the IP address of the machine.  The 8008 can also be dropped if running on port 80.

ServerName (yourIPAddressHere):8008

Any of these changes will also require an Apache service restart.

Thanks,
Trevor

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S
Sent: December 8, 2009 1:04 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Connection Problem

There should be a redirect in your apache setup that redirects:
/mapguide/mapviewerajax/
to
/mapguide/mapviewerjava/ajaxviewer.jsp

For some reason the redirect appears to throw in "localhost".
If it is non-obvious from looking at your apache config where this is,
you may have some url-rewriting module or other item installed.

Try locating any "localhost" items in the apache config.

Alternatively, see if this is the method used:
http://webdesign.about.com/od/htaccess/ht/ht302redirect.htm


Regards, Kenneth Skovhede, GEOGRAF A/S


manav dayal skrev:
Jason Sir,

I tried to access the page using Firefox with firebug

It is showing an error in the script tag which says:

Failed to load source for sourceFile top-level about:neterror?e=connectionFailure&u=http%3A//localhost%3A8008/mapguide/mapviewerjava/ajaxviewer.jsp%3FSESSION%3D0b920dc6-0000-1000-8000-0018f319f820_en_7F0000010AFC0AFB0AFA%26WEBLAYOUT%3DLibrary%3A//Samples/ms/Layouts/ms.WebLayout&c=UTF-8&d=Firefox%20can%27t%20establish%20a%20connection%20to%20the%20server%20at%20localhost%3A8008. script.tags( X| 220 221 222 223 224 225 226 227 )


Is this call hardwired to refer localhost?

Can I modify it in the file /mapguide/mapviewerajax ?

Thanks and Regards


--- On Tue, 8/12/09, Jason Birch <jason at jasonbirch.com><mailto:jason at jasonbirch.com> wrote:

From: Jason Birch <jason at jasonbirch.com><mailto:jason at jasonbirch.com>
Subject: Re: [mapguide-users] Connection Problem
To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org><mailto:mapguide-users at lists.osgeo.org>
Date: Tuesday, 8 December, 2009, 11:34 AM
Use something like fiddler2 to figure out what its trying to redirect
you to. Maybe a host name or ip that is unreachable from your client.

On 2009-12-07, manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>> wrote:
> 192.168.224.135 - - [08/Dec/2009:11:00:58 +0530] "GET
> /mapguide/mapviewerajax/?SESSION=ca1ee218-ffff-ffff-8000-0018f319f820_en_7F0000010AFC0AFB0AFA&WEBLAYOUT=Library://Samples/ms/Layouts/ms.WebLayout
> HTTP/1.1" 302 472
>
>
> This is the 3rd entry in the access log of apache.
> All further entries are missing.
>
> Where can I find the file to which this 302 redirection is taking place
> /mapguide/mapviewerajax/
>
>
> I have ran out of options to resolve the issue.
> Desperately seeking help!!
>
> Thanks and Regards.
>
>
>
>
> --- On Mon, 7/12/09, manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>> wrote:
>
>
> From: manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>>
> Date: Monday, 7 December, 2009, 1:06 PM
>
>
>
>
>
>
>
> Zac
> I am unable to view any map using different machine.
>
>
> Thanks and Regards.
>
>
> --- On Mon, 7/12/09, Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>> wrote:
>
>
> From: Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>>
> Date: Monday, 7 December, 2009, 12:42 PM
>
>
> looking at yourscreenshot again, it appears the problem is the sample code
> is hardwired to refer to
> localhost:8008 hence the problem...
>
> can you view a normal map without using the javasamples from another
> machine?
>
>
>
> 2009/12/7 Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>>
>
> ok, can you install the firebox addon and enable the net tab,
> often is can be a missing file, which should show up in red
> under the net tab
>
>
>
>
> z
>
>
>
>
> 2009/12/7 manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>>
>
>
>
>
>
>
> I tried it on Firefox
> It is showing the following error on the console:
>
> Error: parent.parent.mapFrame is undefined
> Source File:
> http://192.168.224.24:8008/mapguide/javasamples/common/pageLoadFunctions.js
> Line: 25
>
> Rest of them are warnings.
>
> I am attaching the ScreenShot as well.
>
>
> Thanks and Regards.
>
>
>
>
>
> --- On Mon, 7/12/09, Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>> wrote:
>
>
>
> From: Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>>
> Date: Monday, 7 December, 2009, 11:25 AM
>
>
>
>
>
> 302 is a just a redirect, not an error, so I wouldn't worry so much about
> that
>
> I note you mentioned using IE, does using Firefox make any difference?
> Anything show up in the firefox error console?
>
> z
>
>
> 2009/12/7 manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>>
>
>
>
>
>
>
>
>
> When I try the link
> http://192.168.224.24:8008/mapguide/javasamples/main.jsp
>
> from the machine with ip 192.168.224.135 it is giving the error ( IE cannot
> display the webpage)
>
>
> it gives only 3 entries in the access log of apache installed on my machine
> with ip 192.168.224.24
>
> Following are the entries:
>
> 192.168.224.135 - - [07/Dec/2009:10:34:31 +0530] "GET
> /mapguide/javasamples/main.jsp HTTP/1.1" 200 880
> 192.168.224.135 - - [07/Dec/2009:10:34:31 +0530] "GET
> /mapguide/gis1/styles/globalStyles.css HTTP/1.1" 404 1066
> 192.168.224.135 - - [07/Dec/2009:10:34:31 +0530] "GET
> /mapguide/mapviewerajax/?SESSION=edc0ff8a-ffff-ffff-8000-0018f319f820_en_7F0000010AFC0AFB0AFA&WEBLAYOUT=Library://Samples/ms/Layouts/ms.WebLayout
> HTTP/1.1" 302 472
>
>
>
>
> But When I try the link
> http://192.168.224.24:8008/mapguide/javasamples/main.jsp
>
> from my machine it is creating lot of entries in the access log of apache.
>
> Comparing the entries is not helping the cause.
>
>
> I could not figure out where the problem is?
>
> Plz help!!!
>
> Thanks and Regards.
>
>
>
>
> --- On Fri, 4/12/09, manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>> wrote:
>
>
>
> From: manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>>
>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>>
> Date: Friday, 4 December, 2009, 4:43 PM
>
>
>
>
>
>
>
>
>
>
>
> There is an entry in the access logs of apache which says:
>
> 192.168.224.135 - - [04/Dec/2009:14:58:51 +0530] "GET
> /mapguide/mapviewerajax/?SESSION=5b777a88-0000-1000-8000-0018f319f820_en_7F0000010AFC0AFB0AFA&WEBLAYOUT=Library://Samples/Sheboygan/Layouts/SheboyganJsp.WebLayout
> HTTP/1.1" 302 489
>
>
> How can I resolve this status code 302  error.
>
> Googling hasn't helped.
>
> I haven't found any relevant entry in the Logs of  Tomcat and MGOS 2.0.
>
>
> Still stuck!!
> I am in my learning stage Zac.
> Pardon me.
>
> Thanks for all the help!!
> Regards.
>
>
>
>
>
>
>
>
> --- On Fri, 4/12/09, Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>> wrote:
>
>
> From: Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>>
> Date: Friday, 4 December, 2009, 10:45 AM
>
>
> time for you to do some debugging, if your using the java samples,
> I'd assume you know a bit about programming jsp
>
> there are error logs from both your webserver, servlet container
>
>
> 2009/12/4 manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>>
>
>
>
>
>
>
> Oops! This link appears to be broken.
> is the error I am getting Zac.
>
>
> The link  http://ip:8008/mapguide/  is working fine.
>
>
> and showing the list of the directories.
>
>
> But when I try the link http://ip:8008/mapguide/javasamples/main.jsp
>
>
> is giving the above error.
>
>
> Help!!
>
> --- On Fri, 4/12/09, Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>> wrote:
>
>
> From: Zac Spitzer <zac.spitzer at gmail.com</mc/compose?to=zac.spitzer at gmail.com>>
> Subject: Re: [mapguide-users] Connection Problem
>
> To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>>
> Date: Friday, 4 December, 2009, 9:44 AM
>
>
>
>
>
> how about a little more detail that just saying it 'errors' ?
>
>
> 2009/12/4 manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>>
>
>
>
>
>
>
>
> Hi everyone.
>
> I am stuck with this.
>
> Plz help!!
>
> Thanks in advance.
> Regards.
>
>
>
> --- On Thu, 3/12/09, manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>> wrote:
>
>
> From: manav dayal <manav_dayal85 at yahoo.co.in</mc/compose?to=manav_dayal85 at yahoo.co.in>>
> Subject: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>>
> Date: Thursday, 3 December, 2009, 6:08 PM
>
>
>
>
>
>
>
>
>
>
> I have MGOS 2.0 installed on my machine and my sample application is running
> fine
> on my machine using apache and tomcat.
>
>
> When I try to access the same application from another machine by providing
> the
> IP Address  of the my machine in the url
>
>
> it gives link broken type of errors.
>
> http://ip/  <http://ip/%C2%A0%C2%A0>  gives a page which shows It works!
>
> even
>
> http://ip/mapguide/ <http://ip/mapguide/%C2%A0>  shows the listing of the directories.
>
>
> but when i try to access
>
>
> http://ip/mapguide/javasamples/main.jsp
>
>
> it gives errors but works on my machine.
>
>
> can anyone help!!!
>
> Thanks and Regards.
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
> --
> Zac Spitzer
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
>
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
> --
> Zac Spitzer
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
>
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
> --
> Zac Spitzer
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
>
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
> --
> Zac Spitzer
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
>
>
>
>
>
>
> --
> Zac Spitzer
> Solution Architect / Director
> Ennoble Consultancy Australia
> http://www.ennoble.com.au
> http://zacster.blogspot.com
> +61 405 847 168
>
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>       The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> http://in.yahoo.com/
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org</mc/compose?to=mapguide-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapguide-users



________________________________
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage<http://in.rd.yahoo.com/tagline_yyi_1/*http:/in.yahoo.com/>.






________________________________






_______________________________________________

mapguide-users mailing list

mapguide-users at lists.osgeo.org<mailto:mapguide-users at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/mapguide-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20091208/824a4b3f/attachment.html


More information about the mapguide-users mailing list