Re: log4j - Class.forname - black magie

2005-12-22 Thread Boris Unckel
Good Morning, Philippe LEGAY wrote: > Hello > > I succeed by black magie to have log via log4j under tomcat 5.5.9. So > when a call my servlet, I have some trace into a file (/tmp/phl.log). > I said black magie, because I had a lot of problems to put the log4.jar > in the right place. > > Now,

Re[2]: [mod_jk] concurrency control problem

2005-12-22 Thread Grzegorz Tańczyk
Hello Mladen, Thursday, December 22, 2005, 8:43:42 AM, you wrote: MT> Grzegorz Tańczyk wrote: >> Hello >> >> My configuration is: >> - single machine with Slackware 10 >> - apache 2.0.55 with worker MPM >> - tomcat 5.5.4 >> - mod_jk 1.2.15 >> >> Here is my apache<->tomcat configurati

RE: ServletContextListener - how to detect http path of web application?

2005-12-22 Thread Iain.Shepherd
Frank, > > Martin, I can't get a HttpServletRequest from Filter.init. > > I can get a ServletContext... but I can also get that from a > > ServletContextListener. So I can throw away this silly Filter now. > > One reason a filter would be better is you can fully > construct the URL dynamically,

Re: [mod_jk] concurrency control problem

2005-12-22 Thread Mladen Turk
Grzegorz Tańczyk wrote: Hello Mladen, MT> Perhaps posting workers.properties would help. worker.w1.type=ajp13 worker.w1.host=localhost worker.w1.port=8000 worker.w1.cachesize=200 worker.w1.cache_timeout=300 worker.w1.socket_timeout=300 worker.w1.socket_keepalive=0 worker.w1.recycle_timeout=100 w

Catalina.policy to add new file permissions

2005-12-22 Thread George Azzopardi
Hi people, I have a web application running on Tomcat on Server A. This application needs to write new files on Server B. However I am getting Access is Denied exception. Do I need to modify the catalina.policy file to grant new filepermissions? If yes how can do it? Do you have a small example?

Stats on Tomcat installations

2005-12-22 Thread DeFreitas, Nigel
Are there any stats on how many folks use Tomcat (vs. other options) in enterprise production environments? Nigel

Re: Stats on Tomcat installations

2005-12-22 Thread Tim Funk
I don't know of many publicly available stats. Gartner might be of help. Tomcat is embedded as the web server for many packaged applications (COTS - commercial of the shelf software) which are web based. So while an Enterprise might say they don't use tomcat - if they use COTS software thats ja

RE: Tomcat undeploys application(context)

2005-12-22 Thread BATCHELOR, SCOTT \(CONTRACTOR\)
Darius, I just ran across your message. I have to assume that this is normal behavior as I have asked this question at least twice before with no response. If you have found otherwise please let us all know. -Original Message- From: Darius [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Stats on Tomcat installations

2005-12-22 Thread George Sexton
I've noticed that HP seems to use tomcat for their printer management system. IOW, if you install a current HP printer you install a tomcat application as manager. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: Tim Funk [mail

RE: Stats on Tomcat installations

2005-12-22 Thread DeFreitas, Nigel
Thanks. How about performance stats? Thanks. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 9:52 AM To: 'Tomcat Users List' Subject: RE: Stats on Tomcat installations I've noticed that HP seems to use tomcat for their printer manageme

Re: Tomcat undeploys application(context)

2005-12-22 Thread David Smith
I've always used the manager app to stop/start the webapps when doing updates of classes and jars. Never had a problem. You'll still have to restart tomcat if you update anything in the common or shared directories of tomcat. --David BATCHELOR, SCOTT (CONTRACTOR) wrote: Darius, I just ra

how to turn off logging

2005-12-22 Thread Mario Ernst
hi, I need to stop all logging actions to start tomcat from a non writable medium (CD). What's the easiest way to do this? Thanks and regards ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Access static content ("logs" folder) ?

2005-12-22 Thread LANDRAIN Jean-Pol
Hi, I use Tomcat 5.5 and I'd like to be able to browse my logs directory (%TOMCAT_HOME%\logs) from a web page to access it remotely (distant server inside our intranet). I don't want to install Apache just for that. Is it possible ? How can I do this ? Thanks for your help. Jean-Pol.

Re: how to turn off logging

2005-12-22 Thread Boris Unckel
Hello Mario, Mario Ernst wrote: > > I need to stop all logging actions to start tomcat from a non writable > medium (CD). What's the easiest way to do this? > I think this is a bad idea: Why don't you simply use just a ConsoleHandler / ConsoleAppender with level warning? I understand that writing

Re: Access static content ("logs" folder) ?

2005-12-22 Thread Tim Funk
Add a context declaration like this in a file called logs.xml in your conf/Catalina/localhost directory. -Tim LANDRAIN Jean-Pol wrote: Hi, I use Tomcat 5.5 and I'd like to be able to browse my logs directory (%TOMCAT_HOME%\logs) from a web page to access it remotely (distant server insid

RE: Access static content ("logs" folder) ?

2005-12-22 Thread LANDRAIN Jean-Pol
It works nicely. Thank you very much for your help. Regards, Jean-Pol. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 22 December 2005 16:59 To: Tomcat Users List Subject: Re: Access static content ("logs" folder) ? Add a context declaration like this in a file called

JRE versions (UNCLASSIFIED)

2005-12-22 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification: UNCLASSIFIED Caveats: NONE Hey list, I am running into a problem which I am sure some of you have came across. I am trying to compile a servlet at run time. My eclipse environment's JRE is 1.5 I placed tools.jar in the common/lin directory. When I compile the class file, this

Re: how to turn off logging

2005-12-22 Thread Boris Unckel
Hm, attachments are not allowed. Take care for any \n which are there because of my web email... # Copyright 2001-2005 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may o

Re[2]: [mod_jk] concurrency control problem

2005-12-22 Thread Grzegorz Tańczyk
Hello Mladen, Thanks for answer. I will inform in this thread about any problems, but until now it looks like that change of cachesize and cache_timeout fixed the problem. Thursday, December 22, 2005, 12:19:23 PM, you wrote: MT> You will need to lower the: MT> worker.w1.cachesize=maxThreads

RE: Access static content ("logs" folder) ?

2005-12-22 Thread Caldarale, Charles R
> From: Tim Funk [mailto:[EMAIL PROTECTED] > Subject: Re: Access static content ("logs" folder) ? > > Add a context declaration like this in a file called logs.xml in your > conf/Catalina/localhost directory. > > Except leave out the path attribute, since that's inferred from the name of the

JRE version (UNCLASSIFIED)

2005-12-22 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification: UNCLASSIFIED Caveats: NONE Hey list, I am running into a problem which I am sure some of you have came across. I am trying to compile a servlet at run time. My eclipse environment's JRE is 1.5 I placed tools.jar in the common/lin directory. When I compile the class file, this

RE: Stats on Tomcat installations

2005-12-22 Thread George Sexton
Here's a link to our performance stats for our web calendar product: http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm FWIW, I was running about 60 virtual hosts on a P3 600 and generally running about 3-10% CPU utilization. George Sexton MH Software, Inc. http://www.mhsof

RE: Stats on Tomcat installations

2005-12-22 Thread DeFreitas, Nigel
Nice! -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 1:16 PM To: 'Tomcat Users List' Subject: RE: Stats on Tomcat installations Here's a link to our performance stats for our web calendar product: http://www.mhsoftware.com/caldemo/manu

java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Mike Dippold
We are using tomcat 5.5.12 and every couple days the tomcat server goes down hard and the last line in the log is: java.lang.OutOfMemoryError: PermGen space It appears to only happen if we: Update jsp pages Reload Webapp Deploy Webapp If we do not do any of the following the server runs g

Re: mod_jk (1.2.14 & 1.2.15) bug

2005-12-22 Thread OG
Hello, Thank you for the information, Bill. Mladen & Co., will you be applying this patch for 1.2.16, and if so, do you have any ideas about when you may release 1.2.16? I'll patch 1.2.15 src myself if I have to, but I'd rather just go to 1.2.16 with that patch incorporated in it. Thanks, Oti

Re: ServletContextListener - how to detect http path of web application?

2005-12-22 Thread Frank W. Zammetti
[EMAIL PROTECTED] wrote: One reason a filter would be better is you can fully construct the URL dynamically, including the method and all that. Could you possibly map it to just the initial entry point of your app so that it doesn't fire with each request? Yeah I thought about that... unfor

Re: mod_jk (1.2.14 & 1.2.15) bug

2005-12-22 Thread Mladen Turk
OG wrote: Hello, Thank you for the information, Bill. Mladen & Co., will you be applying this patch for 1.2.16, and if so, do you have any ideas about when you may release 1.2.16? No. Since this requires the protocol change it will go to 1.3 branch together with other AJP changes that will

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Warren Lewis
You probably will need to update the setting of -XX:MaxPermSize= I believe the default value is 64m. cheers - Warren -Original Message- From: Mike Dippold [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 1:57 PM To: users@tomcat.apache.org Subject: java.lang.OutOfMemoryError

web apps blocked without any trace in logs

2005-12-22 Thread Frederic Bes
Hello, I have a strange behavior with tomcat. When I deploy 2 web-apps (saying app1 and app2), there is no problem, all goes well: conection with databases, application etc. When I deploy 3 web-apps (+ app3), running app1 and app2 works, but when I run the third, the browser loops without loading

RE: JRE versions (UNCLASSIFIED)

2005-12-22 Thread Caldarale, Charles R
> From: Samara, Fadi N Mr ACSIM/ASPEX > [mailto:[EMAIL PROTECTED] > Subject: JRE versions (UNCLASSIFIED) Although you appear to have posted your message twice, you didn't bother to tell us the Tomcat version you are using. > My eclipse environment's JRE is 1.5 But the one Tomcat is using is 1.

Re: Please Help! Error in using Packages

2005-12-22 Thread Prasad
Teh, The web.xml looks fine to me. Can you confirm that you war file is packaged correctly i.e its created with proper packages structure and dir/file names. Also, I was wondering why are you being asked to (explicitly) create a element in server.xml. Is it a TC v4.x requirement ? I have u

Re: tomcat-apache ajp13 connection problem (answer time)

2005-12-22 Thread Prasad
Any load balancers exist in your enviornment ?? [EMAIL PROTECTED] wrote: hello there, i have two servers inside the dmz, one with redhat 9 the other with fedora core 4. the box running with fedora core has tomcat 5.5.9 and apache 2.0.54. the connection is made with ajp13. the redhat 9 has an ol

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Mike Dippold
Wont that just give me more time between having to restart? Is it normal to have permgen space fill up and never get it back? -- Original Message -- From: "Warren Lewis" <[EMAIL PROTECTED]> Date: Thu, 22 Dec 2005 14:07:40 -0500 >You probably will need t

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Durfee, Bernard
I've seen the same thing with 5.5.12 running Confluence and JIRA. I needed to bounce Tomcat after making a bunch of changes to the JIRA workflow, which triggered lot's of processing. I assumed it was a JIRA problem, but maybe it is related to Tomcat 5.5.12? I haven't had the problem since, that was

Here's to a better tomcat in 2006

2005-12-22 Thread Vinny
Hello All, I have been a big fan of tomcat, been using it since the 3.x days. Tomcat has some cool technologies and adheres to many standards. But I have found that the 5.5.x series has not really lived up to it's potential. Realms Custom Realms that worked flawlessly in 5.0, seem to break in 5.5.

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Carl Olivier
Greetings. AFAIK PermGenSpace is not TC related - its within the JVM and is where permanent memory related loads go - which includes classes loaded by ClassLoaders. Additionally - AFAIK this PermGenSpace does NOT get cleared by the Garbage collector - and only a restart of the JVM will rid you of

Re: What is "AAA" in "Realms and AAA" means ?

2005-12-22 Thread Vinny
On 12/22/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Anto Paul [mailto:[EMAIL PROTECTED] > > Subject: What is "AAA" in "Realms and AAA" means ? > > > > In it what does "AAA" means ? Just out of curiousity. > > Probably not the American Automobile Association in this context. It i

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Caldarale, Charles R
> From: Carl Olivier [mailto:[EMAIL PROTECTED] > Subject: RE: java.lang.OutOfMemoryError: PermGen space > > Additionally - AFAIK this PermGenSpace does NOT get cleared > by the Garbage collector - and only a restart of the JVM will > rid you of that used space. Not really true. A full GC does

Re: JRE versions (UNCLASSIFIED)

2005-12-22 Thread Martin Gainty
Ditto It is apparent you forgot to read the FAQ on asking questions http://www.catb.org/~esr/faqs/smart-questions.html#beforesaying ' saying "please help" doesnt help your cause when you fail to do any of the preliminary legwork yourself you should remember those of us out here are helping you (th

Http header "referer" is gone in jk1.2.6+tomcat 5.0.28+Apache/2.0.54]

2005-12-22 Thread Guo, Jiaqi
Hi there, Tomcat 5.0.25 running on Fedora Core 4, connected with Apache 2.0.54 with the binary released version of jk1.2.6. Everything's fine except request.getHeader( "referer" ) always returning null in my servlet. There's nothing funny in the log, "Dec 22, 2005 4:36:06 PM org.apache.jk.se

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine
Mike, We are using tomcat 5.5.12 and every couple days the tomcat server goes down hard and the last line in the log is: java.lang.OutOfMemoryError: PermGen space It appears to only happen if we: Update jsp pages Reload Webapp Deploy Webapp If we do not do any of the following the server ru

RE: Http header "referer" is gone in jk1.2.6+tomcat 5.0.28+Apache/2.0.54]

2005-12-22 Thread Caldarale, Charles R
> From: Guo, Jiaqi [mailto:[EMAIL PROTECTED] > Subject: Http header "referer" is gone in jk1.2.6+tomcat > 5.0.28+Apache/2.0.54] > > Tomcat 5.0.25 running on Fedora Core 4, connected with Apache 2.0.54 > with the binary released version of jk1.2.6. Everything's fine except > request.getHeader(

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Caldarale, Charles R
> From: Stephen Caine [mailto:[EMAIL PROTECTED] > Subject: Re: java.lang.OutOfMemoryError: PermGen space > > The key setting, "-XX:NewRatio=16" was the trick. This is > the ratio allocation between 'perm' and 'eden' memory. Sorry, but that's wrong. It's the ratio between the size reserved fo

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine
Chuck, Sorry, but that's wrong. It's the ratio between the size reserved for newly allocated objects (New Generation) and that used for long- lived objects (Tenured or Old Generation)... I stand corrected. In either case though, changing the ratio had a dramatic effect on our 'out of me

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Caldarale, Charles R
> From: Stephen Caine [mailto:[EMAIL PROTECTED] > Subject: Re: java.lang.OutOfMemoryError: PermGen space > > In either case though, changing the ratio had a dramatic > effect on our 'out of memory' problems. Any insights as > to why? I can only speculate that reducing the size of the NewGen ar

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Peter Lin
I've only read a few of the posts, but in case no one else mentioned it. BEA JRockit doesn't have the permGen limitations the SUN JVM has. you might want to give JRockit a try and see if that fixes the problem for you peter lin On 12/22/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > F

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Stephen Caine
Chuck, I can only speculate that reducing the size of the NewGen area (due to the larger value of NewRatio) forced more frequent collections of recently allocated objects, thereby eliminating some class object references. Without knowing a lot more about your applications and doing some

SVG MIME type: "image/svg" instead of "image/svg+xml" (tomcat 5.5.9)

2005-12-22 Thread yz stone
Hi there, I am working on some static SVG files on my local tomcat (5.5.9) server. When I key in the link of any SVG file from localhost:8080 in FireFox 1.5's address bar, FireFox opens the download dialog for opening or saving files. FireFox can display the content of the SVG files if "open

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Wade Chandler
The ratio (have to look at a graph), but might have done the trick because you were not moving objects out of survivor generations to old/tenur generations fast enoughala creating a lot of new objects (tons of them) and not having enough memory in the new space and the objects couldn't be mo

Re: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Wade Chandler
Tuning http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html Garbage collection explanations and other hints http://www-128.ibm.com/developerworks/java/library/j-jtp11253/ Good tool http://www.quest.com/jprobe/ - Original Message From: Stephen Caine <[EMAIL PROTECTED]> To: Tomc

RE: java.lang.OutOfMemoryError: PermGen space

2005-12-22 Thread Caldarale, Charles R
> From: Stephen Caine [mailto:[EMAIL PROTECTED] > Subject: Re: java.lang.OutOfMemoryError: PermGen space > > Thank you for your thoughts. I am using a Quad 4 Mac OS X with a > 1.4.2 JVM. Any recommendations for testing tools so I can monitor > memory allocations, garbage collection and the

RE: Catalina.policy to add new file permissions

2005-12-22 Thread Sethuraman, Prabhu \(Cognizant\)
George, Not sure how complicated your environment is, but why not you try something like this (if feasible): Make a RMI call (or any other J2EE mechanism) to a class sitting in Server B which will take care of writing information to a file on Server B. Let me know if I have assumed something