Apache2, Tomcat, and connectors

2006-09-11 Thread michael.r.jordan
I have separate web and app servers. They are both behind a firewall and I only have port 80 access to the web server and ssh to each of the servers. I'm attempting to set up a development environment where we can eventually add more app servers and add load balancing to provide an environment wh

high cpu load; memory use is fine.

2006-09-11 Thread atomi
I have a single servlet application and my server jumps up to 99+% cpu after only just a few users, i do 'service tomcat restart' and it drops to less than 5% cpu usage on a dual xeon server (shows up as 4 cpus in top). My question is: what tools are available to diognose the cpu load of the appl

Re: Persistent session after browser restart, cookie expiration

2006-09-11 Thread Dies Koper
Hello Heiko, I think you're looking for the following method: javax.servlet.http.Cookie#setMaxAge(int expiry) Its default value (see getMaxAge()) is -1 => the cookie persists until browser shutdown. Regards, Dies Heiko Klein wrote: Hi, I'm currently moving an web-application from custom-m

How to redirect to a jsp

2006-09-11 Thread Romain Quilici
Hi all, this question seems simple, but I did not figure out how to answer it. In my web.xml I have defined a default servlet. So it can handle requests that does not match other servlets pattern. DefaultServlet / Then in my DefaultServlet, I want to redirect to a jsp page, so

Log analysis with Apache, mod_jk and 2 Tomcat instances

2006-09-11 Thread Frank Niedermann
Hello, for a project I had to set up an environment with Apache2, mod_jk and 2 Tomcat instances. Apache2 / mod_jk will route requests to Tomcat1 and Tomcat2 (load balancing). How can I install a log analysis tool like AWstats into this environment? I mean which log files should I use, Apache2-lo

HowTo question: Setting java system properties in web.xml?

2006-09-11 Thread Bryce Nesbitt
Hi all; This is a question about setting java system properties, especially in web.xml. I have a legacy application that reads Java system properties: System.getProperty("com.foo.timezone") Which were once on the command line: JAVA_OPTS="-Dcom.foo.timezone=America/Los_Angeles" Or in resi

RE: connection pooling question (posted correctly)

2006-09-11 Thread Caldarale, Charles R
> From: Leonel [mailto:[EMAIL PROTECTED] > Subject: Re: connection pooling question (posted correctly) > > And the filename for the ROOT app ( / ) would beROOT.xml ? Yes, if you're putting your descriptors in the conf/localhost/Catalina directory. You can also put them in context.xml

RE: connection pooling question (posted correctly)

2006-09-11 Thread Darren Hall
> And the filename for the ROOT app ( / ) would beROOT.xml ? I don't know the answer, Lionel, but the logic seems to stand to reason. *wink* - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

RE: connection pooling question (posted correctly)

2006-09-11 Thread Darren Hall
Thanks David. The context element I'm using is taken directly from the examples. If you can tell just by looking, can you see if this looks correct for Tomcat 5.5 (otherwise I'll just use trial and error and web searching to figure it out). Thanks, Darren -Original Message- Fr

Re: connection pooling question (posted correctly)

2006-09-11 Thread Leonel
On 9/11/06, David Smith <[EMAIL PROTECTED]> wrote: META-INF is if you pack your web app to be a .war file. Create the file in conf/Catalina/localhost but name it after the webapp. If your webapp is in the folder foo in the webapps directory, the file would be foo.xml. Also be sure your instruct

Re: connection pooling question (posted correctly)

2006-09-11 Thread David Smith
META-INF is if you pack your web app to be a .war file. Create the file in conf/Catalina/localhost but name it after the webapp. If your webapp is in the folder foo in the webapps directory, the file would be foo.xml. Also be sure your instructions are for tomcat 5.5 as the way the JNDI resou

connection pooling question (posted correctly)

2006-09-11 Thread Darren Hall
Hi all. I'm using Oracle 10g with Tomcat 5.5 and Struts 1.2.9. I'd like to set up connection pooling for my application. I've read the Tomcat "HOW-TO" on setting up a JNDI Datasource for connection pooling, but one thing confuses me - In the how-to, it states "Configure the JNDI DataSource in Tom

Re: simple connection pooling

2006-09-11 Thread Mark Thomas
Darren Hall wrote: > Hi all. > I'm using Oracle 10g with Tomcat 5.5 and Struts 1.2.9. When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used

Re: Putting tomcat on Mainframe running z/OS

2006-09-11 Thread Eric Haszlakiewicz
On Mon, Sep 11, 2006 at 02:26:24PM -0700, Kevin Mullin wrote: > >Does anyone have experience in porting tomcat (I'm using version >5.5.17) to a mainframe system that is running z/OS operating system >software? I'd appreciate getting any kind of 'heads up' information. >

simple connection pooling

2006-09-11 Thread Darren Hall
Hi all. I'm using Oracle 10g with Tomcat 5.5 and Struts 1.2.9. I'd like to set up connection pooling for my application. I've read the Tomcat "HOW-TO" on setting up a JNDI Datasource for connection pooling, but one thing confuses me - In the how-to, it states "Configure the JNDI DataSource in Tomc

Problem setting up Application-managed DataSource???

2006-09-11 Thread Mark Barnes
I just cannot seem to get an Application-managed DataSource to work! I am using Tomcat 5.5.17 on JDK 1.5.0_07 on Red Hat Linux. I have done what I think is required in the context.xml and the web.xml files for my application to enable an Application-managed DataSource, and have done what is r

RE: moving to linux

2006-09-11 Thread Tracy Nelson
I'd also recommend you take a look at Solaris. It's free-as-in-beer now, and has good performance. You could also run it on your IBM hardware if you wind up getting a new AIX box. --- Tracy Nelson / Nelnet Business Solutions 402 / 617-9449 | -Original Message- | From: Asensio, Rodrigo [

Re: moving to linux

2006-09-11 Thread Andrew Miehs
Hi Rodrigo, How long is a piece of string? The 'Brand' of linux only really makes a difference for administration purposes. Performance will be about the same on all, depending mainly on which version of the kernel you are running. Should you decide to go Linux, I would look at something w

Putting tomcat on Mainframe running z/OS

2006-09-11 Thread Kevin Mullin
Does anyone have experience in porting tomcat (I'm using version 5.5.17) to a mainframe system that is running z/OS operating system software?  I'd appreciate getting any kind of 'heads up' information.  I'm just in the process of downloading it and putting it there, but if anyone has experience d

Re: using Tomcat as template engine

2006-09-11 Thread Mikolaj Rydzewski
Juergen Weber wrote: can you use Tomcat as a template engine that can be called from a standalone Java program? It would be nice to do something like Writer out = ... request.setAttribute("user", "Juergen"); callTomcat(out,request,"mytemplate.jsp"); If not, should I enter an enhancement Bug?

Re: moving to linux

2006-09-11 Thread Bruno Georges
Asensio I think that there are a lot of think to take into consideration before choosing your production platform. For example, what type of document are you serving (ratio static/dynamic). What is the usage pattern. Available bandwith. SLA. Concurrent connections. And so on.. If you want profess

Re: moving to linux

2006-09-11 Thread Leon Rosenberg
On 9/11/06, Asensio, Rodrigo <[EMAIL PROTECTED]> wrote: CentOS & Debian with tomcat, how many users are you handling ? Here with 350 logged users our Win2003-Serv is suffering a lot all the time. I really want to know the capacity of tomcat handling lot of sessions concurrently. depends on you

RE: moving to linux

2006-09-11 Thread Caldarale, Charles R
> From: iñaki iñaki [mailto:[EMAIL PROTECTED] > Subject: Re: moving to linux > > We have two tomcats with frontend´s in apache on solaris and > at the moment is all right... Do you know more problems? The original question was concerned with one instance of Tomcat, not load balancing two insta

Re: moving to linux

2006-09-11 Thread David Salisbury
the added complexity is negligable _if_ you're already running Apache. I disagree about any added path length. Also, if the machine you're running on is going to have Oracle loaded on it... it would be best to stay away from debian.. and stick with SuSe. my 2 cents, -ds - Original Messa

RE: moving to linux

2006-09-11 Thread Asensio, Rodrigo
CentOS & Debian with tomcat, how many users are you handling ? Here with 350 logged users our Win2003-Serv is suffering a lot all the time. I really want to know the capacity of tomcat handling lot of sessions concurrently. Thanks. R -Original Message- From: Leonel [mailto:[EMAIL PROTECT

Re: moving to linux

2006-09-11 Thread iñaki iñaki
We have two tomcats with frontend´s in apache on solaris and at the moment is all right... Do you know more problems? Iñaki On 9/11/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: iñaki iñaki [mailto:[EMAIL PROTECTED] > Subject: Re: moving to linux > > Hi, why an apache in front d

RE: moving to linux

2006-09-11 Thread Caldarale, Charles R
> From: iñaki iñaki [mailto:[EMAIL PROTECTED] > Subject: Re: moving to linux > > Hi, why an apache in front doesn´t good? Because you'd be adding path length and complexity, which is hardly a way to improve performance. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE P

Re: moving to linux

2006-09-11 Thread Leonel
On 9/11/06, John Hinton <[EMAIL PROTECTED]> wrote: Leon Rosenberg wrote: > Hello, > > if performance is your goal bringing an apache in front won't do you > any good. > Fedora is probably as good as anything else, although i think it's a > workstation distribution. For servers I prefer debian. >

Re: moving to linux

2006-09-11 Thread iñaki iñaki
Hi, why an apache in front doesn´t good? Regards On 9/11/06, Asensio, Rodrigo <[EMAIL PROTECTED]> wrote: I read that the only difference between fedora and RH enterprise is support and serveral packages. I'm not very familiar with linux, thatz why I decided use fedora right now. Maybe debian i

Re: moving to linux

2006-09-11 Thread John Hinton
Leon Rosenberg wrote: Hello, if performance is your goal bringing an apache in front won't do you any good. Fedora is probably as good as anything else, although i think it's a workstation distribution. For servers I prefer debian. regards Leon Agreed... If you like cutting edge, go Fedora

RE: moving to linux

2006-09-11 Thread Asensio, Rodrigo
I read that the only difference between fedora and RH enterprise is support and serveral packages. I'm not very familiar with linux, thatz why I decided use fedora right now. Maybe debian is better, but these days I feel more comfortable with Fed. Thanks for the tip. -Original Message- Fr

Re: moving to linux

2006-09-11 Thread Leon Rosenberg
Hello, if performance is your goal bringing an apache in front won't do you any good. Fedora is probably as good as anything else, although i think it's a workstation distribution. For servers I prefer debian. regards Leon On 9/11/06, Asensio, Rodrigo <[EMAIL PROTECTED]> wrote: Hello, since To

moving to linux

2006-09-11 Thread Asensio, Rodrigo
Hello, since Tomcat on Windows Server 2003 is not satisfying the expected performance whe are thinking about to move to Linux. Fedora Core 5 more precicesly. I would like to know what is the better combination, Tomcat as webserver or Apache with Tomcat as mod to execute java. Also, there is the

Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread David Smith
See the Commons-Daemon project: http://jakarta.apache.org/commons/daemon --David Steve R Burrus wrote: I am sorry but I need to know what exactly this jsvc technolology is?? I have frankly never heard of it ever before. I await your anticipated response. Greg Johnson wrote: If I put Apach

RE: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Caldarale, Charles R
> From: Steve R Burrus [mailto:[EMAIL PROTECTED] > Subject: Re: jsvc + Tomcat vs Apache + Tomcat > > I am sorry but I need to know what exactly this jsvc > technolology is?? Google is your friend (you should try it sometime). The first reference returned: http://jakarta.apache.org/commons/daem

Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Steve R Burrus
I am sorry but I need to know what exactly this jsvc technolology is?? I have frankly never heard of it ever before. I await your anticipated response. Greg Johnson wrote: If I put Apache in front of Tomcat, can I run Tomcat on port 8080, yet have Apache serve the content on port 80? My pro

BASIC + CLIENT-CERT authentication

2006-09-11 Thread Leandro Pfleger de Aguiar
Hi I know that Servlet specification 2.4 present four maners to authenticate users (in a CMS way to do this): basic, digest, form or client-cert. What i need is to provide a way to authenticate users by passwords or client certificates at the same time. If a user has a certificate he can us

Re: Persistent session after browser restart, cookie expiration

2006-09-11 Thread Marc Richards
Could be wrong, but it doesn't sound like you really want to use sessions for this usage because session attributes are stored in memory in Tomcat (unless you're using a backup manager). In time, you will have many sessions and cap your physical memory. It sounds like you just need to use a regul

Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Hassan Schroeder
On 9/11/06, Greg Johnson <[EMAIL PROTECTED]> wrote: My production web server is currently running standalone Tomcat on Linux. I chose to use jsvc to serve the content on port 80. You could use iptables to "re-route" port 80 traffic to Tomcat running on a non-privileged port e.g. 8080... -- H

Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread David Smith
Greg Johnson wrote: If I put Apache in front of Tomcat, can I run Tomcat on port 8080, yet have Apache serve the content on port 80? My production web server is currently running standalone Tomcat on Linux. I chose to use jsvc to serve the content on port 80. For the most part, jsvc works, b

using Tomcat as template engine

2006-09-11 Thread Juergen Weber
Hi, can you use Tomcat as a template engine that can be called from a standalone Java program? It would be nice to do something like Writer out = ... request.setAttribute("user", "Juergen"); callTomcat(out,request,"mytemplate.jsp"); If not, should I enter an enhancement Bug? Thanks, Juergen

jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Greg Johnson
If I put Apache in front of Tomcat, can I run Tomcat on port 8080, yet have Apache serve the content on port 80? My production web server is currently running standalone Tomcat on Linux. I chose to use jsvc to serve the content on port 80. For the most part, jsvc works, but it has a few problems

Re: filter or valve to trap successful login?

2006-09-11 Thread David Delbecq
Put a filter on your application, in this filter, check if there is currently a principal, if yes, check if there is already your bean in the session. If not, create it. Then forward to the next of filter chain. As you are in a filter, you will be notified before the servelt / JSP requested by user

filter or valve to trap successful login?

2006-09-11 Thread Jon Yeargers
Im working with a JNDI realm to control access to a site. I need to be able to 'trap' a successful login to any one of the pages in the site so that I can create a session bean with login information. Is it possible to tie a filter or valve to the login process and get the information *before*

Re: configuration setting to disable URL sessions?

2006-09-11 Thread Chetan Sabnis
Or, you could write a filter that checks request.isRequestedSessionIdFromURL() and invalidates the session if it is. btw, if there is a cookie set, that overrides anything provided in the url. eric This is what I ended up doing. Thanks. -

Re: Error: No available certificate or key corresponds to the SSL cipher suites which are enabled.

2006-09-11 Thread Jeanna Geier
Hi Bill- Thanks for replying. keytool -list says: C:\Program Files\Java\jdk1.5.0_06\bin>keytool -list -keystore "C:\Documents and Settings\HP_Administrator\.keystore Enter keystore password: changeit Keystore type: jks Keystore provider: SUN Your keystore contains 2 entries root, Sep 11

Re: JNDI, Hibernate, Tomcat

2006-09-11 Thread Andrew Stepanenko
hello, we have a working tomcat + hibernate setup in our project. What error do you get? Post some logs. Regards, -- Andrew Stepanenko, Software engineer, Ukrainian-Dutch Faculty of Economics and Management Ternopil State Economic University Shevchenko Street 9, Office 24-25 Ternopil, 46000 UKRA

Re: Performance monitoring for web applications

2006-09-11 Thread Michele Mazzucco
You could also try this tool (I haven't used it): http://www.hyperic.com/products/ It uses this library http://www.hyperic.com/products/sigar.html which can be downloaded from Sourceforge. Michele Michael Echerer wrote: > Shimol Shah wrote: > Hi, >> Hi, >> >> I am trying to look for a way to pr

Re: Error while converting tomcat container from http to https

2006-09-11 Thread annlee
Hi Keyur, I've just tried this out and it works. You should add the SSLImplementation="org.apache.tomcat.util.net.jsse.JSSEImplementation" in Connector tag in server.xml file that resides under $CATALINA_HOME/conf directory. So, it should look like this in server.xml Change the keystoreFile a

Re: UserTransaction, JOTM and Tomcat 5.5.x

2006-09-11 Thread Ignacio de Córdoba
Hi there, I am trying to follow docs in these messages to implement transaction support in my stand alone Tomcat 5.5.17, but not to use it with JDBC but with a remote JBoss server. I get a "comp not bound" error: Caused by: javax.naming.NameNotFoundException: comp not bound at org.jnp.ser

RE: stopping a tomcat web application

2006-09-11 Thread asaf.lahav
Hi Martin, AFAIK, the API you are referring to stopps the entire tomcat. What I'm looking for is a way to start/stop one of many web applications which are running under tomcat 5.5 Thanks in advance, Asaf -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Sunday, Se

is it mandatory to have 3 tables in JDBCRealm database ..

2006-09-11 Thread legolas
Hi Thank you for reading my post is it manedatory to have 3 tables like users , roles , user_roles in a tomcat jdbcRealm ? can we use one table and do all mapping for one table in server.xml ? my users has no more than one role so i do not need to have user_role and roles tables. i just change a u

Re: How to disable search machines?

2006-09-11 Thread Santosh Puranshettiwar
There is a robot.txt standard followed by web servers and search engines which specifies if a search agent can / cannot index files on a server. Zsolt wrote: Hi, I see that google and msn searches on our pages (tomcat-5.5.17). How can I disable that? Zsolt

Re: How to disable search machines?

2006-09-11 Thread Bob Hall
--- Zsolt <[EMAIL PROTECTED]> wrote: > Hi, > > I see that google and msn searches on our pages > (tomcat-5.5.17). How can I > disable that? > > Zsolt > Zsolt, See "go away" example on - Bob __ Do Y