users@jersey.java.net

[Jersey] Annotation Inheritance

From: animesh sonkar <animesh_smit_at_yahoo.com>
Date: Fri, 30 Oct 2009 20:08:01 +0530 (IST)

hi Tried adding the packages and separating it with ; I am still getting the same exception on startup. My sample is as follows: @Path("/test") public interface TestInterface { @GET @Produces("text/plain") public String sayHello(); } public class TestIMPL implements TestInterface { public String sayHello() { // TODO Auto-generated method stub return "Hello World"; } } <display-name>JerseyTestWebApp</display-name> <servlet> <servlet-name>PESJerseyServletContainer</servlet-name> <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> <init-param> <param-name>com.sun.jersey.config.property.packages</param-name> <param-value>pack.one.jersey.impl;pack.one.jersey.interfaces</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>PESJerseyServletContainer</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> Any pointers.... Try the new Yahoo! India Homepage. Click here. http://in.yahoo.com/trynew