Some configuration settings I did to fix this issue are as follows:-
 
File httpd.conf in the conf directory of apache contains the following two 
lines:
 
Redirect /mapguide/mapviewerajax/ 
http://localhost:8008/mapguide/mapviewerjava/ajaxviewer.jsp
Redirect /mapguide/mapviewerdwf/ 
http://localhost:8008/mapguide/mapviewerjava/dwfviewer.jsp

 
When http server apache redirects the browser to this url, then request is 
local to the machine from where the browser is requesting. Thus there are 
only 3 entries in the logs of the  http server
i.e till the redirect 302.
 
The browser never came back with the request so no further entries.
 
If we put the ip address of the http server instead of the localhost then the 
browser will 
come back with the fresh request and hence forth everything will work fine.
 
 
Thanks and Regards
 
 
--- On Tue, 8/12/09, Zac Spitzer <[email protected]> wrote:


From: Zac Spitzer <[email protected]>
Subject: Re: [mapguide-users] Connection Problem
To: "MapGuide Users Mail List" <[email protected]>
Date: Tuesday, 8 December, 2009, 3:14 PM


great news, can you describe the fix?


2009/12/8 manav dayal <[email protected]>






Issue is resolved.
 
Thanks from the bottom of my heart to Kenneth, Jason and Zac.
You people are great.
 
 
Regards


--- On Tue, 8/12/09, Kenneth Skovhede, GEOGRAF A/S <[email protected]> wrote:


From: Kenneth Skovhede, GEOGRAF A/S <[email protected]>

Subject: Re: [mapguide-users] Connection Problem
To: "MapGuide Users Mail List" <[email protected]>
Date: Tuesday, 8 December, 2009, 1:33 PM





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 <[email protected]> wrote:


From: Jason Birch <[email protected]>
Subject: Re: [mapguide-users] Connection Problem
To: "MapGuide Users Mail List" <[email protected]>
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 <[email protected]> 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 <[email protected]> wrote:
>
>
> From: manav dayal <[email protected]>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <[email protected]>
> 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 <[email protected]> wrote:
>
>
> From: Zac Spitzer <[email protected]>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <[email protected]>
> 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 <[email protected]>
>
> 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 <[email protected]>
>
>
>
>
>
>
> 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 <[email protected]> wrote:
>
>
>
> From: Zac Spitzer <[email protected]>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <[email protected]>
> 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 <[email protected]>
>
>
>
>
>
>
>
>
> 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 <[email protected]> wrote:
>
>
>
> From: manav dayal <[email protected]>
>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <[email protected]>
> 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 <[email protected]> wrote:
>
>
> From: Zac Spitzer <[email protected]>
> Subject: Re: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <[email protected]>
> 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 <[email protected]>
>
>
>
>
>
>
> 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 <[email protected]> wrote:
>
>
> From: Zac Spitzer <[email protected]>
> Subject: Re: [mapguide-users] Connection Problem
>
> To: "MapGuide Users Mail List" <[email protected]>
> Date: Friday, 4 December, 2009, 9:44 AM
>
>
>
>
>
> how about a little more detail that just saying it 'errors' ?
>
>
> 2009/12/4 manav dayal <[email protected]>
>
>
>
>
>
>
>
> Hi everyone.
>
> I am stuck with this.
>
> Plz help!!
>
> Thanks in advance.
> Regards.
>
>
>
> --- On Thu, 3/12/09, manav dayal <[email protected]> wrote:
>
>
> From: manav dayal <[email protected]>
> Subject: [mapguide-users] Connection Problem
> To: "MapGuide Users Mail List" <[email protected]>
> 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/   gives a page which shows It works!
>
> even
>
> http://ip/mapguide/  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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> [email protected]
> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> [email protected]
> 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
> [email protected]
> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> [email protected]
> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
> _______________________________________________
> mapguide-users mailing list
> [email protected]
> 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
> [email protected]
> 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
> [email protected]
> 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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users



The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
  
-----Inline Attachment Follows-----


_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users






The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
_______________________________________________
mapguide-users mailing list
[email protected]
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
[email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to