@ -131,7 +131,13 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
@@ -131,7 +131,13 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext
protectedvoidonRefresh(){
super.onRefresh();
registerShutdownHook();
createEmbeddedServletContainer();
try{
createEmbeddedServletContainer();
}
catch(Throwableex){
thrownewApplicationContextException("Unable to start embedded container",
@ -75,6 +76,10 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer
@@ -75,6 +76,10 @@ public class TomcatEmbeddedServletContainer implements EmbeddedServletContainer