0 Replies Latest reply on Oct 19, 2016 8:02 AM by Rajitha Gunawardhane

    Wildfly 8 - Seam 2.1.2 resteasy 404 issue

    Rajitha Gunawardhane Newbie

      Hi All,

       

      I have migrated Seam 2.1.2 application from JBoss Server 4.3 to Wildfly 8.

       

      During the migration i have disabled the default resteasy subsystem. Now application is using its own jars in ear/lib folder.

       

      Application is deploying without any issue.

       

      Now when application going to access rest services like /seam/resource/rest it is giving 404 error.

       

      I can see classes annotated like below are deployed with ejb module.

      @Name("menuHandler")

      @Path("/menu")

       

      I can see following in the server log.

       

      17:22:39,090 INFO  [org.jboss.seam.resteasy.ResteasyBootstrap] (MSC service thread 1-2) bootstrapping JAX-RS application

      17:22:44,686 INFO  [org.jboss.seam.resteasy.ResteasyBootstrap] (MSC service thread 1-2) registering built-in RESTEasy providers

      17:22:44,716 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider DataSourceProvider

      17:22:44,720 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider DefaultTextPlain

      17:22:44,721 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.StringTextStar

      17:22:44,723 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.InputStreamProvider

      17:22:44,725 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.ByteArrayProvider

      17:22:44,726 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider

      17:22:44,727 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider

      17:22:44,728 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.StreamingOutputProvider

      17:22:44,729 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlSeeAlsoProvider

      17:22:44,737 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlRootElementProvider

      17:22:44,738 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBElementProvider

      17:22:44,740 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlTypeProvider

      17:22:44,741 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.CollectionProvider

      17:22:44,743 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.json.JsonCollectionProvider

      17:22:44,744 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.MapProvider

      17:22:44,745 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.json.JsonMapProvider

      17:22:44,747 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.XmlJAXBContextFinder

      17:22:44,750 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.atom.AtomFeedProvider

      17:22:44,752 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.atom.AtomEntryProvider

      17:22:44,753 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.IIOImageProvider

      17:22:44,755 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.json.JsonJAXBContextFinder

      17:22:44,756 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetJAXBContextFinder

       

       

      When i add following to web xml i can see below output again

       

      <listener>

            <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>

         </listener>

       

       

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider DataSourceProvider

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider DefaultTextPlain

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.StringTextStar

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.InputStreamProvider

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.ByteArrayProvider

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Added built in provider org.jboss.resteasy.plugins.providers.StreamingOutputProvider

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlSeeAlsoProvider

      17:22:45,709 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlRootElementProvider

      17:22:45,710 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBElementProvider

      17:22:45,710 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlTypeProvider

      17:22:45,710 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.CollectionProvider

      17:22:45,710 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.json.JsonCollectionProvider

      17:22:45,710 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.MapProvider

      17:22:45,711 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.json.JsonMapProvider

      17:22:45,711 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.XmlJAXBContextFinder

      17:22:45,711 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.atom.AtomFeedProvider

      17:22:45,712 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.atom.AtomEntryProvider

      17:22:45,712 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.IIOImageProvider

      17:22:45,712 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.json.JsonJAXBContextFinder

      17:22:45,712 INFO  [org.jboss.resteasy.plugins.providers] (MSC service thread 1-2) Adding built in provider org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetJAXBContextFinder

       

       

       

       

      What could be the issue?