|
35 | 35 | import java.util.Timer; |
36 | 36 | import java.util.TimerTask; |
37 | 37 |
|
38 | | -import javax.servlet.ServletConfig; |
39 | | -import javax.servlet.ServletContext; |
40 | | -import javax.servlet.ServletException; |
41 | | -import javax.servlet.http.Cookie; |
42 | | -import javax.servlet.http.HttpServlet; |
43 | | -import javax.servlet.http.HttpServletRequest; |
44 | | -import javax.servlet.http.HttpServletResponse; |
| 38 | +import jakarta.servlet.ServletConfig; |
| 39 | +import jakarta.servlet.ServletContext; |
| 40 | +import jakarta.servlet.ServletException; |
| 41 | +import jakarta.servlet.http.Cookie; |
| 42 | +import jakarta.servlet.http.HttpServlet; |
| 43 | +import jakarta.servlet.http.HttpServletRequest; |
| 44 | +import jakarta.servlet.http.HttpServletResponse; |
45 | 45 |
|
46 | 46 | import org.apache.commons.configuration2.PropertiesConfiguration; |
47 | 47 | import org.apache.commons.configuration2.ex.ConfigurationException; |
@@ -461,7 +461,7 @@ protected void initializeModule(String name, Set<String> initialized, Set<String |
461 | 461 | } |
462 | 462 |
|
463 | 463 | @Override |
464 | | - public void service(HttpServletRequest request, HttpServletResponse response) throws IOException { |
| 464 | + public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |
465 | 465 | String method = request.getMethod(); |
466 | 466 | String path = request.getPathInfo(); |
467 | 467 | String urlQuery = request.getQueryString(); |
@@ -850,7 +850,7 @@ protected void configureModules() { |
850 | 850 | } |
851 | 851 |
|
852 | 852 | List<String> scriptables = p.getList(String.class, "scriptables"); |
853 | | - if (!scriptables.isEmpty()) { |
| 853 | + if (scriptables != null && !scriptables.isEmpty()) { |
854 | 854 | Context context = Context.enter(); |
855 | 855 |
|
856 | 856 | for (String scriptable : scriptables) { |
|
0 commit comments