Re: tomcat connector through cgi-bin?

2007-03-07 Thread Pid
Jacob Rhoden wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob, Jacob Rhoden wrote: Hi, Has anyone here ever had to use a cgi-bin directory to try and connect to tomcat? ie, some script that when run under cgi-bin, connects and forwards the info to

Re: deploying without a context?

2007-03-07 Thread Pid
Donal Roantree wrote: Hi. Sorry this seems so simple but I've been tearing my hair out. I want to have my Tomcat application deployed to /AAA/BBB/CCC and browseable at www.ABC.com. In the server.xml file I have a Host tag but I don't know what I should put into the Context tag. I've been

RE: Named based virtual host redirection

2007-03-07 Thread Darren Kukulka
Hassan, All the static content is served by Tomcat anyway...i.e - there is no content on the Apache web server. How is the mod_proxy_ajp used? The doco on Apache org refers to it in a developer sense, rather than as a web server directive. -Original Message- From: Hassan Schroeder

Re: Advanced mod_jk router configuration

2007-03-07 Thread Sriram Narayanan
On 2/28/07, Rainer Jung [EMAIL PROTECTED] wrote: worker 1 and worker2 distance=0 worker 3 distance=1 Thank you very much. This worked for us very well. Regards, Rainer -- Sriram - To start a new topic, e-mail:

Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread Gerald Holl
Hello, JSTL is not working on Tomcat 6, the JSTL specific code never gets executed. Consider the following JSP page fragment: c:forEach var=it items=#{bean.list} h:inputText id=ipt value=#{it.name}/ /c:forEach The list property is a simple java.util.List. A Object[] is not working too. In

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread David Delbecq
Please provide the full jsp please. Side note: JSF and non-JSF tags do not mix very well. En l'instant précis du 07/03/07 11:14, Gerald Holl s'exprimait en ces termes: Hello, JSTL is not working on Tomcat 6, the JSTL specific code never gets executed. Consider the following JSP page

Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Sriram Narayanan
Hi all: I'd posted sometime ago seeking help for a particular requirement. Rainer Jung replied to my post. The thread is here http://thread.gmane.org/gmane.comp.jakarta.tomcat.user/144823 Requirement: 1. Host an application on two tomcat instances. 2. Enable load balancing between these two

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This will work if you are only using 1 Apache HTTPD server Regards Andrew On 07/03/2007, at 11:27 AM, Sriram Narayanan wrote: I'd posted sometime ago seeking help for a particular requirement. Rainer Jung replied to my post. The thread is here

Re: Named based virtual host redirection

2007-03-07 Thread Pid
Darren Kukulka wrote: Hassan, All the static content is served by Tomcat anyway...i.e - there is no content on the Apache web server. How is the mod_proxy_ajp used? The doco on Apache org refers to it in a developer sense, rather than as a web server directive. the pertinent info is

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread Gerald Holl
David Delbecq wrote: Please provide the full jsp please. Side note: JSF and non-JSF tags do not mix very well. Here is the full JSP page: %@ taglib uri=http://java.sun.com/jsf/html; prefix=h% %@ taglib uri=http://java.sun.com/jsf/core; prefix=f% %@ taglib prefix=c

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Sriram Narayanan
On 3/7/07, Andrew Miehs [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This will work if you are only using 1 Apache HTTPD server Are you referring to the following ? Two httpd servers with mod_jk pointing to the same two tomcat instances. httpdA and mod_jkA have a

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread Per Jonsson
There is a newer version of the jsf implementation at: https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=7028expandFolder=7028folderID=0 Probably not that but worth checking. I also read someware that the 1.2 implementation (or parts of it) require a valid web.xml with

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread David Delbecq
En l'instant précis du 07/03/07 12:04, Gerald Holl s'exprimait en ces termes: David Delbecq wrote: Please provide the full jsp please. Side note: JSF and non-JSF tags do not mix very well. c:forEach items=#{handler.fields} var=it h:inputText id=fieldPercent value=#{it.percentValue}/

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/03/2007, at 12:58 PM, Sriram Narayanan wrote: On 3/7/07, Andrew Miehs [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This will work if you are only using 1 Apache HTTPD server Are you referring to the following ?

Tomcat 5.5 with java 1.4.2...

2007-03-07 Thread JT Neville
I've googled and read the release notes included with the 1.4.2 tomcat download. It references the running.txt doc for more info on doing this. I can't find thiat document or reference in the TC doc's or by googling the issue/searching the tomcat forum. Does anyone have a pointer to what the

getting context path name

2007-03-07 Thread santhoshihrd
Hi all, I have an issue I have a context nemed demo with the following configuration Context path=/demo docBase=webapps/MyWebApp.war debug=0 privileged=true /Context I want to get the context name demo in a servlet . I am using Spring framework. It will be more usefule if I get it

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread Gerald Holl
David Delbecq wrote: En l'instant précis du 07/03/07 12:04, Gerald Holl s'exprimait en ces termes: David Delbecq wrote: Please provide the full jsp please. Side note: JSF and non-JSF tags do not mix very well. c:forEach items=#{handler.fields} var=it h:inputText id=fieldPercent

Re: Tomcat 5.5 with java 1.4.2...

2007-03-07 Thread Markus Schönhaber
JT Neville wrote: I've googled and read the release notes included with the 1.4.2 tomcat download. It references the running.txt doc for more info on doing this. I can't find thiat document or reference in the TC doc's or by googling the issue/searching the tomcat forum. RUNNING.txt should

Re: Tomcat 5.5 with java 1.4.2...

2007-03-07 Thread Pid
JT Neville wrote: I've googled and read the release notes included with the 1.4.2 tomcat download. It references the running.txt doc for more info on doing this. I can't find thiat document or reference in the TC doc's or by googling the issue/searching the tomcat forum. RUNNING.txt is in

Cannot create resource instance

2007-03-07 Thread Natasha N Wright
Hi, I am trying to create a servlet which connects to a oracle database. My servlet is called from an HTML form. When it is called i recieve a javax naming exception Cannot create resource instance error. Please can someone advise me what I need to configure? I get no tomcat errors on

More domains

2007-03-07 Thread Marcell Kiss-Toth
Hi all, I'm new to Tomcat (version 5.5) and having a Windows Server 2003. Currently the Tomcat runs on port 8080. How can I host multiply domains with Tomcat? I've only done it before with Apache 2. For example, I have www.homedomain.com and I'd like to have the following: *

Re: Cannot create resource instance

2007-03-07 Thread David Smith
Before we can offer any relevant advice, please let us know which version of tomcat you are working with. There are configuration differences between 5.0.x and 5.5.x. --David Natasha N Wright wrote: Hi, I am trying to create a servlet which connects to a oracle database. My servlet is

Re: More domains

2007-03-07 Thread rmarra
I guess this part should be handled by Apache using the connector with Tomcat. But since Im a newbie either, somebody else for sure can help you better. Regards Roberto - To start a new topic, e-mail: users@tomcat.apache.org

Re: Cannot create resource instance

2007-03-07 Thread Natasha N Wright
I am using Tomcat version 4. with JDK 1.4 (quite old i know!) David Smith wrote: Before we can offer any relevant advice, please let us know which version of tomcat you are working with. There are configuration differences between 5.0.x and 5.5.x. --David Natasha N Wright wrote: Hi, I

RE: More domains

2007-03-07 Thread Caldarale, Charles R
From: Marcell Kiss-Toth [mailto:[EMAIL PROTECTED] Subject: More domains Currently the Tomcat runs on port 8080. How can I host multiply domains with Tomcat? Use one Host element for each domain. They will all share the same Connector elements, since they're all part of the same Engine.

Re: tomcat connector through cgi-bin?

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob, Jacob Rhoden wrote: What is your environment? Perhaps we can come up with a better solution. Its a system where we have no permission on any files except user home directories and the cgi-bin directory. So we can run tomcat as a

Re: getting context path name

2007-03-07 Thread David Smith
request.getContextPath() should supply what you need. If the webapp is the ROOT webapp, it will return an empty string. That just makes it easy to write stuff like: img src=${pageContext.request.contextPath}/images/myMasthead.jpg / If you really need the ROOT webapp to return /, then you'll

Console Logging

2007-03-07 Thread Peter Kennard
I have been looking about :) I have a simple tomcat instance with one webapp in it. I want to turn on high level - type logging to the console for internal debugging messages so I know what is happening. I gather I have to put a log4j.properties file in common/classes I put one I

Re: More domains

2007-03-07 Thread Pid
Marcell Kiss-Toth wrote: Hi all, I'm new to Tomcat (version 5.5) and having a Windows Server 2003. Currently the Tomcat runs on port 8080. How can I host multiply domains with Tomcat? I've only done it before with Apache 2. For example, I have www.homedomain.com and I'd like to have the

Re: Tomcat 5.5 with java 1.4.2...

2007-03-07 Thread JT Neville
Thanks that helped a lot. Please don't shoot the messenger as someone else chose the server OS, but I notice the Windows Service Installer download contains everything but the running.txt file. I've downloaded just the zip file and grabbed running.txt now. Thanks again Markus. -Original

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: This will work if you are only using 1 Apache HTTPD server Really? It looks like it would work to me. Sure, the separate mod_jks don't know each other's status, but it doesn't matter as they will quickly find out the

Re: Cannot create resource instance

2007-03-07 Thread David Smith
Then I would point you to http://tomcat.apache.org/tomcat-4.1-doc/jndi-resources-howto.html and http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html for some excellent information on setting up this stuff. I don't think you have to spec a resource factory as the

Retrieve list of all sessions

2007-03-07 Thread Glen Vermeylen
Hello all, I've created a management screen which lists all currently logged in users. This list is kept as a hashmap and is kept in sync with reality in the following way: At login-time I put the sessions in a list. A sessionlistener removes any sessions from this map when sessionDestroyed()

RE: Retrieve list of all sessions

2007-03-07 Thread Caldarale, Charles R
From: Glen Vermeylen [mailto:[EMAIL PROTECTED] Subject: Retrieve list of all sessions I've created a management screen which lists all currently logged in users. This list is kept as a hashmap and is kept in sync with reality in the following way: A HashMap is unsynchronized; does your

Re: Console Logging

2007-03-07 Thread Peter Kennard
I did what it says here http://minaret.biz/tips/log4j.html but no results. I havn't found other decent instructions yet. PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

Apache handling HTTPS forwards to Tomcat HTTP, Tomcat HTTP redirects to HTTPS, loop.

2007-03-07 Thread Mike Grandmaison
I found out the specific cause of my problem and now I am looking at solutions. The easiest is to take apache out of the equation and have tomcat handle the ssl. I am on a hosted shared server and I think the reason apache is handling the ssl is to take the computational load of encryption

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread David Delbecq
En l'instant précis du 07/03/07 14:43, Gerald Holl s'exprimait en ces termes: David Delbecq wrote: En l'instant précis du 07/03/07 12:04, Gerald Holl s'exprimait en ces termes: David Delbecq wrote: Please provide the full jsp please. Side note: JSF and non-JSF tags do not mix very well.

Help with exporting SSL certificate

2007-03-07 Thread Yerger, Chad
I purchased a chained *.SSL cert from Godaddy. I installed it successfully on my Tomcat Server(server #1). Now I need to export it and replace another Tomcat servers(server #2) self signed cert with the export from server #1. I tried doing the keytool export from server #1 and keytool import

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Christopher, Balancing the 2 Tomcats behind one Apache (with sticky sessions) works. Now you add a second Apache HTTPD. How do you choose which one of these gets used? You now have the original problem all over again... How do you load between

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: Balancing the 2 Tomcats behind one Apache (with sticky sessions) works. Now you add a second Apache HTTPD. How do you choose which one of these gets used? You now have the original problem all over again... How do

RE: Console Logging

2007-03-07 Thread Tim Lucia
I wrote an application which allows you to modify the running log4j configuration on the fly. It's a Struts app, and relies on the fact that tomcat and all the apps are running out of common/lib/log4j*.jar and common/classes/log4j.properties. However, you could add the servlet, jars, and

RE: Redirect question - SOLVED

2007-03-07 Thread Jean-Sebastien Pilon
Thanks, the connector did it for me. -Original Message- From: Caldarale, Charles R Sent: Tuesday, March 06, 2007 5:44 PM To: Tomcat Users List Subject: RE: Redirect question From: Jean-Sebastien Pilon Subject: Redirect question I wish to get rid of apache from the design,

Re: More domains

2007-03-07 Thread Marcell Kiss-Toth
Caldarale, Charles R wrote: From: Marcell Kiss-Toth [mailto:[EMAIL PROTECTED] Subject: More domains Currently the Tomcat runs on port 8080. How can I host multiply domains with Tomcat? Use one Host element for each domain. They will all share the same Connector elements, since they're

Re: how to set role for JAASRealm

2007-03-07 Thread olivier nouguier
Hi First of all, are you sure a JDBCRealm or a DataSourceRealm do not fill your needs ? Secondly, AFAIK when providing a Jaas module to the JaasRealm you just need to provide the authentication method (LoginModule inteface). You don't have to manipulate the loginContext, it is the JaasRealm job

Re: Help with exporting SSL certificate

2007-03-07 Thread Morris Jones
Yerger, Chad wrote: I purchased a chained *.SSL cert from Godaddy. I installed it successfully on my Tomcat Server(server #1). Now I need to export it and replace another Tomcat servers(server #2) self signed cert with the export from server #1. I tried doing the keytool export from server

Re: Console Logging

2007-03-07 Thread Peter Kennard
Thanks will check out after lunch. I definately want to use the log4j for our apps. I am assuming the Tomcat internals have very good debug log info like why sockets are closed or timed out etc (If I can get them activated :) I dread finding out it might be a windows sockets bug :| PK At

RE: Console Logging

2007-03-07 Thread Peter Kennard
That is interesting, Certainly for adminstration of many apps it would be great to have a good GUI for assigning log files to apps and log levels. but I can't even get any debug output yet, much less tweak it. Everyone warns about the volume of data when it's tured to 11, but: Where I am:

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Leon Rosenberg
On 3/7/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: Balancing the 2 Tomcats behind one Apache (with sticky sessions) works. Now you add a second Apache HTTPD. How do you choose which one of these gets used? You

Re: [Tomcat 5.5.20] How to use JAASRealm ?

2007-03-07 Thread olivier nouguier
hi, I can't figure out why you need to extend a JaasRealm ? This class lives in the server classloader, therein it cannot be and should definitivly never be accessed from your webapp. I think that you missunderstand the way to use the JaasRealm. Please look at my previous post (today) and tell me

Re: [Tomcat 5.5.20] How to use JAASRealm ?

2007-03-07 Thread olivier nouguier
Sorry for the double post: If you really need to use Jaas: 1: Write your own LoginModule (implementing java.security.auth.spi.LoginModule) 2: Write a jaas.conf description file (must be declared with - Djava.security.auth.config ) 3: The appName (TMSLogin) must reference a valid config in

Location to override global error-page

2007-03-07 Thread details
This seems basic, but apparently not. A similar question has been asked recently, and there are a few posts on the web, but the answers aren't enough to solve my problem. I am trying to override the global default error page by using directives such as error-page

Re: Root context setup

2007-03-07 Thread Jim Goodspeed
Thank you for the help - this works perfectly. I do notice that the war file gets expaned in the webapps directory in a sub-folder called ROOT. Should I delete the contents of this directory everytime I deploy a new war file? On 2/16/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: From:

help with mod_jk autoconfigure

2007-03-07 Thread Todd Nine
Hi all, I'm trying to get the mod_jk auto configuration to work. I have the following line in my conf/server.xml right after the Listeners that are declared in the default file. Here is what I have Listener classname=org.apache.jk.config.ApacheConfig modJk=/usr/lib/httpd/modules/mod_jk.so/

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: On 3/7/07, Christopher Schultz [EMAIL PROTECTED] wrote: Perhaps round-robin DNS? That's how I would do it, unless I wanted to buy a real load balancer like a BigIP. Ok, round-robin dns will work. But it will

RE: SSL on Tomcat 5 problem.

2007-03-07 Thread Hoa Doan
WOW!! It worked, all i did now was rename tcnative-1.dll. Yes I read the fine print but miss interpret it. I thought I was using JSSE since i used the keytool to generate my own key. So what i generated is a non-APR, but the guide didn't say anything about renaming tcnative-1.dll. But for

Is APR worth it (for me?)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Apologies for the pretty vague question, but I was wondering if looking at using APR is worth it for me. To answer that, you'll need to know a bit about my setup. I'm running Tomcat 5.5 on Linux, connected via mod_jk 1.2.21 to Apache httpd

RE: Is APR worth it (for me?)

2007-03-07 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Is APR worth it (for me?) However, the APR description page suggests that scalability is improved through the use of socket-polling The scalability is improved due to not having to keep a thread around for each persistent HTTP

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Hassan Schroeder
On 3/7/07, Christopher Schultz [EMAIL PROTECTED] wrote: Load balancing pretty much always comes down to either: 1. A single point of failure (Apache httpd, BigIP, or whatever). or 2. Non-100% reachability (for instance, due to one of the round-robin'd web servers going down). At which

RE: Root context setup

2007-03-07 Thread Caldarale, Charles R
From: Jim Goodspeed [mailto:[EMAIL PROTECTED] Subject: Re: Root context setup Should I delete the contents of this directory everytime I deploy a new war file? I don't really know if it's required, but I always do (or rather, the deployment script always does). - Chuck THIS

General mappings in Workers2.properties

2007-03-07 Thread DHARNA, AJAY [AG/1000]
Hi all, I am using apache 2.0.59 and tomcat 5.5.20. I would like to setup a general mapping in the workers2.properties file that will allow all contexts that are starting with foo go to a particular tomcat. So in my worker2.properties file, I have the following setup: [uri:/foo*] Those this

RE: SSL on Tomcat 5 problem.

2007-03-07 Thread Caldarale, Charles R
From: Hoa Doan [mailto:[EMAIL PROTECTED] Subject: RE: SSL on Tomcat 5 problem. But for curiosity what is tcnative-1.dll used for? It's essentially the same code that httpd uses to handle HTTP traffic, written in C. Since it's a bit closer to the comm hardware it provides somewhat better

Installing Apache Portable Runtime on Linux

2007-03-07 Thread DM
Hi, I'm tring to install the Apache Portable Runtime on Linux as per the instructions here: http://tomcat.apache.org/tomcat-6.0-doc/apr.html When I run configure I get the following output [EMAIL PROTECTED] native]# ./configure checking build system type... i686-pc-linux-gnu checking host

Re: Is APR worth it (for me?)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Is APR worth it (for me?) However, the APR description page suggests that scalability is improved through the use of socket-polling The

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Leon Rosenberg
On 3/7/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, In my opinion, Tomcat is the resource that needs to be load-balanced, since it's doing most of the work. You want to protect individual servers from being crushed under the weight

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 :-) We just had this discussion last week on the Debian ISP mailing list. Round Robin DNS is a nasty fix to this problem, and isn't guaranteed to work correctly. Either a real load balancer (like a BigIP) or some form of Linux HA are the

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/03/2007, at 7:47 PM, Leon Rosenberg wrote: On 3/7/07, Christopher Schultz [EMAIL PROTECTED] wrote: Perhaps round-robin DNS? That's how I would do it, unless I wanted to buy a real load balancer like a BigIP. Ok, round-robin dns will work.

RE: how to set role for JAASRealm

2007-03-07 Thread Page, Steve C.
Shahab- I am hardly an expert, but I have just created a custom principal. Here is what I learned. The RealmBase class is responsible for creating principals for the context. Normally, this is just a Principal class. Since I extended Principal, I also needed to extend BaseRealm. The realm class

RE: how to set role for JAASRealm

2007-03-07 Thread Caldarale, Charles R
From: Page, Steve C. [mailto:[EMAIL PROTECTED] Subject: RE: how to set role for JAASRealm Since I extended Principal, I also needed to extend BaseRealm. That doesn't necessarily follow. We're using custom Principal, RolePrincipal, and LoginModule classes with Tomcat's standard JAASRealm.

Re: Possible JSTL/EL bug in 6.0.10

2007-03-07 Thread Rémy Maucherat
On 3/7/07, David Delbecq [EMAIL PROTECTED] wrote: [1] unified EL refers to jsp 2.1 specifications, i was referring to 2.0 specifications. To ensure you are using 2.1 specifications, check mainly that - your taglib contains jsp-version2.1/jsp-version - your webapplication is properly configured

Re: Is APR worth it (for me?)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rémy, Rémy Maucherat wrote: The scalability improvement is twofold for AJP: - when running many Apache frontend servers (each with a sizeable number of workers), Tomcat would need a huge amount of AJP worker threads with the java.io connector

RE: Is APR worth it (for me?)

2007-03-07 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Is APR worth it (for me?) Makes sense. So, instead of a Java thread waiting in every single ajp connection, you're using one native listener thread waiting on a select(), right? It's sad that you can't do this in Java :( You

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: On 3/7/07, Christopher Schultz [EMAIL PROTECTED] wrote: Load balancing pretty much always comes down to either: 1. A single point of failure (Apache httpd, BigIP, or whatever). Loadbalancers usually come in pairs :-)

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: We just had this discussion last week on the Debian ISP mailing list. Round Robin DNS is a nasty fix to this problem, and isn't guaranteed to work correctly. Certainly not. But it's one way to /actually/ divide

RE: More domains

2007-03-07 Thread Caldarale, Charles R
From: Marcell Kiss-Toth [mailto:[EMAIL PROTECTED] Subject: Re: More domains The ROOT folder is the same as in the top ROOT folder. I don't really understand the above statement. What do you mean by top ROOT folder? The appBase settings for the two Host elements should be completely

Re: [OT] General mappings in Workers2.properties

2007-03-07 Thread fredk2
Hi, Workers2.properties was used for mod_jk2. This product is not maintained anymore. Use mod_jk which is actively maintained by some cool developer(s) :-) It is much better documented and featured. see http://tomcat.apache.org/connectors-doc/ Rgds, FredK -- View this message in context:

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew Miehs wrote: You may want to have a look at this http://homepages.tesco.net/J.deBoynePollard/FGA/dns-round-robin-is-useless.html No offense taken, but I wasn't (as the author of this piece asserts) claiming that R-R DNS is an

Kerberose+tomcat

2007-03-07 Thread Dhanunjay kumar
Hello All, i want to use Single Sign On for my application,to achive this i need to use kerberose. how to use krb5LoginModule. thanks for your understanding. Regards Kumar.

When webapps/ROOT does not exist the status code is 400 instead of 404, why?

2007-03-07 Thread fredk2
Hi, In Tomcat 5.5.16 - I forgot to define a context xml file for my application and got status error code 400 which was puzzling. After I added a ROOT subdirectory to my webapps directory I got the status code 404, which was less confusing. Questions: - I checked the http://tomcat.apache.org

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/03/2007, at 1:28 AM, Christopher Schultz wrote: Either a real load balancer (like a BigIP) or some form of Linux HA are the only real ways of dealing with this. I totally agree. A single BigIP is a single point of failure, though. R-R

Tomcat process on windows

2007-03-07 Thread Hernâni Cerqueira
Hello all, I have a little curiosity, that may seem trivial for some of you. I usually do my work on linux, but sometime I work on a laptop that runs windows, and because i do lots of application reloads using tomcat manager, i usually ran out of memory, and then it comes the PermGem space

Re: More domains

2007-03-07 Thread Marcell Kiss-Toth
From: Marcell Kiss-Toth [mailto:[EMAIL PROTECTED] Subject: Re: More domains The ROOT folder is the same as in the top ROOT folder. I don't really understand the above statement. What do you mean by top ROOT folder? The appBase settings for the two Host elements should be completely

Re: Console Logging

2007-03-07 Thread Peter Kennard
BTW found the bug it wasn't in tomcat ;^ but in the client :) In any case the logger info was very helpful! PK At 13:18 3/7/2007, you wrote: I did what it says here http://minaret.biz/tips/log4j.html but no results. I havn't found other decent instructions yet. PK try this one:

RE: Tomcat process on windows

2007-03-07 Thread Caldarale, Charles R
From: Hernâni Cerqueira [mailto:[EMAIL PROTECTED] Subject: Tomcat process on windows But the strange is that sometimes i got a tomcat5 and a tomcat5w process using the memory, and some other times i got a javaw process. The tomcat5 process is Tomcat running as a Windows service. The

Re: tomcat connector through cgi-bin?

2007-03-07 Thread Jacob Rhoden
Pid wrote: I'd suggest getting a new webserver then: 1) hosting is cheap, 2) you can configure the server to do what you really need it to do. There's little point in trying to force a cgi environment to forward requests into Tomcat, if your server doesn't support it. It's a false economy

Re: Location to override global error-page

2007-03-07 Thread Peter Kennard
I would actually LOVE to have errors directed to a servlet like interface to reply to the client. In my case we are going to be routing requests from a lot of mobile devices using a compressed form for traffic. PK At 14:05 3/7/2007, you wrote: This seems basic, but apparently not. A

Re: [OT] getting context path name

2007-03-07 Thread santhoshihrd
David, Many thanks. This was the sort of solution I was searching for. It is working fine Santhosh David Smith-2 wrote: request.getContextPath() should supply what you need. If the webapp is the ROOT webapp, it will return an empty string. That just makes it easy to write stuff

RE: More domains

2007-03-07 Thread Caldarale, Charles R
From: Marcell Kiss-Toth [mailto:[EMAIL PROTECTED] Subject: Re: More domains I mean that I copied the entire webapps\ROOT folder to webapps\mydomain.com\ROOT. Why did you pick that location when the appBase for the www.mydomain.com Host is together.hu? Your default app should be in

Re: Is APR worth it (for me?)

2007-03-07 Thread Peter Kennard
Doesn't AJP multiplex traffic, that is queued up requests are serialized through one connection that remains connected and it switches between servlets on the receiving end? and recycles the execution thread? At 19:19 3/7/2007, you wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rémy,

Re: Tomcat process on windows

2007-03-07 Thread Hernâni Cerqueira
Caldarale, Charles R escreveu: As far as I can tell, it is not used by any of the standard Tomcat scripts. Someone uses it ;-) ... But that isn't a problem. Thanks for a good ansewr to a silly question. Hernâni - To start

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Leon Rosenberg
On 3/8/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: On 3/7/07, Christopher Schultz [EMAIL PROTECTED] wrote: Load balancing pretty much always comes down to either: 1. A single point of failure (Apache httpd,

Multiple Instances on one Machine

2007-03-07 Thread Rahul
I am using Tomcat 5.5 to run multiple instances of Tomcat (JVM) on one machine (localhost) using Eclipse. I have two webapps a and b with their respective web.xml files in $CATALINA_HOME\webapps\WEB-INF. I have two server.xml files (server-a.xml and server-b.xml), one for each webapp with

Re: Is APR worth it (for me?)

2007-03-07 Thread Rainer Jung
Peter Kennard wrote: Doesn't AJP multiplex traffic, that is queued up requests are serialized through one connection that remains connected and it switches between servlets on the receiving end? and recycles the execution thread? No multiplexing on connections. Regards, Rainer At 19:19

Re: Is APR worth it (for me?)

2007-03-07 Thread Bill Barker
Christopher Schultz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Is APR worth it (for me?) However, the APR description page