tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: How can I access tomcat's logs using my jsp?
Date Fri, 03 Feb 2012 16:31:20 GMT
Hash: SHA1


On 2/3/12 8:53 AM, Lev A KARATUN wrote:
> I'm trying to write a simple jsp to make some superusers able to
> download tomcat logs via browser after entering a password. (In my
> organization it's not permitted to give anyone the "manager" role)

You could bail-out and use a separate utility like PsiProbe which, I
believe, has this kind of thing built right-in.

> I've already managed to get a list log-files' names (just copied
> someone's part of code and made some adjustments), but when I'm
> trying to make download links, I don't know how can I specify the
> path to /$CATALINA_BASE/logs via my web-browser. As far as I can
> see, I can reach only folders like /$CATALINA_BASE/webapps/myapp
> upon entering the link http://myhost:port/myapp.
> So, the question is - how can I access tomcat's logs using my jsp?

Can you give us a sample of how you are trying to serve the file? Are
you performing a <forward> and trying to let the DefaultServlet serve
the log, or are you reading the file yourself and streaming it back to
the client? I believe only the latter will be possible without
significant alternative configuration.

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message