[Geoserver-devel] simple plugin: Could not locate service mapping to: (HWS, SayHello)

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.

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

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 :slight_smile:

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

Hi Alex,

I think the 1.4.x_merge_wcs may have branched at a time when 1.4.x
community wasn't quite compiling. All these issues should be worked out
on trunk. Perhaps we can sink up the two branches sometime soon.

-Justin

Alexander Petkov wrote:

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 :slight_smile:

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
>
> >

--
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

!DSPAM:1004,44e4a217175152081064789!

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

On 8/17/06, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi Alex,

I think the 1.4.x_merge_wcs may have branched at a time when 1.4.x
community wasn't quite compiling. All these issues should be worked out
on trunk. Perhaps we can sink up the two branches sometime soon.

-Justin

Justin:

I tried this on trunk (svn checkout from this morning).

Alex

Alexander Petkov wrote:
> 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 :slight_smile:
>
> 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
>> >
>> > >
>>
>> --
>> 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
>>
>
> !DSPAM:1004,44e4a217175152081064789!
>

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

Strange,

The only thing I can think of is that you may have the geotools 2.2.0
jars that were then rolled back at a later date. Try the build command:

mvn -U -Dcommunity clean install

if that still does not work try deleting the geotools 2.2.0 jars from
your local repository.

-Justin

Alexander Petkov wrote:

On 8/17/06, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Hi Alex,

I think the 1.4.x_merge_wcs may have branched at a time when 1.4.x
community wasn't quite compiling. All these issues should be worked out
on trunk. Perhaps we can sink up the two branches sometime soon.

-Justin

Justin:

I tried this on trunk (svn checkout from this morning).

Alex

Alexander Petkov wrote:
> 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 :slight_smile:
>
> 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
>> >
>> > >
>>
>>
>> --
>> 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
>>
>
> >

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

!DSPAM:1004,44e4aabb178452207481331!

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

Looks like that did it, thanks Justin.
Alex

On 8/17/06, Justin Deoliveira <jdeolive@anonymised.com> wrote:

Strange,

The only thing I can think of is that you may have the geotools 2.2.0
jars that were then rolled back at a later date. Try the build command:

mvn -U -Dcommunity clean install

if that still does not work try deleting the geotools 2.2.0 jars from
your local repository.

-Justin

Alexander Petkov wrote:
> On 8/17/06, Justin Deoliveira <jdeolive@anonymised.com> wrote:
>> Hi Alex,
>>
>> I think the 1.4.x_merge_wcs may have branched at a time when 1.4.x
>> community wasn't quite compiling. All these issues should be worked out
>> on trunk. Perhaps we can sink up the two branches sometime soon.
>>
>> -Justin
>
> Justin:
>
> I tried this on trunk (svn checkout from this morning).
>
> Alex
>
>> Alexander Petkov wrote:
>> > 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 :slight_smile:
>> >
>> > 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
>> >> >
>> >> > >
>> >>
>> >> --
>> >> 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
>> >>
>> >
>> > >
>>
>> --
>> Justin Deoliveira
>> The Open Planning Project
>> jdeolive@anonymised.com
>>
>
> !DSPAM:1004,44e4aabb178452207481331!
>

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

Hi Pablo,

Looks like you have stumbled on a bug. The problem is that in the
minimal configuration there is no actual files under "data". So the war
task ignores the entire directory structure. I am sure there is a way to
tell war to include empty directories.

Anyways, i am throwing this into jira and will get to it when i can. For
a quick fix, just copy "src/main/webapp/data" to "target/geoserver"
before you run jetty6:run-exploded. That should fix the problem.

-Justin

Pablo Casado wrote:

Hi Justin,

When I use

jetty6:run-exploded

on startup I get

Aug 17, 2006 8:20:31 PM org.springframework.web.context.ContextLoader
initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'config' defined in URL
[jar:file:/C:/Documents%20and%20Settings/thales/workspace/geoserver-trunk/web/target/geoserver/WEB-INF/lib/main-1.4.0-M1.jar!/applicationContext.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanInitializationException: Error
creating xml config reader; nested exception is
org.vfny.geoserver.global.ConfigurationException:
java.lang.NullPointerException
org.springframework.beans.factory.BeanInitializationException: Error
creating xml config reader; nested exception is
org.vfny.geoserver.global.ConfigurationException:
java.lang.NullPointerException
org.vfny.geoserver.global.ConfigurationException:
java.lang.NullPointerException

both from the eclipse debugger and running jetty on the cmd line. I
change back to a normal jetty6:run to make sure that geoserver still
runs, but in that mode I get the service not found error.

I haven't cc'd the mailing list, I'll post an update to it when I have
solved the problem.

- Pablo.

Justin Deoliveira 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,44e4c151187969771116852!

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