jboss eap 6.4中的类名无效-泽西岛

时间:2019-06-15 11:26:25

标签: java netbeans jboss jersey resteasy

在部署我的Web服务时,我正处于警告之下。我正在使用jboss-eap-6.4,netbeans 7.3,jdk 1.7     服务类型为'javax.ws.rs.ext.MessageBodyWriter

遇到无效的类名'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider $ App'
List of jars i imported:
jackson-databind-2.6.0
jackson-core-2.6.0
javax.ws.rs
jackson-annotations-2.6.0
jackson-core-asl-1.9.10
jersey-json-1.18.1
jersey-bundle-1.19.1
resteasy-jaxs.jar
json-simple.1.1.1


I have tried putting exclusions in jboss-deployment-structure but had to remove it. Also tried disabling resteasy scans in web.xml. I am attaching my web.xml.




<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">


<!--    <context-param>
        <param-name>resteasy.scan</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>resteasy.scan.providers</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>resteasy.scan.resources</param-name>
        <param-value>false</param-value>
    </context-param>-->


<!--    <context-param>
        <param-name>resteasy.servlet.mapping.prefix</param-name>
        <param-value>/rest</param-value>
    </context-param>--> commented because nothing changed here

    <servlet>
        <servlet-name>resteasy</servlet-name>
        <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
         <init-param>
             <param-name>javax.ws.rs.Application</param-name>
            <param-value>com.anj.application.MyApplication</param-value>
         </init-param>
     </servlet>
     <servlet-mapping>
        <servlet-name>resteasy</servlet-name>
        <url-pattern>/*</url-pattern>
     </servlet-mapping>
            </web-app>

0 个答案:

没有答案