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

0

I'm trying to upload application in WAS 8.5, however I'm taking this error when deploying, and with that the application does not run.

WEB.XML

<servlet>
    <servlet-name>jersey-servlet</servlet-name>
    <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
    <init-param>
        <param-name>com.sun.jersey.config.property.packages</param-name>
        <param-value>br.com.mypack.gestaoacesso.services;br.com.mypack.gestaoacesso.helper.jersey</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>jersey-servlet</servlet-name>
    <url-pattern>/rest/*</url-pattern>
</servlet-mapping>

Class annotation:

@Path("/AutenticacaoRest")
public class AutenticacaoWsImpl

Can anyone tell me the root cause or solution to this problem?

Thank you in advance.

    
asked by anonymous 28.10.2015 / 12:42

0 answers