Re: Re[2]: log4j error! log4j:ERROR Attempted to append to closed appender named.

2007-06-19 Thread Peter
i will try this thanks On 6/20/07, 吴熊敏 <[EMAIL PROTECTED]> wrote: change Append's value 'true' and try again On Wed, 20 Jun 2007 13:18:01 +0800 Peter <[EMAIL PROTECTED]> wrote: > thanks > > but it also generate log file as well. log file can be write. > > i donot know if the error: > > *

Re[2]: log4j error! log4j:ERROR Attempted to append to closed appender named.

2007-06-19 Thread 吴熊敏
change Append's value 'true' and try again On Wed, 20 Jun 2007 13:18:01 +0800 Peter <[EMAIL PROTECTED]> wrote: > thanks > > but it also generate log file as well. log file can be write. > > i donot know if the error: > > *log4j:ERROR Attempted to append to closed appender named > [DEFAULT_

Re: log4j error! log4j:ERROR Attempted to append to closed appender named.

2007-06-19 Thread Peter
thanks but it also generate log file as well. log file can be write. i donot know if the error: *log4j:ERROR Attempted to append to closed appender named [DEFAULT_LOGFILE].* will slow down our system or this error can be ignored? how to solve it thanks On 6/20/07, 吴熊敏 <[EMAIL PROTECTED]> w

Re: log4j error! log4j:ERROR Attempted to append to closed appender named.

2007-06-19 Thread 吴熊敏
I think the configuration of LOG4J has some problems System can't find the log file. On Wed, 20 Jun 2007 12:42:45 +0800 Peter <[EMAIL PROTECTED]> wrote: > hi,all > > we are using log4j under tomcat. and it appeals so many following erros ; > > log4j:ERROR Attempted to append to closed appe

log4j error! log4j:ERROR Attempted to append to closed appender named.

2007-06-19 Thread Peter
hi,all we are using log4j under tomcat. and it appeals so many following erros ; log4j:ERROR Attempted to append to closed appender named [DEFAULT_LOGFILE]. does anyone has an idea why and how to sovle it. thanks ! here is our log4j.xml http://jakarta.apache.org/log4j/"; debug="false">

Re: Tomcat 5.5.23 on Microsoft Vista

2007-06-19 Thread 吴熊敏
Hi,David: Your issue seems to be very strange. Are you sure that you have started the Tomcat Service?? On Tue, 19 Jun 2007 18:57:14 -0700 (PDT) David Kider <[EMAIL PROTECTED]> wrote: > Hi. I have a machine running the Microsoft Vista OS. I've tried installing > Tomcat 5.5.23 us

Re[2]: Save sessions across restarts

2007-06-19 Thread 吴熊敏
Hahaha!!agree with you !! On Wed, 20 Jun 2007 12:51:08 +1200 Stephen Souness <[EMAIL PROTECTED]> wrote: > Martin Gainty wrote: > > playing around with sessions or cookies has no impact on ability to > > preserve one's capability or ability to establish role verification > > if you dont know any

Re: how to flush cache of authenticated users

2007-06-19 Thread 吴熊敏
What kind of authentication do you use?? Session or Cookies or others? On Tue, 19 Jun 2007 14:18:16 -0700 "Ken Moore" <[EMAIL PROTECTED]> wrote: > The Realm Configuration HOW-TO doc ( > http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html >

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Bill Barker
"Prashant Thakkar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Thanks, > But this is the clients application which we are running. We dont have the > access to the servlet code. That was the the obvious reason we had > increased > the thread limit to 250. > > Other thin

RE: Tomcat 5.5.23 on Microsoft Vista

2007-06-19 Thread Caldarale, Charles R
> From: David Kider [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5.23 on Microsoft Vista > > So I uninstalled Tomcat and tried unzipping the zipped > version of Tomcat from the tomcat download page. This > gave me the same result. What JVM version do you have installed? Does it run other Java

Tomcat 5.5.23 on Microsoft Vista

2007-06-19 Thread David Kider
Hi. I have a machine running the Microsoft Vista OS. I've tried installing Tomcat 5.5.23 using the Microsoft Service Installer. This seems to run successfully. But when I open my browser and go to http://localhost:8080 I get the general "The webpage cannot be displayed" page. I then checked thro

Re: Save sessions across restarts

2007-06-19 Thread Stephen Souness
Martin Gainty wrote: playing around with sessions or cookies has no impact on ability to preserve one's capability or ability to establish role verification if you dont know anything about jetspeed you need to stay quiet In any event lets take this offline as you dont have a clue what SSO means

Re: webapp security in tomcat

2007-06-19 Thread Tim Funk
http://tomcat.apache.org/faq/security.html#restrict -Tim Herman Schultz wrote: Hi, Can you please tell me if I can configure tomcat to let a range of IP address to access 1 web app hosted by tomcat, while another set of IP address to access another web app hosted by the same tomcat? --

Re: Cannot load customized valve and realm from META-INF/context.xml

2007-06-19 Thread Mark Thomas
Christopher Schultz wrote: > Zhiyong Liu wrote: > It looks to be that the difference is the placement of the JAR file. > Perhaps valves must be available through Tomcat's classloader instead of > the web application's disposable one. That will indeed be the problem. They need to be visible to the

Re: Cannot load customized valve and realm from META-INF/context.xml

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zhiyong, Zhiyong Liu wrote: > Thanks Chuck's reply. > > However, there was no such myapp.xml file there. In fact, I manually > copied my context.xml into localhost and renamed it to myapp.xml and > it did not work either. You claimed that it did: >

Re: Cannot load customized valve and realm from META-INF/context.xml

2007-06-19 Thread Zhiyong Liu
Thanks Chuck's reply. However, there was no such myapp.xml file there. In fact, I manually copied my context.xml into localhost and renamed it to myapp.xml and it did not work either. Is there a simple way to check whether the context.xml is loaded or not at all? Zhiyong - Original Mess

Re: JNDI & Tomcat

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom, 1. DO NOT hijack threads. 2. DO post the things you have already tried. - -chris Tom Miller wrote: > Any one have a better document on howto on JNDI & Tomcat > than this link > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource- > example

JNDI & Tomcat

2007-06-19 Thread Tom Miller
Any one have a better document on howto on JNDI & Tomcat than this link http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource- examples-howto.html? I am trying to set up JNDI to work with Tomcat 5.5.7 I had followed instructions on apache.org but have not able to get it work yet. Any hints

Re: how to flush cache of authenticated users

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, Ken Moore wrote: > Thanks! I thought it might be stored in the session. The servlet specification does not dictate where this information is stored. Since the spec does not state this, Tomcat intentionally does not store the information "in" the

RE: how to flush cache of authenticated users

2007-06-19 Thread Ken Moore
Hi Christopher, Thanks! I thought it might be stored in the session. Our web app mainly supports web services. We are pretty much stateless on the app server and don't have the notion of logging in. We don't explicitly do anything with sessions. Instead, we use basic authentication and the crede

RE: Cannot load customized valve and realm from META-INF/context.xml

2007-06-19 Thread Caldarale, Charles R
> From: Zhiyong Liu [mailto:[EMAIL PROTECTED] > Subject: Cannot load customized valve and realm from > META-INF/context.xml > > I tried to move the context.html to conf/Catalina/localhost > and the jar file to server/lib then everything went well. Is it possible you already had a myapp.xml in

RES: too many sessions serving from another context

2007-06-19 Thread Paulo Alvim
Thanks Cris, But in the first case I can reproduce the problem in my computer, running with cookies... -Mensagem original- De: Christopher Schultz [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 19 de junho de 2007 13:45 Para: Tomcat Users List Assunto: Re: too many sessions serving fr

Cannot load customized valve and realm from META-INF/context.xml

2007-06-19 Thread Zhiyong Liu
I am using Tomcat 5.0.28 and trying to get my customized valve and realm work but no luck with the following steps. (1) put the jar file containing MyRealm.class and MyValve.class into webapps/myapp/WEB-INF/lib; (2) created a context.xml file in webapps/myapp/META-INF with the following content

Re: how to flush cache of authenticated users

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, Ken Moore wrote: > We use basic authentication for web services. I'd like to flush the > cache when the password is changed. Do you mean that you want to force your users to re-login when they change their passwords? > I've been looking through

Re: webapp security in tomcat

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Herman, Herman Schultz wrote: > Can you please tell me if I can configure tomcat to let a range of IP > address to access 1 web app hosted by tomcat, while another set of IP > address to access another web app hosted by the same tomcat? You're lookin

how to flush cache of authenticated users

2007-06-19 Thread Ken Moore
The Realm Configuration HOW-TO doc ( http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html ) says that: "Once a user has been authenticated, the user (and his or her associated roles) are cached within Tomcat for the duration of the use

webapp security in tomcat

2007-06-19 Thread Herman Schultz
Hi, Can you please tell me if I can configure tomcat to let a range of IP address to access 1 web app hosted by tomcat, while another set of IP address to access another web app hosted by the same tomcat? Thank you.

Re: Tomcat 6.0.10 DataSourceRealm says "Name jdbc is not bound in this Context"

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, Michael Wesner wrote: > I am sure someone has run across this before. I appreciate any help or > pointers to other threads about this. Ooh! So close... What you are looking for is documented on this page (and unfortunately nowhere else, AF

Tomcat 6.0.10 DataSourceRealm says "Name jdbc is not bound in this Context"

2007-06-19 Thread Michael Wesner
I am sure someone has run across this before. I appreciate any help or pointers to other threads about this. in the logs I get this error: un 19, 2007 1:01:24 PM org.apache.catalina.realm.DataSourceRealm open SEVERE: Exception performing authentication javax.naming.NameNotFou

RE: Design

2007-06-19 Thread Nelson, Tracy M.
| From: Pierre Goupil [mailto:[EMAIL PROTECTED] | Sent: Tuesday, 19 June, 2007 05:59 | | And, no, definitely you don't need EJB : that's a too heavy-weight | technology for such a project. And the learning curve is far more longer. Actually, with annotations and a supportive IDE (NetBeans, and pr

Re: Data Sources Overwritten

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott, [EMAIL PROTECTED] wrote: > Using your method of including the context within the application how do > you adjust for different environments (dev vs production)? Different > WARs? We use ant for deployment, and we have a "release type". The re

Tomcat and commons logging

2007-06-19 Thread Diego Rodríguez Martín
Hi, I have some problems using commons logging with log4j and tomcat, related to classloading. After some google searching, I have come to this article by one of the log4j experts http://www.qos.ch/logging/classloader.jsp In this article, it is explained how commons-logging (1.0.3)

Re: Invalid Content-Length error for the size greater than

2007-06-19 Thread Rainer Jung
I committed a patch for mod_jk using 64 Bit unsigned ints for content length. This patch still needs testing. I only verified, that it does not break normal operation (at least not on Solaris with Apache 2.2). I don't know, if anyone of those who were working on this bug until now (Bill? Mark?

RE: Data Sources Overwritten

2007-06-19 Thread ScottAnders
Chris, Using your method of including the context within the application how do you adjust for different environments (dev vs production)? Different WARs? How we do it now is have a context.xml.default included in the conf/Catalina/NameOfYourHostInServer.xml/ directory where the JNDI datasourc

Re: too many sessions serving from another context

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paulo, Paulo Alvim wrote: > /app1/example.jsp > (renders HTML with references to images being served from a servlet in > another application (context): > > /app2/myImgs?name=image1.gif > /app2/myImgs?name=image2.gif > /app2/myImgs?name=image3.gif >

Re: Data Sources Overwritten

2007-06-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, You have not followed my suggestions: 1. Remove all JNDI datasource information from server.xml and never put it back in. 2. Use a META-INF/context.xml file and bundle it into your WAR file for deployment. context.xml should include 100% of the

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Prashant Thakkar
Hi, The application does not make database connection. Instead makes and http request to web server to fetch content. This web server is heavily loaded with traffic. The high end web server configuration and optimization handles all the request quite efficiently. (No doubt on the web server proc

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Prashant Thakkar
Hi, I read an abt thread pooling on below url: http://www.hp.com/products1/unix/webservers/apache/techtips/tomcat.html Thanks and Regards, -Prashant Thakkar On 6/19/07, Andrew Miehs <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 4:45 PM, Prashant

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Brantley Hobbs
Prashant, Unless I'm load-testing, the only time I've seen thread counts that high is when something is wrong with the app, and it's usually a database connection that hasn't been closed. Check the number of database connections in use out of the pool (this is typically something that you'd do o

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 4:45 PM, Prashant Thakkar wrote: Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. I

load balancing

2007-06-19 Thread Asensio, Rodrigo
I'm trying to implement a load balancing solution with tomcat55 with an ubuntu704 as load balancer with 3 legacy win2003 tomcat55 behind. I found a great article published in onjava.com (http://onjava/com/lpt/a/4702) that guides you thru the process. I also thinked about use tomcat6 in the ubunt

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Prashant Thakkar
Hi, Thanks, But this is the clients application which we are running. We dont have the access to the servlet code. That was the the obvious reason we had increased the thread limit to 250. Other thing i would like to know is about the thread pooling. How can i use this with tomcat 5.0.28 Below i

RE: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Robert Harper
Do as it says and increase the max threads parameter or manage your threads better. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 South, Suite 300 Salt Lake City Utah USA 84121-7411 (801)265-8800 Ext. 255 FAX (801)265-8880 This e-mail is intended only for

Re: How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/06/2007, at 3:25 PM, Prashant Thakkar wrote: I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:4

How can i configure tomcat to avoid threads error in tomcat

2007-06-19 Thread Prashant Thakkar
Hi All, I am frequently getting this error in tomcat which stops my tomcat service. Pl help me its urgent and costing my service as well: I am getting bellow error in my catalina logs: Jun 19, 2007 5:55:44 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (250) are current

Re: Failed to install Tomcat5 service

2007-06-19 Thread TOM SSEMWOGERERE
>I also got a smilar problem. I got it when i tried to remove version >5.5.23 and install version 6. Try to reinstall the previous Tomcat >version. Then go to C:\Program Files\Apache Software >Foundation\Tomcat 5.5\bin and double click on the file tomcat5 >which is a service runner. > >I got

too many sessions serving from another context

2007-06-19 Thread Paulo Alvim
Hi again! We're using TC 5.5.9 with two WARs and the following situation: /app1/example.jsp (renders HTML with references to images being served from a servlet in another application (context): /app2/myImgs?name=image1.gif /app2/myImgs?name=image2.gif /app2/myImgs?name=image3.gif We're also usi

Re: Design

2007-06-19 Thread Pierre Goupil
Hello, Learning curve means : the time it will take you to learn a new technology. While learning it, you're not using it, that's the concept. And yes, definitely, you should learn to use Spring : it's a kind of an EJB-like service provider, but a lightweight one. As said, it will help you code

Re: Design

2007-06-19 Thread ben short
In learning the spring frameworks, or learning any new technology. On 6/19/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: What learning curve? On 6/19/07, ben short <[EMAIL PROTECTED]> wrote: > > Id suggest having a look at the spring web mvc stuff it can help you > simplify form submissions by

Re: Design

2007-06-19 Thread Mohammed Zabin
What learning curve? On 6/19/07, ben short <[EMAIL PROTECTED]> wrote: Id suggest having a look at the spring web mvc stuff it can help you simplify form submissions by mapping request params to objects so you don't have to do, although there will be a slight learning curve. Just my 2 pence :)

mod_jk2 / Tomcat problem

2007-06-19 Thread Thomas Keller
Hi all! I know this particular problem came up many many times here on this list before, but looking through the archived posts nobody seem to know a proper resolution for it. The symtoms: Apache runs, Tomcat runs, just if Apache requests are forwarded to Tomcat through mod_jk2 (2.0.4, I kn

Re: Design

2007-06-19 Thread ben short
Id suggest having a look at the spring web mvc stuff it can help you simplify form submissions by mapping request params to objects so you don't have to do, although there will be a slight learning curve. Just my 2 pence :) On 6/19/07, Kevin Wilhelm <[EMAIL PROTECTED]> wrote: I'd take the appro

Re: Design

2007-06-19 Thread Kevin Wilhelm
I'd take the approach with Servlets/JSP that handle user inputs. You could in deed use tags for the inputs and process them with suitable controllers in the logic tier. May be there are simpler ways to proceed with questionaires. - Original Message - From: "Mohammed Zabin" <[EMAIL PR

Re: Design

2007-06-19 Thread Mohammed Zabin
I am using a Tag that render the whole questions, can i create another tag that deals with user request? On 6/19/07, Kevin Wilhelm <[EMAIL PROTECTED]> wrote: No! This sounds like a simple webapp to me. Just use some Servlet Container (Tomcat) and have all of the presentation (JSP), business an

Re: Share one singleton across webapps

2007-06-19 Thread Andre Prasetya
I m assuming you're using WTP and Eclipse. To avoid that disgusting problem, add the problematic jar to build path only and not to J2EE module dependency. UAT : User Acceptance Test QA : Quality Assurance On 6/18/07, Kevin Wilhelm <[EMAIL PROTECTED]> wrote: It works! Thanks! The problem has

Re: Design

2007-06-19 Thread Kevin Wilhelm
No! This sounds like a simple webapp to me. Just use some Servlet Container (Tomcat) and have all of the presentation (JSP), business and persistence things handled in ONE engine. - Original Message - From: "Mohammed Zabin" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday,

Design

2007-06-19 Thread Mohammed Zabin
Hi All I am developing an online exam site as a graduation project. I have some questions regardsing the design: 1. In such a program which is a web site that introduce some multiple choice questions, and shows the result of user answers, DO I HAVE TO USE EJB??

Re: Share one singleton across webapps

2007-06-19 Thread Kevin Wilhelm
Related to the usage of shared Singletons in Tomcat: In fact my shared Singleton class provides other webapps with one factory that produces service objects (those are instantiated every time a request is made). Those service objects will handle DTOs and will convert them to normal database ent