[Geoserver-users] Calling my own servlet plugin

Hi,
I mentioned this in another post but under a different topic, so I thought
I'd post it again (I apologise but it's rather urgent since I have less than
a week to fix this!)

A while ago I create a GeoServer plugin for detecting differences between
two images. I based it's structure around the WCS source code. I got it
working then, but for some reason I can't get it working now. I've attached
the zipped eclipse project for my plugin, which includes the compiled JAR
file. If anybody can see where I'm going wrong I'd be very happy if they
could point it out. I've scoured the documentation to see if there's
anything I've missed but so far I've had no luck.

At the moment, GeoServer at least calls the constructor for my servlet.
However, when I call http://localhost:8080/geoserver/ows?service=cds I get
an error saying it doesn't exist.

I've put the following into my web.xml file too:

<servlet>
       <servlet-name>cds</servlet-name>
      
<servlet-class>uk.ac.glam.geoserver.cds.servlets.Changes</servlet-class>
</servlet>

ANY help would be fantastic, it's an emergency!

Cheers,
Jon

http://www.nabble.com/file/p15799956/changes.zip changes.zip
--
View this message in context: http://www.nabble.com/Calling-my-own-servlet-plugin-tp15799956p15799956.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Aha!

It seems that the contents of the wcs applicationContext.xml have increased.
I've copied this (obviously changing it to my own classes) and added two new
classes (ChangeDetectionService and DefaultChangeDetectionService both
modelled on WebCoverageService and DefaultWebCoverageService) and now it
SEEMS to work, although I haven't tried a proper request yet.

It would be nice to have a step-by-step tutorial for creating a servlet like
this (I'd be happy to help with this in the future).

Cheers,
Jon

Jon Britton wrote:

Hi,
I mentioned this in another post but under a different topic, so I thought
I'd post it again (I apologise but it's rather urgent since I have less
than a week to fix this!)

A while ago I create a GeoServer plugin for detecting differences between
two images. I based it's structure around the WCS source code. I got it
working then, but for some reason I can't get it working now. I've
attached the zipped eclipse project for my plugin, which includes the
compiled JAR file. If anybody can see where I'm going wrong I'd be very
happy if they could point it out. I've scoured the documentation to see if
there's anything I've missed but so far I've had no luck.

At the moment, GeoServer at least calls the constructor for my servlet.
However, when I call http://localhost:8080/geoserver/ows?service=cds I get
an error saying it doesn't exist.

I've put the following into my web.xml file too:

<servlet>
       <servlet-name>cds</servlet-name>
      
<servlet-class>uk.ac.glam.geoserver.cds.servlets.Changes</servlet-class>
</servlet>

ANY help would be fantastic, it's an emergency!

Cheers,
Jon

http://www.nabble.com/file/p15799956/changes.zip changes.zip

--
View this message in context: http://www.nabble.com/Calling-my-own-servlet-plugin-tp15799956p15799974.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Agreed, we need good developer tutorials, unfortunately our documentation focus is always on new features. If you wanted to contribute some documentation that would be a much appreciated contribution.

-Justin

Jon Britton wrote:

Aha!

It seems that the contents of the wcs applicationContext.xml have increased.
I've copied this (obviously changing it to my own classes) and added two new
classes (ChangeDetectionService and DefaultChangeDetectionService both
modelled on WebCoverageService and DefaultWebCoverageService) and now it
SEEMS to work, although I haven't tried a proper request yet.

It would be nice to have a step-by-step tutorial for creating a servlet like
this (I'd be happy to help with this in the future).

Cheers,
Jon

Jon Britton wrote:

Hi,
I mentioned this in another post but under a different topic, so I thought
I'd post it again (I apologise but it's rather urgent since I have less
than a week to fix this!)

A while ago I create a GeoServer plugin for detecting differences between
two images. I based it's structure around the WCS source code. I got it
working then, but for some reason I can't get it working now. I've
attached the zipped eclipse project for my plugin, which includes the
compiled JAR file. If anybody can see where I'm going wrong I'd be very
happy if they could point it out. I've scoured the documentation to see if
there's anything I've missed but so far I've had no luck.

At the moment, GeoServer at least calls the constructor for my servlet.
However, when I call http://localhost:8080/geoserver/ows?service=cds I get
an error saying it doesn't exist.

I've put the following into my web.xml file too:

<servlet>
       <servlet-name>cds</servlet-name>
      <servlet-class>uk.ac.glam.geoserver.cds.servlets.Changes</servlet-class>
</servlet>

ANY help would be fantastic, it's an emergency!

Cheers,
Jon

http://www.nabble.com/file/p15799956/changes.zip changes.zip

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com