Hi,
I created a quick solution now with an additional
org.geoserver.config.ConfigurationListener - when an instance submits a
change the other instance makes a getGeoServer().reset() and a
getGeoServer().reload() - but nevertheless it does not work, because there
is a problem with global.xml ! The other instance cannot use anymore the
status page and cannot save to global.xml - see stack traces below (please
say if you need the whole stacktraces).
When this error occurs I have to restart the tomcat to make status page work
with both instances.
Any ideas?
Stacktrace when submitting: ****************
org.geoserver.catalog.CatalogException: Error persisting
GeoServerInfoImpl[null] to ...\data\global.xml
at
org.geoserver.config.GeoServerPersister.persist(GeoServerPersister.java:705)
at
org.geoserver.config.GeoServerPersister.handlePostGlobalChange(GeoServerPersister.java:241)
at
org.geoserver.config.impl.GeoServerImpl.fireGlobalPostModified(GeoServerImpl.java:154)
at org.geoserver.config.impl.GeoServerImpl.save(GeoServerImpl.java:141)
at org.geoserver.web.admin.ContactPage$1.onSubmit(ContactPage.java:39)
at
org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1561)
......
Caused by: java.io.IOException: Could not delete: ...\data\global.xml
at
org.geoserver.config.GeoServerPersister.rename(GeoServerPersister.java:665)
at
org.geoserver.config.GeoServerPersister.persist(GeoServerPersister.java:698)
Stacktrace on StatusPage: ********************
org.apache.wicket.WicketRuntimeException: Can't instantiate page using
constructor public org.geoserver.web.admin.StatusPage()
at
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320)
......
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192)
... 151 more
Caused by: java.lang.NullPointerException
at org.geoserver.web.admin.StatusPage.updateModel(StatusPage.java:186)
at org.geoserver.web.admin.StatusPage.(StatusPage.java:78)
-----
torres.at
bestzeller.com
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Shared-configurations-on-a-cluster-with-GeoServer-2-1-RC2-tp6203453p6204459.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users