exception-关于webservers的报错问题

问题描述

关于webservers的报错问题

严重: The ResourceConfig instance does not contain any root resource classes.
三月 22, 2016 2:30:30 下午 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
at com.sun.jersey.server.impl.application.RootResourceUriRules.(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.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:690)
at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:438)
at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:287)
at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:587)
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:213)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:342)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:516)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5231)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5518)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1897)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
三月 22, 2016 2:30:30 下午 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /Servlet_Study_1 threw load() exception
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.

不知该如何解决,按网上说的操作了也没用,下面是web.xml

解决方案

解决了,是jersey版本的问题

解决方案二:

<?xml version="1.0" encoding="UTF-8"?>

Servlet_Study_1

JAX-RS Tools Generated - Do not modify
JAX-RS Servlet
com.sun.jersey.spi.container.servlet.ServletContainer
1

JAX-RS Servlet
/jaxrs/*

这个是web.xml文件

时间: 2024-11-18 22:45:40

exception-关于webservers的报错问题的相关文章

Ensemble.Tofino运行报错Unexpected java bridge exception的解决

作为Visual Studio插件的Flex开发工具,Ensemble公司的Tofino确实很吸引人,包含编译环境的安装文件总共才122M,比起Flex Builder要不少.而且,对于熟悉了VS开发环境的.Net程序员,用这样的插件来做Flex开发方便了很多. 从官网下载安装文件,选择122M的包含开发编译环境的安装包下载.关闭Visual Studio,安装成功后开启Visual Studio,正常情况下Flex项目会出现在新建项目的页面上.新建一个Flex工程,如果你机器的java环境配置

flume hdfs-flume1.5.2希望将log4j的日志写入hdfs报错Unexpected exception from downstream.

问题描述 flume1.5.2希望将log4j的日志写入hdfs报错Unexpected exception from downstream. 1.conf文件如下 agent1.sources = source1agent1.channels = channel1agent1.sinks = snik1# sourceagent1.sources.source1.type = avroagent1.sources.source1.bind = nnodeagent1.sources.sourc

图像处理-opencv 操作像素报错 cv::Exception

问题描述 opencv 操作像素报错 cv::Exception 我在网上看到了很多种方法去操作图中的像素,但是无论用哪个都出现这样的错误: 0x7611b727 处有未经处理的异常: Microsoft C++ 异常: 内存位置 0x0039fa94 处的 cv::Exception. 编译是正确的. 我的代码: #include #include #include #include #include int main(int argc, char** argv) { //int i = 0;

web java-tomcat 启动报错 StandardWrapper. Servlet /Structs2 threw load() exception

问题描述 tomcat 启动报错 StandardWrapper. Servlet /Structs2 threw load() exception 严重: StandardWrapper.Throwable com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. at com.sun.jersey.server

谈一谈JUnit神奇的报错 java.lang.Exception:No tests found matching

最近在学习Spring+SpringMVC+MyBatis,一个人的挖掘过程确实有点艰难,尤其是有一些神奇的报错让你会很蛋疼.特别是接触一些框架还是最新版本的时候,会因为版本问题出现很多错误,欢迎大家一起学习交流 这篇就说一下困扰我昨晚2小时的一个报错,nitializationError(org.junit.runner.manipulation.Filter)或者No tests found matching异常,查阅了很多资料,总结一下这些情况和解决办法. 1.最容易发现的错误,就如报错所

报错:ORA-07445: exception encountered: core dump [kkqtnloCbk()+111] [SIGSEGV]

今天QQ有问个问题,说有个应用报错3113,按照常规,让其检查了: 1.用户profile是否设置了idle_time参数,没有. 2.应用与数据库之间有防火墙超时设置,没有. 于是又问他是所有应用都报错,还是某个报错,反馈说是一个SQL,用到了full join.我觉得这个是SQL语法问题,和3113连接断开应该没有关系啊?于是又让他看alert文件有什么记录,反馈说有个报错:"ORA-07445: exception encountered: core dump [kkqtnloCbk()+

epplus下载文件报错Unable to create the store directory. (Exception from HRESULT: 0x801

问题描述 各位大侠求解epplus下载文件报Unabletocreatethestoredirectory.(ExceptionfromHRESULT:0x80131468)错误如果量小时则正常下载数据量为16w报错 解决方案 解决方案二:Ifyou'rerunningyourapplicationpoolas"NetworkService"youcan'tlogin,sograntingatleastModifypermissionsfortheNetworkServiceaccou

java 连接异常-java 启动jdbc 事务报错 嵌套异常

问题描述 java 启动jdbc 事务报错 嵌套异常 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC

mfc-VC++报错,Access Violation.

问题描述 VC++报错,Access Violation. void CDahaojiDlg::OnTimer(UINT nlDEvent) { if(nlDEvent==2) { CTimeSpan time=time2-time1; strTime1.Format(""%2d小时 %2d分 %2d秒""time.GetHours()time.GetMinutes()time.GetSeconds()); GetDlgItem(IDC_STATIC29)->