users@jersey.java.net

Specification question regarding packaging

From: Laird Nelson <ljnelson_at_gmail.com>
Date: Wed, 21 Apr 2010 17:59:36 -0400

I am putting together an .ear file.

The JAX-RS specification says that a JAX-RS application must place its
resource classes inside a .war file as a jar in WEB-INF/lib (or as
classes in WEB-INF/classes).

Does the specification mandate this? Or if I include such classes in
my ear file's lib directory will they also be considered during
classpath scanning?

And what about--for JAXB purposes--the objects my resource classes
return? Must they also be in WEB-INF/lib? What if I wish to share
them throughout my ear file?

Thanks,
Laird