GlobalStartupAction during intialization invokes Environment.setValue(Environment.PROP_BASE_FILE_DIR, tmpDir); this also initializes JAMWikis Environment class. Static block of this class fails with the:
Caused by: java.lang.NullPointerException
This happens on Resin 3.1.10 during portal startup - the consequence of this behavior is that Resin starts the web application twice and second time portal fails because of closed Hibernate session (getCurrentSession() will not work).
Similar exception may happens on other servers.