0 Replies Latest reply on May 23, 2018 3:12 AM by Ajay Bohare

    Cant deploy REST webservice application

    Ajay Bohare Newbie

      I want to migrate myapllication.war from tomcat 7 to wildfly 10.1.0.

       

       

      Got Error while deploy:

      {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./myApplication" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./myApplication: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.

          Caused by: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes."},"WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./myApplication"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}}}

       

      My web.xml :

      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

      <web-app id="WebApp_ID">

       

       

       

      <display-name>myApplication</display-name>

        <servlet>

        <servlet-name>jersey-servlet</servlet-name>

        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>

      <init-param>

       

        <param-name>com.sun.jersey.config.property.packages</param-name>

        <param-value>webservice</param-value>

       

        </init-param>

       

       

        <load-on-startup>1</load-on-startup>

        </servlet>

        <servlet-mapping>

        <servlet-name>jersey-servlet</servlet-name>

        <url-pattern>/*</url-pattern>

        </servlet-mapping>

         <welcome-file-list>

      <welcome-file>/home.jsp</welcome-file>

      </welcome-file-list>

       

       

       

      </web-app>