Return to Snippet

Revision: 59140
at August 20, 2012 20:32 by bosshog


Initial Code
String webappDirLocation = "src/main/webapp/";
    Tomcat tomcat = new Tomcat();
    tomcat.setPort(8080);

    tomcat.addWebapp("/jerseyTest", new File(webappDirLocation).getAbsolutePath());

    tomcat.start();
    tomcat.getServer().await();

Initial URL


Initial Description
How to embedded tomcat 7 java

Initial Title
Tomcat 7 emdedded

Initial Tags


Initial Language
Java