将上下文初始化事件发送到类org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap的侦听器实例的异常

时间:2015-06-29 11:15:43

标签: jboss resteasy restful-url

我是新来的宁静服务。当我运行我的项目时它给我了 SEVERE:将上下文初始化事件发送到类org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap的侦听器实例的异常 java.lang.RuntimeException:java.lang.NullPointerException SEVERE:将上下文初始化事件发送到类org.jboss.resteasy.plugins.spring.SpringContextLoaderListener的侦听器实例的异常 java.lang.RuntimeException:RESTeasy Provider Factory为null,您是否配置了ResteasyBootstrap侦听器?

的web.xml

    <listener>
        <listener-class>
            org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
        </listener-class>
        </listener>
        <listener>
            <listener-class>
            org.jboss.resteasy.plugins.spring.SpringContextLoaderListener
        </listener-class>
        </listener>
<context-param>
        <param-name>resteasy.servlet.mapping.prefix</param-name>
        <param-value>/api</param-value>
    </context-param>
    <servlet>
            <servlet-name>Resteasy</servlet-name>
            <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
            </servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Resteasy</servlet-name>
            <url-pattern>/webresource/*</url-pattern>
        </servlet-mapping>

0 个答案:

没有答案