[Live-demo] GeoNetwork, OSGeo-Live, and OpenJDK 7?

Cameron Shorter cameron.shorter at gmail.com
Sun Jul 1 14:33:08 PDT 2012


Francois, Simon,
This issue might provide clues re GeoNetwork not working:
https://trac.osgeo.org/osgeo/ticket/915#comment:1
"JAVA_HOME variable not set for openjdk7"

On 02/07/12 01:11, Francois Prunayre wrote:
> Hello Simon
>
> 2012/6/28  <Simon.Pigot at csiro.au>:
>> Hi Cameron,
>>
>> I understood (but I may be out of date) that the sun jdk was going to continue to be around for this release? If the JAVA_HOME problem is just making sure it is set to the location of the sun jdk then it should be easy to fix.
>>
>> If no sunjdk and openjdk7 is the only option then I have had no experience with GeoNetwork under openjdk7 as yet and probably am not going to get time to do anything on this before the release goes final.
> I had a quick look to 2.6.4 with openjdk7 and GeoNetwork starts
> properly and runs samples fine. But there is issue with GeoServer
> (geowebcache) on startup
>
> .883::WARN:  Failed startup of context
> org.mortbay.jetty.webapp.WebAppContext at b49cef1{/geoserver,jar:file:/usr/local/App/geonetwork/2.6.4/web/geoserver.war!/}
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'gwcXmlConfig' defined in URL
> [jar:file:/tmp/Jetty_localhost_8080_geoserver.war__geoserver__.5rpsuh/webapp/WEB-INF/lib/gwc-2.0.2.jar!/applicationContext.xml]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class [org.geowebcache.config.XMLConfiguration]:
> Constructor threw exception; nested exception is
> com.thoughtworks.xstream.converters.ConversionException: Cannot
> construct org.geowebcache.layer.wms.WMSLayer as it does not have a
> no-args constructor : Cannot construct
> org.geowebcache.layer.wms.WMSLayer as it does not have a no-args
> constructor
> ---- Debugging information ----
> message             : Cannot construct
> org.geowebcache.layer.wms.WMSLayer as it does not have a no-args
> constructor
> cause-exception     :
> com.thoughtworks.xstream.converters.reflection.ObjectAccessException
> cause-message       : Cannot construct
> org.geowebcache.layer.wms.WMSLayer as it does not have a no-args
> constructor
> class               : org.geowebcache.config.GeoWebCacheConfiguration
> required-type       : org.geowebcache.layer.wms.WMSLayer
>
>
> java version "1.7.0_147-icedtea"
> OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1)
> OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
>
> So next test should be to try it from the osgeo live. Currently in
> Istanbul, will try to have a look when back home next week. Let me
> know if you make any testing.
>
> Cheers.
>
> Francois
>
>> Not much help and apologies for that but I have to finish a very significant project right now (due June 29) and don't have any time for a significant deviation like testing GN under openjdk7 (maybe next week after Thursday is the earliest I could take a look). Francois, do you have any experience with GN under openjdk7? (Sorry to drop this on you!)
>>
>> Cheers,
>> Simon
>> ________________________________________
>> From: Cameron Shorter [cameron.shorter at gmail.com]
>> Sent: Thursday, 28 June 2012 2:15 PM
>> To: Pigot, Simon (CMAR, Hobart); Francois Prunayre
>> Cc: Angelos
>> Subject: GeoNetwork, OSGeo-Live, and OpenJDK 7?
>>
>> Simon, Francois,
>> I thought I should touch base with you both to hear your thoughts with
>> regards to how we should approach GeoNetwork on the next OSGeo-Live 6.0
>> release.
>>
>> As you will notice from our status sheet [1], Angelos (kalxas) has
>> identified that GeoNetwork doesn't start (JAVA_HOME problem).
>> I expect the reason for this is that due to the legal changes around
>> Java, we expect that we will only legally be able to use OpenJDK
>> (version 7) on the next OSGeo-Live.
>>
>> What do we know, or not know, about GeoNetwork and OpenJDK?
>> What should be our path forward?
>>
>> I'm happy if you would wish to expand this conversation to the
>> OSGeo-Live email list at some point.
>>
>> [1]
>> https://docs.google.com/spreadsheet/ccc?key=0Al9zh8DjmU_RdGIzd0VLLTBpQVJuNVlHMlBWSDhKLXc#gid=13
>>
>> --
>> Cameron Shorter
>> Geospatial Solutions Manager
>> Tel: +61 (0)2 8570 5050
>> Mob: +61 (0)419 142 254
>>
>> Think Globally, Fix Locally
>> Geospatial Solutions enhanced with Open Standards and Open Source
>> http://www.lisasoft.com
>>


-- 
Cameron Shorter
Geospatial Solutions Manager
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254

Think Globally, Fix Locally
Geospatial Solutions enhanced with Open Standards and Open Source
http://www.lisasoft.com




More information about the Osgeolive mailing list