File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public void contextInitialized(final ServletContextEvent servletContextEvent) {
68
68
69
69
String config = context .getInitParameter ("CONFIGURATION" );
70
70
if (config == null ) {
71
- LOGGER . severe ("CONFIGURATION section missing in web.xml" );
71
+ throw new Error ("CONFIGURATION parameter missing in the web.xml file " );
72
72
} else {
73
73
try {
74
74
env .readConfiguration (new File (config ), true );
Original file line number Diff line number Diff line change @@ -60,10 +60,11 @@ include file="pageheader.jspf"
60
60
PageConfig cfg = PageConfig . get(request);
61
61
String configError = " " ;
62
62
if (cfg. getSourceRootPath() == null || cfg. getSourceRootPath(). isEmpty()) {
63
- configError = " CONFIGURATION parameter has not been configured in "
64
- + " web.xml! Please configure your webapp." ;
63
+ configError = " The source root path has not been configured ! "
64
+ + " Please configure your webapp." ;
65
65
} else if (! cfg. getEnv(). getSourceRootFile(). isDirectory()) {
66
- configError = " The source root specified in your configuration does "
66
+ configError = " The source root " + cfg. getEnv(). getSourceRootPath()
67
+ + " specified in your configuration does "
67
68
+ " not point to a valid directory! Please configure your webapp." ;
68
69
}
69
70
% > <h3 class =" error" >There was an error!</h3 >
You can’t perform that action at this time.
0 commit comments