Hey Andrew,
Thanks for the info, and sorry that tutorial is soo poorly written at this point. It would be great if perhaps you could clean it up!
That said, here are the steps you will need to follow to run your service from eclipse.
- Set up geoserver for eclipse, which really means compiling it with maven and then running mvn eclipse:eclipse:
[geoserver/src]% mvn clean install -DskipTests
[geoserver/src]% mvn eclipse:eclipse
- Import geoserver modules into eclipse
- Import your “hello” module into eclipse
- ensure that the applicationContext.xml file is included as a source resource. If you put it in src/main/java this shoudl happen automatically. IF you put it in src/main/resources then you might have to include that source directory manually
- In eclipse modify the build properties of the “web-app” module, and add the “hello” module as a project dependency
- In the web-app module run the Start.java class, located under src/test/java/ in the org.geoserver.web package.
At this point you should have a geoserver running with your plugin setup on the classpath and registered via its spring application context.
Let me know how that works.
-Justin
On Wed, Jun 13, 2012 at 8:37 AM, Andrew Martin <andrew.martin@anonymised.com> wrote:
Hey, thanks again for the response. I seem to be having some troubles
connecting to any IRC server at work, which might be a firewall issue, so
for now I’ll have to manage by email.
I’ve set up everything again with Eclipse and tried to include the
dependency in the web/pom.xml, but that still gave me the same error. I
will try to give you all the information on my setup right now to avoid
having to bounce too many questions back and forth
I am using Ubuntu 12.04 64-bit, just for background. Here is how I set up
geoserver on my system.
I followed the instructions exactly as given at
http://docs.geoserver.org/latest/en/developer/quickstart/index.html to
install geoserver and run from Eclipse.
Then, I follow the instructions at
http://docs.geoserver.org/latest/en/developer/programming-guide/ows-services/implementing.html,
up to copying the jar file into
geoserver/src/web/app/target/geoserver/WEB-INF/lib. After this, I edited
geoserver/src/web/pom.xml to include this dependency:
org.geoserver
hello
1.0
Finally, inside the web directory I execute an mvn clean install. Upon
starting geoserver from Eclipse after this point and trying to request the
service, I got the same error as before.
Apologies for the rather long explanation, but hopefully this should give
you some insight into what the problem might be. Thanks again,
Andrew
–
View this message in context: http://osgeo-org.1560.n6.nabble.com/Help-implementing-a-simple-OWS-service-tp4980501p4981164.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.
Live Security Virtual Conference
Exclusive live event will cover all the ways today’s security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.