This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat manager "Expire sessions" button" Watch "Tomcat manager "Expire sessions" button" New topic

Tomcat manager "Expire sessions" button

Aaron Wong

Joined: Jun 23, 2005
Posts: 6
Tomcat 6.0.20

I see Tomcat manager has the "Expire sessions" (with idle ≥) button for /docs, /examples, /host-manager and /manager, but that button is not available for my own app., what do I need to configure for it to show up for my app.?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13001
How is your app deployed?

Manager always show any new app I install.

Aaron Wong

Joined: Jun 23, 2005
Posts: 6
Hi Bill,

My app was deployed as a WAR file.

Tomcat manager does show my app., just doesn't show the "Expire sessions" button. Any idea how to get it to show up?
I read, it's might be the way to do it but not sure the exact syntax, any examples?

[Thumbnail for 2010-10-18_1524.png]

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

What does your web.xml look like? Do you have a session-timeout configured in your web.xml?

[My Blog] [JavaRanch Journal]
Aaron Wong

Joined: Jun 23, 2005
Posts: 6
This is in the application's web.xml:
Aaron Wong

Joined: Jun 23, 2005
Posts: 6
Turns out if I have the applicaton context defined in Tomcat's server.xml, that button won't show up.

If I move the context into tomcat6\conf\Catalina\localhost\jira.xml, then the button shows.

Mystery solved.
Have you checked out Aspose?
subject: Tomcat manager "Expire sessions" button
It's not a secret anymore!