[Geoserver-devel] GWC and Spring 3.0.5

At the moment I try to migrate geoserver trunk to Spring 3.0.5 and Spring Security 3.0.5. Until now, the Spring migration is the easy part, Spring Security is much harder.

A mvn clean install runs all tests except some gwc tests.

Looking at

https://github.com/GeoWebCache/geowebcache/blob/master/geowebcache/pom.xml

I see that gwc uses Spring 2.5.5. How to continue ?

Cheers
Christian

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

On Tue, May 10, 2011 at 8:37 AM, <christian.mueller@anonymised.com> wrote:

At the moment I try to migrate geoserver trunk to Spring 3.0.5 and Spring
Security 3.0.5. Until now, the Spring migration is the easy part, Spring
Security is much harder.

A mvn clean install runs all tests except some gwc tests.

Looking at

https://github.com/GeoWebCache/geowebcache/blob/master/geowebcache/pom.xml

I see that gwc uses Spring 2.5.5. How to continue ?

Uh, that might be problematic, GWC should also do the switch to 3.0.5 I guess?
But it's up to the GWC developers to decide whether they want to switch, in what
time (afaik there are other modifications going) and who can look into it.

If I remember properly GWC makes a relatively lightweight usage of Spring, so
it may be that migrating it it's not that hard? Proposing a patch to switch GWC
to Spring 3.0.5 might be a good step forward (though, let's hear from Gabriel
about this).

Cheers
Andrea

Cheers
Christian

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

--
-------------------------------------------------------
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

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

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

Hi Christian,

migrating gwc to Spring 3 sounds good to me. If you feel like providing
a patch that'd be great, cause I'm not sure when I'll be able to do that
myself. For sure not before next week, though next week I think I could.

We use github:https://github.com/GeoWebCache/geowebcache
Or, to make things easier, you just need to migrate the context files in
the geoserver's gwc module, under src/main/resources, as gwc doesn't
come with them embedded in the jars (except for the gwc web module that
we don't depend on)

Cheers,
Gabriel
On Tue, 2011-05-10 at 10:18 +0200, Andrea Aime wrote:

On Tue, May 10, 2011 at 8:37 AM, <christian.mueller@anonymised.com> wrote:
> At the moment I try to migrate geoserver trunk to Spring 3.0.5 and Spring
> Security 3.0.5. Until now, the Spring migration is the easy part, Spring
> Security is much harder.
>
> A mvn clean install runs all tests except some gwc tests.
>
> Looking at
>
> https://github.com/GeoWebCache/geowebcache/blob/master/geowebcache/pom.xml
>
> I see that gwc uses Spring 2.5.5. How to continue ?

Uh, that might be problematic, GWC should also do the switch to 3.0.5 I guess?
But it's up to the GWC developers to decide whether they want to switch, in what
time (afaik there are other modifications going) and who can look into it.

If I remember properly GWC makes a relatively lightweight usage of Spring, so
it may be that migrating it it's not that hard? Proposing a patch to switch GWC
to Spring 3.0.5 might be a good step forward (though, let's hear from Gabriel
about this).

Cheers
Andrea

> Cheers
> Christian
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>

--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers

Solved, I had to modify

src/main/resources/geowebcache-geoserver-context.xml

and changed

<bean id="gwcFacade" class="org.geoserver.gwc.GWC">

to
<bean id="gwcFacade" class="org.geoserver.gwc.GWC" depends-on="gwowebCacheExtensions">

Now all tests pass.

At the moment I have an successful

mvn clean install -P allExtensions.

I will make some additional tests, open a JIRA issue and attach a patch.

Cheers
Christian

Quoting Gabriel Roldán <groldan@anonymised.com>:

Hi Christian,

migrating gwc to Spring 3 sounds good to me. If you feel like providing
a patch that'd be great, cause I'm not sure when I'll be able to do that
myself. For sure not before next week, though next week I think I could.

We use github:https://github.com/GeoWebCache/geowebcache
Or, to make things easier, you just need to migrate the context files in
the geoserver's gwc module, under src/main/resources, as gwc doesn't
come with them embedded in the jars (except for the gwc web module that
we don't depend on)

Cheers,
Gabriel
On Tue, 2011-05-10 at 10:18 +0200, Andrea Aime wrote:

On Tue, May 10, 2011 at 8:37 AM, <christian.mueller@anonymised.com> wrote:
> At the moment I try to migrate geoserver trunk to Spring 3.0.5 and Spring
> Security 3.0.5. Until now, the Spring migration is the easy part, Spring
> Security is much harder.
>
> A mvn clean install runs all tests except some gwc tests.
>
> Looking at
>
> https://github.com/GeoWebCache/geowebcache/blob/master/geowebcache/pom.xml
>
> I see that gwc uses Spring 2.5.5. How to continue ?

Uh, that might be problematic, GWC should also do the switch to 3.0.5 I guess?
But it's up to the GWC developers to decide whether they want to switch, in what
time (afaik there are other modifications going) and who can look into it.

If I remember properly GWC makes a relatively lightweight usage of Spring, so
it may be that migrating it it's not that hard? Proposing a patch to switch GWC
to Spring 3.0.5 might be a good step forward (though, let's hear from Gabriel
about this).

Cheers
Andrea

> Cheers
> Christian
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>

--
Gabriel Roldan
groldan@anonymised.com
Expert service straight from the developers

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.