这是怎么了The ResourceConfig instance does not contain any root resource classes.Dec 10, 2010 10:21:24 AM com.sun.jersey.spi.spring.container.servlet.SpringServlet initiateSEVERE: Exception occurred when intializationcom.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. at com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:103) at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1182) at com.sun.jersey.server.impl.application.WebApplicationImpl.access$600(WebApplicationImpl.java:161) at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:698) at com.sun.jersey.server.impl.application.WebApplicationImpl$12.f(WebApplicationImpl.java:695) at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:197) at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:695) at com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:117)过滤:<filter> <filter-name>JerseyFilter</filter-name> <filter-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</filter-class> <init-param> <param-name>com.sun.jersey.config.feature.Redirect</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>com.sun.jersey.config.property.JSPTemplatesBasePath</param-name> <param-value>/views/</param-value> </init-param> <init-param> <param-name>com.sun.jersey.config.property.WebPageContentRegex</param-name> <param-value>/(images|css|jsp)/.*</param-value> </init-param></filter><filter-mapping> <filter-name>JerseyFilter</filter-name> <url-pattern>/myresource/*</url-pattern></filter-mapping>
3 回答
慕桂英546537
TA贡献1848条经验 获得超10个赞
我是新泽西人的新手-我遇到了同样的问题,但是当我删除“ /”并仅使用@path(“ admin”)时,它可以正常工作。
@Path("admin")
public class AdminUiResource { ... }
- 3 回答
- 0 关注
- 862 浏览
添加回答
举报
0/150
提交
取消