jruby/jruby-rack — pull request #176 by jackxxu (2014-05-08 17:21:50+00:00)
Title: Add factory exception logging

## Overview
When loading the environment of a jruby-rack based app, such as a RoR app, if something fails in the loading process and if [properties settings] is not set, then the exception is left unreported, which can be confusing or misleading. This seems to have been [assumed] in the application.

[properties settings]:https://github.com/jruby/jruby-rack/blob/d59193e9284bce30a7cae5a8ebb7f4ae8436e110/src/main/java/org/jruby/rack/DefaultRackConfig.java#L275-L285
[assumed]:https://github.com/jruby/jruby-rack/blob/d59193e9284bce30a7cae5a8ebb7f4ae8436e110/src/main/java/org/jruby/rack/RackServletContextListener.java#L96

## Changes

1. add the logic to catch any RaiseException, output the error stacktrace to error log, and raise a new `RackInitializationException`.