[JAX_RS_SPEC-328] Configuration with subclass of Application doesn't work correctly Created: 31/Dec/12  Updated: 07/Jan/13  Resolved: 07/Jan/13

Status: Closed
Project: jax-rs-spec
Component/s: runtime
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: b_faissal Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Mac OS 10.6/ Windows 7 jDK 7

Tags: adoptajsr


I've tried to deploy an application that works correctly on Glassfish 3 but found that it doesn't work on Glassfish4.

To make it work I've to override MyApplication#getClasses and make it return a Set that contains all application's resources.

The specification states that :

"When an Application subclass is present in the archive, if both Application.getClasses and
Application.getSingletons return an empty list then all root resource classes and providers
packaged in the web application MUST be included and the JAX-RS implementation is REQUIRED
to discover them automatically. If either getClasses or getSingletons returns a non-empty list
then only those classes or singletons returned MUST be included in the published JAX-RS application."

if my application contains a subclass of Application that returns empty lists resource classes are not included or JAX-RS doesn't automatically discover them.


Comment by Santiago Pericas-Geertsen [ 07/Jan/13 ]

This is not an issue on the JAX-RS specification but on the RI (Jersey). It should be filed at jersey.java.net.

Generated at Thu Nov 26 04:06:27 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.