diff --git a/bahmni-embedded-tomcat-10/src/main/java/org/bahmni/deployment/launch/Main.java b/bahmni-embedded-tomcat-10/src/main/java/org/bahmni/deployment/launch/Main.java index b574a82..f785164 100644 --- a/bahmni-embedded-tomcat-10/src/main/java/org/bahmni/deployment/launch/Main.java +++ b/bahmni-embedded-tomcat-10/src/main/java/org/bahmni/deployment/launch/Main.java @@ -1,16 +1,18 @@ package org.bahmni.deployment.launch; +import jakarta.servlet.ServletException; +import org.apache.catalina.Context; import org.apache.catalina.LifecycleException; import org.apache.catalina.startup.Tomcat; -import org.apache.catalina.Context; import java.io.File; -import java.net.MalformedURLException; +import java.io.FileNotFoundException; +import java.io.IOException; import static java.lang.System.getenv; public class Main { - public static void main(String[] args) throws LifecycleException { + public static void main(String[] args) throws NumberFormatException, NullPointerException, IllegalArgumentException, ServletException, LifecycleException, IllegalStateException, FileNotFoundException, IOException{ Tomcat tomcat = new Tomcat(); tomcat.setPort(Integer.parseInt(getenv("SERVER_PORT"))); tomcat.setBaseDir(getenv("BASE_DIR"));