好吧,我不明白为什么如果那个人在他们的web.xml中定义rest servlet来从jar中定位您的rest包,那么它就不能工作了。。。像这样:-
<servlet>
<servlet-name>Jersey Rest Web Service</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</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>
<!-- Package that contains all Rest Web Services -->
<param-value>com.project.your.rest.package.in.jar</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey Rest Web Service</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>