NPE in SystemLogHandler.findStream()

2008-10-28 Thread Lars Duvaas
Hi! I have a problem with NPE in SystemLogHandler.findStream(). copy tomcat 5.5.27 /** * Find PrintStream to which the output must be written to. */ protected PrintStream findStream() { PrintStream ps = (PrintStream) streams.get(); if (ps == null) {

How to watch active sessions size

2008-10-28 Thread Hugo Palma
I'd like to watch the active sessions count and size for a given web application. I know that implementing a HttpSessionListener to keep the references to all created sessions and then implementing some page to query it's state works, but that also means that i would have to redeploy all

Re:

2008-10-28 Thread Hisham Farahat
I have used Softerra LDAP Admin and it worked while tomcat did not. How can i increase the verbosity ? i tried to configure log4j, but i could not build the extra component (extra.xml) because i'm on windows machine and i've installed tomcat using windows service installer. Any ideas? thanks for

Re: How to watch active sessions size

2008-10-28 Thread Leon Rosenberg
Lambdaprobe :-) Btw, your solution will create a memory leak, its better just to count creation and destruction events instead of holding references. regards Leon On Tue, Oct 28, 2008 at 11:08 AM, Hugo Palma [EMAIL PROTECTED] wrote: I'd like to watch the active sessions count and size for a

Re:

2008-10-28 Thread Serge Fonville
You can build it on windows, since ant for windows can be downloaded the same as for any other platform it is available for the fact tomcat was installed as a service has no impact on what can and can't be loaded inside tomcat since tomcat loads it's configuration file on startup and has all

Re: Tomcat 6 - Problems with encoding

2008-10-28 Thread JSimas
Hi Thanks for your quick reply. I already changed my encoding to ISO-8859-15, however i'm still having problems. Here is the HTTP Post Stream using ISO-8859-15: POST /AppWeb/webFlow.do2 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,

Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

2008-10-28 Thread Kevin SeongHyun Lee
Oh, that makes perfect sense. Thanks Chuck. Regards, Kevin 2008/10/25 Caldarale, Charles R [EMAIL PROTECTED] From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] Subject: Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.

Re: Tomcat 6 - Problems with encoding

2008-10-28 Thread Jerome Lepage - AKEROZ
Hi, As you can see the value Test-€-! was transformed into Test-%A4-%2. Maybe you confuse between URL Encoding and Charset Enconding. %xx is a URL Encoding, you have to refere to the approriate RFC for that. (or to anyone who knows it) And i don't see in your request header a charset defined.

Re:

2008-10-28 Thread Hisham Farahat
Ok, i used the normal logger with ALL messages showing out, here is the part of the log where the error occurred: Oct 28, 2008 2:21:07 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role Infonet-Admins Oct 28, 2008 2:24:07 PM org.apache.catalina.core.StandardHostValve custom FINE:

Re: How to watch active sessions size

2008-10-28 Thread Hugo Palma
Isn't Lambdaprobe dead ? Thanks for the tip on the memory leak, you're right. But how else can i find out the size of each active session ? On Tue, Oct 28, 2008 at 10:33 AM, Leon Rosenberg [EMAIL PROTECTED] wrote: Lambdaprobe :-) Btw, your solution will create a memory leak, its better just

Re:

2008-10-28 Thread Serge Fonville
I would start looking at the logs of the AD server It seems the AD server has refused the connection, so maybe there is a more clear error there I meant the errors you had when building commons for log4j (since you said you couldn't build it) Have you tried manually connecting to the AD server

Re: Tomcat Server .pac Script configuration for outgoing connection.

2008-10-28 Thread Eswaramoorthy Ramesh
what is the use of properties like http.proxyHost, http.proxyPort parameters which we could specify in catalina.properties? iirc, those are settings for application to use the proxy. If so, Can i use a .pac script ( Proxy Auto Configuration) instead of configuring proxy URL? Thanks Eswar On

Re:

2008-10-28 Thread Hisham Farahat
I meant the errors you had when building commons for log4j (since you said you couldn't build it) I went to the easier way, using java.util.logger :) Have you tried manually connecting to the AD server with a commandline LDAP client yes, using a program called Softerra LDAP Admin. And it connects

RE: How to watch active sessions size

2008-10-28 Thread Caldarale, Charles R
From: Hugo Palma [mailto:[EMAIL PROTECTED] Subject: Re: How to watch active sessions size Isn't Lambdaprobe dead ? The web site is currently down, but many of us have the (open) source and .war file. Let me know if you want a copy. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL

Re: How to watch active sessions size

2008-10-28 Thread Leon Rosenberg
On Tue, Oct 28, 2008 at 1:29 PM, Hugo Palma [EMAIL PROTECTED] wrote: Isn't Lambdaprobe dead ? Thanks for the tip on the memory leak, you're right. But how else can i find out the size of each active session ? btw, how does lambdaprobe does it? I mean the size? Chuck will surely correct me

RE: How to watch active sessions size

2008-10-28 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: How to watch active sessions size Chuck will surely correct me on that, but the actual size of an object is extremely dependent on the VM implementation (boolean stored in integer, object header overhead, and so on...) Correct as

Re: How to watch active sessions size

2008-10-28 Thread Brantley Hobbs
btw, how does lambdaprobe does it? I mean the size? Chuck will surely correct me on that, but the actual size of an object is extremely dependent on the VM implementation (boolean stored in integer, object header overhead, and so on...) I once tried to create a sizeof util, and it works

Tomcat 6 - Problems with encoding - PROBLEM SOLVED

2008-10-28 Thread JSimas
Problem solved... but i still have some doubts :p This was my solution: 1. Remove this next lines of all JSPs (some had, others didn't) %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% META http-equiv=Content-Type content=text/html;

TOMCAT 6 and FOP

2008-10-28 Thread David Venus
Hi! I am trying to get FOP 0.94 or 0.95 to work with TOMCAT 6. I have seen several references that say to see the TOMCAT documentation for specifics of setting up FOP with TOMCAT. I have searched around and can't find it. So now am posting to this list to see if anyone can give me some idea of

RE: How to watch active sessions size

2008-10-28 Thread Jens Schleusener
On Tue, 28 Oct 2008, Caldarale, Charles R wrote: From: Hugo Palma [mailto:[EMAIL PROTECTED] Subject: Re: How to watch active sessions size Isn't Lambdaprobe dead ? The web site is currently down, but many of us have the (open) source and .war file. Let me know if you want a copy. - Chuck

Questions regarding MaxPermGen

2008-10-28 Thread Robert J Morman
Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and Java 1_5_16). We are running out of PermGen space for several instances of tomcat, which I believe could be some bad code we've received from our development team. To test a theory, I'd like to expand the size of our PermGen

RE: Tomcat Cluster and NFS mounted webapp

2008-10-28 Thread forum123
Caldarale, Charles R wrote: Look at the workDir attribute of the Host and Context elements. By the way, you might want to consider moving up to a more recent 5.5 version (5.5.27 is current). Lots of fixes have gone in since 5.5.12 was released over three years ago. - Chuck

RE: Questions regarding MaxPermGen

2008-10-28 Thread Caldarale, Charles R
From: Robert J Morman [mailto:[EMAIL PROTECTED] Subject: Questions regarding MaxPermGen 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m, but the tomcat service then does not start up. It's MaxPermSize, not MaxPermGen; invalid options will stop the JVM during

Path (file)InputStream for an independent module in tomcat?

2008-10-28 Thread Guojun Zhu
Hi, I am using tomat 5.5 in linux/windows mixed environment. The deploy target is both. I had a DAO module for which I would like to put some configuration into a separate file for easy access and modifying. However, I have some difficulty to figure out how to put the path in the

Re: Questions regarding MaxPermGen

2008-10-28 Thread Rainer Jung
Hi, Robert J Morman schrieb: Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and Java 1_5_16). We are running out of PermGen space for several instances of tomcat, which I believe could be some bad code we've received from our development team. To test a theory, I'd

Depoy as different URL than default war file name

2008-10-28 Thread Mohit Anchlia
I have a war file App.war so the url is http://ip/App/query but I want it to be deployed in a way that the Url is http://ip/New/App/query. How can I change the default behaviour? - To start a new topic, e-mail:

Re: Path (file)InputStream for an independent module in tomcat?

2008-10-28 Thread David Smith
You could put together a constructor or method for your DAO that accepts an input stream to read. That would at least maintain it's independence from the servlet container. Just need to have whatever create's an instance of your DAO call servletContext.getResourceAsStream() and pass the

Re: Depoy as different URL than default war file name

2008-10-28 Thread Mark Thomas
Mohit Anchlia wrote: I have a war file App.war so the url is http://ip/App/query but I want it to be deployed in a way that the Url is http://ip/New/App/query. How can I change the default behaviour? In Tomcat 6.0.18 onwards just rename it New#App.war Mark

RE: Questions regarding MaxPermGen

2008-10-28 Thread Robert J Morman
Thank you (Charles/Ranier) for your help. I had mt'd the option name, but found that I just had it set too high. It wasn't taking 256m and would start if I set it lower. I understand '-D' now as well. Now to see if we have some bad leaks or we just needed more breathing room. Bob

basic help with tomcat5

2008-10-28 Thread Tim Potter
Currently, I am trying to get an instance of tomcat running on a FC6 box. [EMAIL PROTECTED] ~]$ /usr/sbin/httpd -version Server version: Apache/2.2.3 Server built: Sep 11 2006 09:43:05 [EMAIL PROTECTED] ~]$ java -version java version 1.6.0_10 Java(TM) SE Runtime Environment (build 1.6.0_10-b33)

Re: Path (file)InputStream for an independent module in tomcat?

2008-10-28 Thread Guojun Zhu
Thank you. That seems a good way out. Sincerely Zhu, Guojun On Tue, Oct 28, 2008 at 2:08 PM, David Smith [EMAIL PROTECTED] wrote: You could put together a constructor or method for your DAO that accepts an input stream to read. That would at least maintain it's independence from the servlet

Re: Depoy as different URL than default war file name

2008-10-28 Thread Mohit Anchlia
This is what my logs say INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 So does it mean I can use New#App.war? On Tue, Oct 28, 2008 at 12:21 PM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: I have a war file App.war so the url is http://ip/App/query but I want it to be

RE: Depoy as different URL than default war file name

2008-10-28 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Depoy as different URL than default war file name This is what my logs say INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 So does it mean I can use New#App.war? That's what Mark said. You could just try it... - Chuck THIS

tomcat and Shark TOgether

2008-10-28 Thread supareno
hello everyone, just a mail to know if anybody here is using Shark as BPM workflow?? i should make test on it and i would like to have any returns from users if anyone exists ! bye supareno - To start a new topic, e-mail:

Logging

2008-10-28 Thread Mohit Anchlia
I have asked this before. I am not able to understand why my application is logging to both catalina.out and also app.log specified in log4j.xml. It just produces tons of same messages in catalina.out and app.log - To start a new

Re: Depoy as different URL than default war file name

2008-10-28 Thread Mohit Anchlia
That works thanks. On Tue, Oct 28, 2008 at 1:03 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Depoy as different URL than default war file name This is what my logs say INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 So

Re: Logging

2008-10-28 Thread Mark Thomas
Mohit Anchlia wrote: I have asked this before. I am not able to understand why my application is logging to both catalina.out and also app.log specified in log4j.xml. It just produces tons of same messages in catalina.out and app.log No idea. Telling us the contents of your logging.properties

Re: Logging

2008-10-28 Thread Mohit Anchlia
handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, 5host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .handlers = 1catalina.org.apache.juli.FileHandler,

Re: Logging

2008-10-28 Thread Mark Thomas
My bad. It is log4j.properties that we need since you configured log4j. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Logging

2008-10-28 Thread Mohit Anchlia
?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false !-- configuration xmlns=http://logging.apache.org/; debug=true -- appender name=APP_LOG class=org.apache.log4j.DailyRollingFileAppender

Re: executor does not work with AJP connector

2008-10-28 Thread Filip Hanik - Dev Lists
an executor would not have helped you in your scenario. on the apache side do a JkOptions +DisableReuse this will turn off the keep alive of those connections, hence free up those threads filip Joe Reger, Jr. wrote: I upgraded to Tomcat 6.0.18 and am now getting a warning instead of an

Performance of tomcat

2008-10-28 Thread Mohit Anchlia
Is there a module like mod_status in apache that reports the stats of number of connections, load of threads, number of active threads etc.? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

RE: Performance of tomcat

2008-10-28 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Performance of tomcat Is there a module like mod_status in apache that reports the stats of number of connections, load of threads, number of active threads etc.? The manager app displays some of that information, as does Lambda Probe.

Re: Performance of tomcat

2008-10-28 Thread Mohit Anchlia
I am looking at following Url but doesn't seem to have that information: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Using%20the%20JMX%20Proxy%20Servlet On Tue, Oct 28, 2008 at 4:17 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mohit Anchlia [mailto:[EMAIL PROTECTED]

RE: Performance of tomcat

2008-10-28 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Performance of tomcat I am looking at following Url but doesn't seem to have that information: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Usi ng%20the%20JMX%20Proxy%20Servlet I've never touched the JMX Proxy

RE: basic help with tomcat5

2008-10-28 Thread Caldarale, Charles R
From: Tim Potter [mailto:[EMAIL PROTECTED] Subject: basic help with tomcat5 Currently, I am trying to get an instance of tomcat running on a FC6 box. I wouldn't waste my time trying to repair what looks really messed up. I'd suggest downloading a fresh copy from the Tomcat web site and

RE: Force getting Client Cert from browser

2008-10-28 Thread Caldarale, Charles R
From: atul [mailto:[EMAIL PROTECTED] Subject: Re: Force getting Client Cert from browser I tried invalidating httpsession but that didnt work. I'm a bit surprised at that, but I haven't gone through the code enough to figure out why that didn't work. There's a tangentially related thread