Automatic Log File Rotation
Our company has standardized on newsyslog for squid and apache log file rotation and management for our production servers. I am in charge of implementing newsyslog for Tomcat log files and have a few questions: How can I keep Tomcat from adding the date to the end of the log filename? How can I keep Tomcat from rotating the logs and instead use /usr/local/sbin/newsyslog? Will this adversely affect Tomcat? With squid, I had to put the directive logfile_rotate to 0 and have newsyslog run 'squid -k rotate' to get this to work. Here is the homepage for newsyslog if anyone wants to know: http://www.weird.com/~woods/projects/newsyslog.html Thanks, Jeff Schroeder Web Administrator Comair, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4j writing to the same log file for different webapps
Hi, I have a problem with Log4j. I have several webapps running on Tomcat. They all use Log4j. The problem is that they all log to the same file. The file they log to depends on which app is used first. It seems to be picking up the settings from the log4j.properties file of the app that is run first and using those settings for all the other apps. I have the Log4j.properties file for each application in the location -- tomcat/webapps/aplication1/WEB-INF/classes/ Here is an example of one of the log4j.properties files -- log4j.rootCategory=DEBUG, vote log4j.appender.vote=org.apache.log4j.ConsoleAppender log4j.appender.vote.layout=org.apache.log4j.PatternLayout log4j.appender.vote.layout.ConversionPattern=%d{dd MMM HH:mm:ss,SSS} %5p [%t] (%F:%L) - %m%n log4j.appender.vote=org.apache.log4j.RollingFileAppender log4j.appender.vote.File=/opt/tomcat/logs/vote.log log4j.appender.vote.MaxFileSize=100KB log4j.appender.vote.MaxBackupIndex=10 An example of the code in the app is -- //Create logger protected static Logger logger = Logger.getLogger(voteLogger); /** * Constructor for the DataAccessObject */ public DataAccessObject() throws SQLException, NamingException { logger.info(DataAccessObject() start constructor method); initialise(); } Any help would be very much appreciated. Best Regards, Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j writing to the same log file for different webapps
shouldn't that be log4j.logger.voteLogger=DEBUG, vote ?? else where will it get voteLogger from? -Original Message- From: Derek Merren [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 15:42 To: tomcat-user@jakarta.apache.org Subject: Log4j writing to the same log file for different webapps Hi, I have a problem with Log4j. I have several webapps running on Tomcat. They all use Log4j. The problem is that they all log to the same file. The file they log to depends on which app is used first. It seems to be picking up the settings from the log4j.properties file of the app that is run first and using those settings for all the other apps. I have the Log4j.properties file for each application in the location -- tomcat/webapps/aplication1/WEB-INF/classes/ Here is an example of one of the log4j.properties files -- log4j.rootCategory=DEBUG, vote log4j.appender.vote=org.apache.log4j.ConsoleAppender log4j.appender.vote.layout=org.apache.log4j.PatternLayout log4j.appender.vote.layout.ConversionPattern=%d{dd MMM HH:mm:ss,SSS} %5p [%t] (%F:%L) - %m%n log4j.appender.vote=org.apache.log4j.RollingFileAppender log4j.appender.vote.File=/opt/tomcat/logs/vote.log log4j.appender.vote.MaxFileSize=100KB log4j.appender.vote.MaxBackupIndex=10 An example of the code in the app is -- //Create logger protected static Logger logger = Logger.getLogger(voteLogger); /** * Constructor for the DataAccessObject */ public DataAccessObject() throws SQLException, NamingException { logger.info(DataAccessObject() start constructor method); initialise(); } Any help would be very much appreciated. Best Regards, Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Invoking the 'admin' on tomcat 5.5.9 thows messages with severity 'SEVERE' in log file
Environment: Tomcat 5.5.9 OS: Fedora Core 3, Linux version 2.6.9-1.667 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) I have downloaded the the Tomcat 5.5.9 binary tarball, its compatibility package and 'admin' tarball and installed. http://hostname:8080/admin was attempted. The admin page got displayed properly. But the following log message with severity 'SEVERE' was logged in 'catalina.out' and 'catalina.date.log' files. Jul 28, 2005 6:55:44 PM org.apache.struts.action.RequestProcessor processMapping SEVERE: Invalid path /login was requested Jul 28, 2005 6:55:44 PM org.apache.struts.action.RequestProcessor processMapping SEVERE: Invalid path /login was requested Any thoughts why this error happens? The 'admin' application works fine and all features are available without any errors, except these messages in log. TIA. Sreenidish This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log stderr and stdout into log file in tomcat 5
Hi, How to configure tomcat 5 to log stderr and stdout to the log file. I tried it using logging.properties but the stdout and stderr is displaying only in the console. What I need is to log into the file. I am using tomcat 5.5.9 in windows. How to configure logging.properties file? With regards, R. SANTHANA GOPALAN. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Log stderr and stdout into log file in tomcat 5
--- SANTHANA GOPALAN [EMAIL PROTECTED] wrote: From SANTHANA GOPALAN Tue May 31 23:07:25 2005 Received: from [203.101.45.4] by web50409.mail.yahoo.com via HTTP; Tue, 31 May 2005 23:07:25 PDT Date: Tue, 31 May 2005 23:07:25 -0700 (PDT) From: SANTHANA GOPALAN [EMAIL PROTECTED] Subject: Log stderr and stdout into log file in tomcat 5 To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 479 Hi, How to configure tomcat 5 to log stderr and stdout to the log file. I tried it using logging.properties but the stdout and stderr is displaying only in the console. What I need is to log into the file. I am using tomcat 5.5.9 in windows. How to configure logging.properties file? With regards, R. SANTHANA GOPALAN. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log stderr and stdout into log file in tomcat 5
How to configure tomcat 5 to log stderr and stdout to the log file. I tried it using logging.properties but the stdout and stderr is displaying only in the console. What I need is to log into the file. I am using tomcat 5.5.9 in windows. How to configure logging.properties file? run it as a service in Windows. Other ways may be there. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parsing Log4J log file.
Hi, Given : I am using Log4J along with AspectJ for logging. The Conversion pattern I am using in log4j is as follows. (This is just an example) %d{ABSOLUTE} %5p %X{JSESSIONID} %c{1}:%L - %m%n In a Servlet filter I am setting the JSESSIONID in a MDC. So finally my logs are something like this: snip 19:45:00,745 WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting [com.xx.ac.xxx.connection.CConnectionManager.getActiveSize] 19:45:00,745 WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:66 - Entering [com.xx.ac.xxx.connection.CConnectionManager.getCacheSize] 19:45:00,745 WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting [com.xx.ac.xxx.connection.CConnectionManager.getCacheSize] 19:45:00,745 WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting [com.xx.ac.xxx.connection.CConnectionManager.getConnection] 19:45:00,745 WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:76 - Exiting [com.xx.ac.xxx.academy.AcademyQry.getNextAcademyToInitialize] 19:45:00,839 WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting [com.xx.ac.xxx.connection.CConnectionManager.getConnection] 19:45:00,839 WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:76 - Exiting [com.xx.ac.xxx.academy.Academy.getNextAcademyToInitialize] 19:45:00,839 WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting [com.xx.ac.xxx.connection.CDataSourceManager.getConnection] 19:45:00,839 WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:59 - Initializing [com.xx.ac.xxx.presentation.servlet.event.CForwardResolution.init] 19:45:00,855 WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting [com.xx.ac.xxx.sql.CSqlStatementFactory.createPreparedStatement] 19:45:00,855 WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:66 - Entering [com.xx.ac.xxx.presentation.servlet.state.CStateManager.put] 19:45:00,855 WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:76 - Exiting [com.xx.ac.xxx.presentation.servlet.state.CStateManager.put] snip Each log statement has the session id along with it. Problem: I want a log viewer. A graph plotted for each SET of session ids. So the user will enter some thing like 16CB951ED8ADBB1262AC21944AD94AF8 as input(to start with). My viewer will parse all the entries in the log file for the particular sessionid entered by the user. It will then plot a graph with the names of methods/classes. So basically the idea is to get a picture of all the method calls that got executed. The viewer need not process log files in real time. So I am looking for some API for parsing Log4J logs. I know of chainsaw. But I don't know if this can parse existing log files and give some sort of plot of all the method calls. Possible Solution: Write a perl script to parse the log files. Feed this data in some graph plotter. Probably use some cross platform GUI toolkit for some flamboyancy (wxWindows/Swing). This is required to be running on Linux/Win32 systems. I am not very accommodating with Swing. But if it can fix the problem, I will be more than happy. Alternatively I can use Perl:GD wrapper to generate png images on the fly and display it on a browser. This will be very good. Please suggest something on this regard. Thanks a lot in advance. Subhro
Hexadecimal values in JBoss/Tomcat log file
Hello Everybody, I installed a basic load-balancing solution based on JBoss/Tomcat and mod_jk1.2. I followed the instructions on page http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss But in the Tomcat log file, I have some hexadecimal values as below : 11:28:05,356 INFO [STDOUT] 12 34 00 36 00 34 67 65 6e 64 65 72 3d 32 26 6e | .4.6.4gender=2n 11:28:05,357 INFO [STDOUT] 61 6d 65 3d 26 63 6f 6d 6d 69 74 74 65 65 3d 26 | ame=committee= 11:28:05,357 INFO [STDOUT] 64 65 6c 65 67 61 74 69 6f 6e 3d 26 62 6f 64 79 | delegation=body 11:28:05,358 INFO [STDOUT] 3d 26 63 6f 75 6e 74 72 79 3d | =country= 11:28:07,591 INFO [STDOUT] 12 34 00 3d 00 3b 67 65 6e 64 65 72 3d 31 26 6e | .4.=.;gender=1n 11:28:07,592 INFO [STDOUT] 61 6d 65 3d 25 32 61 6e 25 32 61 26 63 6f 6d 6d | ame=%2an%2acomm 11:28:07,593 INFO [STDOUT] 69 74 74 65 65 3d 26 64 65 6c 65 67 61 74 69 6f | ittee=delegatio 11:28:07,602 INFO [STDOUT] 6e 3d 26 62 6f 64 79 3d 26 63 6f 75 6e 74 72 79 | n=body=country 11:28:07,602 INFO [STDOUT] 3d | = 11:28:10,025 INFO [STDOUT] 12 34 00 41 00 3f 67 65 6e 64 65 72 3d 32 26 6e | .4.A.?gender=2n 11:28:10,026 INFO [STDOUT] 61 6d 65 3d 26 67 72 6f 75 70 3d 31 35 35 30 26 | ame=group=1550 11:28:10,026 INFO [STDOUT] 63 6f 6d 6d 69 74 74 65 65 3d 26 64 65 6c 65 67 | committee=deleg 11:28:10,027 INFO [STDOUT] 61 74 69 6f 6e 3d 26 62 6f 64 79 3d 26 63 6f 75 | ation=body=cou 11:28:10,027 INFO [STDOUT] 6e 74 72 79 3d | ntry= In fact, the information contained in this log file are the parameters which are sent by a POST form. It is not a application problem because when I connect directly on a tomcat server, there is no hexadecimal values in the JBoss/Tomcat log file. I tried to install the lastest mod_jk connector and the lastest version apache but the problem always exists. Any ideas ? Thanks in advance David
Re: logging to seperate log file per war file
My guess (but, I'm not a Tomcat developer so what do I know! ;-)) is that you can't do it for System.out.println(). However, I did notice that System.setOut() allows you to redirect where standard out goes. However, I'm guessing that that would be for the entire JVM? As of Tomcat 5.5.9 they fixed up java.util.logging so that it can have different log files if that's any consolation. I guess the best solution is to simply using the logging APIs throughout and not use System.out for anything. Jon - Original Message - From: quentin.compson [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, April 11, 2005 10:12 PM Subject: logging to seperate log file per war file is this possible using context.xml or some other way? im using log4j but some output still goes to stdout (e.g System.out.println()). thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logging to seperate log file per war file
do you have console appender included in your log4j config file? comment it out. On Mon, 2005-04-11 at 20:12, quentin.compson wrote: is this possible using context.xml or some other way? im using log4j but some output still goes to stdout (e.g System.out.println()). thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
logging to seperate log file per war file
is this possible using context.xml or some other way? im using log4j but some output still goes to stdout (e.g System.out.println()). thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina Log File - Coyote can't register jmx for protocol
Below is all I see in catalina_log.2005-01-29.txt file: 2005-01-29 23:03:39 CoyoteConnector Coyote can't register jmx for protocol. I'm using win98, jdk1.4.2. Tomcat 4.1. --- Caldarale, Charles R [EMAIL PROTECTED] wrote: Whatever error or stack trace you were trying to include didn't make it through to the list. Also, please tell us what version of Tomcat you're using, which JDK, which OS, etc. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catalina Log File - Coyote can't register jmx for protocol
I'm new to tomcat and java programming. When I start Tomcat, I see the following in the Catalina Log File. What is that mean and should I be worried about it? thanks __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina Log File - Coyote can't register jmx for protocol
From: HockChai Lim [mailto:[EMAIL PROTECTED] Subject: Catalina Log File - Coyote can't register jmx for protocol I'm new to tomcat and java programming. When I start Tomcat, I see the following in the Catalina Log File. What is that mean and should I be worried about it? Whatever error or stack trace you were trying to include didn't make it through to the list. Also, please tell us what version of Tomcat you're using, which JDK, which OS, etc. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing application log file, Realm authenication error
I've managed to figure out what was going on. Hopefully someone else will find my struggles to be of use. Using the ant deploy task doesn't appear to do exactly the same thing as using Upload a WAR file to install via the manager application. I was assuming this was true, because I wasn't sure I could trust how I was using the ant task yet **. The ant task will look inside your META-INF folder for a context.xml file, and (in TC 4.1) install that context into server.xml. However, directly using the manager application doesn't do that. I think that means that the default context was being used for my application, rather than the one in context.xml. Somehow, that was causing my SQLException to not get logged at all. BTW, the SQLException I was looking for was Server connection failure during transaction, which appears to have been caused by using an older version of the MySQL Connector/J component (3.0.4) with a newer version of the MySQL server (4.1.7). [EMAIL PROTECTED] multi-server applications... ** If you ever get this error: java.net.UnknownHostException: C, you're probably passing a war file with an absolute path something like C:\...\warfile.war. There may be some way to make the passed file relative, but the way I found to get around this is to change file:// to file:///. -Peter Peter Moore wrote: Hi, I'm trying to track down an odd Realm authentication problem, but I can't seem to get anything to show up in any of the logs. My application (henceforth referred to as myapp) deploys successfully via war file with the manager application. When I try to access those portions of the application under security constraints, I am presented with an HTTP BASIC authentication dialog. However, the dialog keeps popping up, even though I know I'm using the correct username and password. I know this, because I've compared the SHA digest in the database against one generated from the password. Take that for what it's worth... ;-) What's really bugging me is that _NOTHING_ gets logged as to why the authentication failed. One interesting thing I'm seeing, is that even though I've defined a Logger in my Context (see below), this log file isn't showing up. I get catalina.out and localhost_log.date.txt, but nothing else. In localhost_log, I do see this line, so I have to assume that something is happening: 2005-01-12 16:35:00 ContextConfig[/myapp]: Configured an authenticator for method BASIC Any help on this would be greatly appreciated, as I'm about out of ideas. Versions: --- Tomcat: 4.1.31 Red Hat 9.0 (yes, I have this as part of the TC start: export LD_ASSUME_KERNEL=2.4.1) Sun JVM: 1.5 I have made the following additions to server.xml for my two JDBC datasources: Resource name=jdbc/db_devel auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/db_devel ... (Yes, this information is correct. It has been tested and double-checked.) /ResourceParams Resource name=jdbc/db_stats auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/db_stats ... (Yes, this information is correct) /ResourceParams My application's context.xml file: - Context debug=4 reloadable=false swallowOutput=true crossContext=false Logger verbosity=4 className=org.apache.catalina.logger.FileLogger prefix=pcs_log. suffix=.txt timestamp=true / !-- Naming indirection, to let application use generalized names for lookup. -- ResourceLink name=db_default global=jdbc/db_devel type=javax.sql.DataSource/ ResourceLink name=db_stats global=jdbc/db_stats type=javax.sql.DataSource/ Realm resourceName=Application Secure Realm className=org.apache.catalina.realm.DataSourceRealm dataSourceName=jdbc/db_devel userTable=employee userNameCol=login userCredCol=password userRoleTable=employee roleNameCol=role digest=SHA / /Context Interesting bits from my applicaton's web.xml: -- resource-ref descriptionDB Connection/description res-ref-namedb_default/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionDB Connection for statistics only/description res-ref-namedb_stats/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ... security-constraint web-resource-collection web-resource-nameAdmin/web-resource-name url-pattern/admin/*/url-pattern /web-resource-collection
Missing application log file, Realm authenication error
Hi, I'm trying to track down an odd Realm authentication problem, but I can't seem to get anything to show up in any of the logs. My application (henceforth referred to as myapp) deploys successfully via war file with the manager application. When I try to access those portions of the application under security constraints, I am presented with an HTTP BASIC authentication dialog. However, the dialog keeps popping up, even though I know I'm using the correct username and password. I know this, because I've compared the SHA digest in the database against one generated from the password. Take that for what it's worth... ;-) What's really bugging me is that _NOTHING_ gets logged as to why the authentication failed. One interesting thing I'm seeing, is that even though I've defined a Logger in my Context (see below), this log file isn't showing up. I get catalina.out and localhost_log.date.txt, but nothing else. In localhost_log, I do see this line, so I have to assume that something is happening: 2005-01-12 16:35:00 ContextConfig[/myapp]: Configured an authenticator for method BASIC Any help on this would be greatly appreciated, as I'm about out of ideas. Versions: --- Tomcat: 4.1.31 Red Hat 9.0 (yes, I have this as part of the TC start: export LD_ASSUME_KERNEL=2.4.1) Sun JVM: 1.5 I have made the following additions to server.xml for my two JDBC datasources: Resource name=jdbc/db_devel auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/db_devel ... (Yes, this information is correct. It has been tested and double-checked.) /ResourceParams Resource name=jdbc/db_stats auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/db_stats ... (Yes, this information is correct) /ResourceParams My application's context.xml file: - Context debug=4 reloadable=false swallowOutput=true crossContext=false Logger verbosity=4 className=org.apache.catalina.logger.FileLogger prefix=pcs_log. suffix=.txt timestamp=true / !-- Naming indirection, to let application use generalized names for lookup. -- ResourceLink name=db_default global=jdbc/db_devel type=javax.sql.DataSource/ ResourceLink name=db_stats global=jdbc/db_stats type=javax.sql.DataSource/ Realm resourceName=Application Secure Realm className=org.apache.catalina.realm.DataSourceRealm dataSourceName=jdbc/db_devel userTable=employee userNameCol=login userCredCol=password userRoleTable=employee roleNameCol=role digest=SHA / /Context Interesting bits from my applicaton's web.xml: -- resource-ref descriptionDB Connection/description res-ref-namedb_default/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionDB Connection for statistics only/description res-ref-namedb_stats/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ... security-constraint web-resource-collection web-resource-nameAdmin/web-resource-name url-pattern/admin/*/url-pattern /web-resource-collection auth-constraint role-namesuper/role-name role-nameadministrator/role-name /auth-constraint /security-constraint ... login-config auth-methodBASIC/auth-method realm-nameApplication Secure Realm/realm-name /login-config ... security-role role-namesuper/role-name /security-role security-role role-nameadministrator/role-name /security-role security-role role-nameuser/role-name /security-role security-role role-namestats/role-name /security-role -- Does anyone have any ideas, or perhaps see something obvious that I'm missing? Thanks, Peter Moore - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log file by Logger ..... / for application context
Hi All, problem for creating the separate log file by Logger . /for my application context in tomcat-5.0.19. that is working fine in tomcat 5.0.27! please help me what the settings are to be needed to make it out on tomcat 5.0.19 . is this bug or AM I missing some thing sample of my context file which is under ..conf\Catalina\localhost\ Context displayName=SMART debug=0 docBase=Smart path=/Smart Logger className=org.apache.catalina.logger.FileLogger directory=webapps/smartlogs prefix=Smart_log. suffix=.txt timestamp=true/ . .. Context/ regards Manish *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file by Logger ..... / for application context
Hi, Don't use 5.0.19. Why do you want that? Allistair. -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 10:39 To: Tomcat Users List Subject: log file by Logger . / for application context Hi All, problem for creating the separate log file by Logger . /for my application context in tomcat-5.0.19. that is working fine in tomcat 5.0.27! please help me what the settings are to be needed to make it out on tomcat 5.0.19 . is this bug or AM I missing some thing sample of my context file which is under ..conf\Catalina\localhost\ Context displayName=SMART debug=0 docBase=Smart path=/Smart Logger className=org.apache.catalina.logger.FileLogger directory=webapps/smartlogs prefix=Smart_log. suffix=.txt timestamp=true/ . .. Context/ regards Manish ** * Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file by Logger ..... / for application context
Thanx for replying, but requirement is such that I have to use tomcat 5.0.19. it's impossible to port the project on other version of tomcat now. any help regarding this pls. thanx in advance Manish -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 4:51 PM To: Tomcat Users List Subject: RE: log file by Logger . / for application context Hi, Don't use 5.0.19. Why do you want that? Allistair. -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 10:39 To: Tomcat Users List Subject: log file by Logger . / for application context Hi All, problem for creating the separate log file by Logger . /for my application context in tomcat-5.0.19. that is working fine in tomcat 5.0.27! please help me what the settings are to be needed to make it out on tomcat 5.0.19 . is this bug or AM I missing some thing sample of my context file which is under ..conf\Catalina\localhost\ Context displayName=SMART debug=0 docBase=Smart path=/Smart Logger className=org.apache.catalina.logger.FileLogger directory=webapps/smartlogs prefix=Smart_log. suffix=.txt timestamp=true/ . .. Context/ regards Manish ** * Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file by Logger ..... / for application context
No one here have any Idea regarding my problem. -Original Message- From: Goel, Manish Kumar Sent: Wednesday, December 22, 2004 4:58 PM To: Tomcat Users List Subject: RE: log file by Logger . / for application context Thanx for replying, but requirement is such that I have to use tomcat 5.0.19. it's impossible to port the project on other version of tomcat now. any help regarding this pls. thanx in advance Manish -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 4:51 PM To: Tomcat Users List Subject: RE: log file by Logger . / for application context Hi, Don't use 5.0.19. Why do you want that? Allistair. -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 10:39 To: Tomcat Users List Subject: log file by Logger . / for application context Hi All, problem for creating the separate log file by Logger . /for my application context in tomcat-5.0.19. that is working fine in tomcat 5.0.27! please help me what the settings are to be needed to make it out on tomcat 5.0.19 . is this bug or AM I missing some thing sample of my context file which is under ..conf\Catalina\localhost\ Context displayName=SMART debug=0 docBase=Smart path=/Smart Logger className=org.apache.catalina.logger.FileLogger directory=webapps/smartlogs prefix=Smart_log. suffix=.txt timestamp=true/ . .. Context/ regards Manish ** * Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file by Logger ..... / for application context
At 07:58 AM 12/23/2004 +0200, you wrote: No one here have any Idea regarding my problem. What exactly is it about 5.0.19 that you are tied to? If your Logger works in 5.0.27 but doesn't work in 5.0.19, then there is something wrong with 5.0.19 and you probably shouldn't be using it. Jake -Original Message- From: Goel, Manish Kumar Sent: Wednesday, December 22, 2004 4:58 PM To: Tomcat Users List Subject: RE: log file by Logger . / for application context Thanx for replying, but requirement is such that I have to use tomcat 5.0.19. it's impossible to port the project on other version of tomcat now. any help regarding this pls. thanx in advance Manish -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 22, 2004 4:51 PM To: Tomcat Users List Subject: RE: log file by Logger . / for application context Hi, Don't use 5.0.19. Why do you want that? Allistair. -Original Message- From: Goel, Manish Kumar [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 10:39 To: Tomcat Users List Subject: log file by Logger . / for application context Hi All, problem for creating the separate log file by Logger . /for my application context in tomcat-5.0.19. that is working fine in tomcat 5.0.27! please help me what the settings are to be needed to make it out on tomcat 5.0.19 . is this bug or AM I missing some thing sample of my context file which is under ..conf\Catalina\localhost\ Context displayName=SMART debug=0 docBase=Smart path=/Smart Logger className=org.apache.catalina.logger.FileLogger directory=webapps/smartlogs prefix=Smart_log. suffix=.txt timestamp=true/ . .. Context/ regards Manish ** * Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Log File Rotation in Tomcat 4.1?
How are other admins handling log file rotation and clean up with Tomcat 4.1 on Linux in a Multiple Tomcat instance hosting environment? Is there any way to have Logger::FileLogger not insert a timestamp in the filename? (Short of re-writing the class?) My initial plan was to use something like the logrotate utility to stop Tomcat, rotate the logs out (catalina.out becomes catalina.out.1, access.log becomes access.log.1, etc.), then start Tomcat up again. But I would have to create a separate logrotation config file for each Tomcat instance (I was hoping for a more elegant solution). Thanks! James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log File Not Genetrated In tomcat 5.5
Hi I tried to use tomcat5.5 but it came up wit alot ogf problem .. I am not getting even log file .. i created a new folder in webapps bsw/ and all folder structure as per requirement web-inf , web-inf/classes etcs and im trying to access a jsp in context bsw, my question is how do i enable the log for this context and how do i add a new context , should i add a new context manually by copying from tomcat 4.1.30 please help me .. thanks Birendar Singh Waldiya DISCLAIMER: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited and any violation thereof would possibly attract penal action. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. TCS accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorized access/use.
RE: Log File Not Genetrated In tomcat 5.5
This is a classic RTFM (read the manual), in particular read 5.5's logging page which tells you that per-context log is gone in 5.5. Your logging will be in a file called stdout on Windows, or whatever file Linux collects console output to. *Do not* copy *anything* from Tomcat 4.1.30. Read the Tomcat 5.5 manual. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 December 2004 10:38 To: [EMAIL PROTECTED] Subject: Log File Not Genetrated In tomcat 5.5 Hi I tried to use tomcat5.5 but it came up wit alot ogf problem .. I am not getting even log file .. i created a new folder in webapps bsw/ and all folder structure as per requirement web-inf , web-inf/classes etcs and im trying to access a jsp in context bsw, my question is how do i enable the log for this context and how do i add a new context , should i add a new context manually by copying from tomcat 4.1.30 please help me .. thanks Birendar Singh Waldiya DISCLAIMER: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited and any violation thereof would possibly attract penal action. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. TCS accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorized access/use. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log File Not Genetrated In tomcat 5.5
Alternatively, please copy in your stdout / console error messages so we can help your specific problems. Allistair. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 December 2004 10:38 To: [EMAIL PROTECTED] Subject: Log File Not Genetrated In tomcat 5.5 Hi I tried to use tomcat5.5 but it came up wit alot ogf problem .. I am not getting even log file .. i created a new folder in webapps bsw/ and all folder structure as per requirement web-inf , web-inf/classes etcs and im trying to access a jsp in context bsw, my question is how do i enable the log for this context and how do i add a new context , should i add a new context manually by copying from tomcat 4.1.30 please help me .. thanks Birendar Singh Waldiya DISCLAIMER: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited and any violation thereof would possibly attract penal action. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. TCS accepts no liability for any damage caused by this email or its attachments due to viruses, interference, interception, corruption or unauthorized access/use. FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Errors in Log file
Hi All, We have Tomcat 4.1.12 in production. Sometime users get INTER SERVER ERROR 500. In log files we have only two errors without any clues. Can any body explian the possible reasons of these errors. 1. java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260).. Thanks and Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Errors in Log file
a cursory glance on Google with tomcat java.net.SocketException: Connection reset by peer This exception occurs when a client made a request, and before receiving the full response, either of the following happened: client's browser has been closed. client's connection has been disconnected. client presses the stop button. This exception is normally harmless. It does not seem possible to trap this exception with J2SE. However you say you get error 500, so perhaps are you connecting to a resource using sockets yourself from your web app?? // --- from http://java.sun.com/features/2002/08/j2se-network.html Connection Reset by Peer : One of the issues that developers frequently run into is the Connection reset by peer exception: Exception in thread main java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read. This basically means that a network error occurred while the client was receiving data from the server. But what is really happening is that the server actually accepts the connection, processes the request, and sends a reply to the client. However, when the server closes the socket, the client believes that the connection has been terminated abnormally because the socket implementation sends a TCP reset segment telling the client to throw away the data and report an error. Sometimes, this problem is caused by not properly closing the input/output streams and the socket connection. Make sure you close the input/output streams and socket connection properly. If everything is closed properly, however, and the problem persists, you can work around it by adding Thread.sleep(1000) before closing the streams and the socket. This technique, however, is not reliable and may not work on all systems. -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:15 To: Tomcat Users List Subject: Errors in Log file Hi All, We have Tomcat 4.1.12 in production. Sometime users get INTER SERVER ERROR 500. In log files we have only two errors without any clues. Can any body explian the possible reasons of these errors. 1. java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(Co yoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:260).. Thanks and Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [SPAM_EMAIL] - RE: Errors in Log file - Found word(s) list error in the Text body.
Hi , No, we are not connecting to a resource using sockets. Is it possible that server is closing sockets after some interval of time by default. and because we are not getting response in that interval of time thats why it is generating such errors? Thanks, Pradeep -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 02.12.2004 03:52 PM To: Tomcat Users List Subject: [SPAM_EMAIL] - RE: Errors in Log file - Found word(s) list error in the Text body. a cursory glance on Google with tomcat java.net.SocketException: Connection reset by peer This exception occurs when a client made a request, and before receiving the full response, either of the following happened: client's browser has been closed. client's connection has been disconnected. client presses the stop button. This exception is normally harmless. It does not seem possible to trap this exception with J2SE. However you say you get error 500, so perhaps are you connecting to a resource using sockets yourself from your web app?? // --- from http://java.sun.com/features/2002/08/j2se-network.html Connection Reset by Peer : One of the issues that developers frequently run into is the Connection reset by peer exception: Exception in thread main java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read. This basically means that a network error occurred while the client was receiving data from the server. But what is really happening is that the server actually accepts the connection, processes the request, and sends a reply to the client. However, when the server closes the socket, the client believes that the connection has been terminated abnormally because the socket implementation sends a TCP reset segment telling the client to throw away the data and report an error. Sometimes, this problem is caused by not properly closing the input/output streams and the socket connection. Make sure you close the input/output streams and socket connection properly. If everything is closed properly, however, and the problem persists, you can work around it by adding Thread.sleep(1000) before closing the streams and the socket. This technique, however, is not reliable and may not work on all systems. -Original Message- From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] Sent: 02 December 2004 10:15 To: Tomcat Users List Subject: Errors in Log file Hi All, We have Tomcat 4.1.12 in production. Sometime users get INTER SERVER ERROR 500. In log files we have only two errors without any clues. Can any body explian the possible reasons of these errors. 1. java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(Co yoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServlet Wrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:260).. Thanks and Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Errors in Log file
I believe the java.lang.IllegalStateException occurs when the response is committed. sendRedirect requires changing the HTTP headers (Location: perhaps). You cannot write HTML to the web page and then issue a redirect unless the HTML is buffered via a JSP directive: %@ page buffer=32kb %, and the response can be cleared before it is flushed (HTTP Headers go before the HTTP body). Either don't attempt to write HTML to the web page, or make sure your buffer size is big enough so that the HTML can be buffered and cleared before you issue the re-direct. The HTML will be ignored when the sendRedirect is used. http://java.sun.com/products/jsp/tags/11/syntaxref11.fm7.html http://www.esus.com/javaindex/j2ee/javajsp/jspbufferautoflush.html David Stevenson On Thu, 2004-12-02 at 05:15, Pradeep Chauhan wrote: 2. java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) at org.apache.jsp.DreamScreen_jsp._jspService(DreamScreen_jsp.java:564) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 04) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260).. Thanks and Regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set Seperate Error log file when using Multiple Web Applicationa
Hai all, I am Using Multiple Web Application in TOmcat 5.5. How to set the Seperate Error log file for each Web Application. Thanks for ever, inr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to configure log file ?
I'm not satisfied by the default format used by the FileLogger in Tomcat 5. The documentation explains how to configure the *name* of the log files but not the *content* of the files. Each printed message is prefixed by the full date-time and the context-servlet name : this prefix is more than 40 characters long ! I'm not interested in the context name and I would like to get rid of it. Is there somewhere a configuration file to do that ? Do I have to extend the FileLogger class by myself ? -- ___ Jean-Paul Le Fèvre * Mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to configure log file ?
Hi, There are no additional configuration beyond those on the documentation that you've already read. Your options are to extend FileLogger yourself or to stop using it, and pick up a real logging system like log4j. Note that Tomcat 5.5 will eliminate Loggers altogether (it will use commons-logging entirely) so you probably don't want to waste time extending FileLogger. Yoav Shapira Millennium Research Informatics -Original Message- From: Jean-Paul Le Fèvre [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 9:48 AM To: [EMAIL PROTECTED] Subject: how to configure log file ? I'm not satisfied by the default format used by the FileLogger in Tomcat 5. The documentation explains how to configure the *name* of the log files but not the *content* of the files. Each printed message is prefixed by the full date-time and the context-servlet name : this prefix is more than 40 characters long ! I'm not interested in the context name and I would like to get rid of it. Is there somewhere a configuration file to do that ? Do I have to extend the FileLogger class by myself ? -- ___ Jean-Paul Le Fèvre * Mail : [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log file problem
If the log files become full does it create problem with the application? Like session parameters coming as null or request attributes coming as null even though they exist there in the session and request respectively? TIA, -Jitesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log file problem
I don't think so. -Tim Jitesh Sinha wrote: If the log files become full does it create problem with the application? Like session parameters coming as null or request attributes coming as null even though they exist there in the session and request respectively? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file problem
Hi, If you're out of disk space, stuff will break. I'm not sure what, and I'm not sure how the Tomcat Loggers will behave, but definitely things will break as Tomcat and the JVM need temp space. Yoav Shapira Millennium Research Informatics -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 3:44 AM To: Tomcat Users List Subject: log file problem If the log files become full does it create problem with the application? Like session parameters coming as null or request attributes coming as null even though they exist there in the session and request respectively? TIA, -Jitesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file problem
Ok so how do I find out definitively which of the stuffs is going to break? Actually in my application sometimes some parameter becomes null which creates problems with the flow of the application Sometimes user is not able to open the application itself.we restart the web server which clears the logs and everything comes on track Any ideas are welcomeI am kinda becoming despo now ... :) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 6:31 PM To: Tomcat Users List Subject: RE: log file problem Hi, If you're out of disk space, stuff will break. I'm not sure what, and I'm not sure how the Tomcat Loggers will behave, but definitely things will break as Tomcat and the JVM need temp space. Yoav Shapira Millennium Research Informatics -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 3:44 AM To: Tomcat Users List Subject: log file problem If the log files become full does it create problem with the application? Like session parameters coming as null or request attributes coming as null even though they exist there in the session and request respectively? TIA, -Jitesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file problem
Hi, Ok so how do I find out definitively which of the stuffs is going to break? You can't. It'll be the first thing executed that requires disk space after the disk is full. You're thinking about this the wrong way: you must prevent the disk from becoming full. Either buy a bigger hard-drive or control/configure your system to not log as much. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file problem
Could you rotate the log files Like, on a daily basis, rename whatever.log to yesterdaysdateWhatever.log? I assume that Tomcate would then create a new whatever.log when it was needed. You'd still have to watch your diskspace of course. But you could move off or delete logs that were old. -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 10:53 To: Tomcat Users List Subject: RE: log file problem Ok so how do I find out definitively which of the stuffs is going to break? Actually in my application sometimes some parameter becomes null which creates problems with the flow of the application Sometimes user is not able to open the application itself.we restart the web server which clears the logs and everything comes on track Any ideas are welcomeI am kinda becoming despo now ... :) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 6:31 PM To: Tomcat Users List Subject: RE: log file problem Hi, If you're out of disk space, stuff will break. I'm not sure what, and I'm not sure how the Tomcat Loggers will behave, but definitely things will break as Tomcat and the JVM need temp space. Yoav Shapira Millennium Research Informatics -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 3:44 AM To: Tomcat Users List Subject: log file problem If the log files become full does it create problem with the application? Like session parameters coming as null or request attributes coming as null even though they exist there in the session and request respectively? TIA, -Jitesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: log file problem
On Wed, Jul 14, 2004 at 08:23:10PM +0530, Jitesh Sinha wrote: : Ok so how do I find out definitively which of the stuffs is going to : break? : Actually in my application sometimes some parameter becomes null which : creates problems with the flow of the application : Sometimes user is not able to open the application itself.we restart the : web server which clears the logs and everything comes on track : Any ideas are welcomeI am kinda becoming despo now ... :) How? Load-test to fill the logs, and watch the fireworks. ;) If your OS supports volume management (Veritas VxVM, Linux or HP LVM, etc.) then you can quickly setup a very small, dedicated filesystem to do the test. That should fill up quickly. Yoav hit the nail on the head, though: when filesystem space is low, things can get crazy. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log file problem
The other thing said was 'restart the web server which clears the logs' huh? Who here has a web server that keeps logs in memory or entirely in some type of swap space that is cleared on a server restart? (do you mean a tomcat restart, or a server hardware reboot ?) I'm thinking there might be some other problem, not related to logs. Like OOME. -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 9:53 AM To: Tomcat Users List Subject: RE: log file problem Ok so how do I find out definitively which of the stuffs is going to break? Actually in my application sometimes some parameter becomes null which creates problems with the flow of the application Sometimes user is not able to open the application itself.we restart the web server which clears the logs and everything comes on track Any ideas are welcomeI am kinda becoming despo now ... :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache / mod_jk2 and config/log file location specification
Hello, I have just installed the latest version of mod_jk2 with Apache 1.3.29 on Linux and wanted to know how I can specify to mod_jk2 where he should look for the workers2.properties config file and where he should write the jk2.log log file ? I had a look into the documentation but I cannot find anything about that. The problem I have is that I have compiled Apache with --sysconfdir=/etc/apache and --prefix=/opt/apache and mod_jk2 still looks for workers2.properties in /opt/apache/conf. Same thiing for the log file it wants to write the logfile into /opt/apache/logs but I would like to have it into /var/log. How can I do that ? Many thanks Regards _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache / mod_jk2 and config/log file location specification
May be you can use these options in the jk2.properties serverRoot=/usr/local/apache apr.jniModeSo=/usr/local/apache/modules/mod_jk2.so syn uw wrote: Hello, I have just installed the latest version of mod_jk2 with Apache 1.3.29 on Linux and wanted to know how I can specify to mod_jk2 where he should look for the workers2.properties config file and where he should write the jk2.log log file ? I had a look into the documentation but I cannot find anything about that. The problem I have is that I have compiled Apache with --sysconfdir=/etc/apache and --prefix=/opt/apache and mod_jk2 still looks for workers2.properties in /opt/apache/conf. Same thiing for the log file it wants to write the logfile into /opt/apache/logs but I would like to have it into /var/log. How can I do that ? Many thanks Regards _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Apache / mod_jk2 and config/log file location specification
Try command: workersFile=D:\tomcat\conf\workers2.properties And/or the path syntax for unix.. -Ursprüngliche Nachricht- Von: syn uw [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Juni 2004 10:10 An: [EMAIL PROTECTED] Betreff: Apache / mod_jk2 and config/log file location specification Hello, I have just installed the latest version of mod_jk2 with Apache 1.3.29 on Linux and wanted to know how I can specify to mod_jk2 where he should look for the workers2.properties config file and where he should write the jk2.log log file ? I had a look into the documentation but I cannot find anything about that. The problem I have is that I have compiled Apache with --sysconfdir=/etc/apache and --prefix=/opt/apache and mod_jk2 still looks for workers2.properties in /opt/apache/conf. Same thiing for the log file it wants to write the logfile into /opt/apache/logs but I would like to have it into /var/log. How can I do that ? Many thanks Regards _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache / mod_jk2 and config/log file location specification
| you can specify the path using this line in the httpd.conf look this doc http://jakarta.apache.org/tomcat/faq/connectors.html |* JK2 doesn't seem to be using my settings in my |workers2.properties| file such as creating the shm file or mapping the URIs listed to Tomcat, what's wrong? * JK2 is not finding your |workers2.properties| file. Specify it's location in your |httpd.conf| file by adding: |JkSet config.file /full/system/path/to/workers2.properties| yn uw wrote: Hello, I have just installed the latest version of mod_jk2 with Apache 1.3.29 on Linux and wanted to know how I can specify to mod_jk2 where he should look for the workers2.properties config file and where he should write the jk2.log log file ? I had a look into the documentation but I cannot find anything about that. The problem I have is that I have compiled Apache with --sysconfdir=/etc/apache and --prefix=/opt/apache and mod_jk2 still looks for workers2.properties in /opt/apache/conf. Same thiing for the log file it wants to write the logfile into /opt/apache/logs but I would like to have it into /var/log. How can I do that ? Many thanks Regards _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 config file and log file place
Hello, I have just installed the latest version of mod_jk2 with Apache 1.3.29 on Linux and wanted to know how I can specify to mod_jk2 where he should look for the workers2.properties config file and where he should write the jk2.log log file ? I had a look into the documentation but I cannot find anything about that. The problem I have is that I have compiled Apache with --sysconfdir=/etc/apache and --prefix=/opt/apache and mod_jk2 still looks for workers2.properties in /opt/apache/conf. Same thiing for the log file it wants to write the logfile into /opt/apache/logs but I would like to have it into /var/log. How can I do that ? Many thanks Regards _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk log file, identifying the actual worker
Is there a way to see which load balanced Tomcat served a request in the mod_jk log file? When I use the %w the log file lists the loadbalancers name and not the actual workers name. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rotatable property on log file
Hi. I have set the rotatable property on the Tomcat AccessLog to false because I have my own mechanism for log rotation, and would prefer not to use tomcats. This works fine. However, I see that there is no rotatable property for FileLogger. Why would this be? Thanks, Jason. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: rotatable property on log file
Hi, I have set the rotatable property on the Tomcat AccessLog to false because I have my own mechanism for log rotation, and would prefer not to use tomcats. This works fine. However, I see that there is no rotatable property for FileLogger. Why would this be? They are different implementation: AccessLogValve is a Valve and contains its own rolling logic internally. FileLogger and the other Loggers do not contain this logic inside the class, but can be externally rotated. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat wont start - log file error
hi i installed a product called wasp server http://www.systinet.com/products/java_ws (looks like a neat tool for web services) on my local machine (win2kpro). problem is now my tomcat doesn't seem to start even when wasp is shut down. heres' what i'm getting from the log file - localhost-examples - log 2004 2004-03-05 10:09:48 WebappLoader[/examples]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.12-LE\work\Standalone\localhost\examples 2004-03-05 10:09:48 WebappLoader[/examples]: Deploy class files /WEB-INF/classes to C:\jakarta-tomcat-4.1.12-LE\webapps\examples\WEB-INF\classes 2004-03-05 10:09:48 WebappLoader[/examples]: Reloading checks are enabled for this Context 2004-03-05 10:09:48 ContextConfig[/examples]: Configured an authenticator for method FORM 2004-03-05 10:09:48 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2004-03-05 10:09:49 StandardManager[/examples]: Seeding of random number generator has been completed 2004-03-05 10:09:49 ContextListener: contextInitialized() 2004-03-05 10:09:49 SessionListener: contextInitialized() 2004-03-05 10:09:49 StandardWrapper[/examples:default]: Loading container servlet default 2004-03-05 10:09:49 StandardWrapper[/examples:invoker]: Loading container servlet invoker and the following from localhost_log.2004... 2004-03-05 10:09:49 StandardContext[/soap]: Starting 2004-03-05 10:09:49 StandardContext[/soap]: Processing start(), current available=false 2004-03-05 10:09:49 StandardContext[/soap]: Configuring default Resources the wasp server has built in soap services so i wonder if this is whats happening - any ideas ? cheers chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat wont start - log file error
Hi, Your logs don't indicate anything wrong. Are there any errors in them? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Chris Daly [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 5:20 AM To: [EMAIL PROTECTED] Subject: tomcat wont start - log file error hi i installed a product called wasp server http://www.systinet.com/products/java_ws (looks like a neat tool for web services) on my local machine (win2kpro). problem is now my tomcat doesn't seem to start even when wasp is shut down. heres' what i'm getting from the log file - localhost-examples - log 2004 2004-03-05 10:09:48 WebappLoader[/examples]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.12-LE\work\Standalone\localhost\examples 2004-03-05 10:09:48 WebappLoader[/examples]: Deploy class files /WEB-INF/classes to C:\jakarta-tomcat-4.1.12-LE\webapps\examples\WEB-INF\classes 2004-03-05 10:09:48 WebappLoader[/examples]: Reloading checks are enabled for this Context 2004-03-05 10:09:48 ContextConfig[/examples]: Configured an authenticator for method FORM 2004-03-05 10:09:48 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2004-03-05 10:09:49 StandardManager[/examples]: Seeding of random number generator has been completed 2004-03-05 10:09:49 ContextListener: contextInitialized() 2004-03-05 10:09:49 SessionListener: contextInitialized() 2004-03-05 10:09:49 StandardWrapper[/examples:default]: Loading container servlet default 2004-03-05 10:09:49 StandardWrapper[/examples:invoker]: Loading container servlet invoker and the following from localhost_log.2004... 2004-03-05 10:09:49 StandardContext[/soap]: Starting 2004-03-05 10:09:49 StandardContext[/soap]: Processing start(), current available=false 2004-03-05 10:09:49 StandardContext[/soap]: Configuring default Resources the wasp server has built in soap services so i wonder if this is whats happening - any ideas ? cheers chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat wont start - log file error
hi the server is running and i'm getting the following message The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. the wasp server is set to port 6060 and is not running. the page i'm trying to call has taglib references but all is in order in terms of files in lib directory, tld reference etc the jsp files are in jakarta-tomcat-4.1.12-LE/webapps/root - they were working last week. i can't figure it ? ? cheers chris At 08:50 05.03.2004 -0500, you wrote: Hi, Your logs don't indicate anything wrong. Are there any errors in them? ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Chris Daly [mailto:[EMAIL PROTECTED] Sent: Friday, March 05, 2004 5:20 AM To: [EMAIL PROTECTED] Subject: tomcat wont start - log file error hi i installed a product called wasp server http://www.systinet.com/products/java_ws (looks like a neat tool for web services) on my local machine (win2kpro). problem is now my tomcat doesn't seem to start even when wasp is shut down. heres' what i'm getting from the log file - localhost-examples - log 2004 2004-03-05 10:09:48 WebappLoader[/examples]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.12-LE\work\Standalone\localhost\examples 2004-03-05 10:09:48 WebappLoader[/examples]: Deploy class files /WEB-INF/classes to C:\jakarta-tomcat-4.1.12-LE\webapps\examples\WEB-INF\classes 2004-03-05 10:09:48 WebappLoader[/examples]: Reloading checks are enabled for this Context 2004-03-05 10:09:48 ContextConfig[/examples]: Configured an authenticator for method FORM 2004-03-05 10:09:48 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2004-03-05 10:09:49 StandardManager[/examples]: Seeding of random number generator has been completed 2004-03-05 10:09:49 ContextListener: contextInitialized() 2004-03-05 10:09:49 SessionListener: contextInitialized() 2004-03-05 10:09:49 StandardWrapper[/examples:default]: Loading container servlet default 2004-03-05 10:09:49 StandardWrapper[/examples:invoker]: Loading container servlet invoker and the following from localhost_log.2004... 2004-03-05 10:09:49 StandardContext[/soap]: Starting 2004-03-05 10:09:49 StandardContext[/soap]: Processing start(), current available=false 2004-03-05 10:09:49 StandardContext[/soap]: Configuring default Resources the wasp server has built in soap services so i wonder if this is whats happening - any ideas ? cheers chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat wont start - log file error
Hi, I have had literally a minute to think about this so sorry if it's way off but my instinct says to try running WASP on Port 8080 (or maybe 80??) and running Tomcat at the same time. Quick Thought - I wonder if the order in which you start them up would help?? Of course if the WASP development team have come up with something specifically to use with their web-server it may be worth switching to that... HTH, Ad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat wont start - log file error
cheers i've tried running both at same time but no joy, running at different times, changing ports. when i run both at same time on same port interestingly i get a 404 on the tomcat.jsp, and the wasp page takes preference. probably have to try a reinstall on old tomcat (4.1.12- LE) chris At 15:30 05.03.2004 +, you wrote: Hi, I have had literally a minute to think about this so sorry if it's way off but my instinct says to try running WASP on Port 8080 (or maybe 80??) and running Tomcat at the same time. Quick Thought - I wonder if the order in which you start them up would help?? Of course if the WASP development team have come up with something specifically to use with their web-server it may be worth switching to that... HTH, Ad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: log4j log file path in Tomcat
Howdy, By appropriately configuring log4j instead of relying on the current working directory for the file location. Yoav Shapira Millennium ChemInformatics -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2003 11:33 AM To: [EMAIL PROTECTED] Subject: log4j log file path in Tomcat Hi I'm using log4j in my web app, which is deployed in Tomcat. By default, log4j generates the log file user's directory i.e., C:\Documents and Settings\drathi\Start Menu\Programs\Apache Tomcat 4.1. How can I make log4j to generate this log file at some other place? thanks, Naresh This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
log4j log file path in Tomcat
Hi I'm using log4j in my web app, which is deployed in Tomcat. By default, log4j generates the log file user's directory i.e., "C:\Documents and Settings\drathi\Start Menu\Programs\Apache Tomcat 4.1". How can I make log4j to generate thislog file at some other place? thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : RE : Redirecting the output to a log file
Maybe with debug=0 Anyway, u should use log4j instead of System.out -Message d'origine- De : Sarika N Inamdar [mailto:[EMAIL PROTECTED] Envoyé : mercredi 24 septembre 2003 06:41 À : 'Tomcat Users List' Objet : RE: RE : Redirecting the output to a log file Hi, Thanks for the solution. This works. Now my Servlets System.out is re-directed to log file. But I also see that tomcat logs lot of debug statements in the same debug. This would un-necessarily clutter our application log file. Is there a way we can filter tomcat System.out messages and log only our application System.out debug stmts ? Thanks for the help, Sarika -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 4:13 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE : Redirecting the output to a log file Add a logger to your context and the following attribute : swallowOutput=true Your system.out will be redirected to the logger you defined for your context. Example : Context path= docBase=/home/adeuza debug=0 reloadable=true crossContext=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=/u/logs/ prefix=logfile. suffix=.log timestamp=true/ /Context -Message d'origine- De : Sarika N Inamdar [mailto:[EMAIL PROTECTED] Envoyé : mercredi 17 septembre 2003 12:40 À : 'Johan Louwers'; 'Tomcat Users List' Objet : RE: Redirecting the output to a log file Hi, But the servlet System.out code used to log messages to our application log when using tomcat 3. With migration to 4.1.24, we are facing this issue. Thanks, Sarika -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:59 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Redirecting the output to a log file do not use System.out simply make a write to a file routine and write to a file :-) Johan. - Original Message - From: Sarika N Inamdar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:17 PM Subject: Redirecting the output to a log file Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Redirecting the output to a log file
Not really, that is why we all keep recommending commons-logging or log4j. -Tim Sarika N Inamdar wrote: Hi, Thanks for the solution. This works. Now my Servlets System.out is re-directed to log file. But I also see that tomcat logs lot of debug statements in the same debug. This would un-necessarily clutter our application log file. Is there a way we can filter tomcat System.out messages and log only our application System.out debug stmts ? Thanks for the help, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : Redirecting the output to a log file
Hi, Thanks for the solution. This works. Now my Servlets System.out is re-directed to log file. But I also see that tomcat logs lot of debug statements in the same debug. This would un-necessarily clutter our application log file. Is there a way we can filter tomcat System.out messages and log only our application System.out debug stmts ? Thanks for the help, Sarika -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 4:13 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE : Redirecting the output to a log file Add a logger to your context and the following attribute : swallowOutput=true Your system.out will be redirected to the logger you defined for your context. Example : Context path= docBase=/home/adeuza debug=0 reloadable=true crossContext=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=/u/logs/ prefix=logfile. suffix=.log timestamp=true/ /Context -Message d'origine- De : Sarika N Inamdar [mailto:[EMAIL PROTECTED] Envoyé : mercredi 17 septembre 2003 12:40 À : 'Johan Louwers'; 'Tomcat Users List' Objet : RE: Redirecting the output to a log file Hi, But the servlet System.out code used to log messages to our application log when using tomcat 3. With migration to 4.1.24, we are facing this issue. Thanks, Sarika -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:59 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Redirecting the output to a log file do not use System.out simply make a write to a file routine and write to a file :-) Johan. - Original Message - From: Sarika N Inamdar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:17 PM Subject: Redirecting the output to a log file Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirecting the output to a log file
Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirecting the output to a log file
do not use System.out simply make a write to a file routine and write to a file :-) Johan. - Original Message - From: Sarika N Inamdar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:17 PM Subject: Redirecting the output to a log file Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Redirecting the output to a log file
Hi, But the servlet System.out code used to log messages to our application log when using tomcat 3. With migration to 4.1.24, we are facing this issue. Thanks, Sarika -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:59 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Redirecting the output to a log file do not use System.out simply make a write to a file routine and write to a file :-) Johan. - Original Message - From: Sarika N Inamdar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:17 PM Subject: Redirecting the output to a log file Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Redirecting the output to a log file
Add a logger to your context and the following attribute : swallowOutput=true Your system.out will be redirected to the logger you defined for your context. Example : Context path= docBase=/home/adeuza debug=0 reloadable=true crossContext=true swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger directory=/u/logs/ prefix=logfile. suffix=.log timestamp=true/ /Context -Message d'origine- De : Sarika N Inamdar [mailto:[EMAIL PROTECTED] Envoyé : mercredi 17 septembre 2003 12:40 À : 'Johan Louwers'; 'Tomcat Users List' Objet : RE: Redirecting the output to a log file Hi, But the servlet System.out code used to log messages to our application log when using tomcat 3. With migration to 4.1.24, we are facing this issue. Thanks, Sarika -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:59 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Redirecting the output to a log file do not use System.out simply make a write to a file routine and write to a file :-) Johan. - Original Message - From: Sarika N Inamdar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:17 PM Subject: Redirecting the output to a log file Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirecting the output to a log file
Short term: try using swallowOutput=true. [Never used it myself] Long term: Switch to commons-logging or log4j. -Tim Sarika N Inamdar wrote: Hi, But the servlet System.out code used to log messages to our application log when using tomcat 3. With migration to 4.1.24, we are facing this issue. Thanks, Sarika -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:59 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Redirecting the output to a log file do not use System.out simply make a write to a file routine and write to a file :-) Johan. - Original Message - From: Sarika N Inamdar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:17 PM Subject: Redirecting the output to a log file Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirecting the output to a log file
There is a log function which gets inherited from somewhere, but anyway, it should be there if you subclasses HttpServlet. The javadocs might just be usefull for the servlet specs :). On Wed, 17 Sep 2003, Sarika N Inamdar wrote: Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to achieve the same. Thanks in Advance, Sarika - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stdout log file for Tomcat Windows Service
I am running Tomcat 4.1.24 as Windows Service in production environment. I have a server_stdout.log file for logging the stdout. However, I have two problems with this log file: (1) I added -verbose:gc option as the JVM option when install the Windows service, however, no GC info is logged in this file. How can I make GC info to be logged in this file? (2) Every time when I restart the service, this file will be overwritten. Is there a way to prevent this? Thank you for your help! Hua - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log file archiving on Windows
Hello again, Does anyone know how to get Tomcat to archive the log files when running as a Windows service? When I run it on a Linux system, it automatically archives the localhost_log file daily. Did I miss something in the setup? (I used the defaults in both installations) Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log file archiving on Windows
Howdy, What do you mean by archive ? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 8:29 AM To: [EMAIL PROTECTED] Subject: Log file archiving on Windows Hello again, Does anyone know how to get Tomcat to archive the log files when running as a Windows service? When I run it on a Linux system, it automatically archives the localhost_log file daily. Did I miss something in the setup? (I used the defaults in both installations) Thanks, Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing Log file..
Folks, I had previously posted this in the Log4j list but no one there had any suggestions of what might be happening.. Basically I have discovered that in the latest Tomcat I am running (4.1.18 both Linux and WinXP) the log file for Log4j (v1.2.3) is nowhere to be found. The configuration for this has not changed log4j.appender.R1.File=durlingweb.log ...and in previous versions the log would be found in the root of the Tomcat directory. I have search the entire hard drives of both the Linux (RedHat8) and WinXP machines.. it just does not exist anywhere. Oddly enough the log file does appear when running 4.1.12 within JBuilder8.. (again no changes to the configuration) Anyone have any ideas as to what has changed in Tomcat that would cause this log file to just go to bit heaven instead to to disk... (no errors anywhere that I can find) I'm at a lost as to where to look next, any suggestions appreciated... John.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat generates errors in log file when loading servlets
I have been trying to get a simple HelloWorld servlet to run for over a week now, and I have been unable to make progress. Although tomcat appears to start properly, when I try to execute a simple servlet, nothing happens. When I look at the localhost_admin_log file, it appears that there are errors in instantiating the DefaultServlet. The following is part of what is in the log file: 2003-03-04 12:37:13 StandardWrapper[/admin:default]: Loading container servlet default 2003-03-04 12:37:13 StandardWrapper[/admin:default]: Marking servlet default as unavailable 2003-03-04 12:37:13 StandardContext[/admin]: Servlet /admin threw load() exception javax.servlet.ServletException: Error instantiating servlet class org.apache.catalina.servlets.DefaultServlet ... - Root Cause - java.lang.NoClassDefFoundError I am running tomcat 4.1.12, and all the variables CATALINA_HOME, JAVA_HOME, etc are set correctly. Anybody have any ideas on how to fix this? Dom Pante [EMAIL PROTECTED]
Log file naming?
Is there anyway that I can reconfigure Tomcat 4.1.12 so that my log files do not have the date in them? I would like to have one log file that I can skim over for a month of activity, not 31 that I have to combine. It seems to give you options for changing everything else, why it the date stuff hard coded? Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Log file naming?
Is there anyway that I can reconfigure Tomcat 4.1.12 so that my log files do not have the date in them? I would like to have one log file that I can skim over for a month of activity, not 31 that I have to combine. It seems to give you options for changing everything else, why it the date stuff hard coded? Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Log file naming?
Don't you have a timestamp option in server.xml for the logs? On Tuesday 17 December 2002 14:54, Armbrust, Daniel C. wrote: Is there anyway that I can reconfigure Tomcat 4.1.12 so that my log files do not have the date in them? I would like to have one log file that I can skim over for a month of activity, not 31 that I have to combine. It seems to give you options for changing everything else, why it the date stuff hard coded? Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Log file naming?
To my understanding, that controls the timestamp written out inside of the log file. I'm talking about changing the name of the log file, and not making it rotate the log file every night. -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 3:52 PM To: Tomcat Users List Subject: Re: Log file naming? Don't you have a timestamp option in server.xml for the logs? On Tuesday 17 December 2002 14:54, Armbrust, Daniel C. wrote: Is there anyway that I can reconfigure Tomcat 4.1.12 so that my log files do not have the date in them? I would like to have one log file that I can skim over for a month of activity, not 31 that I have to combine. It seems to give you options for changing everything else, why it the date stuff hard coded? Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Log file naming?
Get 4.1.17. There is a new attribute for AccessLogValve called rotatable. Set it to false to NOT rotate logs. -Tim Armbrust, Daniel C. wrote: To my understanding, that controls the timestamp written out inside of the log file. I'm talking about changing the name of the log file, and not making it rotate the log file every night. -Original Message- From: Alexander Wallace [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 3:52 PM To: Tomcat Users List Subject: Re: Log file naming? Don't you have a timestamp option in server.xml for the logs? On Tuesday 17 December 2002 14:54, Armbrust, Daniel C. wrote: Is there anyway that I can reconfigure Tomcat 4.1.12 so that my log files do not have the date in them? I would like to have one log file that I can skim over for a month of activity, not 31 that I have to combine. It seems to give you options for changing everything else, why it the date stuff hard coded? Dan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to set log file permissions?
On Monday 18 November 2002 10:47 am, Leonard Sitongia wrote: How do I control the Unix file permissions that are set for the log files that are created by Tomcat? They end up mode 600. I would like them to be 644 so that developers can read the log files. Hello again, Am I missing something obvious here? Is it not possible to set the permissions? I thought I remembered the perms being 644 when I've run before, so maybe this is a change since 4.1.12? Thank you for any help you can give me. -- ==Leonard E. Sitongia Visualization and Enabling Technologies / Scientific Computing Division National Center for Atmospheric Research P.O. Box 3000 Boulder CO 80307 USA [EMAIL PROTECTED]voice: (303)497-2454 fax: (303)497-1829 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to set log file permissions?
On Tuesday 19 November 2002 09:58 am, Leonard Sitongia wrote: Am I missing something obvious here? Is it not possible to set the permissions? I think the answer here is yes, I'm missing something obvious. Just dawned on me that it must be the umask setting the permissions. Sorry to waste bandwidth. -- ==Leonard E. Sitongia Visualization and Enabling Technologies / Scientific Computing Division National Center for Atmospheric Research P.O. Box 3000 Boulder CO 80307 USA [EMAIL PROTECTED]voice: (303)497-2454 fax: (303)497-1829 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to set log file permissions?
Hello, I'm running Tomcat 4.1.14 (not 4.1.12 due to the SSL problem there), although I don't know if this question is specific to that release. It's running on Sun Solaris. How do I control the Unix file permissions that are set for the log files that are created by Tomcat? They end up mode 600. I would like them to be 644 so that developers can read the log files. I've searched all over the web, and read documentation about Tomcat. I don't think it would be java.io.FilePermission, which I think is for the apps running within Tomcat. Am I wrong about that? I don't see configurables for the Logger or AccessLogValve for setting this. Thank you for your help! -- ==Leonard E. Sitongia Visualization and Enabling Technologies / Scientific Computing Division National Center for Atmospheric Research P.O. Box 3000 Boulder CO 80307 USA [EMAIL PROTECTED]voice: (303)497-2454 fax: (303)497-1829 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Avoiding YYYY-MM-DD in log file names (tomcat 4.1.12)
Is it possible to avoid the -MM-DD in the log file names of tomcat 4.1.12? I would prefer to just let linux logrotate handle the rotation of log files. According to URL:http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html there is no possibility to configure it away, but perhaps someone knows of a simple workaround? Thanx! - Steinar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Realtime Log File Viewer
Hi Is there a way to see additions made to the log files in real time? Like is there someway you could get notified when something has been written to a log file? Or can you some how hook into catilina, so that when ever ServletContext.log(log something) is fired you get the string as well? I'm just after real time logging. That's all. Nicholas Orr ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Realtime Log File Viewer
Is your server on Windows or *nix? Have you tried tail? That allows you to view the last X lines of the log in real-time. Hamish -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 10:48 AM To: Tomcat Mailing List Subject: Realtime Log File Viewer Hi Is there a way to see additions made to the log files in real time? Like is there someway you could get notified when something has been written to a log file? Or can you some how hook into catilina, so that when ever ServletContext.log(log something) is fired you get the string as well? I'm just after real time logging. That's all. Nicholas Orr ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail:[EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Realtime Log File Viewer
Sorry- Windows 2k pro. Tomcat 4.1.10 Tail? What is this for. Nicholas Orr -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 September 2002 6:51 PM To: 'Tomcat Users List' Subject: RE: Realtime Log File Viewer Is your server on Windows or *nix? Have you tried tail? That allows you to view the last X lines of the log in real-time. Hamish -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 10:48 AM To: Tomcat Mailing List Subject: Realtime Log File Viewer Hi Is there a way to see additions made to the log files in real time? Like is there someway you could get notified when something has been written to a log file? Or can you some how hook into catilina, so that when ever ServletContext.log(log something) is fired you get the string as well? I'm just after real time logging. That's all. Nicholas Orr ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail:[EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Realtime Log File Viewer
That's a unix/linux real time file viewer. -Ursprüngliche Nachricht- Von: Nicholas Orr [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. September 2002 10:52 An: 'Tomcat Users List' Betreff: RE: Realtime Log File Viewer Tail? What is this for. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Realtime Log File Viewer
I have heard that the tomcat's stdout can be redirected in the log event manager of windows. But I don't know how to made that. -Message d'origine- De : Nicholas Orr [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 10:52 À : 'Tomcat Users List' Objet : RE: Realtime Log File Viewer Sorry- Windows 2k pro. Tomcat 4.1.10 Tail? What is this for. Nicholas Orr -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 September 2002 6:51 PM To: 'Tomcat Users List' Subject: RE: Realtime Log File Viewer Is your server on Windows or *nix? Have you tried tail? That allows you to view the last X lines of the log in real-time. Hamish -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 10:48 AM To: Tomcat Mailing List Subject: Realtime Log File Viewer Hi Is there a way to see additions made to the log files in real time? Like is there someway you could get notified when something has been written to a log file? Or can you some how hook into catilina, so that when ever ServletContext.log(log something) is fired you get the string as well? I'm just after real time logging. That's all. Nicholas Orr ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail:[EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Realtime Log File Viewer
Ok, know of any widows ones? Also what does AW: stand for? Nicholas Orr -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 September 2002 6:58 PM To: Tomcat Users List Subject: AW: Realtime Log File Viewer That's a unix/linux real time file viewer. ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Realtime Log File Viewer
wintail -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: 20 September 2002 10:00 To: 'Tomcat Users List' Subject: RE: Realtime Log File Viewer Ok, know of any widows ones? Also what does AW: stand for? Nicholas Orr -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 September 2002 6:58 PM To: Tomcat Users List Subject: AW: Realtime Log File Viewer That's a unix/linux real time file viewer. ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] *** This communication (including any attachments) contains confidential information. If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error. Internet communications are not necessarily secure and may be intercepted or changed after they are sent. Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes. If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication. This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding. Abbey National Treasury Services plc. Registered Office: Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN. Registered in England under Company Registration Number: 2338548. Regulated by the Financial Services Authority (FSA). *** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Realtime Log File Viewer
Here is a tail version for windows: http://www.rhazes.com/cgi-bin/Utilitiy_0.asp (Google is our friend) -Ursprüngliche Nachricht- Von: Nicholas Orr [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 20. September 2002 10:52 An: 'Tomcat Users List' Betreff: RE: Realtime Log File Viewer Sorry- Windows 2k pro. Tomcat 4.1.10 Tail? What is this for. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Realtime Log File Viewer
Thanks, I was just searching for wintail, the base site is www.wintail.com. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 September 2002 7:02 PM To: Tomcat Users List Subject: AW: Realtime Log File Viewer Here is a tail version for windows: http://www.rhazes.com/cgi-bin/Utilitiy_0.asp (Google is our friend) ** The information contained in this e-mail is confidential and is intended only for the use of the addressee(s). If you receive this e-mail in error, any use, distribution or copying of this e-mail is not permitted. You are requested to forward unwanted e-mail and address any problems to the MIM Holdings Limited Support Centre. For general enquires: ++61 7 3833 8000 Support Centre e-mail: [EMAIL PROTECTED] Support Centre phone: Australia 1800500646 International ++61 7 38338042 ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Realtime Log File Viewer
tail is also included in the cygwin distribution. Install that and it make your Win2k box much more useful. :-) http://cygwin.com/ -Original Message- From: Nicholas Orr [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 5:05 AM To: 'Tomcat Users List' Subject: RE: Realtime Log File Viewer Thanks, I was just searching for wintail, the base site is www.wintail.com. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk log file errors
Hi We had similar looking errors to you (including some broken pipe messages in catalina_log) and did a lot of searching for solutions. There are a lot of people posting about this sort of thing and no definitive answers that we could find. but... We found a suggested solution which I will repeat. We have implemented this (along with other changes) and are in the process of checking whether it has worked. The suggestion was (and I would love someone to confirm this) that Apache is accepting and passing to Tomcat more concurrent requests than Tomcat has threads to deal with them. Apache has a setting in httpd.conf called MaxClients which is 150 by default - but the AJP Connector element in Tomcats server.xml file defines the maxProcessors attribute to be 75 by default. The quickest fix is to up the maxProcessors value to 150. If anyone can confirm that this mismatch could cause communication problems over the mod_jk connector that would be very helpful. I hope that helps, Anthony. -Original Message- From: Ago Meister [SMTP:[EMAIL PROTECTED]] Sent: 18 September 2002 18:10 To: Tomcat Users List Subject: mod_jk log file errors Hello there, My mod_jk log file contains many error messages? We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2. Does anybody any ideas or has experience with similar problems? errors are: [Mon Sep 16 15:38:18 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:38:20 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:43:27 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (1013)]: Error reading reply and [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 1 [Mon Sep 16 15:44:22 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply kind regards, Ago Meister -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk log file errors
Hi, Yes, I increased Tomcat maxProcessors value and it seems to me that it works. kind regards, Ago Meister -Original Message- From: Anthony Milbourne [mailto:[EMAIL PROTECTED]] Sent: 20. september 2002. a. 18:34 To: 'Tomcat Users List' Subject: RE: mod_jk log file errors Hi We had similar looking errors to you (including some broken pipe messages in catalina_log) and did a lot of searching for solutions. There are a lot of people posting about this sort of thing and no definitive answers that we could find. but... We found a suggested solution which I will repeat. We have implemented this (along with other changes) and are in the process of checking whether it has worked. The suggestion was (and I would love someone to confirm this) that Apache is accepting and passing to Tomcat more concurrent requests than Tomcat has threads to deal with them. Apache has a setting in httpd.conf called MaxClients which is 150 by default - but the AJP Connector element in Tomcats server.xml file defines the maxProcessors attribute to be 75 by default. The quickest fix is to up the maxProcessors value to 150. If anyone can confirm that this mismatch could cause communication problems over the mod_jk connector that would be very helpful. I hope that helps, Anthony. -Original Message- From: Ago Meister [SMTP:[EMAIL PROTECTED]] Sent: 18 September 2002 18:10 To: Tomcat Users List Subject: mod_jk log file errors Hello there, My mod_jk log file contains many error messages? We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2. Does anybody any ideas or has experience with similar problems? errors are: [Mon Sep 16 15:38:18 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:38:20 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:43:27 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (1013)]: Error reading reply and [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 1 [Mon Sep 16 15:44:22 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply kind regards, Ago Meister -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk log file errors
Hello there, My mod_jk log file contains many error messages? We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2. Does anybody any ideas or has experience with similar problems? errors are: [Mon Sep 16 15:38:18 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:38:20 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:43:27 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (1013)]: Error reading reply and [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 1 [Mon Sep 16 15:44:22 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply kind regards, Ago Meister -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_jk log file errors
Not the same errors, but using Apache 2.0.40 and Tomcat 4.0.4 I get: [Wed Sep 18 14:49:03 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Wed Sep 18 14:55:17 2002] [jk_ajp_common.c (824)]: Error sending request try another pooled connection [Wed Sep 18 14:55:17 2002] [jk_ajp_common.c (824)]: Error sending request try another pooled connection [Wed Sep 18 14:55:17 2002] [jk_ajp_common.c (824)]: Error sending request try another pooled connection [Wed Sep 18 14:55:17 2002] [jk_ajp_common.c (824)]: Error sending request try another pooled connection [Wed Sep 18 14:55:17 2002] [jk_ajp_common.c (824)]: Error sending request try another pooled connection [Wed Sep 18 14:55:17 2002] [jk_ajp_common.c (824)]: Error sending request try another pooled connection [Wed Sep 18 14:55:18 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 61 [Wed Sep 18 14:55:18 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 [Wed Sep 18 14:55:18 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Wed Sep 18 14:55:18 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 0 [Wed Sep 18 14:55:19 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 61 [Wed Sep 18 14:55:19 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 [Wed Sep 18 14:55:19 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Wed Sep 18 14:55:19 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 1 [Wed Sep 18 14:55:20 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 61 [Wed Sep 18 14:55:20 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61 [Wed Sep 18 14:55:20 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Wed Sep 18 14:55:20 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Wed Sep 18 15:05:38 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Wed Sep 18 15:05:38 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Wed Sep 18 15:06:00 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Wed Sep 18 15:06:19 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed -Original Message- From: Ago Meister [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 1:10 PM To: Tomcat Users List Subject: mod_jk log file errors Hello there, My mod_jk log file contains many error messages? We are using Apache 1.3.26 and Tomcat 4.0.4 with AJP13 and RH 6.2. Does anybody any ideas or has experience with similar problems? errors are: [Mon Sep 16 15:38:18 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:38:20 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:43:27 2002] [jk_ajp_common.c (933)]: Error ajp_process_callback - write failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:12 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:15 2002] [jk_ajp_common.c (1013)]: Error reading reply and [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1150)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 1 [Mon Sep 16 15:44:22 2002] [jk_connect.c (151)]: jk_open_socket, connect() failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (599)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (844)]: Error connecting to the Tomcat process. [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (652)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Mon Sep 16 15:44:22 2002] [jk_ajp_common.c (1013)]: Error reading reply
Any timestamp for log file
Hi, I run the Tomcat 3.2.2 in w2k as a service. Not all log file in Tomcat have timestamp, it's not easy to trace error message. Any setting is needed in order to add timestamp in log file ? Thanks - Do You Yahoo!? Get your free yahoo.com.hk address at Yahoo! Mail.
Re: Is there any way to stop exceptions getting logged to log file?
On Wed, 24 Jul 2002, Mark O'Driscoll wrote: Date: Wed, 24 Jul 2002 09:46:18 +0100 From: Mark O'Driscoll [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is there any way to stop exceptions getting logged to log file? I don't want to get involved in a programming practice debate BUT.. Too late ... :-) The performance hit from exceptions occur because exceptions are thrown, not in how they are handled. You cannot programatically avoid exceptions with xhaustive checking that would itself hinder performance. Specifically potential SQL errors are punexceptionally/pun difficult to cater for. (dropped connections, network problems, constraint violations) .Exceptions are only thrown when something goes wrong. The point I was trying to make was that exceptions are not only a sign of system failure, but one of usage failure too. Because SQLException is a checked exception, you can't throw it directly from a servlet anyway, so your database accesses are already encapsulated in try/catch blocks. You've already paid all the cost of checking already -- you actually have to deliberately rethrow it (wrapped in a ServletException) to allow your filter to see it. Why go to all that extra work? Anyway, what I was trying to do was to implement a transaction logging filter that determined if a particular database write operation had worked. The code is simple and checks if a servlet/jsp has thrown an exception to check for success/failure. If the servlet/jsp completes without throwing an exception, I commit the transaction, otherwise I roll it back. This is not the way you should program database applications! It is very very dangerous to depend on external logic to commit or roll back transactions for you. If an exception happens, it should be logged and dealt with when it happens. Database access logic should always catch its own exceptions, and commit or roll back the transaction appropriately. In a web app, it is considered irresponsible programming for a servlet to leave an open database transaction after it returns from the service() method, for whatever reason that might happen. To say nothing of returning the connection to the connection pool you got it from. Is there some recognised way to pass servet/jsp error conditions to filters? This would prevent me relying on exceptions (altho' exceptions would have to be catered for too). I suppose I could use the request.getAttribte()? Are exceptions that are trapped in a filter 'seen' and handled by Tomcat? Your problem is that Tomcat sees the exception thrown by the servlet before it is passed back to the filter. That's where the logging is happening. And that's not going to change (in the standard Tomcat release -- you're perfectly free to modify your own copy), because handling exceptions is not what filters are for. TIA - Mark Craig I'll second what Craig has said and add that if your program normally throws lots of exceptions, then you should look at some of your design decisions. Exceptions are wonderful when used for Exceptional behavior, but not for normal runs. They are also REALLY slow. Exceptions can kill your performance, and if you are getting them regularly, you should catch the ones you can safely ignore as early as possible and toss them away as appropriate, or even better, not throw them at all. Regards, Will Hartung ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there any way to stop exceptions getting logged to log file?
You're right. It is too late! I don't want to get involved in a programming practice debate BUT.. Too late ... :-) The performance hit from exceptions occur because exceptions are thrown, not in how they are handled. You cannot programatically avoid exceptions with xhaustive checking that would itself hinder performance. Specifically potential SQL errors are punexceptionally/pun difficult to cater for. (dropped connections, network problems, constraint violations) .Exceptions are only thrown when something goes wrong. The point I was trying to make was that exceptions are not only a sign of system failure, but one of usage failure too. Because SQLException is a checked exception, you can't throw it directly from a servlet anyway, so your database accesses are already encapsulated in try/catch blocks. You've already paid all the cost of checking already -- you actually have to deliberately rethrow it (wrapped in a ServletException) to allow your filter to see it. Why go to all that extra work? Anyway, what I was trying to do was to implement a transaction logging filter that determined if a particular database write operation had worked. The code is simple and checks if a servlet/jsp has thrown an exception to check for success/failure. If the servlet/jsp completes without throwing an exception, I commit the transaction, otherwise I roll it back. This is not the way you should program database applications! It is very very dangerous to depend on external logic to commit or roll back transactions for you. If an exception happens, it should be logged and dealt with when it happens. Disagree. That is just micro managing exceptions. Transactions are the example of where a wrapper try/catch block around a series of SQL statements is a much better way to do it than try/catching each one. Also subsequent non database actions can cause a rollback. Database access logic should always catch its own exceptions, and commit or roll back the transaction appropriately. In a web app, it is considered irresponsible programming for a servlet to leave an open database transaction after it returns from the service() method, for whatever reason that might happen. To say nothing of returning the connection to the connection pool you got it from. That is exactly what the filter will do for you. The transaction wrapup in the filter will ALWAYS be called = less scope for errors. Is there some recognised way to pass servet/jsp error conditions to filters? This would prevent me relying on exceptions (altho' exceptions would have to be catered for too). I suppose I could use the request.getAttribte()? Are exceptions that are trapped in a filter 'seen' and handled by Tomcat? Your problem is that Tomcat sees the exception thrown by the servlet before it is passed back to the filter. That's where the logging is happening. And that's not going to change (in the standard Tomcat release -- you're perfectly free to modify your own copy), because handling exceptions is not what filters are for. Oh no it doesn't. Otherwise filters could not work. If you put doChain() in a try catch block, you catch the exception that the jsp/servlet threw. TIA - Mark Craig I'll second what Craig has said and add that if your program normally throws lots of exceptions, then you should look at some of your design decisions. Exceptions are wonderful when used for Exceptional behavior, but not for normal runs. They are also REALLY slow. Exceptions can kill your performance, and if you are getting them regularly, you should catch the ones you can safely ignore as early as possible and toss them away as appropriate, or even better, not throw them at all. Regards, Will Hartung ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there any way to stop exceptions getting logged to log file?
From: Mark O'Driscoll [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is there any way to stop exceptions getting logged to log file? The performance hit from exceptions occur because exceptions are thrown, not in how they are handled. You cannot programatically avoid exceptions with xhaustive checking that would itself hinder performance. Specifically potential SQL errors are punexceptionally/pun difficult to cater for. (dropped connections, network problems, constraint violations) .Exceptions are only thrown when something goes wrong. The point I was trying to make was that exceptions are not only a sign of system failure, but one of usage failure too. Yes, which means that if you can trivially check your parameters before calling a routine that will throw an exception because of those parameters, it is cheaper than letting the routine throw the exception and then catch it. Anyway, what I was trying to do was to implement a transaction logging filter that determined if a particular database write operation had worked. The code is simple and checks if a servlet/jsp has thrown an exception to check for success/failure. If the servlet/jsp completes without throwing an exception, I commit the transaction, otherwise I roll it back. To be really blunt, this is exactly the behavior tha the J2EE servers gives you. The EJBs can be transaction ignorant and the overall transaction will be committed/rolledback as appropriate. The key here, though, is most of these exceptions shouldn't be logical exceptions (particularly if there are a lot of them), but rather physical exceptions (database full, integrity check error). Exceptions for circumstances that are basically out of your control. As a simple example, we have found, at least with a J2EE environment, that it would be cheaper to, say, check that a user didn't exist in a DB with simple SQL rather than insert a row dependant on that user and throw the foreign key exception back. Much better performance. Regards, Will Hartung ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is there any way to stop exceptions getting logged to log file?
I am using a filter to trap exceptions thrown by jsps/servlets. In normal program operation, lots of these exceptions get thrown. In order to stop 'localhost_log.-MM-DD.txt' getting clogged, I'd like to stop exceptions that are handled by the servlet engine from being logged. Or at least ust havethe exception mentioned rather than the full stack trace. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there any way to stop exceptions getting logged to log file?
On Tue, 23 Jul 2002, Mark O'Driscoll wrote: Date: Tue, 23 Jul 2002 18:18:42 +0100 From: Mark O'Driscoll [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Is there any way to stop exceptions getting logged to log file? I am using a filter to trap exceptions thrown by jsps/servlets. In normal program operation, lots of these exceptions get thrown. In order to stop 'localhost_log.-MM-DD.txt' getting clogged, I'd like to stop exceptions that are handled by the servlet engine from being logged. Or at least ust havethe exception mentioned rather than the full stack trace. To avoid the exceptions getting logged, you'll need to catch them in the servlet or JSP itself (which is a much better programming practice than letting them flow through), so that the servlet container never sees them. Exceptions from servlets and JSPs should not be considered normal -- they are an indication of an error condition that the application should have taken care of, but did not. To change how much gets logged when an exception is caught by Tomcat, you'll need to modify the Tomcat sources. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there any way to stop exceptions getting logged to log file?
From: Craig R. McClanahan [EMAIL PROTECTED] Sent: Tuesday, July 23, 2002 10:38 AM Subject: Re: Is there any way to stop exceptions getting logged to log file? On Tue, 23 Jul 2002, Mark O'Driscoll wrote: I am using a filter to trap exceptions thrown by jsps/servlets. In normal program operation, lots of these exceptions get thrown. To avoid the exceptions getting logged, you'll need to catch them in the servlet or JSP itself (which is a much better programming practice than letting them flow through), so that the servlet container never sees them. Exceptions from servlets and JSPs should not be considered normal -- they are an indication of an error condition that the application should have taken care of, but did not. I'll second what Craig has said and add that if your program normally throws lots of exceptions, then you should look at some of your design decisions. Exceptions are wonderful when used for Exceptional behavior, but not for normal runs. They are also REALLY slow. Exceptions can kill your performance, and if you are getting them regularly, you should catch the ones you can safely ignore as early as possible and toss them away as appropriate, or even better, not throw them at all. Regards, Will Hartung ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]