See Data source configuration - application server and Data source configuration - problem determination.