[GeoNetwork-users] Proxy Configuration

Hi All,
i have installed the GN 2.6.1 version behind Apache.
After searching a metadata , i want add a layer interactively int the
mapviewer by clicking the link:

javascript:addWMSLayer([['SI:TraitDeCote','http://www.tefenua.gov.pf/geoserver/wms?',‘SI:TraitDeCote’,'19’]])

Nothing happen and after a time out a message say "Could not add layer".
In fact, GN try to get a WMS capabilities document FROM
www.tefenua.gov.pf . Ok, but it doesn't use the Proxy configuration
system of GN, why ?

Our Network, is well secured (too much) , so every http connections go
by our proxy (intranet), directs connections between sub-network are not
allowed. And adding a wms layer by a user don't work.
Is it the same problem of http://trac.osgeo.org/geonetwork/ticket/395
?

I'm also wondering why layers configured in config-gui.xml are
displaying well ? it seems that this is not the same thing.

Thank you.

Hi

The layers loaded in config-gui.xml reference to local geoserver by default,
i think that explains why are loaded correctly as probably the proxy is not
involved.

About the no use in map viewer the Proxy configuration system of GN it's a
bug. Ticket http://trac.osgeo.org/geonetwork/ticket/395 was created for
this. In another post Damiano Albani put this fix that doesn't use the GN
proxy config, but seem working for him:

"web/src/main/java/org/geonetwork/http/proxy/HttpProxyServlet.java", in
method doGet(), around line #104, you can add something like :

client.getHostConfiguration()
      .setProxy(System.getProperty("http.proxyHost"),
                Integer.valueOf(System.getProperty("http.proxyPort"));

If you can use it until next GN release, probably solves your problem.

Regards,
Jose García

GeoCat bv

On Thu, Dec 2, 2010 at 3:19 AM, silst <stephane.lii@anonymised.com>wrote:

Hi All,
i have installed the GN 2.6.1 version behind Apache.
After searching a metadata , i want add a layer interactively int the
mapviewer by clicking the link:

javascript:addWMSLayer([['SI:TraitDeCote','
http://www.tefenua.gov.pf/geoserver/wms?',‘SI:TraitDeCote’,'19’]])

Nothing happen and after a time out a message say "Could not add layer".
In fact, GN try to get a WMS capabilities document FROM
www.tefenua.gov.pf . Ok, but it doesn't use the Proxy configuration
system of GN, why ?

Our Network, is well secured (too much) , so every http connections go
by our proxy (intranet), directs connections between sub-network are not
allowed. And adding a wms layer by a user don't work.
Is it the same problem of http://trac.osgeo.org/geonetwork/ticket/395
?

I'm also wondering why layers configured in config-gui.xml are
displaying well ? it seems that this is not the same thing.

Thank you.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork