Hi, a couple of questions: 1) How are you deploying the plugin? Have you copied it into WEB-INF/lib on a running geoserver?
2) Is the applicationContext.xml at the root of the package structure? Or is it in the org.geoserver.hello package? It must be at the root to get picked up. Hopefully with some more information we can narrow down the problem. -Justin bishal shrestha wrote: > hi all, > i am trying to develop a plugin for geoserver and followed the guide to > writing plugins > > http://geoserver.org/display/GEOSDOC/3+A+Simple+PlugIn > > > but it is not working > when i give the url > http://localhost:8080/geoserver/ows?request=sayHello&service=hello&version=1.0.0 > > <http://localhost:8080/geoserver/ows?request=sayHello&service=hello&version=1.0.0> > > i get following error message > 06 Mar 01:45:05 WARN [geoserver.ows] - > org.geoserver.platform.ServiceException: No service : (hello) > at org.geoserver.ows.Dispatcher.findService(Dispatcher.java:690) > at org.geoserver.ows.Dispatcher.service(Dispatcher.java:331) > > . > . > . > . > . > . > > the class code is > > package org.geoserver.hello; > > import java.io.IOException; > import javax.servlet.ServletException; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > > > public class HelloWorld { > > public HelloWorld() { > // Do nothing > } > > public void sayHello(HttpServletRequest request, HttpServletResponse > response) > throws ServletException, IOException { > response.getOutputStream().write( "Hello World".getBytes() ); > > } > } > > > and the applicationContext is > <beans> > <bean id="helloService" class="org.geoserver.HelloWorld"> > </bean> > > > <bean id="helloService-1.0.0" class="org.geoserver.platform.Service"> > > > <constructor-arg index="0" value="hello"/> > <constructor-arg index="1" ref="helloService"/> > > <constructor-arg index="2" value="1.0.0"/> > > </bean> > </beans> > > please give me some suggestions i am just stuck in this point > thanks in advance > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > > > ------------------------------------------------------------------------ > > _______________________________________________ > Geoserver-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-devel -- Justin Deoliveira OpenGeo - http://opengeo.org Enterprise support for open source geospatial. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
