2009年12月11日 星期五

resourceconfig-instance-does-not-contain-any-root-resource-classes

If you start Tomcat, you will see the following error:

com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.

This error is due to not providing any root RESTful resources.

猜想可能是因為這專案並未提供任何Restful Service.
解決方法:
把 專案的 編譯目錄 重新指定. 使可以產生restful service.
文章出處:

http://syrupsucker.blogspot.com/2008/10/deploying-jersey-in-tomcat-60.html

沒有留言: