Test scripts for functional testing of tomcat.

2009-07-07 Thread Sajad Bashir Qadri
Hi, Is there any test framework/scripts available which can do automatic FUNCTIONAL testing of all the tomcat features? Actually, I am working on porting of tomcat to my own operating system. Being done with the porting, I need to ensure that all the standard tomcat FUNCTIONALITY is properly

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread André Warnier
Geofrey Rainey wrote: Hi Mark, Yes i've read that document many times. However still need a few pointers on writing the Login Module and how it integrates with the Callbackhandler to create the popup dialog. I can't really find any comprehensive doco on this. If you are talking about the

mod_jk on Windows 2008 x64

2009-07-07 Thread Alexander Diedler
Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and worker.properties in the httpd.conf. The

How can i make two tomcat instances use same lib directory?

2009-07-07 Thread ümit kara
Hi, I have two tomcat instances running on a server. They use same jars. I want to create a directory that holds the comman libraries and my tomcat instances use libraries from that directory. So if i change one of the jars i will not have to deploy the jar into the two tomcat directories. I am

Re: Test scripts for functional testing of tomcat.

2009-07-07 Thread Mark Thomas
Sajad Bashir Qadri wrote: Hi, Is there any test framework/scripts available which can do automatic FUNCTIONAL testing of all the tomcat features? Tomcat version? Have you looked at the built in tests? Actually, I am working on porting of tomcat to my own operating system. Being done with

Re: mod_jk on Windows 2008 x64

2009-07-07 Thread Rainer Jung
On 07.07.2009 10:07, Alexander Diedler wrote: Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and

Re: mod_jk on Windows 2008 x64

2009-07-07 Thread Mark Thomas
Alexander Diedler wrote: Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and worker.properties in the

Re: How can i make two tomcat instances use same lib directory?

2009-07-07 Thread Mark Thomas
ümit kara wrote: Hi, I have two tomcat instances running on a server. They use same jars. I want to create a directory that holds the comman libraries and my tomcat instances use libraries from that directory. So if i change one of the jars i will not have to deploy the jar into the two

Re: Custom Valve

2009-07-07 Thread Sumit D
Hey Chris, Thanks a lot for the detailed reply. At the moment, I have written a class that extends AccessLogValve.java. I deactivated the AccessLogValve from the server.xml and Valve className=my.Valve element to your Engine for this new Extended Valve.(We wanted it at Engine level.) Works

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Oliver Block
Please ask your questions. Am Dienstag, 7. Juli 2009 00:51:29 schrieb Geofrey Rainey: Hi Mark, Yes i've read that document many times. However still need a few pointers on writing the Login Module and how it integrates with the Callbackhandler to create the popup dialog. I can't really

AW: mod_jk on Windows 2008 x64

2009-07-07 Thread Alexander Diedler
Hello, Yes, it is an AMD Opteron CPU with 64-Bit. I install the Apache Webserver in 32-bit Tomcat in 32 Bit, with 64-Bit tomcat6.exe Java JDK from Sun site in 64-bit Version mod_jk Binaries from the 32-bit folder of Tomcat FTP Server because there is no 64-bit mod_jk. Greetings Alexander Diedler

AW: mod_jk on Windows 2008 x64

2009-07-07 Thread Alexander Diedler
Hello, There were no errorlogs because the http Service failed to start without any more information. Alexander Diedler Von: Mark Thomas [ma...@apache.org] Gesendet: Dienstag, 7. Juli 2009 11:20 An: Tomcat Users List Betreff: Re: mod_jk on Windows 2008

Re: mod_jk on Windows 2008 x64

2009-07-07 Thread Serge Fonville
I install the Apache Webserver in 32-bit Tomcat in 32 Bit, with 64-Bit tomcat6.exe Java JDK from Sun site in 64-bit Version mod_jk Binaries from the 32-bit folder of Tomcat FTP Server because there is no 64-bit mod_jk. How do you install Tomcat in 32bit with an x64 exe and jdk? Also, have

AW: mod_jk on Windows 2008 x64

2009-07-07 Thread Alexander Diedler
Correct me if neccessary, but Tomcat is still available in 32bit, but to start with a 64-bit JRE the exe has to replace with a 64-Bit version. In some forums I found entries, that I have to copy from SVN repository the current tomcat5.exe, renamed it to Tomcat6.exe and everything works. But

Where does System.out.println go by default

2009-07-07 Thread Yves Glodt
Hi, I have a tag-library in WEB-INF/lib which I use from inside OpenCms. The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*,

RE: AW: mod_jk on Windows 2008 x64

2009-07-07 Thread Martin Gainty
check the binaries in %JAVA_HOME%\jre\bin\server are 64bit? check the binaries in %JAVA_HOME%\jre\bin\client are 64 bit? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich.

Re: mod_jk on Windows 2008 x64

2009-07-07 Thread Serge Fonville
Correct me if neccessary, but Tomcat is still available in 32bit, but to start with a 64-bit JRE the exe has to replace with a 64-Bit version. In some forums I found entries, that I have to copy from SVN repository the current tomcat5.exe, renamed it to Tomcat6.exe and everything works.

Re: Where does System.out.println go by default

2009-07-07 Thread Serge Fonville
The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat  (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*, but I need to access these logs asap. I'd google for: tomcat stdout

RE: Test scripts for functional testing of tomcat.

2009-07-07 Thread Sajad Bashir Qadri
From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, July 07, 2009 2:47 PM To: Tomcat Users List Subject: Re: Test scripts for functional testing of tomcat. Sajad Bashir Qadri wrote: Hi, Is there any test framework/scripts available which can do automatic FUNCTIONAL testing of all

RE: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Geofrey Rainey
I am confused about integrating the JAAS Login Module with HTTP basic auth. I was under the impression that one had to handle this in a custom callback handler. However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this correct? Cheers, Geoff.

RE: Where does System.out.println go by default

2009-07-07 Thread Ghufran
It goes to catalina.out file. -Original Message- From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Tuesday, July 07, 2009 4:44 PM To: Tomcat Users List Subject: Re: Where does System.out.println go by default The taglib works fine. It logs some messages to System.out, but I

Re: load testing

2009-07-07 Thread Pid
On 6/7/09 21:27, Logan, James S wrote: We have been involved with load testing several sites that deploy a Tomcat server. I replied to your previous post on the 2nd. I said: OS/version? Tomcat/version? Which Tomcat monitoring tool? Your description of the behaviour isn't very clear. It

Re: load testing

2009-07-07 Thread Pid
On 6/7/09 21:27, Logan, James S wrote: We have been involved with load testing several sites that deploy a Tomcat server. When running a Load session, for some reason, each HTTP request will generate a login, when monitoring the server. The server is being monitored from the server-side and

Re: Where does System.out.println go by default

2009-07-07 Thread André Warnier
Serge Fonville wrote: The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*, but I need to access these logs asap. I'd google

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread André Warnier
Geofrey Rainey wrote: I am confused about integrating the JAAS Login Module with HTTP basic auth. I was under the impression that one had to handle this in a custom callback handler. However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this

Re: Where does System.out.println go by default

2009-07-07 Thread Yves Glodt
Thanks for all your suggestions The startup-script seems to have done some magic, the log ended up in /var/log/daemon.log 2009/7/7 André Warnier a...@ice-sa.com: Serge Fonville wrote: The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Mark Thomas
Geofrey Rainey wrote: I am confused about integrating the JAAS Login Module with HTTP basic auth. I was under the impression that one had to handle this in a custom callback handler. However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is

Re: Sticky session and ModJK Load Balancer

2009-07-07 Thread Emilio Recio
Rainer Jung wrote: On 06.07.2009 20:27, Emilio Recio wrote: Mark Thomas wrote: Emilio Recio wrote: Hi, i have installed Apache 2.2 and two Tomcat 6 whit load balancing in cluster mode using mod_jk module and setting sticky session in TRUE, and memory replication. I was

Re: Sticky session and ModJK Load Balancer

2009-07-07 Thread André Warnier
Emilio Recio wrote: Rainer Jung wrote: On 06.07.2009 20:27, Emilio Recio wrote: Mark Thomas wrote: Emilio Recio wrote: Hi, i have installed Apache 2.2 and two Tomcat 6 whit load balancing in cluster mode using mod_jk module and setting sticky session in TRUE, and memory

jsp:forward adds params to query-string

2009-07-07 Thread Yves Glodt
Hi, I have a simple jsp-page whose only purpose is to jsp:forward to my main controller-servlet, here it is: %@ page session=true % %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% jsp:forward page=/FormProcessor jsp:param name=o value=action1 / /jsp:forward The

Re: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Oliver Block
Am Dienstag, 7. Juli 2009 13:55:17 schrieb Geofrey Rainey: However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this correct? That's what the how-to says under 1. (See http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JAASRealm )

Solaris 10 mod_jk problems...

2009-07-07 Thread thekat
We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. My attempts - found the binaries for mod_jk for Solaris apache2 (version 2.0.61) http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/ ---

Re: Seeking authoritative answer re using Log4J with v6

2009-07-07 Thread Jonathan Ross
Sorry for the delay, had a few vacation days. I ran some tests to verify Log4J config at webapp vs server level and had these additional observations: The log4j.properties file in CATALINA_HOME/lib is still used for initialization unless overridden in the default locations (log4j.properties

Re: Solaris 10 mod_jk problems...

2009-07-07 Thread André Warnier
thekat wrote: We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. Is this a Sparc CPU, or X86 ? Maybe try : file /path_to_apache_httpd file /path_to_mod_jk.so Segmentation fault usually happens when trying to use a binary that

Re: DBCP and Firewall timeouts

2009-07-07 Thread AD
unfortunately still not working. One thing that i noticed, when i clear my browser cookies, everything works fine again. One of the things we do is use cookie persistence to send a user to the same tomcat server (we need this for file uploads,etc). Is there anything in the session cookie that

Where is server.xml being loaded from?

2009-07-07 Thread Luciana Moreira Sa de Souza Signed by - PrivaSphere AG
Hi, I have tomcat 5.5 on debian lenny and had some issues with permission on the server.xml. This happened due to the number of symbolic links that exist in this installation which make the final real location not so obvious as $|CATALINA_HOME|/conf/server.xml My question is: To avoid this

Re: Where is server.xml being loaded from?

2009-07-07 Thread Mark Thomas
Luciana Moreira Sa de Souza Signed by - PrivaSphere AG wrote: Hi, I have tomcat 5.5 on debian lenny and had some issues with permission on the server.xml. This happened due to the number of symbolic links that exist in this installation which make the final real location not so obvious as

Re: DBCP and Firewall timeouts

2009-07-07 Thread David Smith
Do you hold on to your connections in code or do you close them when done with each request? If you hold on to them, they can still timeout with or without a validationQuery set. --David AD wrote: unfortunately still not working. One thing that i noticed, when i clear my browser cookies,

Re: Where is server.xml being loaded from?

2009-07-07 Thread David Smith
Luciana Moreira Sa de Souza Signed by - PrivaSphere AG wrote: Hi, I have tomcat 5.5 on debian lenny and had some issues with permission on the server.xml. This happened due to the number of symbolic links that exist in this installation which make the final real location not so obvious as

Re: DBCP and Firewall timeouts

2009-07-07 Thread AD
we are using Jruby / Rails / Tomcat. I think what may be happening is that rails has its own connection pool in front of DBCP which could be causing the issue here, not sure yet. AD On Tue, Jul 7, 2009 at 12:20 PM, David Smithd...@cornell.edu wrote: Do you hold on to your connections in code

Re: Solaris 10 mod_jk problems...

2009-07-07 Thread thekat
Thx for the response.. Hardware : SunBlade 100 (Sparc) OS: Solaris 10 U7 (05/09) Apache: # /usr/apache2/bin/httpd -v Server version: Apache/2.0.63 Server built: Jan 18 2009 15:51:05 Good thoughts.. double checked to make sure and I do have the

Problems downloading files. How to identify the CANCEL button?

2009-07-07 Thread siomara
Dear all, I need to log some information only after a user downloads or opens a file. I am using a servlet for that and the download part works fine. However I need to identify which button was clicked because in case the user clicks [CANCEL] I am not supposed to register any information. I

Re: Solaris 10 mod_jk problems...

2009-07-07 Thread André Warnier
Dunno, but I have this nagging not-quite-sure memory tidbit : running ./configure --with-apxs=/usr/apache2/bin/apxs I have not compiled mod_jk very often, but isn't there something like apxs2 for Apache2 ? (I mean that apxs may be a leftover from an Apache 1.3 installation). If that doesn't

RE: Solaris 10 mod_jk problems...

2009-07-07 Thread Martin Gainty
it means either gcc is not installed or is not available to your user account try $ which gcc /usr/bin/gcc as you can see my gcc is located in /usr/bin where did acquire mod_jk src distro? *Greets* Martin __ Verzicht und

RE: FW: JAAS Realm with JDBC Authentication

2009-07-07 Thread Geofrey Rainey
Thankyou for the responses, they've been helpful. What do you folks think the best design would be to auth an application to our database based on the following information; Presently we have a custom login module that authenticates users to our database using JDBC. However we really need to

RE: Problems downloading files. How to identify the CANCEL button?

2009-07-07 Thread Martin Gainty
at least 2 ways to determine the button selected 1)set a boolean property which is enabled on or off based on executed button class MyAction extends ActionSupport { private boolean submit; private boolean clear; public void setSubmit(boolean submit) { this.submit = submit; }

jvmroute with 8080

2009-07-07 Thread AD
Hello, is there any need for the jvmroute property if we are proxying all web requests through Apache to a Cisco load balancer that is balancing all the tomcat servers on http 8080? My understanding is this is for AJP only but wanted to be sure. Thanks AD

RE: DBCP and Firewall timeouts

2009-07-07 Thread Martin Gainty
i vote against 2 different connection pools thats 2 configurations placing twice the load routing to the same DB not a good long term situation a more viable option is to port your RAILS code to GRAILS and all others Struts/JSF/Axis to use the same DBCP which would be configured within

Re: jsp:forward adds params to query-string

2009-07-07 Thread Bill Barker
Yves Glodt ygl...@gmail.com wrote in message news:abd6c6120907070628v26c8b1d3jbd7e31708e30d...@mail.gmail.com... Hi, I have a simple jsp-page whose only purpose is to jsp:forward to my main controller-servlet, here it is: %@ page session=true % %@ page language=java contentType=text/html;

RE: Solaris 10 mod_jk problems...

2009-07-07 Thread Martin Gainty
check if you have a residual mod_jk.so Listener in server.xml e.g. Engine ... Listener className=org.apache.jk.config.ApacheConfig modJk=/path/to/mod_jk.so / /Engine also check to see of mod_jk auto-configure in $APACHE_HOME/conf/httpd.conf #To be added at the end of your httpd.conf