[Minor] Fixing compile errors in minimal*
This commit is contained in:
parent
9139d3dd09
commit
4ea4806f00
|
@ -26,7 +26,7 @@ public class Main {
|
||||||
* @param args
|
* @param args
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
MainStarter mainStarter = new MainStarter();
|
MainStarter mainStarter = new MainStarter(Main.class);
|
||||||
mainStarter.start(args);
|
mainStarter.start(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,6 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.servlet</groupId>
|
<groupId>javax.servlet</groupId>
|
||||||
<artifactId>javax.servlet-api</artifactId>
|
<artifactId>javax.servlet-api</artifactId>
|
||||||
<version>3.0.1</version>
|
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
@ -117,7 +116,6 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.code.gson</groupId>
|
<groupId>com.google.code.gson</groupId>
|
||||||
<artifactId>gson</artifactId>
|
<artifactId>gson</artifactId>
|
||||||
<version>2.3.1</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- testing -->
|
<!-- testing -->
|
||||||
|
|
|
@ -6,12 +6,13 @@ import javax.servlet.ServletContextEvent;
|
||||||
import javax.servlet.ServletContextListener;
|
import javax.servlet.ServletContextListener;
|
||||||
import javax.servlet.annotation.WebListener;
|
import javax.servlet.annotation.WebListener;
|
||||||
|
|
||||||
import li.strolch.agent.api.StrolchAgent;
|
|
||||||
import li.strolch.runtime.configuration.StrolchEnvironment;
|
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import li.strolch.agent.api.StrolchAgent;
|
||||||
|
import li.strolch.agent.api.StrolchBootstrapper;
|
||||||
|
import li.strolch.runtime.configuration.StrolchEnvironment;
|
||||||
|
|
||||||
@WebListener
|
@WebListener
|
||||||
public class StartupListener implements ServletContextListener {
|
public class StartupListener implements ServletContextListener {
|
||||||
|
|
||||||
|
@ -28,8 +29,7 @@ public class StartupListener implements ServletContextListener {
|
||||||
String environment = StrolchEnvironment.getEnvironmentFromEnvProperties(pathF);
|
String environment = StrolchEnvironment.getEnvironmentFromEnvProperties(pathF);
|
||||||
logger.info("Starting Strolch Minimal Rest...");
|
logger.info("Starting Strolch Minimal Rest...");
|
||||||
try {
|
try {
|
||||||
this.agent = new StrolchAgent();
|
this.agent = new StrolchBootstrapper(StartupListener.class).setupByRoot(environment, pathF);
|
||||||
this.agent.setup(environment, pathF);
|
|
||||||
this.agent.initialize();
|
this.agent.initialize();
|
||||||
this.agent.start();
|
this.agent.start();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue