| Checks that JAXP is present in the JVM. This allows us to give a
useful error back to the deployer if we find JAXP missing. Instead of getting many
class not found errors the deployer will see a message instructing how to fix
the problem.
JaxpCheck fulfills two purposes. First, it is an executable class which will
make an educated guess at whether the JAXP jars are present (by checking for
a particular class found only in the JAXP distribution) and if it guesses we're
missing those jars will report this error to System.err and return a nonzero
return code. A nonzero return value from a main method stop an Ant build
when the class was run with stopOnFailure declared to true, as it is by default
in our build.xml.
Second, JaxpCheck implements the ICheck interface and so can be used via the
CheckRunner API in this package. This allows us to run this check as part of the
context initialization sanity checking. An instance of this check is configured in
version: $Revision: 35837 $ $Date: 2005-05-20 12:01:34 -0700 (Fri, 20 May 2005) $ since: uPortal 2.5 |