[Minor] Fixing compile errors in minimal*

This commit is contained in:
Robert von Burg 2016-06-26 11:13:07 +02:00
parent 9139d3dd09
commit 4ea4806f00
3 changed files with 6 additions and 8 deletions

View File

@ -26,7 +26,7 @@ public class Main {
* @param args
*/
public static void main(String[] args) {
MainStarter mainStarter = new MainStarter();
MainStarter mainStarter = new MainStarter(Main.class);
mainStarter.start(args);
}
}

View File

@ -98,7 +98,6 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
@ -117,7 +116,6 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.3.1</version>
</dependency>
<!-- testing -->

View File

@ -6,12 +6,13 @@ import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import li.strolch.agent.api.StrolchAgent;
import li.strolch.runtime.configuration.StrolchEnvironment;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import li.strolch.agent.api.StrolchAgent;
import li.strolch.agent.api.StrolchBootstrapper;
import li.strolch.runtime.configuration.StrolchEnvironment;
@WebListener
public class StartupListener implements ServletContextListener {
@ -28,8 +29,7 @@ public class StartupListener implements ServletContextListener {
String environment = StrolchEnvironment.getEnvironmentFromEnvProperties(pathF);
logger.info("Starting Strolch Minimal Rest...");
try {
this.agent = new StrolchAgent();
this.agent.setup(environment, pathF);
this.agent = new StrolchBootstrapper(StartupListener.class).setupByRoot(environment, pathF);
this.agent.initialize();
this.agent.start();
} catch (Exception e) {