Re: Tomcat TLS with PKCS11 token

2007-05-31 Thread Bill Barker
If you are using the JIO Connector (the default if APR isn't installed), then you should just be able to specify keystoreType="PKCS11" on the element, and configure the PKCS11 setting as in the JCE documents for your Java vendor. If you have more than just the one Tomcat key, then you will al

Re: Tomcat does not start

2007-05-31 Thread Rashmi Rubdi
I had problems with Windows Service Installer too, I'm not sure if it was my mistake. I don't remember if I forgot to stop and start Tomcat properly, or if the JAVA_HOME was set correctly. So, to solve the problem I uninstalled Tomcat , and got the ZIP archive. With the ZIP archive there haven't

Re: Tomcat 5.5 + Apache 2.2 + mod_proxy_ajp

2007-05-31 Thread Hassan Schroeder
On 5/31/07, Ralf Schneider <[EMAIL PROTECTED]> wrote: I use the above configuration and have a problem when the Tomcat is restarted. Then the Apache does not forward the requests until it has been restarted too. What's your ProxyPass retry set to? -- Hassan Schroeder

adding authentication to unprotected page

2007-05-31 Thread Ryan
Hi All, I was wondering if any of you had experience with this. I want to add a form on the homepage of an application that allows the user to quickly log in (see below) and take them to the protected page. I've never done this before and unfortunately the form below doesn't seem to work, it basi

Tomcat pausing by some strange error

2007-05-31 Thread Yifan (Eric) Jiang
Hi all, I've installed Tomcat 5.5.23 on a RedHat AS 4. Tomcat is communicating Apache by mod_jk. It just stop running last night and I have to run it again today's morning. I've found some messages from Tomcat log file, catalina.out. 31/05/2007 20:22:40 org.apache.coyote.http11.Http11B

Re: Can't seem to get logging to work in Tomcat 5.5.9

2007-05-31 Thread Georg Sauer-Limbach
Hi Rob, check catalina.out, there should be some message of log4j complaining if it has been loaded but cannot work. You may also add -Dlog4.debug to the java command line, this makes log4j output debug messages on stdout. If you don't see any output of log4j, then I'd suggest calling java with

Tomcat 6.0.10 + Apache 2.2 4 + mod_jk 1.2.21

2007-05-31 Thread Patrick Ward
Hello, I was looking at the following: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html and I was wondering if there is an update to the section "Using Tomcat auto-configure" for Tomcat 6.x as the text explicitly states the following: "Please note that this example

Re: Tomcat Hogging CPU

2007-05-31 Thread Leon Rosenberg
tomcat and java versions would help a lot :-) Leon On 5/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: We have been experiencing a problem where Tomcat causes CPU usage to go to 100%. This slows down our web servers. Has anyone else ever experienced such a problem? We average 150 acti

Tomcat 5.5 + Apache 2.2 + mod_proxy_ajp

2007-05-31 Thread Ralf Schneider
Hi, I use the above configuration and have a problem when the Tomcat is restarted. Then the Apache does not forward the requests until it has been restarted too. Is there a solution for this problem preventing from manually restarting the Apache? Best regards, Ralf. --

Re: Load Balance sticky_session=True, am I missing something?

2007-05-31 Thread Tim Alberts
Well I found one problem with my workers.properties, but it didn't fix my problem. I used the deprecated 'balanced_workers' on my load balancer configuration instead of the balance_workers. So I'm still stuck, any suggestions? Tim Alberts wrote: I have two tomcat servers (5.5.23) and running

Load Balance sticky_session=True, am I missing something?

2007-05-31 Thread Tim Alberts
I have two tomcat servers (5.5.23) and running mod_jk (1.2.20) with load balancing behind apache. I have a web application that needs to maintain session information. What I'm seeing is that the load balance is alternating requests between the servers equally, as expected, but sessions are ge

Re: Apache LogFormat on tomcat with APR?

2007-05-31 Thread robert lazarski
Exactly what I was looking for - thanks! Robert On 5/31/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html check out AccessLogValve Filip robert lazarski wrote: > Hi all, I have a requirement to get in our logs some data - in Apac

RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L
getting a little off-topic (but on-topic for your other post): don't you have a test-server with the identical environment as the prod-server where you could try to recreate the same race-conditions? cheers gregor - Yes, but I don't have the traffic or re

Re: Apache LogFormat on tomcat with APR?

2007-05-31 Thread Filip Hanik - Dev Lists
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html check out AccessLogValve Filip robert lazarski wrote: Hi all, I have a requirement to get in our logs some data - in Apache the log format is: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\"

Apache LogFormat on tomcat with APR?

2007-05-31 Thread robert lazarski
Hi all, I have a requirement to get in our logs some data - in Apache the log format is: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\" \"%{X-ClientSide}" combined-ClientSide How can I get that type of data into tomcat's logs? I have APR running if th

Re: rpm for tomcat 5.5 compatitble with java 1.6

2007-05-31 Thread Omar Eljumaily
Tom, Charles is correct about using the binary distributions at tomcat.apache.org. There isn't a lot of need to use rpms since there are extremely few dependencies. The only one I can think of for a base install is Java. The only other setup you need to do is to set JAVA_HOME and then run s

Tomcat TLS with PKCS11 token

2007-05-31 Thread Lee, Esmond
Hello, I would like to use TOMCAT 6 as an HTTPS server on our windows/linux servers, using a PCI based PKCS11 token that stores the keys for TLS connectivity. Up until now, we've enabled TLS connections using the keystoreFile/keystorePass, truststoreFile/truststorePass attribute pairs in server

Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Gregor Schneider
hi barry, thanks for the offer, but i guess i've found the solution: we're using around 15 different servlets, each making use of it's own datasource belonging to a different connection-pool: so it looks, as if the message always shows up when each pool is created, meaning, you're right with yo

RE: rpm for tomcat 5.5 compatitble with java 1.6

2007-05-31 Thread Caldarale, Charles R
> From: Tom H [mailto:[EMAIL PROTECTED] > Subject: rpm for tomcat 5.5 compatitble with java 1.6 > > Are there are repositories maintaining a Tomcat 5.5 that is > compatible with the Sun java SE 1.6 rpm available at the moment? Sure - use a real Tomcat download: http://tomcat.apache.org/download

rpm for tomcat 5.5 compatitble with java 1.6

2007-05-31 Thread Tom H
Hi, I have been asked to install tomcat 5.5 with Java 1.6 on a box for a developer. I was hoping to stick with RH packages, but this combination does not seem to be available yet. Are there are repositories maintaining a Tomcat 5.5 that is compatible with the Sun java SE 1.6 rpm available at

RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L
and unfortunately, as I'd posted in a reply with a different topic you might have seen, there's (at the moment) no way for me to see the console in the prod setting, so I can't verify that's happening, but I'd be inclined to think with my current configuration that message is only getting gener

RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L
maybe I've set or allocated enough (about 100) connections so I only get that once? I'd be happy to send you my server.xml config if you'd like. -Original Message- From: Gregor Schneider [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 11:10 AM To: Tomcat Users List Subject: Re: Co

Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Gregor Schneider
hi barry, from my understanding, the output seems to be created every time when the pool needs to create a new physical connection to the database, i.e. you've specified "maxActive=10", only 5 are used & busy, a 6th gets created due to an additional request and -> voilá, there you go. anyways, s

Re: passing Apache htpasswd authnetication to Tomcat

2007-05-31 Thread Patrick Ward
Thanks, we did that: David Smith wrote: If you set tomcatAuthentication="false" in your connector configuration for the AJP connector, the credentials will come through. It's set to true by default causing tomcat to ignore the REMOTE_USER header from Apache. --David Patrick Ward

RE: Console-Output of AbandonedObjectPool

2007-05-31 Thread Propes, Barry L
that's true, and I get something similar as that the first time Tomcat (the apps) make a call to the database, but only initially. It doesn't keep posting to the console afterwards. -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:44 AM To: To

RE: tomcat not loading log4j properties

2007-05-31 Thread Propes, Barry L
in this line, I think you need to have className="org.apache.log4j.Logger" although I say that...I've been trying to get log4j configured in my environment with zero luck, too. But that's what I read in one tutorial page I saw. -Original Message- From: mélanie langlois [mail

RE: Servlet and Random Access File

2007-05-31 Thread Propes, Barry L
I might have one for youlet me know if you found it or not. -Original Message- From: Teh Noranis Mohd Aris [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 9:48 PM To: Tomcat Users List Subject: Re: Servlet and Random Access File I would like to refer to an example servlet whe

Re: Tomcat Hogging CPU

2007-05-31 Thread Omar Eljumaily
What's your definition of a "connection?" Is it a session? I've had an average of about 300 active sessions which amounted to about 15,000 unique visits per day. This was on a machine with substantially less power than yours. We average 150 active connections per web server. What do other

RE: Tomcat stopped logging

2007-05-31 Thread Propes, Barry L
ok, thanks, guys, I'll try to do that. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 9:16 AM To: Tomcat Users List Subject: Re: Tomcat stopped logging Plus console output is almost always redirected to catalina.out. If you can read that, yo

RE: Tomcat Hogging CPU

2007-05-31 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Subject: Tomcat Hogging CPU > > We have been experiencing a problem where Tomcat causes CPU > usage to go to 100%. Odds are it's one of your webapps, not Tomcat. Try running a CPU profiler to see where time is being spent. You could als

Tomcat Hogging CPU

2007-05-31 Thread john . calderbank
We have been experiencing a problem where Tomcat causes CPU usage to go to 100%. This slows down our web servers. Has anyone else ever experienced such a problem? We average 150 active connections per web server. What do others average? How do others configure initial memory pool, maximum

Re: Tomcat stopped logging

2007-05-31 Thread David Smith
Plus console output is almost always redirected to catalina.out. If you can read that, you should be seeing all the console output. --David Daniel Stephens wrote: well the localhost log should have the stack trace you need. Try and get them to do David's suggesstion that's a good one. On 5/3

RE: tomcat 6, clustering, FarmDeployer

2007-05-31 Thread Tim Lucia
I've used ant to write a deploy task which is parameterized. Then I can wrap an iteration task around it and undeploy + deploy on all n Tomcats. It does depend on http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html

RE: Monitoring connection pools created by tomcat

2007-05-31 Thread Sorin Juco
Thanx guys. Great application. -- View this message in context: http://www.nabble.com/Monitoring-connection-pools-created-by-tomcat-tf3845859.html#a10894272 Sent from the Tomcat - User mailing list archive at Nabble.com. - To

Re: tomcat 6, clustering, FarmDeployer

2007-05-31 Thread Kristian Rink
Filip; first off, thanks loads for your hint. So by now I can at least stop playing with the FarmWarDeveloper and focus on other things... [Filip Hanik - Dev Lists <[EMAIL PROTECTED]> @ Thu, 31 May 2007 15:44:59 +0200] > hi Kristian, Farm deployer is currently broken, has been for a while > and

Re: tomcat 6, clustering, FarmDeployer

2007-05-31 Thread Filip Hanik - Dev Lists
hi Kristian, Farm deployer is currently broken, has been for a while and needs to be completely revised. Filip Kristian Rink wrote: Folks; being knee-deep into building a test system to see whether our clustered applications also will work in a tc 6.0 clustered environment (currently they ru

tomcat 6, clustering, FarmDeployer

2007-05-31 Thread Kristian Rink
Folks; being knee-deep into building a test system to see whether our clustered applications also will work in a tc 6.0 clustered environment (currently they run atop 5.5), and the cluster configuration (having an apache2+mod-jk in front) seems to work well having an application that already runs

FW: Immediate help needed with tomcat

2007-05-31 Thread Sehgal, Harki: DGSE
Hello, I am trying to run a webservice with Tomcat 5.5. We had Axis 1.1 running on Tomcat 4.1 for a year and without any problems we were able to deploy our service. Recently, we have upgraded Tomcat to 5.5 and I copied all the files from old to new webapps but our service is not running.

Re: Tomcat stopped logging

2007-05-31 Thread Daniel Stephens
well the localhost log should have the stack trace you need. Try and get them to do David's suggesstion that's a good one. On 5/30/07, Propes, Barry L <[EMAIL PROTECTED]> wrote: I can try...the thing is, I can actually read the logs through a shared directory. Just can't see the console to see

FW: Immediate help needed with tomcat

2007-05-31 Thread Sehgal, Harki: DGSE
Hello, I am trying to run a webservice with Tomcat 5.5. We had Axis 1.1 running on Tomcat 4.1 for a year and without any problems we were able to deploy our service. Recently, we have upgraded Tomcat to 5.5 and I copied all the files from old to new webapps but our service is not running.

Re: Servlet and Random Access File

2007-05-31 Thread David Smith
I see there's still a lot of options on the table and the only part that has anything to do with tomcat is the user interface. A good starting point might be to look at database backed webapps with a similar UI. All you'd have to do to them is change the persistence from a database to fil

Re: Monitoring connection pools created by tomcat

2007-05-31 Thread Mark Thomas
Sorin Juco wrote: > Hello, > > I use tomcat 6.0.13 with jdk 6 on windows. > > I created a jdbc resource(connection pool) in the standard way. > My question is how can I monitor the connection pool. In glassfish for > example I have the admin app in which I can monitor the pool and see the > act

RE: Monitoring connection pools created by tomcat

2007-05-31 Thread Tim Lucia
http://www.lambdaprobe.org/ > -Original Message- > From: Sorin Juco [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 31, 2007 6:49 AM > To: users@tomcat.apache.org > Subject: Monitoring connection pools created by tomcat > > > Hello, > > I use tomcat 6.0.13 with jdk 6 on windows. > > I

Apache 32-bit as front end to 64-bit Tomcat

2007-05-31 Thread Darren Kukulka
Hi All, Just wondering if anybody has had any 'weirdness' when running a 32-bit mod_jk connector under Apache (in our case mod_jk v1.2.20 under Apache 2.2.4) against a 64-bit installation of Tomcat (5.5.20 with 1.5.0_10 SUN Java)on separate servers. We've had scenarios where the connect

Monitoring connection pools created by tomcat

2007-05-31 Thread Sorin Juco
Hello, I use tomcat 6.0.13 with jdk 6 on windows. I created a jdbc resource(connection pool) in the standard way. My question is how can I monitor the connection pool. In glassfish for example I have the admin app in which I can monitor the pool and see the active connections, idle connections

Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Gregor Schneider
Aaargl so that means there's no possibility to get rid of this output? I mean I don't need a possibility to divert it into a log-file, just getting rid of the output would help... Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B

Re: FarmWarDeployer

2007-05-31 Thread ben short
Ok I got it all working. The server.xml supplied with tomcat 5.5 is slightly misleading IMO. I assumed that the deployDir could be anywhere as long as it was accessible to the tomcat user. But after searching nabble I tried setting it to the webapps dir and it all sprung into life. On 5/30/07

Re: Console-Output of AbandonedObjectPool

2007-05-31 Thread Rainer Jung
Unless things changed in the last 1.5 years (when I looked it up last time): DBCP uses System.out.println() and not regular logging for the output of exactly those lines :( Regards, Rainer Gregor Schneider wrote: Hi guys, we're using a JDBC-datasource with the following definition in $CATAL

Console-Output of AbandonedObjectPool

2007-05-31 Thread Gregor Schneider
Hi guys, we're using a JDBC-datasource with the following definition in $CATALIN_HOME/conf/Catalina/localhost/IndexCLUE.xml: In catalina.out, we always find the following output: AbandonedObjectPool is used ([EMAIL PROTECTED] e) LogAbandoned: false RemoveAbandoned: true RemoveAbando

Re: Servlet and Random Access File

2007-05-31 Thread Johnny Kewl
Teh, there are so many ways suggest you get the Java Sun Tut, its very good. Look at properties, serialization, and file handling. Have a look at lite dB's like Derby. Maybe Mysql, or Postgres as well. If you like frameworks, maybe even hybernate. There is no example servlet... just find the