Hi Polet,
good to hear that you solved your issue.
I use Java SDK VM.
So I have difficulties to add new WMS (and harvesting) in intermap (which I think is related to proxies) so I will look at your code and your another explanations. Thanks for that.
Perhaps one of the developers can give some additional explanations about Gn configurations and geoserver stuff.
Have a nice weekend.
best regards
Sarah
Von: Polet Guillaume guillaume.polet@anonymised.com
An: geonetwork-devel@lists.sourceforge.net
Gesendet: Freitag, den 4. Dezember 2009, 16:35:33 Uhr
Betreff: Re: [GeoNetwork-devel] Getting started
I finally got the map to work but with a nasty hack and not using the
saved parameters. In reality, the maps are accessed through another
application “intermap”. Intermap, at first, has no knowledge of GN and
so this is why it does not use the proxy settings GN has. It does allow
to set a proxy, although I have not found where I could set, the code
does well allow to set some. But it does not take care of performing
proxy authentication.
So, so far, and just for the purpose of making it run, I have hard-coded
my proxy settings in the method
org.wfp.vam.intermap.http.ConcurrentHTTPTransactionHandler.doTransaction
s() by using some code like this:
httpClient.getState().setProxyCredentials(AuthScope.ANY,
new UsernamePasswordCredentials(username,password));
HostConfiguration hConf=
httpClient.getHostConfiguration();
if (proxyHost != null)
hConf.setProxy(proxyHost, proxyPort);
And indeed, it worked, I now have a nice map of the world served by the
demis WMS server.
IMO, it is a bit misleading to have the code of several applications
mixed within the same project, but hey, I have not done anything, so I
can’t complain ;-).
Have a nice week-end,
Guillaume Polet
-----Original Message-----
From: Polet Guillaume [mailto:guillaume.polet@anonymised.com]
Sent: 04 December 2009 15:38
To: geonetwork-devel@anonymised.comts.sourceforge.net
Subject: Re: [GeoNetwork-devel] Getting started
Hi Sarah,
Thanks for such a great feedback and in such a short time. However, I
have found that the maps displayed in mapviewer are actually coming from
external web sites (I first thought that they were delivered by the
embedded Geoserver) and to reach them they use a traditional URL
connection without setting proxies and other stuffs. Unfortunately for
me, I am behind a proxy which moreover requires authentication
(otherwise it is quite easy to set up global proxy for a Java app, a few
VM args does the trick or simply setting the env property
“java.net.useSystemProxies” to true also works).
I have then modified the code so that the URLConnection performs the
proxy authentication and it got me further but it seems that there are
other URL connection, now performed by
org.apache.commons.httpclient.HttpConnection which also needs to be
configured somehow (I have still no idea on how). Anyway, this is a bit
surprising that GN asks for proxy settings but only parts of the code
uses them. Or maybe I have missed some code somewhere which does it all,
but then it does not seem to work for me …so far ;-).
I have also read the posts you mentioned in your previous e-mail, but I
don’t think that they are related to what I am facing. I have a few
questions regarding them, though.
- Did you end up using a J2EE VM or did the J2SE was enough?
- Regarding Geoserver, I don’t really understand how it interacts with
GN. How do they communicate and how is GN aware of Geoserver. Can I
configure GN to use another instance of Geoserver or am I forced to use
the embedded one? Since I have checked-out the GN 2.4.2 tag, Geoserver
is “only” 1.7.3 though I’d rather use the latest version (which I think
is 2.0).
I will keep on looking.
Have a great week-end,
Guillaume
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
GeoNetwork-devel mailing list
GeoNetwork-devel@anonymised.comt
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com