Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Leon Rosenberg
On 5/23/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote: Leon Rosenberg wrote: > http://anotheria.net:8180/moskitodemo/ > However, enough said. Try it out, tell me what you think :-) I've got connection refused ;) yeah, strange, I've installed a fresh new tomcat, changed the port to 8180 and drop

Re: Can't find ajp13 connector

2006-05-22 Thread Mladen Adamovic
Allen Williams wrote: I can't find anywhere that I can download a jar of this package, but isn't it supposed to be in one of the standard .jar's anyway? What would have lost it? Using CATALINA_BASE: /var/lib/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 It seems that you are using Tomc

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
Leon Rosenberg wrote: http://anotheria.net:8180/moskitodemo/ However, enough said. Try it out, tell me what you think :-) I've got connection refused ;) P.S. Moskito is open source. I'm creating a downloadable distribution right now, which will contain the core system, logging add-on for log4j

Re: Class loading question

2006-05-22 Thread Filip Hanik - Dev Lists
its not a good solution, as a VM tuning parameter is -XX:DisableExplicitGC or something like that. vineesh kumar wrote: Dear Peter, > - Ensure a garbage collection before the files need to be deleted - can > be difficult, as System.GC() is only a hint (as I found out when I ran > into this

Re: Class loading question

2006-05-22 Thread vineesh kumar
Dear Peter, > - Ensure a garbage collection before the files need to be deleted - can > be difficult, as System.GC() is only a hint (as I found out when I ran > into this under somewhat different circumstances); With java 1.5.0_04, I think it's possible to force the gc to run manually.

Re: Class loading question

2006-05-22 Thread Filip Hanik - Dev Lists
interesting, are you saying that the handle is not closed when you call stream.close()? Peter Crowther wrote: From: Black Buddha [mailto:[EMAIL PROTECTED] even after I've stopped the webapp Tomcat still holds an open file handle to the generated library files Welcome to a JVM bug. The

Re: Class loading question

2006-05-22 Thread Black Buddha
Peter, thank you very much. I will search for a separate solution. Femi. On 5/22/06, Peter Crowther <[EMAIL PROTECTED]> wrote: > From: Black Buddha [mailto:[EMAIL PROTECTED] > even after I've stopped the webapp Tomcat still > holds an open file handle to the generated library files Welcome t

Re: tomcat textbook

2006-05-22 Thread Mark Thomas
Steve Lianoglou wrote: > Just a suggestion, one mailing list I'm on has that and I wonder why > everyone doesn't. Thanks for the good idea. I've set it up. It it helps, we'll keep it. If it doesn't, I'll remove it. Mark - To sta

Can't find ajp13 connector

2006-05-22 Thread Allen Williams
Below is my tomcat5 log file. As you can see, on startup it can't find the Ajp13Connector class. I can't find anywhere that I can download a jar of this package, but isn't it supposed to be in one of the standard .jar's anyway? What would have lost it? Using CATALINA_BASE: /var/lib/tomcat5 Us

Re: tomcat textbook

2006-05-22 Thread Steve Lianoglou
Don't mean to continue the hijack, however if I might add that it would be very helpful to just put a little note at the bottom (in the footer of the emails that's appended by the listserver) a one liner, like: To start a NEW topic, use: users@tomcat.apache.org This gives the user a one-c

Re: tomcat textbook

2006-05-22 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. Thi

Re: problem related include directive & action

2006-05-22 Thread Mark Thomas
Harshal Joshi wrote: > I want to know exact difference between include directive & include > action. The JSP spec is your friend. http://java.sun.com/products/jsp/reference/api/index.html Mark - To unsubscribe, e-mail: [EMAIL P

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Leon Rosenberg
On 5/22/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote: Leon Rosenberg wrote: > No, I mean things like number of request for each servlet, total > number of time this servlet spent processing, number of errors, avg > request duration for last 5m,15m,1h,1d,1week... whatever. In fact I might become

Re: converting tomcat container from http to https

2006-05-22 Thread Filip Hanik - Dev Lists
make sure all your old tomcat processes are stopped, keyur sheth wrote: Hi everybody, Previously I had sent mail regarding this topic. The problem is after making necessary changes I am not able to start tomcat with https. Some message I sent previously is as follows:-

Re: JDBC Pool - one instance per web application or one instance per Tomcat server (Tomcat 5.5)

2006-05-22 Thread Filip Hanik - Dev Lists
depends on how you define it, you can define a global pool in GlobalResources (server.xml) or define the entire pool in your context Filip Edmon Begoli wrote: We define the JDBC connection settings in the context.xml file under /conf We run four applications on this server. My question is:

Re: error line 241

2006-05-22 Thread ahum
Thank you for that information. I now no longer get an error message but what happens is that another command prompt window opens up really quickly, flashes then closes. When i go to http://localhost:8080 i get page cannot be displayed so i dont think tomcat is running. Any suggestions please? --

JDBC Pool - one instance per web application or one instance per Tomcat server (Tomcat 5.5)

2006-05-22 Thread Edmon Begoli
We define the JDBC connection settings in the context.xml file under /conf We run four applications on this server. My question is: Does each application gets one instance of a pool or is the pool shared accross all the applications? This question applies to Tomcat 5.5 with the default JDBC co

Re: Classloader bug?

2006-05-22 Thread Mark Petrovic
I remember long ago I had a similar problem, where it appeared that a jar of jars was "working' as you basically describe, but for others running my code, it didn't "work". The problem: I had overlooked the fact that during my runtime invocation, the jars were actually on the classpath via overs

RE: Classloader bug?

2006-05-22 Thread Asaf Lahav
Then there is something I don't understand or don't know about... because when I run the same code under a regular environment (which is not under the tomcat webclassloader) it works perfectly... and I have the same set of dependencies as I have in the tomcat environment. In one environment,

Re: Classloader bug?

2006-05-22 Thread Tim Funk
Let me try again ... Its not a bug. A jar can contain resources, but if it contains other jars - they will be treated like any other resource in jar file. The classloader does not recursively load jars inside of jars. -Tim Asaf Lahav wrote: Well, A jar may contain any types of resources.

RE: Classloader bug?

2006-05-22 Thread Asaf Lahav
Well, A jar may contain any types of resources. Further more, When I'm using the aspectj jar from regular environment (which is not using the tomcat webclassloader) it works like a charm... I would expect the webclassloader to behave just as the native java classloader does. Asaf Lahav

Re: Classloader bug?

2006-05-22 Thread Tim Funk
Its not a bug. A jar needs to contain classes, not other jars. -Tim Asaf Lahav wrote: I think encountered a tomcat classloader bug. I have a jar file that contains several other jar files. I expected the classloader to be aware of the jar files that are packaged inside it. Anyhow, I kep

Classloader bug?

2006-05-22 Thread Asaf Lahav
  I think encountered a tomcat classloader bug. I have a jar file that contains several other jar files. I expected the classloader to be aware of the jar files that are packaged inside it. Anyhow, I kept getting classnotfound exceptions until I extracted the contained jars out from th

Re: Tomcat 4.1 - Problems referencing log4j.xml prop file within .war archive

2006-05-22 Thread Konstantin G
Antonio, Your solutions works. Thank You! On 5/22/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Konstantin G ha scritto: > Hello all, > > > public void init() throws ServletException { > > DOMConfigurator.configure("log4j.xml"); > > } > change it to. DOMConfigurator.configure(getSer

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
Leon Rosenberg wrote: No, I mean things like number of request for each servlet, total number of time this servlet spent processing, number of errors, avg request duration for last 5m,15m,1h,1d,1week... whatever. In fact I might become interested in those information. Average/max duration of ti

converting tomcat container from http to https

2006-05-22 Thread keyur sheth
Hi everybody, Previously I had sent mail regarding this topic. The problem is after making necessary changes I am not able to start tomcat with https. Some message I sent previously is as follows:- First of all I created the keystore by reading the documentation and also

Re: Tomcat 4.1 - Problems referencing log4j.xml prop file within .war archive

2006-05-22 Thread Antonio Petrelli
Konstantin G ha scritto: Hello all, public void init() throws ServletException { DOMConfigurator.configure("log4j.xml"); } change it to. DOMConfigurator.configure(getServletContext().getResource("/log4j.xml")); Ciao Antonio -

Tomcat 4.1 - Problems referencing log4j.xml prop file within .war archive

2006-05-22 Thread Konstantin G
Hello all, I have attempted to research this problem on my own with little progress. I am new to the dev scene so please keep this in mind if responding. I have a log4j initialization servlet, and here is the relevant snippet: public void init() throws ServletException { DOMConfigurator.c

Re: tomcat textbook

2006-05-22 Thread BrunoMLuque
Gaël Lams wrote: Hi, I am new to tomcat server, eventhough the tomcat has online documentation, i wud like to follow a textbook . I am not sure which book covers about tomcat from basic to advanced level. Can any of you send me the author name with the title of the book? If you search the

Re: tomcat textbook

2006-05-22 Thread Gaël Lams
Hi, I am new to tomcat server, eventhough the tomcat has online documentation, i wud like to follow a textbook . I am not sure which book covers about tomcat from basic to advanced level. Can any of you send me the author name with the title of the book? If you search the list, you will fin

RE: Ant deploy task and cluster-wide (farm) deployment

2006-05-22 Thread Tim Lucia
I'm confused by the suggestion below -- the farm depoyer is entirely based on the appearance or disappearance of a .war file in the watch directory of the master tomcat node. No URL-based manager should come into play here, and using the standard manager (/manager/html) on such an application woul

Re: ClassCastException when forwarding wrapped HttpServletRequest

2006-05-22 Thread Filip Hanik - Dev Lists
I remember seeing the spec that you can't do this, you have to provide a ServletRequestWrapper implementation Filip Yuri de Wit wrote: I am not sure I should have posted this question to the dev mailing list, let me know if that should be the case. I am using Tomcat 5.5.16. I have a series

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Leon Rosenberg
On 5/22/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote: Leon Rosenberg wrote: > do you want a log analyzer or live load statistics? Hi Leon, Live load statistics might mean also "memory and processor usage of the server". No, I mean things like number of request for each servlet, total number of

RE: Ant deploy task and cluster-wide (farm) deployment

2006-05-22 Thread Tim Lucia
I have done this for the QA cluster, since that gets done live. The production cluster gets done during maintenance windows. The point of using the farm deployer, or so I thought, was that I don't have to maintain the cluster members list in the build process. Then again, it does not change very

Re: Ant deploy task and cluster-wide (farm) deployment

2006-05-22 Thread Martin Gainty
Good Point Tim- There is a difference between 'copying' and 'deploying' which means you copied the war to Tomcat / went to manager module and did a restart copying - (always safer to delete the old war and then copy in the new war) deploying - You want to look at URL utilities like curl to automat

Re: Ant deploy task and cluster-wide (farm) deployment

2006-05-22 Thread Filip Hanik - Dev Lists
yes, that way you don't run into network lag problems although I would suggest dropping farm deployment all together, as you might want to script something simpler, that will update half your nodes, then the other half, so you don't bring down every node at once. Filip Tim Lucia wrote: Havi

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread Mladen Adamovic
Antonio Petrelli wrote: If they all use the same version of Struts, there is no problem (though I am not sure about it :-) ). But think about the chance to have different versions of Struts in different webapps: it will lead to a complete classloader mess! Now I know why is Tomcat hosting more

RE: Ant deploy task and cluster-wide (farm) deployment

2006-05-22 Thread Tim Lucia
Well, given that exec cp would be the same as my running it from the shell, and I've already observed that does not work (nor does it work from the explorer window(s)), I would guess that it won't work if forked-and-execed from ant. The question still remains - How do I know for sure that delete a

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread Antonio Petrelli
Corobitsyn Roman ha scritto: But I am not sure about that, shared struts will not work. I have two hosts with three webapps, and everyone use struts. If they all use the same version of Struts, there is no problem (though I am not sure about it :-) ). But think about the chance to have dif

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread Corobitsyn Roman
I too as think But I am not sure about that, shared struts will not work. I have two hosts with three webapps, and everyone use struts. Certainly it OT, but I ask to explain to me why will not work, briefly Thank you DD> Ok, i see your problem. DD> However, you must be aware that preventing use

tomcat textbook

2006-05-22 Thread P Karthick
Hi Tomcat Users, I am new to tomcat server, eventhough the tomcat has online documentation, i wud like to follow a textbook . I am not sure which book covers about tomcat from basic to advanced level. Can any of you send me the author name with the title of the book? Thanks, Kary P

Re: Ant deploy task and cluster-wide (farm) deployment

2006-05-22 Thread Martin Gainty
As I believe you have come across a Samba specific issue with copy task The intelligent and wonderfully talented folks at Bowstreet recommend using exec with copy over using Ant copy task (apparently preserving permissions and identifying which source/target file is 'older' would be accomplished

filtering tomcat logging using default logging configuration

2006-05-22 Thread David Goodenough
I have a web application which is using a library which is generating too many messages. These are routed to catalina.out and all come from a particular producer (org.jgroups. is the prefix). I do not want to rework the logging to use log4j or the like, but I would like to suppress these WARN mes

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread David Delbecq
Ok, i see your problem. However, you must be aware that preventing use of WEB-INF/lib is handicapping for anyone needing java hosting. Frameworks like struts won't work if they are shared amongst webapplications. You might simply endup with your users exploding the .jars and putting their cont

Re: tmmcat ignoring my log4j threshold

2006-05-22 Thread lio tomcat
forget this thread. everything is ok. just not testing the right env. Apologize On 5/22/06, lio tomcat <[EMAIL PROTECTED]> wrote: Hello world, I'm a bit estonished by the BEHAVIOUR duo tomcat4.1/log4j-1.2.13; Even if my threshold is set to DEBUG, only WARN and ERROR levels appear in console.

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
Leon Rosenberg wrote: do you want a log analyzer or live load statistics? Hi Leon, Live load statistics might mean also "memory and processor usage of the server". I will understand your question as : "do you want live or croned program?" Since web stat program could be live or cached (using c

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread Corobitsyn Roman
Hello David. Thank you for reply I am sorry, that I have insufficiently clearly formulated a question We admit, I am a hoster, and at me am hosting buyers. In shared/lib and common/lib I have 3rd libraries of the certain versions. That there were no every possible mistakes, and resources Tomcat we

Re: How to limit placing of jar-files in the user webapps?

2006-05-22 Thread David Delbecq
Ok, i suppose by user, you mean the webmaster owning a specific webapp. If so, could you tell me what is the point? It's pretty impossible to do anything without .jar files in a java webapp :) If what you want to avoid is people browsing a uploading .jar files Unless you have a very badly wr

How to limit placing of jar-files in the user webapps?

2006-05-22 Thread Corobitsyn Roman
How to limit placing of jar-files in the user webapps? In other words, it is necessary to forbid, to the user to place jar-files in directory WEB-INF/lib You will recommend what suitable ways? Thanx for any help BR, Corobitsyn Roman

Re: Getting servlet context path without a servlet request.

2006-05-22 Thread Stuart Wood
Thanks, Tim. I'd just found a page on the 2.5 spec saying it was on its way. I think I'm going to just use ServletContext.getServletContextName() and just remember to keep them in step myself - I guess it's only an issue during development anyway, but it seemed like such an elegant solution. Ch

Re: Getting servlet context path without a servlet request.

2006-05-22 Thread Tim Funk
Your on the right track - the servlet 2.5 spec fixes this (but tomcat 6 isn't out yet). If I were in this predicament - I'd use a ServletContext init parameter. They can be overridden in the declaration. -Tim Stuart Wood wrote: I have a web application running under Tomcat 5.0, and I need

RE: Class loading question

2006-05-22 Thread Peter Crowther
> From: Black Buddha [mailto:[EMAIL PROTECTED] > even after I've stopped the webapp Tomcat still > holds an open file handle to the generated library files Welcome to a JVM bug. The essence is that: - File stream objects in the JVM hold onto the file handle. - The handle is closed only when th

Re: Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Leon Rosenberg
do you want a log analyzer or live load statistics? On 5/22/06, Mladen Adamovic <[EMAIL PROTECTED]> wrote: I tried to find decent free web statistics program for Tomcat. (AKA Log Analyzer). I'm running standalone Tomcat (without Apache) on Linux. I would prefer Java solution, but perl/c++/pytho

Getting servlet context path without a servlet request.

2006-05-22 Thread Stuart Wood
I have a web application running under Tomcat 5.0, and I need to write some output to a file. This app doesn't have its servlet context hardcoded in anywhere, so I can deploy it with any name and not worry about missing some random bit of code anywhere, and I often deploy it with different names s

Re: javamail for numerous mail servers on tomcat

2006-05-22 Thread lio tomcat
Thx for the tip. It macth exactly my need. Just a precision, i had to code it this way : Session mailSession = Session.getInstance(props, null); So the server can be different for each request. Sorry for this late answer but problems have priorities... On 5/19/06, David Kerber <[EMAIL PROTEC

problem related include directive & action

2006-05-22 Thread Harshal Joshi
  Hi,   I want to know exact difference between include directive & include action. As I have read from some sites & some books that one diff. is Include directive is take place at translation (compile) time while action takes place as runtime. So, if you make change in included file, that

Recommendation for Tomcat web statistics program (AKA log analyzer) ?

2006-05-22 Thread Mladen Adamovic
I tried to find decent free web statistics program for Tomcat. (AKA Log Analyzer). I'm running standalone Tomcat (without Apache) on Linux. I would prefer Java solution, but perl/c++/python might be ok. I googled for 2 hours but I haven't found any Java solution. Any recommendation? I know ab

tmmcat ignoring my log4j threshold

2006-05-22 Thread lio tomcat
Hello world, I'm a bit estonished by the BEHAVIOUR duo tomcat4.1/log4j-1.2.13; Even if my threshold is set to DEBUG, only WARN and ERROR levels appear in console. (Morever the log file is never created...) log4j-1.2.13.jar is in [tomcat]\webapps\myApp\WEB-INF\lib log4j.xml is in [tomcat]\webapps

Re: Problems with Realms and authorization

2006-05-22 Thread Alberto Montoya
Hello David, Thank you very much. I'll follow your advices. Greetings 2006/5/22, David Delbecq <[EMAIL PROTECTED]>: Hi Alberto. A user can be in two states in tomcat's point of view. 1) anonymous (that is the user has not yet provided user / password) 2) Authenticated (user has provided use

Re: Problems with Realms and authorization

2006-05-22 Thread David Delbecq
Hi Alberto. A user can be in two states in tomcat's point of view. 1) anonymous (that is the user has not yet provided user / password) 2) Authenticated (user has provided user / password) Aside from this, there are 2 kinds of urls for tomcat 1) unrestricted ones (anyone can access them) 2) url

Problems with Realms and authorization

2006-05-22 Thread Alberto Montoya
Hello! This is my first post to the list. My problem is this, I've configured Tomcat's file server.xml in order to use JDBC to authenticate users, and I've set up the realms and the different roles that can access to that realms, then, if i try to access to some realm but I haven't got the right

R: Help with Tomcat & MySQL using JNDI

2006-05-22 Thread Brambilla Alessandro
Sorry, it seems I sent a blank reply.. Anyway... I had the same problem with using JNDI with realm.. and finally I wrote a context.xml which works fine.. /meta-inf/context.xml: The Resource jdbc/pmsRead works fine with the realm and within every class of my web application if I

R: Help with Tomcat & MySQL using JNDI

2006-05-22 Thread Brambilla Alessandro
-Messaggio originale- Da: Stephen More [mailto:[EMAIL PROTECTED] Inviato: venerdì 19 maggio 2006 13.40 A: Tomcat Users List Oggetto: Re: Help with Tomcat & MySQL using JNDI On 5/17/06, Parsons Technical Services <[EMAIL PROTECTED]> wrote: > Now I will assume you have reviewed http://tom