[Geoserver-devel] Picking up new WFS output formats

So I've coded a first crack at JSON output for WFS - https://svn.codehaus.org/geoserver/branches/1.4.x/community/geojson/

I first built it as part of the WFS module, and it worked great there. Then I refactored it in to it's own community module, got it building and producing a jar. But when I drop that jar in to a GeoServer (running 1.4.0-RC3 on my machine) it doesn't get picked up. I got a proper META-INF services in it I believe, and it works when it's in the META-INF with the rest of them.

Justin, one thing that I noticed when starting up is a line that says spring is 'defining beans', and it lists the services and also all the WMS plug-ins, but it doesn't list the WFS plug-ins (shapefile and gml output). Could that have anything to do with it?

Or does anyone else have ideas about why the plug-in is not getting picked up? It definitely works when you have it inside the WFS module (and edit the META-INF file there to include it), but not outside. Maybe a problem with loading the factories?

Chris

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Hi Chris,

I think you need to put it under the "services" directory under
META-INF. Right now it appears to be under just META-INF.

-Justin

Chris Holmes wrote:

So I've coded a first crack at JSON output for WFS -
https://svn.codehaus.org/geoserver/branches/1.4.x/community/geojson/

I first built it as part of the WFS module, and it worked great there.
Then I refactored it in to it's own community module, got it building
and producing a jar. But when I drop that jar in to a GeoServer
(running 1.4.0-RC3 on my machine) it doesn't get picked up. I got a
proper META-INF services in it I believe, and it works when it's in the
META-INF with the rest of them.

Justin, one thing that I noticed when starting up is a line that says
spring is 'defining beans', and it lists the services and also all the
WMS plug-ins, but it doesn't list the WFS plug-ins (shapefile and gml
output). Could that have anything to do with it?

Or does anyone else have ideas about why the plug-in is not getting
picked up? It definitely works when you have it inside the WFS module
(and edit the META-INF file there to include it), but not outside. Maybe
a problem with loading the factories?

Chris

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1004,459413ec126612207481331!

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

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,459413ec126612207481331!

--
Justin Deoliveira
jdeolive@anonymised.com
The Open Planning Project
http://topp.openplans.org

Ah sweet, worked like a charm. I was hoping it'd be something simple like this, thanks for catching it.

Chris

Justin Deoliveira wrote:

Hi Chris,

I think you need to put it under the "services" directory under
META-INF. Right now it appears to be under just META-INF.

-Justin

Chris Holmes wrote:

So I've coded a first crack at JSON output for WFS -
https://svn.codehaus.org/geoserver/branches/1.4.x/community/geojson/

I first built it as part of the WFS module, and it worked great there.
Then I refactored it in to it's own community module, got it building
and producing a jar. But when I drop that jar in to a GeoServer
(running 1.4.0-RC3 on my machine) it doesn't get picked up. I got a
proper META-INF services in it I believe, and it works when it's in the
META-INF with the rest of them.

Justin, one thing that I noticed when starting up is a line that says
spring is 'defining beans', and it lists the services and also all the
WMS plug-ins, but it doesn't list the WFS plug-ins (shapefile and gml
output). Could that have anything to do with it?

Or does anyone else have ideas about why the plug-in is not getting
picked up? It definitely works when you have it inside the WFS module
(and edit the META-INF file there to include it), but not outside. Maybe
a problem with loading the factories?

Chris

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

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

_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,459413ec126612207481331!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org