Hi Andrea,

Thank you for your answer.

We have tried removing all the jar-files related to GWC, and this seems to 
work. For the moment, this is ok, but we are not sure how we can find good long 
term solution to this. At some point we need to be able to run GS with GWC on 
our Weblogic-servers. Is the solution to use stand-alone GWC-s, or will this 
give us the same result? Perhaps someone else has GS/GWC running on Weblogic 
and can give us some input?

To disable diskquota and metastore seems, from the documentation, to disable 
core functionality of the GWC (the metastore in particular)? Would we not end 
up with a poorly configured / performing cache with these options disabled?

Best regards,
Sebjørn Birkeland

SEBJØRN SÆTHER BIRKELAND
SENIOR CONSULTANT
+47 982 19 301

[email protected] | www.bekk.no | open.bekk.no

________________________________________
Fra: [email protected] [[email protected]] på vegne av Andrea Aime 
[[email protected]]
Sendt: 14. februar 2012 14:08
To: Sebjørn Birkeland
Cc: [email protected]
Emne: Re: [Geoserver-users] Using GeoServer with shared data directory

On Tue, Feb 14, 2012 at 1:26 PM, Sebjørn Birkeland
<[email protected]> wrote:
>
> Hi,
>
> GeoServer 2.1.2 is deployed on Weblogic 10.3.4.0, and configured an external 
> data directory as specified in web.xml. The data directory is shared between 
> the two servers in the cluster.
>
> When starting GeoServer on both servers: one of the servers works fine, but 
> the other one failes with an exception: "Invocation of init method failed; 
> nested exception is com.sleepycat.je.EnvironmentLockedException: (JE 4.1.7) 
> /data/datex/geoserver_data/gwc/diskquota_page_store The environment cannot be 
> locked for single writer access. ENV_LOCKED: The je.lck file could not be 
> locked. Environment is invalid and must be closed." (see details below).
>
> Through searching the internet, we understand that this might have something 
> to do with the embedded GWC.
>
> Is there a way to make GeoServer work with a shared data directory? Is it 
> designed to work with a shared data directory at all? Has anyone got 
> experience with installing and using GeoServer in a Weblogic server cluster?


Yes, it has able to cluster since many years ago, unfortunately GWC
has a couple of functionalities, enabled by
default, that do not work in clustered mode: the disk quota module and
the metastore.

If you don't need GWC the easiest thing to do is to go in WEB-INF/lib
and just remove all the *gwc* jars, the rest of
GeoServer will be mostly unaffected (there is only one or two optional
KML modules that actually need GWC afaik).

Otherwise you can setup the following system variables in the JVM that
runs GeoServer:
-DGWC_DISKQUOTA_DISABLED=true
-DGWC_METASTORE_DISABLED=true

See http://geowebcache.org/docs/current/configuration/diskquotas.html and
http://geowebcache.org/docs/current/configuration/storage.html#metastore

Cheers
Andrea

--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to