public static void main(final String... args) throws Exception { try { StartMain.main(args); } catch (final Exception e) { LOG.error("Could not able to start the application.\n" + "Please make sure you have an empty beans.xml file in your META-INF folder under 'src/main/resources/META-INF' folder. " + "\nThis is because we are using CDI powered by WELD ('http://weld.cdi-spec.org/')", e); System.exit(-1); throw e; } }