[Geoserver-users] share geoserver's jar files with servlet

Thanks for the answers. I going to try Adreas’s suggestion first.

regards
Stefan

-----Ursprüngliche Nachricht-----
Von: David Winslow [mailto:dwinslow@anonymised.com]
Gesendet am: Freitag, 19. September 2008 16:48
An: Andrea Aime
Cc: Ziegler Stefan; geoserver-users
Betreff: Re: [Geoserver-users] share geoserver’s jar files
with servlet

The REST support package is not included in GeoServer releases, but I
can make a plugin available if need be. It doesn’t require any
configuration changes, though, just add the jar’s to WEB-INF/lib and
restart GeoServer. If your add-on is already written as a servlet
though, some code would be needed to adapt that to the
RESTlet API, so
it would probably be easier to just add a mapping in
GeoServer’s web.xml.

Hope this helps,
David Winslow

Andrea Aime wrote:

Ziegler Stefan ha scritto:

Hi
I have a small servlet that uses the Geotools libraries.
Is there a way
that I can use Geoserver’s Geotools jar-files with my
servlet instead of
copying all the Geotools stuff again on the server?

Hum, yes, I believe you can put the .class file of your
servlet in the
GeoServer WEB-INF/classes directory, declare and map your servlet
in the GeoServer web.xml, and be done with it.
We almost have a more pluggable way to do the same that would allow
you to build a jar instead and have it plug in into GeoServer, but
we first have to either get rid of the Struts UI.

Alternatively I believe you can already build a custom
RESTlet as a jar
and have it plug in into GeoServer without needing to touch any
configuration file, but I’m not sure about the details, Justin and
David (cc’ed) know more.

Cheers