users@jersey.java.net

Help me

From: Durgadevi Baskaran <durgadevi.b_at_sybrant.com>
Date: Tue, 12 Oct 2010 19:52:23 +0530

Respected sir/Madam,

           I first tried the Jersey REST APi using JAVA.I can able to run
with Apache Tomcat Server.
  But I don't know how to run that one in scala.Here I need to install any
Pulgin to create a scala dynamic web project.


   Anyway I follow the steps in the link users_at_jersey.dev.java.net to change
the Java to scala Project.(changed the Java Icon to the Scala one.Now it
supporting the scala syntax).

  And when I run the program using the Apache Tomcat Server it showing the
error
 com.sun.jersey.api.container.ContainerException: The ResourceConfig
instance does not contain any root resource classes


I already include the jar co.sun.jersey.api.container.ContainerException

And I add the following line in the web.xml file
The same error already encountered in Java Program.I remove that one by
adding the following line in web.xml file.
I did the same thing here also.It throwing Exception again.

<servlet>
 <servlet-name>Jersey Web Application</servlet-name>
 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
       <init-param>
 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
<param-value>com.sun.jersey.api.core.PackagesResourceConfig</param-value>
       </init-param>
       <init-param>
          <param-name>com.sun.jersey.config.property.packages</param-name>
          <param-value>com.example</param-value>
 </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Jersey Web Application</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>

-- 
Thanks & Regards,
Durgadevi.B
Associate Software Engineer.
Sybrant Technologies Pvt. Ltd.
'Shriram The Gateway (SEZ)', Block A1,
3rd Floor, 16 GST Road, Perungalathur,
Chennai - 600 063,
Email : durgadevi.b_at_sybrant.com
Mobile : +91 9944744732