Skip to content

Commit

Permalink
[Rahul] | BAH-3969 | Add. Main Class Exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rahu1ramesh authored Jun 18, 2024
1 parent 41e629b commit bc0b445
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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"));
Expand Down

0 comments on commit bc0b445

Please sign in to comment.