I decided to try this as well. However I couldn't get community to
build right away and had to dig in the code (for community).
For starters, org.geoserver.wfs.WFSCapsTransformer has an incorrect
import (I found FunctionExpression in the
"org.geotools.filter.expression" package).
Then, upon "mvn compile", I get this:
[INFO] [compiler:compile]
Compiling 24 source files to
/home/apetkov/workspace/geoserver-1.4.x_merge_wcs/community/wfs/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/apetkov/workspace/geoserver-1.4.x_merge_wcs/community/wfs/src/main/java/org/geoserver/wfs/feature/FeatureTypeInfo.java:[821,59]
unreported exception org.opengis.referencing.FactoryException; must be
caught or declared to be thrown
/home/apetkov/workspace/geoserver-1.4.x_merge_wcs/community/wfs/src/main/java/org/geoserver/wfs/feature/GeoServerFeatureStore.java:[79,20]
addFeatures(org.geotools.data.FeatureReader) in
org.geotools.data.FeatureStore cannot be applied to
(org.geotools.feature.FeatureCollection)
----------------------------------------------------
I added a catch for the exception, but what does one do for the
second error? Can I get away with an explicit cast, as in:
return store().addFeatures((FeatureReader)collection);
I am not sure if that is correct, although that got it to compile and
try out the simple plugin
Jira-worthy?
Thanks,
Alex
On 8/17/06, Justin Deoliveira <jdeolive@anonymised.com> wrote:
Hi Pablo,
When you restart the app, are you running "jetty6:run" or
"jetty6:run-exploded"?
When jetty6:run is used, geoserver is run off of jars directly out of
your maven repository. And since the web project does not have a
dependency on hello, it will not show up.
Running jetty6:run-exploded, runs geoserver off an exploded war file,
using libraries in target/geoserver/WEB-INF/lib, which means you can
drop in any library into that directory and have it picked up.
Clear as mud? :). Let me know if that works for you.
-Justin
Pablo Casado wrote:
> Hi,
>
> I followed the instructions for creating a simple plugin at
> http://docs.codehaus.org/display/GEOSDEV/3+A+Simple+PlugIn
>
> but I get the following error in my eclipse console when I run debug.
>
> org.vfny.geoserver.ServiceException: Could not locate service mapping to:
> (HWS,SayHello)
>
> I also tried mvn install on the hello project in community and copied
> community\hello\target\hello-1.0.jar to web\target\geoserver\WEB-INF\lib\
>
> but same result after restarting the app in the eclipse debugger.
>
> environment:
>
> j2sdk 1.4.2
> maven 2.0.4
> geoserver trunk as of 17 Aug 2006
>
> Thanks
> - Pablo.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
> !DSPAM:1004,44e479b3137382095110867!
>
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel