Put APR initialization in the obvious place in JavaHL, and throw an exception
if it fails instead of printing crud to stderr.

* subversion/bindings/javahl/native/jniwrapper/jni_base.cpp
  (JNI_OnLoad): Initialize APR. Throw a java.lang.Error if that fails.
  (JNI_OnUnload): Terminate APR.

* subversion/bindings/javahl/native/jniwrapper/jni_class_cache.cpp
  (ClassCache::create): Used the wrapped environment in the exception
   handling code; the wrapper was already initialized in JNI_OnLoad
   before it called this function.

* subversion/bindings/javahl/native/JNIUtil.cpp
  (JNIUtil::JNIGlobalInit): Remove calls to apr_initialize and apr_terminate.
   The JNI_OnLoad function gets called before this one, and terminating APR
   in an atexit handler is the wrong thing to do in a JNI library anyway.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1544202 13f79535-47bb-0310-9956-ffa450edef68