On Oct 30, 2009, at 2:32 PM, FSauer_at_dsthealthsolutions.com wrote:
>
> Add the interface package to the servlet param, like so:
>
> <init-param>
> <param-name>com.sun.jersey.config.property.packages</
> param-name>
> <param-value>package.one.jersey.resources,
> package.one.jersey.interfaces</param-value>
> </init-param>
>
Small correction: replace the ',' with a ';'.
See the following for more details:
https://jersey.dev.java.net/nonav/apidocs/1.1.2-ea/jersey/com/sun/jersey/spi/container/servlet/ServletContainer.html
Paul.
> or simply set it to:
>
> <init-param>
> <param-name>com.sun.jersey.config.property.packages</
> param-name>
> <param-value>package.one.jersey</param-value>
> </init-param>
>
> That should work better.
> Frank
>
>
>
>
> animesh sonkar <animesh_smit_at_yahoo.com>
> 10/30/2009 08:28 AM
> Please respond to
> users_at_jersey.dev.java.net
>
> To
> users_at_jersey.dev.java.net
> cc
> Subject
> [Jersey] Annotation Inheritance
>
>
>
>
>
> Hi,
> I looked up the JAX-RS Specs at
> https://jsr311.dev.java.net/nonav/releases/1.1/spec/
> spec3.html#x3-330003.6
>
> Do we have any samples where annotation inheritance is demonstrated.
>
> I am trying to use it with jersey 1.1.2 but i keep getting the error
> at startup
> com.sun.jersey.api.container.ContainerException: : The
> ResourceConfig instance does not contain any root resource classes.
> I am using tomcat,eclipse (galileo) dynamic web project
>
> I have an interface defined as JAX-RS resource with two annotated
> methods in
> package.one.jersey.interfaces
>
> I have an IMPL implementing the interfaces in
> package.one.jersey.resources
>
> in the web.xml i have
> <servlet>
> <servlet-name>JerseyServletContainer</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>package.one.jersey.resources</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> Any pointers or work around would be great.
> I have a scenario where i have to provide a contract of URL for JAX-
> RS based implementors.
> Providing these interfaces would be great.
>
> Thanks in advance!!!
> Regards,
> Animesh
>
> From cricket scores to your friends. Try the Yahoo! India Homepage!
> ----------------------------------------- Please consider the
> environment before printing this email and any attachments. This e-
> mail and any attachments are intended only for the individual or
> company to which it is addressed and may contain information which
> is privileged, confidential and prohibited from disclosure or
> unauthorized use under applicable law. If you are not the intended
> recipient of this e-mail, you are hereby notified that any use,
> dissemination, or copying of this e-mail or the information
> contained in this e-mail is strictly prohibited by the sender. If
> you have received this transmission in error, please return the
> material received to the sender and delete all copies from your
> system.