Hi Suchitha,
It is a bug that i have recently fixed. The problem is that JBoss 5.x  
does things a little differently than other web/app servers and  
returns URIs from a class loader that declare a "vfsfile" or "vfszip"  
scheme.
See the email here:
   
http://markmail.org/search/?q=list 
%3Anet.java.dev.jersey.users#query:list%3Anet.java.dev.jersey.users 
+page:2+mid:us4iscqtqwrw7eo3+state:results
could you try with 1.1.5-ea-SNAPSHOT and let me know if deployment is  
now works consistently for package scanning?
Paul.
On Nov 24, 2009, at 3:22 AM, Suchitha Koneru (sukoneru) wrote:
> Hello Jersey Users ,
>         I have observed that Jersey servlet needs to be configured  
> differently in the web.xml  based on the container. Is this  
> variation due to the restrictions imposed by the container ?
>
> For example in case of Jboss, I have noticed that  if we  do not  
> pass  any resource packages  as  <init param> to the  Jersey  
> servlet  , all the  restful resources  present in the class path are  
> automatically identified. Is this the expected behavior ?
>
> Following is the web.xml configuration based on the container
>
> <servlet >
> <servlet-name>Jersey Web Application</servlet-name >
> <servlet- 
> class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet- 
> class>
> <!-- resource package configuration for embedded JETTY server -->
> <init-param>
> <param-name>com.sun.jersey.config.property.packages</param-name>
> <param- 
> value 
> > 
> com 
> .cisco 
> .ca 
> .csp 
> .service 
> .hello 
> ;com 
> .cisco 
> .ca 
> .ast 
> .service 
> .usermgmt 
> .resource 
> ;com 
> .cisco.ca.ast.service.pollingsvcs;com.cisco.ca.ast.service.reports</ 
> param-value >
> </init-param>
> <!-- resource package configuration for JBOSS -->
> <!-- either use this or do not pass any init params for resource  
> configuration. In both the scenarios all the resources classes  
> present in the class path are fetched
> <init-param>
>                 <param- 
> name>com.sun.jersey.config.property.resourceConfigClass</param-name>
>  <param-value>com.sun.jersey.api.core.ClasspathResourceConfig</param- 
> value>
>  </init-param>
> <init-param>
>
> -->
>
>
> Thank you,
> Suchitha