Pete Muir commented on Bug JBIDE-12224

If you want JAX-RS enabled for a war, you must either:

  • add a servlet named javax.ws.rs.core.Application

OR

  • add a class that extends javax.ws.rs.core.Application that is annotated with @ApplicationPath

If neither of these things are present, then JAX-RS isn't enabled.

But this is per app, not per jar.

What are you finding out from this scan? What the JAX-RS endpoints are? I don't think that needs to block the build, as my app will work fine without that info, it's just "nice to have"...

Also, it shouldn't take seconds to scan a jar for annotations, given that this doesn't add too many jars (it's just arquillian) - e.g. jandex can index the entire jdk in less time than this scan seems to take, and that is a much larger set of classes to scan.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira