1 Reply Latest reply on Nov 26, 2014 11:44 AM by albert2005_1

    wildfly + resteasy + beans.xml is breaking async-job-service

    sebbaum

      Hi together,

       

      I want to implement an async job service using resteasy. In the official repo at github.com I found some example.

      Everything is working quite fine until I added a beans.xml. Then I unfortunately got a 500 ServerError when requesting the result of the async request via the URL that is provided in the Location Header.

      You can find an example based on the official resteasy example in my github account:

      sebbaum/async-job-service · GitHub

       

      I used:

      • wildfly-8.1.0.Final
      • resteasy-jaxrs 3.0.9.Final
      • jboss-javaee-7.0 1.0.1.Final
      • junit 4.11

       

      Using the example:

      1. mvn clean package
      2. deploy on wildfly 8.1.0.Final
      3. Running the tests after deployment is not working => 500 status code instead of 200 is returned
      4. renaming the beans.xml to _beans.xml and run the tests again => all tests are green

       

      Is there a known bug or issue or have I done something wrong?

       

      I am really looking forward to an answer.

       

      Thanks

      Sebastian

        • 1. Re: wildfly + resteasy + beans.xml is breaking async-job-service
          albert2005_1

          In my case only re-deployment of my web-application causes this bug. Every GET operation with query param asynch=true returned a valid location header, but when i call this link after a re-deployment, i got everytime the status code 500 and in the log i can see that the JAX-method was never called.

          (I have the same system configuration like above)