Re: rotating catalina.out using log4j

2008-02-11 Thread David Delbecq
catalina.out is just the sink for System.out and System.err, it's not managed by logging facilities. It's not even seen by jvm, as the redirection is done in the startup script (using the shell '>' redirector). If you configure a log4j logger for tomcat that uses an other file (see below our si

Re: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14

2008-02-11 Thread Dan D.
This worked perfectly. Thank you very much for your patience and help. - Original Message - From: "Caldarale, Charles R" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, February 11, 2008 5:09 PM Subject: RE: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14 From: D

RE: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14

2008-02-11 Thread Caldarale, Charles R
> From: Dan D. [mailto:[EMAIL PROTECTED] > Subject: Re: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14 > > Would it work to then change the appBase to > "/home/user/html/ROOT", or would > it be better to have a secondary directory > (/home/user/html/webapps) with a > ROOT directory

Re: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14

2008-02-11 Thread Dan D.
Since it's the declared appBase, *any* directories immediately under it are going to be treated as webapps, and will create entries in Tomcat's work directory. conf/Catalina/www.domain.com doesn't have any xml files, so that isn't it. However, /home/user/html is the users home directory, so is

RE: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14

2008-02-11 Thread Caldarale, Charles R
> From: Dan D. [mailto:[EMAIL PROTECTED] > Subject: Re: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14 > > I added a ROOT directory in /home/user/html, with a META-INF > and WEB-INF directory in it. > > When starting tomcat, however, the work directory is still full of > directories

Re: Out of Memory Errors when upgrading from 5.0.27 to 6.0.14

2008-02-11 Thread Dan D.
Chuck, I updated the server.xml for this user to be: domain.com className='org.apache.catalina.authenticator.SingleSignOn' debug='0'/> className='org.apache.catal

RE: Changing the webapp classpath

2008-02-11 Thread Caldarale, Charles R
> From: Dalia,Keith A - TO-DITT1 [mailto:[EMAIL PROTECTED] > Subject: RE: Changing the webapp classpath > > So, I would place the in the web.xml that ships with > my webapp? No, it would be in the element inside your webapp's META-INF/context.xml file. elements should never be placed in ser

RE: Changing the webapp classpath

2008-02-11 Thread Dalia,Keith A - TO-DITT1
So, I would place the in the web.xml that ships with my webapp? In the past I've only used the in the server.xml when defining virtual sites. Thanks. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 2:58 PM To: Tomcat Users List Su

RE: Changing the webapp classpath

2008-02-11 Thread Caldarale, Charles R
> From: "Dalia,Keith A - TO-DITT1" <[EMAIL PROTECTED]> > Subject: Changing the webapp classpath > > I was wondering if there was a way to alter the default > webapps classpath. There's an undocumented capability within Tomcat that provides what you're asking for. (Since it's undocumented, I woul

Re: How to avoid session fixation?

2008-02-11 Thread david delbecq
Christopher Schultz a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: | I think this is worth submitting a security issue request on tracker, | to ask that, at least, the container links the requester IP to the | session. I'm pretty sure that nobody will want

Re: Changing the webapp classpath

2008-02-11 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --

Changing the webapp classpath

2008-02-11 Thread Dalia,Keith A - TO-DITT1
I was wondering if there was a way to alter the default webapps classpath. We use several different .jars in our deployments and would like to create a directory structure under the web_inf/lib directory. By default the webapps classloader only looks in web_inf/classes and web_inf/lib. Any help i

RE: [Eclipse-Tomcat] Problem by deploying from Eclipse to Tomcat

2008-02-11 Thread Thomas Chang
1. What Eclipse configuration will you know? I can show you. 2. " Launching Tomcat with the listener class loaded by the system classloader would be a simple way to cause this." How to avoid this? There is not enough detail about you

Re: how to auto redirect to https from http

2008-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave wrote: | The url is not changed when I point to | http://www.mydomain.com/login.html in browser. The .html is mapped to | servlet. I expected it to change to https:// I think David identified part of the problem: your XML is not set

Re: How to avoid session fixation?

2008-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: | I think this is worth submitting a security issue request on tracker, | to ask that, at least, the container links the requester IP to the | session. I'm pretty sure that nobody will want to do this -- at least not with

Re: Obtain a SocketChannel instead of OutputStream ?

2008-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: | I may need to make many such transfers to satisfy the request, so | sendfile doesnt seem like it will work. In this case, are you sure that HTTP is really the protocol for you? It's not too difficult to write a NIO-based re

Re: managing user uploads best practices

2008-02-11 Thread Alan Chaney
Totally agree with everything brien says below. I also run a web site with a large number of media objects. I've been involved in filing system and media projects for many years both in research and production capacity. The slight increase in complexity of the solution to maintain the media

How to configure Tomcat,Struts in eclipse ?

2008-02-11 Thread Muruli Krishnaiah
Hello, I am new to struts. can any one give me some tips or good links to configuring tomcat and struts in eclipse 3.0 . I have been trying to find some websits that can provide me the steps without much luck. Thanks in advance Murali

Re: Incorrect cookie value in tomcat5.5.26

2008-02-11 Thread Filip Hanik - Dev Lists
not broken, corrected. the java doc says setValue public void *setValue*(String newValue) Assigns a new value to a cookie after the cookie is created. If you use a binary value, you may want to use BASE64 encoding. W

Re: Incorrect cookie value in tomcat5.5.26

2008-02-11 Thread Filip Hanik - Dev Lists
we made a correction, if you read the javadoc, that is an invalid value for a v0 cookie. do a cookie.setVersion(1); Filip Sushil Vegad wrote: Hello, We upgraded to tomcat 5.5.26 from 5.0.28 and now its returning incorrect cookie value. We are setting user email/id in a cookie to remember

RE: Incorrect cookie value in tomcat5.5.26

2008-02-11 Thread Sushil Vegad
Thanks Konstantin for you prompt response. Is the solution identified? I don't find it anywhere on google. -Original Message- From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 11:25 AM To: Tomcat Users List Subject: Re: Incorrect cookie value in tomcat5.

rotating catalina.out using log4j

2008-02-11 Thread Amir Fadaghi
Hi, I am trying to implement the catalina.out log rotation in the development environment (for now and will implement to other environments once I figure this out) using log4j. I am running apache-tomcat version 5.5.25 and downloaded the apache-log4j-1.2.15 and commons-logging-1.1.1. I copied

Re: Incorrect cookie value in tomcat5.5.26

2008-02-11 Thread Konstantin Kolinko
I guess the cause is the same as for tomcat 6.0.16. See messages entitles "Cookies are broken in 6.0.16?". http://www.nabble.com/Cookies-are-broken-in-6.0.16--to15369118.html - To start a new topic, e-mail: users@tomcat.apache.or

Incorrect cookie value in tomcat5.5.26

2008-02-11 Thread Sushil Vegad
Hello, We upgraded to tomcat 5.5.26 from 5.0.28 and now its returning incorrect cookie value. We are setting user email/id in a cookie to remember the user, as follows Cookie cookie = new Cookie(Constants.COOKIE_NAME, "[EMAIL PROTECTED]"); On doing cookie.getValue(), tomcat 5.5.26 just re

Re: Tomcat 6/IIS 6 Connection Frustration

2008-02-11 Thread DJChaos
I think I solved my problem. For every context launched in Tomcat, I need to create a blank directory with the same name as the context. This has somehow stopped the 404.2 errors. I had put a directory in there for examples for a different exercise, and for some reason it works. I don't know

RE: Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

2008-02-11 Thread Caldarale, Charles R
> From: Brian Le [mailto:[EMAIL PROTECTED] > Subject: Re: Apache Tomcat takes 3 to 4 browser request > clicks to "wake up" after being idle for 1-2 hours > > Forgot to mention my box has 4gig of RAM. Is power management enabled? Are parts of your box shutting down during idle periods? - Chuc

Re: Can Tomcat support multiple SSL certificates for multiple domains?

2008-02-11 Thread Jan Mönnich
Ooops, my fault! I've read and replied too fast (maybe because it's Monday? :-)) Of course this shouldn't be done with *two domain names* only with two host names in the same domain... I suppose it won't work in actual browsers but if it does I let you all know... Sorry Jan Hassan Schroeder schri

Re: Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

2008-02-11 Thread Brian Le
Thank you Peter and Len, trying your advise right now. Forgot to mention my box has 4gig of RAM. - Original Message From: Peter Crowther <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Monday, February 11, 2008 8:55:21 AM Subject: RE: Apache Tomcat takes 3 to 4 browser request clicks t

Re: Can Tomcat support multiple SSL certificates for multiple domains?

2008-02-11 Thread Hassan Schroeder
On Feb 11, 2008 5:00 AM, Jan Mönnich <[EMAIL PROTECTED]> wrote: > You can get one certificate with both domain names in the "Subject > Alternative Name" of the Certificate. All modern browsers can handle that > and you can use just one Certificate for both domains. That's the > workaround we are r

Re: Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

2008-02-11 Thread Len Popp
Are there any errors in the Tomcat logs? Are the requests even getting to the Tomcat server? You can have Apache, Tomcat and mod_jk log all requests to see if they're getting lost somewhere. Also check if there's a problem with the database (if you're using one). As a stop-gap, you could write a l

RE: Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

2008-02-11 Thread Peter Crowther
> From: Brian Le [mailto:[EMAIL PROTECTED] > So how do I make Tomcat responsive to website visitors after > 1-2 hours of no visitors? > Web server setup: > Suse Linux 10.3 - text based, minimal install > Apache 2.2.8 - mpm_worker, compiled front end using mod_jk > 1.2.26 Tomcat connector, default

Apache Tomcat takes 3 to 4 browser request clicks to "wake up" after being idle for 1-2 hours

2008-02-11 Thread Brian Le
Hello, Issue: Apache Tomcat takes 3-4 browser request clicks to "wake up" after being idle for 1-2 hours. Tomcat is very responsive after Apache and Tomcat server startup also after doing my 3-4 browser request clicks to the website to "wake up" Tomcat. However, after 1-2 hours of being idle (h

Very strange problem with forms ...

2008-02-11 Thread Rafal Markut
Hello, I know that this list isn't for web developping but I have impression that maybe tomcat makes problems so I'm writting here ... I made very simple web application. Namely on the main page there is list of records (list.jsp). I can create new record, edit and delete. So when user clic

RE: [Eclipse-Tomcat] Problem by deploying from Eclipse to Tomcat

2008-02-11 Thread Larry Isaacs
There is not enough detail about your Eclipse configuration to make much of a guess. Basically the exception says that the ServletRequestListener class is not visible to one of the listener classes loaded in your web.xml. Either because it's missing (which seems not to be the case), or because

Apache2 + Tomcat5 + mod_jk mounting issues

2008-02-11 Thread philip.coates
Hi - sorry if this is a repost as I found my email wasn't properly validated, We have a set-up of Apache 2 and Tomcat 5 on our dev server (running Debian). I have a VirtualHost set up that has a JkMount in it that corresponds to a Tomcat webapp (so far so standard), like "JkMount /*webapp* ajpw1

Re: Can Tomcat support multiple SSL certificates for multiple domains?

2008-02-11 Thread Jan Mönnich
Hi Dave, there is another possible solution I just wanted to mention here: You can get one certificate with both domain names in the "Subject Alternative Name" of the Certificate. All modern browsers can handle that and you can use just one Certificate for both domains. That's the workaround we ar

Re: Make Tomcat not clean directory on new deployment

2008-02-11 Thread Sébastien Piller
Ok thank you, that's what I was afraid on... My only problem is that I use a special web framework, I'll try to see how I can load resource from out of the app in that framework. Thank you again for your confirmation David Smith a écrit : If you want to retain modifications like this, your on

Make two authentication schemes coexist on the same app

2008-02-11 Thread Diego Manilla Suárez
Hi. I have a web app with standard form authentication and a custom JDBCRealm. Now, I need to enable client certificate authentication, and be able to use both authentication mechanisms (certificates when the user sends them, and standard login form when he doesn't). I don't know if this is ev

Re: catalina.out is not reloading

2008-02-11 Thread Vamsavardhana Reddy
I am guessing... Somewhere in the script there should be a ">> catalina.out" to append to catalina.out. Change that to "> catalina.out" so that the old file is automatically rewritten. Or else you may use rotatelogs program that comes with apache http server. See http://httpd.apache.org/docs/2.

Re: catalina.out is not reloading

2008-02-11 Thread David Smith
Sorry guy. Maybe someone else can provide such updates. I'd have to write it as I've never had the need for such functionality. --David persistence k wrote: Thanks Mr.David . Will you please send me a sample start up script to handle renaming or deleting the old catalina.out file. Regards

Re: Make Tomcat not clean directory on new deployment

2008-02-11 Thread David Smith
If you want to retain modifications like this, your only option is to deploy the exploded webapp. I would encourage you to store the uploaded files in another folder outside your webapp which would make updating your webapp cleaner, easier to manage. --David Sébastien Piller wrote: Is it at

Re: Make Tomcat not clean directory on new deployment

2008-02-11 Thread Sébastien Piller
Is it at least possible? Or is the only way to fix my issue to upload only exploded files (so Tomcat will not redeploy the app)? Anybody has an idea? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-ma

Get rid of 'creating an agent with "unknown" agent attribut in catalina.out'

2008-02-11 Thread christoph.bacher
Hi, in my catalina.out I always get the following lines produced by our monitoring tool Patrol: 11.02.2008 11:05:13 org.apache.myfaces.trinidadinternal.agent.AgentFactoryImpl _populateUnknownAgentImpl WARNUNG: The User-Agent "PATROL/V3.6.50.13i (NT;INET KM 6.2.30 200510070048)" is unknown; creati

Re: catalina.out is not reloading

2008-02-11 Thread persistence k
Thanks Mr.David . Will you please send me a sample start up script to handle renaming or deleting the old catalina.out file. Regards, Persistence On 2/11/08, David Smith <[EMAIL PROTECTED]> wrote: > Then you should modify the startup script to handle renaming or deleting > the old file befor

Make Tomcat not clean directory on new deployment

2008-02-11 Thread Sébastien Piller
Hello people, First, I would like to thank you all for your work on this great project. Tomcat is, was, and will be my favourite webapp server from a long time ;) I never need to do a lot with its internal configuration, but now I'm asking myself if the following stuff could be done: I hav