Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8015

[GSS](7.0.z) Impossible to use JAX-RS and Spring MVC in the same WEB application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 7.0.3.GA
    • REST
    • None
    • Hide
      • Create a Spring MVC application and map Spring web service to let's say: web
      • Create a JAX-RS resource and also the JAX-RS application class mapping the resources base URI using ApplicationPath annotation, let's say: rest
      • Deploy the application on EAP 7 and reach some resource under the web context - it should work;
      • try to reach some JAX-RS resource under the rest context - it won't work, throwing a 404 error.
      Show
      Create a Spring MVC application and map Spring web service to let's say: web Create a JAX-RS resource and also the JAX-RS application class mapping the resources base URI using ApplicationPath annotation, let's say: rest Deploy the application on EAP 7 and reach some resource under the web context - it should work; try to reach some JAX-RS resource under the rest context - it won't work, throwing a 404 error.

    Description

      When we have an application that has Spring MVC and a JAX-RS resource, the JAX-RS resource is not registered and the JAX-RS part won't work.

      The only way to make it work is by removing Spring MVC completely.

      Notice this is not about the Spring MVC + RESTeasy integration - it is about an application that makes use of JAX-RS and also Spring MVC.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-lgao Lin Gao
              rhn-support-wsiqueir William Siqueira
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: