Re: Stopping of tomcat failed.

2006-04-18 Thread manivannan84
hi Yasunori, welcome. 'unclosed sockets' - some client application interacting with your tomcat forgets to close the connection. (like browsers etc) . Or the tomcat doesnt close connection to the database. So, this unclosed connections results in 'unclosed sockets' 'hangin process' - A

File download error in IE with mod_jk

2006-04-18 Thread Magnus Dürr
Hi! I have a problem downloading files threw my webapp using Internet Explorer. The application has a resources directory where i have som large files. When I mount the directory in mod_jk to ensure only users logged in in tomcat can access it (add the line JkMount /mywebapp/resources/* ajp13

what about a server specific web.xml tailoring?

2006-04-18 Thread Rolf Schumacher
Dear long time Tomcat operators, I get new versions of a war file very often. Due to authorization constrains I have to place some extra security-constraints clauses into it - every time I deploy a new version. Is there a way to tell Tomcat to get the web.xml from a different place than

Re: Stopping of tomcat failed.

2006-04-18 Thread Yasunori Taniguchi
Hi Manivannan, 'unclosed sockets' - some client application interacting with your tomcat forgets to close the connection. (like browsers etc) . Or the tomcat doesnt close connection to the database. So, this unclosed connections results in 'unclosed sockets' If 'unclosed sockets' was a

AJP13 and Mod jk security

2006-04-18 Thread lmk
Hi; how to secure communication between apache web server and servlet engine..?? thanks -- View this message in context: http://www.nabble.com/AJP13-and-Mod-jk-security-t1467202.html#a3965323 Sent from the Tomcat - User forum at Nabble.com.

RE: AJP13 and Mod jk security

2006-04-18 Thread Tim Lucia
http://marc.theaimsgroup.com/?l=tomcat-userm=113980330229468w=2 (the short answer is basically you don't use Tomcat -- you use networking infrastructure) Tim -Original Message- From: lmk [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 6:08 AM To: users@tomcat.apache.org

JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Hi, I have setup 2 Tomcats on the same machine fronted by IIS, and used a sticky_session=1 JK (1.2.15) load-balanced setup (as printed at the foot of this email) I setup a JSP on both Tomcats that outputs the session ID. With only 1 Tomcat started, making requests to the JSP results in the same

Re: File download error in IE with mod_jk

2006-04-18 Thread Tim Funk
IIRC, its an IE setting. It has to do with tomcat probably sending a no-cache (like) header while in HTTPS. HTTPS + nocache + IE == weird issues. I can't recall the resolution. But google searching: https Internet explorer download will probably get you int he right directions. There are

Re: what about a server specific web.xml tailoring?

2006-04-18 Thread Tim Funk
No. But if I were you - I would write an Ant task which 1) unpacked the war 2) copied the original web.xml to a backup name (for reference) 3) injected the security constraint 4) repackage the war Or you can create a Valve which does the additional constraints. -Tim Rolf Schumacher wrote:

Re: AJP13 and Mod jk security

2006-04-18 Thread Tim Funk
The easiest way is to rely on you network admins to ensure no one is eavesdropping. But sometimes that isn't possible. The next easiest way to use an ssh tunnel between tomcat and apache. You need google for the specifics. But from your apache servers - if you have one tomcat - you'd probably

Re: what about a server specific web.xml tailoring?

2006-04-18 Thread David Smith
I would say no. This is an issue for build management, not tomcat. May I suggest you put together a short script that explodes the war, replaces the web.xml, and then re-zips the webapp back to a war. The whole thing could easily be done with a shell script or batch file - don't even need

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Hi Edgar, Yep I just noticed that too :)) However, correcting this configuration (to the below) does nothing to resolve the issue, because the lb worker type by default has sticky_session=1. I set it explicitly anyway as below. However, I have noticed that in fact Tomcat 2 is not returning

RE: Re: Directory listing... what happened ?

2006-04-18 Thread GB Developer
ask in an ubuntu-related forum for help on permanently disabling your apache server, or, connect your apache server to tomcat with mod_jk. If you're unsure of how to do the first, you probably will feel more pain trying the second (so do that first thing). -Original Message- From:

RE: Post request to 'j_security_check' after tomcat restart or se ssio n timeout produces error 400

2006-04-18 Thread Amol Upadhye
Anybody know about the problem I have as described in below email? Thanks, Amol -Original Message- From: Amol Upadhye [mailto:[EMAIL PROTECTED] Sent: Thursday, April 13, 2006 2:25 PM To: users@tomcat.apache.org Subject: Post request to 'j_security_check' after tomcat restart or sessio n

Re: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Rainer Jung
Hi, 1) If you want to use a mod_jk lb worker with sticky sessions, you need three ingrediants: a) configured lb worker with sticky_session (default is 1=on) and a corresponding JkMount to this lb worker b) tomcat instances with unique jvmRoute settings in server.xml (the jvmRoute gives

Re: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Reinhard Moosauer
Hi, please do not mix up the tomcat cluster and apache load balancing. Sticky session means that tomcat2 is not used at all in your configuration. Only tomcat1, which created the cookie. When tomcat2 creates no session, the browser gets none and the lb-worker cannot work also. Maybe your

Re: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Edgar Alves
Hi again, When using two workers like that you must set the domain property for each of them for having mod_jk send the requests to the appropriate Tomcat instance. Add the following two lines to your workers properties file: worker.tomcat1.domain=tomcat1 worker.tomcat2.domain=tomcat2

Tinyca certificates

2006-04-18 Thread Damian Igbe
Please, has anybody use 'tinyca' to generate certificates for Tomcat 5?I did the configuration but browser complains that 'Mozila and localhost cannot communicate securely because they have no common encryption algorithms'. Using the keytool utility however, https works fine. Your help would be

Re: Making an LDAP connection available to a web application

2006-04-18 Thread Jason Beck
Hi Graham, I was also attempting this about 2 months ago with Active Directory and Tomcat 5.5.9. I got everything working about 70%. The problem that I ran into was that I did not setup any kind of connection pooling on the AD side of things. I have no control over the Windows side of the

RE: Re: Directory listing... what happened ?

2006-04-18 Thread Jonathan Pare
Thanks a lot. You guys are great. I found this tutorial on how to install AND connect tomcat to apache so here it is just in case it might help someone else: http://agiletesting.blogspot.com/2005/10/configuring-apache-2-and-tomcat-55.html From: [EMAIL PROTECTED] To: users@tomcat.apache.org

Re: Post request to 'j_security_check' after tomcat restart or se ssio n timeout produces error 400

2006-04-18 Thread David Delbecq
Hi, First, you must understand in form based login, access to the form should never be done directly, that's because the container can accept a form login only if before the user tried to access an area requiring authentification. In simple terms, you see the form because the container has

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Edgar, Reinhard and Rainer and Tim, I forgot to set jvmRoute in my server.xml ;) But seriously .. many many thanks for your time. I have set the domain property for each worker, and matched them to jvmRoute on the Engine element. This has resolved the issue where Tomcat 1 generates new session

min/maxSpareThreads not working with APR

2006-04-18 Thread Adam McFarren
When I run Tomcat 5.5 with APR the min/maxSpareThread attributes don't appear to be working. maxThreads works fine however. Here's the details: Versions: Tomcat 5.5.16 APR 1.2.6 Native Connector 1.1.2 Sun's JDK 1.5.0_06 RedHat AS3 With APR: server.xml: Connector port=4443

CMS and JAAS

2006-04-18 Thread Chapoor Chapoor
Hi, I m stucked in a security authentication/authorization issue, which I hope you have some advice for me. In simple words, I want to use the Web container security (for authorization) together with my own JAAS implementation (for authentication). How to achieve this ? I don't want to use the

Re: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Rainer Jung
domain: you don't need the domain attribute. Domai has the following purpose: Once you start replicating sessions between tomcats and you build up a huge group of tomcat instances and break it up into smaller groups which replicate, then you can use domain to tell lb, between which tomcat

Re: min/maxSpareThreads not working with APR

2006-04-18 Thread Peter Rossbach
I thing that is normal! Currently the APR Connector not implement a shrinking thread pool! The trick is: Implementation is easier and for a high load szenario the APR use a pooler buffer instead a a lot of new thread like the normal Java based connectors. s. APR Connector documentation or

ip instead of domainName

2006-04-18 Thread Thibaut
Hi I use tomcat 5.0.18 for a web app. The url should be the domain name but it become the IP wherever you navigate. My hosts in the server.xml are correctly configured i guess because i use the same conf for a other server (same tomcat version). I use the james server to receive and send

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Hi, Thanks for the suggestions, that has led to a solution I think. I used the EAL valve to log inbound and outbound cookies as you suggested. Valve className=org.apache.catalina.valves.ExtendedAccessLogValve directory=logs prefix=localhost_xaccess_log. suffix=.txt pattern=cs(Cookie)

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Lol, ok ok, it works. My stupid fault. The reason my JSP does not output the session ID is because the JSP on tomcat2 does not feature the output statement - I added that to tomcat1's copy only The shame. Thanks to all for the help. -Original Message- From: Allistair Crossley

Re: Relative Link Question

2006-04-18 Thread biai
Hi again, Thank you for all the tips. Some resolved my problems, but the appBase still gives me an error. I've read a lot about it but still does not work. In this latest version of testing I only have one Host and it looks like the following: Host name=server-netprof debug=1

Re: Relative Link Question

2006-04-18 Thread Marc Farrow
Have you tried to set your appBase to D:/Tomcat 5.5/webapps/netprof? sometimes back-slashes cause problems. On 4/18/06, biai [EMAIL PROTECTED] wrote: Hi again, Thank you for all the tips. Some resolved my problems, but the appBase still gives me an error. I've read a lot about it but still

Re: Relative Link Question

2006-04-18 Thread biai
Sorry, Did not work must be doing something else wrong -- View this message in context: http://www.nabble.com/Relative-Link-Question-t1452173.html#a3971693 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe,

Re: Relative Link Question

2006-04-18 Thread biai
Thanks, But I with the rewrite I can solve the problem, as you can see on the othe other posts. But I wanted to go one step forward and that is what I can not do, though I've read it is possible and simple. I want to omit the webapp name from the URL so that instead of accessing:

IP Masking

2006-04-18 Thread Carl Crawford
System: Tomcat 4.1 Using Tomcats HTTP server Windows 2003 Server Question: Tomcat is showing our IP address instead of our URL. If you type in www.siascend.com and load the page, the url changes to 84.40.31.164. Is there a setting in Tomcat to mask the IP with our url? Thanks, Carl Crawford

Re: IP Masking

2006-04-18 Thread David Smith
It appears your redirect page is responsible for that. If. I replace the IP with your domain name, everything appears to work and the domain name is retained when links are followed. How is your redirect code composing the URL? --David Carl Crawford wrote: System: Tomcat 4.1 Using

Question: TomCat 3.2

2006-04-18 Thread Shaban Ghumri
Hi, I would like to know based on your experience with TomCat, if there are tools that I can use to debug a potential memory leak on servlet running on TomCat 3.2? Thanks in advance! Shaban Ghumri

Re: Question: TomCat 3.2

2006-04-18 Thread Mark Thomas
Shaban Ghumri wrote: Hi, I would like to know based on your experience with TomCat, if there are tools that I can use to debug a potential memory leak on servlet running on TomCat 3.2? Try Googling for Java Profiler. There are a number of tools that could help with this. My personal favourite

authentication problem using manager URLs from a script

2006-04-18 Thread Garey Mills
Hello - I want to stop and start a context from a Java program running as a cron job. I have tried http://host:port/manager/stop? username=manager-role username password=password path=/context path (without the carriage returns, of course). This yields

Re: authentication problem using manager URLs from a script

2006-04-18 Thread Marc Farrow
You have to use the webdav application provide from tomcat. Check under $tomcat_home/webapps/webdav/web.xml. there is a line commented out that states some property of read-only = false. by default it is read-only and you have to manually turn it on. On 4/18/06, Garey Mills [EMAIL PROTECTED]

Re: authentication problem using manager URLs from a script

2006-04-18 Thread Mark Thomas
Marc Farrow wrote: You have to use the webdav application provide from tomcat. Check under $tomcat_home/webapps/webdav/web.xml. there is a line commented out that states some property of read-only = false. by default it is read-only and you have to manually turn it on. What on earth has

Re: authentication problem using manager URLs from a script

2006-04-18 Thread Garey Mills
Mark - I have looked at the manager app how-to, and it doesn't describe how connect from a script. I have this private static String stop = http://myhost:8080/manager/stop?path=/myapp;; public static void

Re: authentication problem using manager URLs from a script

2006-04-18 Thread Mark Thomas
Garey Mills wrote: Mark - I have looked at the manager app how-to, and it doesn't describe how connect from a script. I have this private static String stop = http://myhost:8080/manager/stop?path=/myapp;;

Re: servlet mapping request

2006-04-18 Thread Raymond P. Jones
Hello Mark on Tomcat Users. 1. Tomcat version is 5.5.9 2. Content of web.xml in (public_html/WEB-INF/web.xml within 'nbfcus' homedir) : ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

Re: authentication problem using manager URLs from a script

2006-04-18 Thread Garey Mills
Mark - Thanks for the pointers. I ended up picking up code from the Tomcat source of org.apache.catalina.ant.AbstractTask and using that to do Basic Authentication. I've got it working now. Garey Mills Library Systems Office UC Berkeley The brain is not where you think On Tue, 18 Apr

DBCP 1.1 minIdle parameter - does it work in Tomcat 4.1.18?

2006-04-18 Thread Richard Mixon
I'm (still) trying to figure out a problem with our connection pool locking up - all threads waiting for a connection from the DBCP pool, such as following from a thread dump: ... Thread-28 daemon prio=1 tid=0xac9dedc8 nid=0x5256 waiting for monitor entry [0xb0607000..0xb0608580] at

RE: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-18 Thread Scott Smith
OK. Everything is now working. Things I learned: 1. The Info message concerning servlet.jar is really an error message. Things simply don't work if you have a servlet.jar, servlet-api.jar or jsp-api.jar file in your WEB-INF/lib directory. This was most of my problem. 2. The docBase is not

tomcat, realms and tomcatAuthentication=false

2006-04-18 Thread George Payne
I'm trying to get tomcat to accept remote_user from apache via mod_jk, but still use an existing role-based realm implementation. If necessary, I am looking into modifying Tomcat to do this, but I'd really rather not reinvent this wheel if a) it's not necessary or b) if someone out there has

Re: DBCP 1.1 minIdle parameter - does it work in Tomcat 4.1.18?

2006-04-18 Thread Marc Farrow
This also possibly could be related to the use of the connections retrieved from the pool. On 4/18/06, Richard Mixon [EMAIL PROTECTED] wrote: I'm (still) trying to figure out a problem with our connection pool locking up - all threads waiting for a connection from the DBCP pool, such as

Re: Tomcat 5.5.16 configuration problem--THIRD RESEND

2006-04-18 Thread Marc Farrow
thanks for the recap. On 4/18/06, Scott Smith [EMAIL PROTECTED] wrote: OK. Everything is now working. Things I learned: 1. The Info message concerning servlet.jar is really an error message. Things simply don't work if you have a servlet.jar, servlet-api.jar or jsp-api.jar file in your

RE: DBCP 1.1 minIdle parameter - does it work in Tomcat 4.1.18?

2006-04-18 Thread Richard Mixon
Marc, thanks - but not sure what you mean by connections retrieved from the pool.. If I issue an MySQL SHOW PROCESSLIST it still just shows two connections for the datasource user, not the 10 I would expect given a value of 10 for minIdle. -Original Message- From: Marc Farrow