Note that there are some explanatory texts on larger screens.

plurals
  1. POModifying Configuration for Embedded tomcat webapp
    primarykey
    data
    text
    <p>I've been trying to modify embedded tomcat configuration for my heroku app. I've installed heroku app using the wiki link below that configures a simple embedded tomcat.</p> <p><a href="http://devcenter.heroku.com/articles/create-a-java-web-application-using-embedded-tomcat" rel="nofollow">http://devcenter.heroku.com/articles/create-a-java-web-application-using-embedded-tomcat</a></p> <p>The source code is here:</p> <pre><code>public static void main(String[] args) throws Exception { String webappDirLocation = "src/main/webapp/"; Tomcat tomcat = new Tomcat(); //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if it isn't there. String webPort = System.getenv("PORT"); if(webPort == null || webPort.isEmpty()) { webPort = "8080"; } tomcat.setPort(Integer.valueOf(webPort)); tomcat.addWebapp("/", new File(webappDirLocation).getAbsolutePath()); System.out.println("configuring app with basedir: " + new File("./" + webappDirLocation).getAbsolutePath()); tomcat.start(); tomcat.getServer().await(); } </code></pre> <p>Questions:</p> <ol> <li>Since I'm using embedded tomcat, how do I configure default session timeout for my web application? It seems to default to 30 min for some reason? I want to set to something like one week.</li> <li>If I launch the application from within eclipse, how do I set <code>autodeploy = true</code> so that I don't have to compile and restart my application every time I modify java code?</li> <li>is there way to set my web.xml and server.xml?</li> <li>how do I run apache tomcat manager?</li> </ol> <p>The documentation on the internet is not very clear. Can you please help?</p> <p>Thanks in advance.. Kiran</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload