Changes between Initial Version and Version 1 of StartupErrorsDatabaseConnections


Ignore:
Timestamp:
Feb 15, 2011, 12:41:53 AM (13 years ago)
Author:
simonp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StartupErrorsDatabaseConnections

    v1 v1  
     1= Handling Startup Errors and Showing Database Stats =
     2
     3|| '''Date''' || 2011/02/15 ||
     4|| '''Contact(s)''' || Simon Pigot ||
     5|| '''Last edited''' || 2011/02/15 ||
     6|| '''Status''' || draft, being discussed - initial work complete ||
     7|| '''Assigned to release''' || 2.7.0 ||
     8|| '''Resources''' || Resources available ||
     9
     10== Overview ==
     11
     12Many users report problems because an exception has been raised in the servlet initialization. This is often due to database connection problems but can be due to other things such as port already in use. Asking users to look at the log files is not terribly satisfactory because:
     13
     14 * although the problems often need changes to config files, the log files are not always accessible to the user
     15 * often the first exception will cause a shower of other exceptions and this is confusing
     16
     17Jeeves is designed to display exceptions that occur after servlet initialization. So the changes in this proposal will:
     18
     19 * detect and collect any exception information from the servlet initialization (as well as continuing to log it) in jeeves/server/JeevesEngine.java
     20 * if an exception occurs then this info will be shown to any user that makes a request after the servlet has finished initialization by directing all requests to a GeoNetwork error service (main.error), configured in web/geonetwork/WEB-INF/config.xml
     21
     22
     23
     24Finally, related to this problem is the need to display database status (at least: has the connection been successful, jdbc url, number of active connections in pool, number of available (idle) connections in pool, maximum number of active connections). This info can be obtained from the Apache Commons Database Connection Pool ResourceProvider that replaces the old Jeeves DbmsPool and can be displayed in Francois' new System Information screen in the Administration menu.
     25 
     26=== Proposal Type ===
     27 * '''Type''': Jeeves Change, !GeoNetwork config change
     28 * '''App''': !GeoNetwork
     29 * '''Module''': Jeeves (mainly)
     30
     31=== Links ===
     32 * '''Developer list discussions''':
     33
     34=== Voting History ===
     35 * Not proposed for voting as its probably only a minor change.
     36
     37----
     38
     39== Motivations ==
     40
     41Make some of the behind the scenes info about exceptions during initialization available through the web interface.
     42
     43
     44=== Backwards Compatibility Issues ===
     45
     46None
     47
     48=== New libraries added ===
     49
     50None
     51
     52== Risks ==
     53
     54None