Opened 7 years ago

Closed 7 years ago

#932 closed defect (fixed)

Geonetwork map area not working

Reported by: kalxas Owned by: live-demo@…
Priority: critical Milestone:
Component: OSGeoLive Keywords: 6.0
Cc: live-demo@…, fxp

Description

From a first look it seems that it has to do with internal Geoserver. Perhaps an openjdk7 issue (?)

Change history (3)

comment:1 Changed 7 years ago by fxp

The exception in GeoServer log is:

----------------------------------
- GEOSERVER_DATA_DIR: /usr/lib/geonetwork/jetty/../data/geoserver_data
----------------------------------
2012-07-18 19:15:43,119 WARN [referencing.factory] - Axis elements found in a wkt definition, the force longitude first axis order hint might not be respected:
PROJCS["WGS84 / Simple Mercator", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS_1984", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295]], PROJECTION["Mercator_1SP_Google"], PARAMETER["latitude_of_origin", 0.0], PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", NORTH], AUTHORITY["EPSG","54004"]]
2012-07-18 19:15:45,062 ERROR [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gwcXmlConfig' defined in URL [jar:file:/tmp/Jetty_0_0_0_0_8880_geoserver.war__geoserver__.1dol4h/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
-------------------------------
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
"jetty/logs/geoserver.log" 108L, 11187C          

I'm not sure why this is happening, but it's related to GWC. What I suggest is to turn off GWC.

What I did and tested on the beta1 on virtual box:

# Goto GN folder
cd /usr/lib/geonetwork/web

# Unzip GeoServer war
mkdir geoserver
mv geoserver.war geoserver/.
cd geoserver/
unzip geoserver.war

# Remove GWC
cd WEB-INF/lib
rm geowebcache-1.2.2.jar
rm gwc-2.0.2.jar
rm web-gwc-2.0.2.jar
cd ../../

# Rebuild the war
rm geoserver.war
zip -r geoserver.war *
mv geoserver.war ../.

# Clean
cd ..
rm -fr geoserver


# And GeoNetwork start with a working background map.

comment:2 Changed 7 years ago by fxp

Cc: fxp added

comment:3 Changed 7 years ago by kalxas

Resolution: fixed
Status: newclosed

fixed in rev 8122

Note: See TracTickets for help on using tickets.