There are multiple points in GS code where XStreamPersisterFactories are
created using the raw constructor. This results in the
setApplicationContext() method not being called in most cases. This
configuration model works only when the XStreamPersisterFactory is
instantiated via Spring.

Any ideas?

 S.


On Fri, Apr 25, 2014 at 9:44 AM, Sampo Savolainen <
[email protected]> wrote:

> Oops. Scratch that. It's loaded before GWCConfigPersister. I was missing a
> breakpoint I thought I had set up :)
>
> Nevertheless, it's loaded too late.
>
>  S.
>
>
> On Fri, Apr 25, 2014 at 9:42 AM, Sampo Savolainen <
> [email protected]> wrote:
>
>> Hi,
>>
>> I've looked at this further. For some strange reason, the gs-wfs-ng
>> extension applicationContext is loaded only inside
>> GWCConfigPersister.loadConfig(). Do you know of an extension which is for
>> sure initialized before parsing configuration? Maybe I'm missing some
>> configuration magic.
>>
>>  S.
>>
>>
>> On Fri, Apr 25, 2014 at 9:38 AM, Andrea Aime <
>> [email protected]> wrote:
>>
>>> On Fri, Apr 25, 2014 at 8:08 AM, Sampo Savolainen <
>>> [email protected]> wrote:
>>>
>>>> Hi Andrea,
>>>>
>>>> I just merged this into my branch. It seems that during geoserver
>>>> startup, the XStreamPersisterInitializer.init() method is called only after
>>>> the server configuration is loaded.
>>>>
>>>
>>> Hum, I've indeed noticed yesterday that some bits of code in GeoServer
>>> instantiate the persister factory
>>> programatically instead of fetching it from the application context,
>>> that might be the reason.
>>> I believe it can be fixed by having them use Spring injection instead
>>>
>>> Cheers
>>> Andrea
>>>
>>> --
>>> ==
>>> Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
>>> for more information.
>>> ==
>>>
>>> Ing. Andrea Aime
>>> @geowolf
>>> Technical Lead
>>>
>>> GeoSolutions S.A.S.
>>> Via Poggio alle Viti 1187
>>> 55054  Massarosa (LU)
>>> Italy
>>> phone: +39 0584 962313
>>> fax: +39 0584 1660272
>>> mob: +39  339 8844549
>>>
>>> http://www.geo-solutions.it
>>> http://twitter.com/geosolutions_it
>>>
>>> -------------------------------------------------------
>>>
>>
>>
>>
>> --
>> Sampo Savolainen
>> R&D Director, Spatineo Oy
>> [email protected]
>> +358-407555649
>> Linnankoskenkatu 16 A 17, 00250 Helsinki, Finland
>> www.spatineo.com, twitter.com/#!/spatineo
>> www.linkedin.com/company/spatineo-inc
>>
>> This message may contain privileged and/or confidential information. If
>> you
>> have received this e-mail in error or are not the intended recipient, you
>> may not use, copy, disseminate, or distribute it; do not open any
>> attachments, delete it immediately from your system and notify the sender
>> promptly by e-mail that you have done so.
>>
>
>
>
> --
> Sampo Savolainen
> R&D Director, Spatineo Oy
> [email protected]
> +358-407555649
> Linnankoskenkatu 16 A 17, 00250 Helsinki, Finland
> www.spatineo.com, twitter.com/#!/spatineo
> www.linkedin.com/company/spatineo-inc
>
> This message may contain privileged and/or confidential information. If you
> have received this e-mail in error or are not the intended recipient, you
> may not use, copy, disseminate, or distribute it; do not open any
> attachments, delete it immediately from your system and notify the sender
> promptly by e-mail that you have done so.
>



-- 
Sampo Savolainen
R&D Director, Spatineo Oy
[email protected]
+358-407555649
Linnankoskenkatu 16 A 17, 00250 Helsinki, Finland
www.spatineo.com, twitter.com/#!/spatineo
www.linkedin.com/company/spatineo-inc

This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate, or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to