Re: mod_jk2: Error flushing

2004-08-31 Thread Henri Gomez
Alex Yakovlev wrote:
tomcat-dev,
I keep getting the following messages in error_log several times per hour:
mod_jk: Error flushing
[Sun Aug 22 20:09:21 2004] [error] ajp13.service() ajpGetReply recoverable error 3
[Sun Aug 22 20:09:23 2004] [error] ajp13.service() ajpGetReply recoverable error 3
[Sun Aug 22 20:09:23 2004] [error] ajp13.service() Error  forwarding 
ajp13:/opt/tomcat/work/jk2.socket 1 0
[Sun Aug 22 20:09:23 2004] [error] mod_jk2.handler() Error connecting to tomcat 3, 
status 200
on Apache/2.0.49 + mod_jk2/2.0.5-dev + Tomcat/5.0.27 under Linux.
I've found the following lines in JK sources:
native/apache-2.0/mod_jk.c-/*
native/apache-2.0/mod_jk.c: * To allow server push. After writing full 
buffers
native/apache-2.0/mod_jk.c- */
native/apache-2.0/mod_jk.c-#ifndef AS400
native/apache-2.0/mod_jk.c-if(ap_rflush(p-r) != APR_SUCCESS) {
native/apache-2.0/mod_jk.c-ap_log_error(APLOG_MARK, APLOG_STARTUP | 
APLOG_NOERRNO, 0,
native/apache-2.0/mod_jk.c- NULL, mod_jk: Error flushing 
\n  );
native/apache-2.0/mod_jk.c-return JK_FALSE;
native/apache-2.0/mod_jk.c-}
native/apache-2.0/mod_jk.c-#endif
--
native2/server/apache13/jk_service_apache13.c-/*
native2/server/apache13/jk_service_apache13.c: * To allow server push. After 
writing full buffers
native2/server/apache13/jk_service_apache13.c- */
native2/server/apache13/jk_service_apache13.c-ap_bflush(bf);
native2/server/apache13/jk_service_apache13.c-}
native2/server/apache13/jk_service_apache13.c-return JK_OK;
--
native2/server/apache2/jk_service_apache2.c-/*
native2/server/apache2/jk_service_apache2.c: * To allow server push. After writing 
full buffers
native2/server/apache2/jk_service_apache2.c- */
native2/server/apache2/jk_service_apache2.c-if (ap_rflush(rr) != APR_SUCCESS) {
native2/server/apache2/jk_service_apache2.c-ap_log_error(APLOG_MARK, 
APLOG_STARTUP | APLOG_NOERRNO, 0,
native2/server/apache2/jk_service_apache2.c- NULL, mod_jk: Error 
flushing);
native2/server/apache2/jk_service_apache2.c-return JK_ERR;
native2/server/apache2/jk_service_apache2.c-}
native2/server/apache2/jk_service_apache2.c-return JK_OK;
native2/server/apache2/jk_service_apache2.c-}
and I've got several questions:
1) What does this error message means?
2) Why is it commented out for AS400? (by IBM?)
Nope, by me (not an IBMer). The code was backported from jk.
the ajp refactory and inclusion in HTTP 2.x is on the way and I suggest
you to take a look at future HTTP release which will support it natively.
jk is production ready but it's not the case of jk2.
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AJP reorganizing sources

2004-08-31 Thread Henri Gomez
Mladen Turk wrote:
Hi,
I'd like to reorganize the source code in the j-t-c/ajp.
Something like ajp/src and ajp/include seems reasonable to me.
Also what to do with the proxy code?
It is in the httpd tree now, so we don't need them any more.
I was thinking to remove all the sources and make a note that
the files are in the httpd tree.
Q. How to copy the cvs log when moving files to another dir?
I'd like to keep them when moving from ajp/test to ajp/src.

Excellent works Mladen on AJP/mod_proxy and I'm more than happy to
see that we could expect to see native ajp support in future HTTP 2.x
release.
BTW, we may have to add more ajp13 options like CPING/CPONG. How could
we manage this now that part of the ajp code is duplicated in HTTPD CVS ?
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [VOTE] [5.5] Release plan votes

2004-08-31 Thread Henri Gomez
Remy Maucherat wrote:
ballot
I approve the release plan:
[X] Yes
[ ] No
/ballot
ballot
Tomcat 5.5 should use the following API set for the coding:
[ ] J2SE 1.3
[X] J2SE 1.4
[ ] J2SE 5.0
/ballot
ballot
Yoav Shapira will act as the release manager for this branch:
[X] Yes
[ ] No
/ballot
Thanks :)
Rémy
-
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: [proxy] New implementation ready for testing

2004-08-31 Thread Henri Gomez
William A. Rowe, Jr. wrote:
At 11:14 AM 8/11/2004, Mladen Turk wrote:

The connection pool enables reusing backend connections
and was build around apr_reslist. At the moment only the
proxy_ajp extensively uses this connection pool, with
performance slightly better then mod_jk.

I noticed one huge win - unless I'm misreading...  we don't require
any includes from j2sdk/include/ ??? That in and of itself is great :)
No need for java include since ajp implementation is the one using 
network support, no jni involved :)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: jakarta-tomcat-connectors/jk/native/common jk_ajp_common.c

2004-08-31 Thread hgomez
hgomez  2004/08/31 01:33:24

  Modified:jk/native/common jk_ajp_common.c
  Log:
  Fix Bugzilla#12404 and ensure that now is correctly initialized.
  
  Patch provided by rainer.jung at kippdata.de
  
  Revision  ChangesPath
  1.58  +4 -6  jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
  
  Index: jk_ajp_common.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- jk_ajp_common.c   9 Aug 2004 22:30:53 -   1.57
  +++ jk_ajp_common.c   31 Aug 2004 08:33:24 -  1.58
  @@ -1750,9 +1750,7 @@
   if (rc) {
   unsigned i;
   time_t now;
  -if (aw-socket_timeout  0 || aw-cache_timeout) {
  -now = time(NULL);
  -}
  +now = time(NULL);
   for (i = 0 ; i  aw-ep_cache_sz ; i++) {
   if (aw-ep_cache[i]) {
   ae = aw-ep_cache[i];
  @@ -1768,7 +1766,7 @@
   if (elapsed  aw-cache_timeout) {
   jk_log(l, JK_LOG_DEBUG, 
   In jk_endpoint_t::ajp_get_endpoint, 
  - cleaning cache slot = %d elapsed %d\n,
  + cleaning cache slot = %d elapsed %u\n,
i, elapsed);
   ajp_close_endpoint(aw-ep_cache[i], l);
   aw-ep_cache[i] = NULL;
  @@ -1784,7 +1782,7 @@
   ae-last_access = now;
   jk_log(l, JK_LOG_DEBUG,
 In jk_endpoint_t::ajp_get_endpoint, 
  -  time elapsed since last request = %d seconds\n,
  +  time elapsed since last request = %u seconds\n,
  elapsed);
   if (aw-socket_timeout  0 
   elapsed  aw-socket_timeout) {
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30620] - incorrent handling of last_access and elapsed

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30620.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30620

incorrent  handling of last_access and elapsed

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 08:35 ---
Commited thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30645] - Deploying .war with context.xml starts two contexts.

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30645.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30645

Deploying .war with context.xml starts two contexts.





--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 06:49 ---
Other option:

when deploy a ROOT context the file name at conf/enginename/hostname
must be ROOT.xml and also the war at webapps must be ROOT.war.

Then you can activate the autoDeploy, deployOnStartup, deployXML again.

Regards
Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30869] - JAAS module name is not allowed in jaas.conf file

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30869.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30869

JAAS module name is not allowed in jaas.conf file





--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 09:00 ---
I'm not sure I can find the code for the barf, because I don't have the Sun
source code :-) 

I think the problem is in com.sun.security.auth.login.ConfigFile which is the
class reading the jaas.config file (actually, the name isn't relevant -- it's
the file pointed to by the URL in -Djava.security.auth.login.config or by
default in ${user.home}/.java.login.config)

The JavaDoc isn't up to much: ConfigFile is

http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/spec/com/sun/security/auth/login/ConfigFile.html

which says it parses the file with the syntax described in:

http://java.sun.com/j2se/1.4.2/docs/api/javax/security/auth/login/Configuration.html

and all it says in there is

Each entry in the Configuration is indexed via an application name.

ApplicationName {
  ModuleClass  FlagModuleOptions;
  ModuleClass  FlagModuleOptions;
  ModuleClass  FlagModuleOptions;
};


So Tomcat is setting the name OK programmatically, but the ConfigFile parser
only seems to allow [a-zA-Z]+ as the ApplicationName, so fails at the initial /

Thus, if you try and use a config file:

/MyAppRoot {
  com.example.LoginModule required;
};

then the ConfigFile parser doesn't successfully read it.

It seems that the ConfigFile uses lazy loading, so it doesn't parse the first
login request when using JAAS.

Sorry, can't paste in .diff format; I don't have the Tomcat source code on a
machine with a '.diff' command -- I just eyeballed the problem to find out why
the name was being set with a leading '/'.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30957] New: - Cannot resolve a custom tag if no package

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30957.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30957

Cannot resolve a custom tag if no package

   Summary: Cannot resolve a custom tag if no package
   Product: Tomcat 5
   Version: 5.0.27
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Blocker
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I'm writing a Hello World custom tag. It works perfectely if my tag class is 
in a package, but it doesn't if not.

---
Here is the JSP

%@ taglib uri=/WEB-INF/petstore.tld prefix=hy %

html
body
hy:hello/
/body
/html


---
Here is the tag class

import java.io.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;

public class HelloTag extends SimpleTagSupport {

public void doTag() throws JspException, IOException {
JspWriter out = getJspContext().getOut();
out.println(Hello PetStore !!!);
}
}

---
Here is the tld class

?xml version=1.0?

taglib xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-
jsptaglibrary_2_0.xsd
version=2.0

tlib-version1.0/tlib-version
jsp-version2.0/jsp-version
short-nameHerong's Tag Library/short-name
tag
namehello/name
tag-classHelloTag/tag-class
body-contentempty/body-content
/tag
/taglib

---
Here is the exception (sorry french browser)

org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP

Une erreur s'est produite à la ligne: 5 dans le fichier jsp: /hello.jsp
Erreur de servlet générée:
D:\Java\jakarta-tomcat-5.0.27
\work\Catalina\localhost\petstore\org\apache\jsp\hello_jsp.java:74: cannot 
resolve symbol
symbol  : class HelloTag 
location: class org.apache.jsp.hello_jsp
HelloTag _jspx_th_hy_hello_0 = new HelloTag();
^


Une erreur s'est produite à la ligne: 5 dans le fichier jsp: /hello.jsp
Erreur de servlet générée:
D:\Java\jakarta-tomcat-5.0.27
\work\Catalina\localhost\petstore\org\apache\jsp\hello_jsp.java:74: cannot 
resolve symbol
symbol  : class HelloTag 
location: class org.apache.jsp.hello_jsp
HelloTag _jspx_th_hy_hello_0 = new HelloTag();
   ^
2 errors



org.apache.jasper.compiler.DefaultErrorHandler.javacError
(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError
(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

---
Now if you just move the HelloTag class to a package, it works fine

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Enhancement: mod_jk-Logging

2004-08-31 Thread Rainer Jung
I have a proposal for a slight enhancement concerning the log format of
mod_jk. As suggested by Henri Gomez, I sent the proposal to the
tomcat-dev list.
1) Include the log level of a message in the log line. That should be
easy and is very helpful to find relevant messages. It is a pretty
standard feature.
2) Include the PID of the logging process in the log file. That helps a
lot, because one can also log the PID in Apaches access log. So it is
easier to relate access log lines and mod_jk log lines to each other.
Also it helps to unmangle, if log lines from several parallel requests
are mixed. Of course this argumentation mainly is for apache 1.3, but
most people use mod_jk for it.
Both enhancements can be done in jk/native/common/jk_util.c.
I attach a small patch, which I also include at the end of the message.
Since I'm not an experienced C developer please
check. I borrowed a define for Netware for getpid() from Apache's code.
Not sure If it will work for Netware, or if configure needs to be
enhanced, if we use getpid(). It build well on Solaris and it is
done in the same way inside core apache.
The patch is in diff -Nru-format and is based on
jk/native/common/jk_util.c revision 1.28. I hope this is still up to date.
Thank's for considering.
Rainer Jung
--- jk_util.c   Tue Jul 13 15:58:10 2004
+++ jk_util.c.new   Thu Aug 12 18:11:50 2004
@@ -85,6 +85,14 @@
  const char * jk_log_fmt = JK_TIME_FORMAT;
+int log_level_max = 3;
+static const char *log_levels[] = {
+JK_LOG_DEBUG_VERB,
+JK_LOG_INFO_VERB,
+JK_LOG_ERROR_VERB,
+JK_LOG_EMERG_VERB
+};
+
  static void set_time_str(char * str, int len)
  {
  time_t  t = time(NULL);
@@ -250,19 +258,32 @@
  f++;
  }
+const char *log_level;
+if ( level =0  level = log_level_max ) {
+log_level=log_levels[level];
+} else {
+log_level=unknown;
+}
+
+#ifdef NETWARE
+#define getpid() ((pid_t)GetThreadGroupID())
+#endif
+
  #ifdef USE_SPRINTF /* until we get a snprintf function */
  #ifdef NETWARE
  buf = (char *) malloc(HUGE_BUFFER_SIZE);
  if (NULL == buf)
 return -1;
  #endif
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += sprintf(buf[used], [%s] [%ld], log_level,
(long)getpid());
  if(line)
  used += sprintf(buf[used],  [%s (%d)]: , f, line);
  #else
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += snprintf(buf[used], HUGE_BUFFER_SIZE, [%s] [%ld],
log_level, (long)getpid());
  if(line)
  used += snprintf(buf[used], HUGE_BUFFER_SIZE,  [%s
(%d)]: , f, line);
  #endif


--- jk_util.c   Tue Jul 13 15:58:10 2004
+++ jk_util.c.new   Thu Aug 12 18:11:50 2004
@@ -85,6 +85,14 @@
 
 const char * jk_log_fmt = JK_TIME_FORMAT;
 
+int log_level_max = 3;
+static const char *log_levels[] = {
+JK_LOG_DEBUG_VERB,
+JK_LOG_INFO_VERB,
+JK_LOG_ERROR_VERB,
+JK_LOG_EMERG_VERB
+};
+
 static void set_time_str(char * str, int len)
 {
 time_t  t = time(NULL);
@@ -250,19 +258,32 @@
 f++;
 }
 
+const char *log_level;
+if ( level =0  level = log_level_max ) {
+log_level=log_levels[level];
+} else {
+log_level=unknown;
+}
+
+#ifdef NETWARE
+#define getpid() ((pid_t)GetThreadGroupID())
+#endif
+
 #ifdef USE_SPRINTF /* until we get a snprintf function */
 #ifdef NETWARE
 buf = (char *) malloc(HUGE_BUFFER_SIZE);
 if (NULL == buf)
return -1;
 #endif
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += sprintf(buf[used], [%s] [%ld], log_level, (long)getpid());
 if(line)
 used += sprintf(buf[used],  [%s (%d)]: , f, line);
 #else 
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += snprintf(buf[used], HUGE_BUFFER_SIZE, [%s] [%ld], log_level, 
(long)getpid());
 if(line)
 used += snprintf(buf[used], HUGE_BUFFER_SIZE,  [%s (%d)]: , f, line);  
  
 #endif


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Enhancement: mod_jk-Logging

2004-08-31 Thread Henri Gomez
Rainer Jung wrote:
I have a proposal for a slight enhancement concerning the log format of
mod_jk. As suggested by Henri Gomez, I sent the proposal to the
tomcat-dev list.
1) Include the log level of a message in the log line. That should be
easy and is very helpful to find relevant messages. It is a pretty
standard feature.
2) Include the PID of the logging process in the log file. That helps a
lot, because one can also log the PID in Apaches access log. So it is
easier to relate access log lines and mod_jk log lines to each other.
Also it helps to unmangle, if log lines from several parallel requests
are mixed. Of course this argumentation mainly is for apache 1.3, but
most people use mod_jk for it.
Both enhancements can be done in jk/native/common/jk_util.c.
I attach a small patch, which I also include at the end of the message.
Since I'm not an experienced C developer please
check. I borrowed a define for Netware for getpid() from Apache's code.
Not sure If it will work for Netware, or if configure needs to be
enhanced, if we use getpid(). It build well on Solaris and it is
done in the same way inside core apache.
The patch is in diff -Nru-format and is based on
jk/native/common/jk_util.c revision 1.28. I hope this is still up to date.
Thank's for considering.
Rainer Jung
--- jk_util.c   Tue Jul 13 15:58:10 2004
+++ jk_util.c.new   Thu Aug 12 18:11:50 2004
@@ -85,6 +85,14 @@
  const char * jk_log_fmt = JK_TIME_FORMAT;
+int log_level_max = 3;
+static const char *log_levels[] = {
+JK_LOG_DEBUG_VERB,
+JK_LOG_INFO_VERB,
+JK_LOG_ERROR_VERB,
+JK_LOG_EMERG_VERB
+};
+
  static void set_time_str(char * str, int len)
  {
  time_t  t = time(NULL);
@@ -250,19 +258,32 @@
  f++;
  }
+const char *log_level;
+if ( level =0  level = log_level_max ) {
+log_level=log_levels[level];
+} else {
+log_level=unknown;
+}
Did there is an interest in seeing DEBUG, INFO, ERROR or EMERG in
log file ?
+#ifdef NETWARE
+#define getpid() ((pid_t)GetThreadGroupID())
+#endif
+
  #ifdef USE_SPRINTF /* until we get a snprintf function */
  #ifdef NETWARE
  buf = (char *) malloc(HUGE_BUFFER_SIZE);
  if (NULL == buf)
 return -1;
  #endif
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += sprintf(buf[used], [%s] [%ld], log_level,
(long)getpid());
  if(line)
  used += sprintf(buf[used],  [%s (%d)]: , f, line);
  #else
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += snprintf(buf[used], HUGE_BUFFER_SIZE, [%s] [%ld],
log_level, (long)getpid());
  if(line)
  used += snprintf(buf[used], HUGE_BUFFER_SIZE,  [%s
(%d)]: , f, line);
  #endif



--- jk_util.c	Tue Jul 13 15:58:10 2004
+++ jk_util.c.new	Thu Aug 12 18:11:50 2004
@@ -85,6 +85,14 @@
 
 const char * jk_log_fmt = JK_TIME_FORMAT;
 
+int log_level_max = 3;
+static const char *log_levels[] = {
+JK_LOG_DEBUG_VERB,
+JK_LOG_INFO_VERB,
+JK_LOG_ERROR_VERB,
+JK_LOG_EMERG_VERB
+};
+
 static void set_time_str(char * str, int len)
 {
 time_t  t = time(NULL);
@@ -250,19 +258,32 @@
 f++;
 }
 
+const char *log_level;
+if ( level =0  level = log_level_max ) {
+log_level=log_levels[level];
+} else {
+log_level=unknown;
+}
+
+#ifdef NETWARE
+#define getpid() ((pid_t)GetThreadGroupID())
+#endif
+
 #ifdef USE_SPRINTF /* until we get a snprintf function */
 #ifdef NETWARE
 buf = (char *) malloc(HUGE_BUFFER_SIZE);
 if (NULL == buf)
return -1;
 #endif
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += sprintf(buf[used], [%s] [%ld], log_level, (long)getpid());
 if(line)
 used += sprintf(buf[used],  [%s (%d)]: , f, line);
 #else 
-set_time_str(buf, HUGE_BUFFER_SIZE);
-used = strlen(buf);
+set_time_str(buf, HUGE_BUFFER_SIZE);
+used = strlen(buf);
+used += snprintf(buf[used], HUGE_BUFFER_SIZE, [%s] [%ld], log_level, (long)getpid());
 if(line)
 used += snprintf(buf[used], HUGE_BUFFER_SIZE,  [%s (%d)]: , f, line);
 #endif

Well on multi-thread OS, getpid won't be usefull.
Also I wonder what happen on Windows.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


i18n and packaging

2004-08-31 Thread Remy Maucherat
Hi,
I have a problem with the packaging of resource strings. Each language 
is made of a lot of resources, and takes about 25K. So this doesn't 
scale that well (we have 4 incomplete languages today, but it would be 
good to have many more).

I was considering adding ${catalina.home}/common/i18n/*.jar to the 
common loader repository list, with the JARs containing all the 
resource bundles. This would make it easy to add/remove a language.

Or we could say we don't care, and put everything in the individual 
JARs, regardless of the size or management problems. This is simpler.

Does someone have experience with this in other large Java applications 
? How do they do it ?

Rémy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat Benchmarking / Load Testing

2004-08-31 Thread Shapira, Yoav

Hi,
There are some entries on the FAQ (Misc section I think is where I put it), but it's 
far from complete.  No one wants to give out details, it's all 
confidential/proprietary/security-constrained information.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Gaurav Vaish [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 12:20 AM
To: Tomcat Developers List
Subject: Re: Tomcat Benchmarking / Load Testing

Hi Rémy,

  Thanks for your response.

  In anycase, is there a list of people / companies using Tomcat
(standalone or with Apache)?



Happy Hacking,
Gaurav Vaish
http://gallery.mastergaurav.net
--


On Mon, 30 Aug 2004 23:51:22 +0200, Remy Maucherat [EMAIL PROTECTED] wrote:


 Gaurav Vaish wrote:

 Hi,
 
   I am looking for some good case-study on Tomcat loadtest and
benchmarking.
 
   It may or may not be with mod_jk(2) however a study with the
 following paramters would be useful:
 
   - JDK Version
   - Tomcat version
   - OS (with version and SPs)
   - Apache Version (if not standalone)
   - Concurrent Users (Threads)
   - Response Time
 
   The problem is that we have a e-Learning application running on
 Tomcat 4.x (planning to migrate to 5.x) which faced severe problems
 when put on production server. Stress testing in labs were passed
 gracefully, however it gives several issues with around 500 concurrent
 users on the production server.
 
   In anycase, which would be more scalable (load) - standalone Tomcat
 or with Apache/mod_jk?
 
 
The details of the production server are:
 
   - Red Hat Enterprise Server 9.0
   - Kernel 2.4.9
   - JDK 1.4.2 (Sun JDK)
   - Tomcat 4.0 (Standalone)
   - 2048MB RAM
   - 4-Processor CPU (2GHz each), Intel 386
 
 
 Tomcat 5.0 is faster than 4.1 which is faster than 4.0, but we don't
 have any numbers to give you.
 Feel free to contribute results.

 Rémy

 -
 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]




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: i18n and packaging

2004-08-31 Thread Shapira, Yoav

Hi,
I think it'd be nice to split the language resources out, not because of their size 
but to make it easier for users to modify and enhance the i18n bundles.  I think we'll 
get more i18n-related contributions that way.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 7:48 AM
To: Tomcat Developers List
Subject: i18n and packaging

Hi,

I have a problem with the packaging of resource strings. Each language
is made of a lot of resources, and takes about 25K. So this doesn't
scale that well (we have 4 incomplete languages today, but it would be
good to have many more).

I was considering adding ${catalina.home}/common/i18n/*.jar to the
common loader repository list, with the JARs containing all the
resource bundles. This would make it easy to add/remove a language.

Or we could say we don't care, and put everything in the individual
JARs, regardless of the size or management problems. This is simpler.

Does someone have experience with this in other large Java applications
? How do they do it ?

Rémy


-
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: i18n and packaging

2004-08-31 Thread Remy Maucherat
Shapira, Yoav wrote:
Hi,
I think it'd be nice to split the language resources out, not because of their size but to make it easier for users to modify and enhance the i18n bundles.  I think we'll get more i18n-related contributions that way.
 

I suppose it could indeed encourage people.
I'll commit the change after your 5.5.0 tag, since I expect I'll forget 
something somewhere and break a little the packaging ;)

Rémy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: i18n and packaging

2004-08-31 Thread Shapira, Yoav

Hi,
OK.  I'll tag and build around 2pm (my time, EDT) today.  I'll send out a separate 
notice.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 9:04 AM
To: Tomcat Developers List
Subject: Re: i18n and packaging

Shapira, Yoav wrote:

Hi,
I think it'd be nice to split the language resources out, not because of
their size but to make it easier for users to modify and enhance the i18n
bundles.  I think we'll get more i18n-related contributions that way.


I suppose it could indeed encourage people.
I'll commit the change after your 5.5.0 tag, since I expect I'll forget
something somewhere and break a little the packaging ;)

Rémy


-
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]



[5.5.0] Tagging today at 2pm EDT

2004-08-31 Thread Shapira, Yoav

Hola,
I'm going to tag and build 5.5.0 today at 2pm EDT (my time:
http://www.timeanddate.com/worldclock/city.html?n=43, you're all welcome
to visit any time ;)).  I'll upload the build, do the required site
updates, etc, and as usual wait about 12 hours for all the mirrors to
pick up the release before I send out the announcement.

Yoav Shapira
Millennium Research Informatics





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 Benchmarking / Load Testing

2004-08-31 Thread Peter Lin
there's plenty of big sites using tomcat. They just don't say it. I
know several sites getting millions of page views a day using tomcat
just fine.

peter


On Tue, 31 Aug 2004 09:49:32 +0530, Gaurav Vaish [EMAIL PROTECTED] wrote:
 Hi Rémy,
 
  Thanks for your response.
 
  In anycase, is there a list of people / companies using Tomcat
 (standalone or with Apache)?
 
 Happy Hacking,
 Gaurav Vaish
 http://gallery.mastergaurav.net
 --
 
 
 
 
 On Mon, 30 Aug 2004 23:51:22 +0200, Remy Maucherat [EMAIL PROTECTED] wrote:
 
 
  Gaurav Vaish wrote:
 
  Hi,
  
I am looking for some good case-study on Tomcat loadtest and benchmarking.
  
It may or may not be with mod_jk(2) however a study with the
  following paramters would be useful:
  
- JDK Version
- Tomcat version
- OS (with version and SPs)
- Apache Version (if not standalone)
- Concurrent Users (Threads)
- Response Time
  
The problem is that we have a e-Learning application running on
  Tomcat 4.x (planning to migrate to 5.x) which faced severe problems
  when put on production server. Stress testing in labs were passed
  gracefully, however it gives several issues with around 500 concurrent
  users on the production server.
  
In anycase, which would be more scalable (load) - standalone Tomcat
  or with Apache/mod_jk?
  
  
 The details of the production server are:
  
- Red Hat Enterprise Server 9.0
- Kernel 2.4.9
- JDK 1.4.2 (Sun JDK)
- Tomcat 4.0 (Standalone)
- 2048MB RAM
- 4-Processor CPU (2GHz each), Intel 386
  
  
  Tomcat 5.0 is faster than 4.1 which is faster than 4.0, but we don't
  have any numbers to give you.
  Feel free to contribute results.
 
  Rémy
 
  -
  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]



DO NOT REPLY [Bug 30957] - Cannot resolve a custom tag if no package

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30957.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30957

Cannot resolve a custom tag if no package

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 13:15 ---
It is a standard feature of Java that classes to be used by other code have to be in a 
package.

Put your class in a package like a good boy :-)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources messages_ja.properties

2004-08-31 Thread yoavs
yoavs   2004/08/31 06:35:32

  Modified:catalina/src/share/org/apache/catalina/authenticator Tag:
TOMCAT_5_0 LocalStrings_ja.properties
   catalina/src/share/org/apache/catalina/session Tag:
TOMCAT_5_0 LocalStrings_ja.properties
   catalina/src/share/org/apache/catalina/startup Tag:
TOMCAT_5_0 LocalStrings_ja.properties
   catalina/src/share/org/apache/catalina/util Tag: TOMCAT_5_0
LocalStrings_ja.properties
   catalina/src/share/org/apache/naming/resources Tag:
TOMCAT_5_0 LocalStrings_ja.properties
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin Tag:
TOMCAT_5_0 ApplicationResources_ja.properties
   webapps/docs Tag: TOMCAT_5_0 changelog.xml
   webapps/manager/WEB-INF/classes/org/apache/catalina/manager
Tag: TOMCAT_5_0 LocalStrings_ja.properties
   http11/src/java/org/apache/coyote/http11 Tag: TOMCAT_5_0
LocalStrings_ja.properties
   jasper2/src/share/org/apache/jasper/resources Tag:
TOMCAT_5_0 messages_ja.properties
  Log:
  Enhanced Japanese language resources.  See 
http://marc.theaimsgroup.com/?l=tomcat-devm=109384710317967w=2.
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.3.2.1   +1 -0  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/LocalStrings_ja.properties
  
  Index: LocalStrings_ja.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/LocalStrings_ja.properties,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- LocalStrings_ja.properties2 Sep 2003 14:09:46 -   1.3
  +++ LocalStrings_ja.properties31 Aug 2004 13:35:31 -  1.3.2.1
  @@ -8,5 +8,6 @@
   authenticator.notAuthenticated=\u8a2d\u5b9a\u30a8\u30e9\u30fc: 
\u8a8d\u8a3c\u3055\u308c\u305f\u4e3b\u4f53\u306a\u3057\u306b\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u3092\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093
   authenticator.notContext=\u8a2d\u5b9a\u30a8\u30e9\u30fc: 
\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093
   
authenticator.notStarted=\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30a4\u30f3\u30bf\u30fc\u30bb\u30d7\u30bf\u306f\u307e\u3060\u8d77\u52d5\u3055\u308c\u3066\u3044\u307e\u305b\u3093
  
+authenticator.sessionExpired=\u30ed\u30b0\u30a4\u30f3\u30d7\u30ed\u30bb\u30b9\u306b\u8a8d\u3081\u3089\u308c\u3066\u3044\u305f\u6642\u9593\u304c\u904e\u304e\u307e\u3057\u305f\u3002\u7d99\u7d9a\u3057\u305f\u3044\u306a\u3089\u3070\uff0c\u30d0\u30c3\u30af\u30dc\u30bf\u30f3\u30922\u5ea6\u62bc\u3057\u3066\u304b\u3089\u518d\u5ea6\u30ea\u30f3\u30af\u3092\u62bc\u3059\u304b\uff0c\u30d6\u30e9\u30a6\u30b6\u3092\u7acb\u3061\u4e0a\u3052\u76f4\u3057\u3066\u304f\u3060\u3055\u3044
   
authenticator.unauthorized=\u7528\u610f\u3055\u308c\u305f\u8a3c\u660e\u66f8\u3067\u8a8d\u8a3c\u3067\u304d\u307e\u305b\u3093
   
authenticator.userDataConstraint=\u3053\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e6\u30fc\u30b6\u30c7\u30fc\u30bf\u306e\u5236\u9650\u306b\u9055\u53cd\u3057\u3066\u3044\u307e\u3059
  
  
  
  No   revision
  No   revision
  1.5.2.1   +1 -0  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/LocalStrings_ja.properties
  
  Index: LocalStrings_ja.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/LocalStrings_ja.properties,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- LocalStrings_ja.properties14 Jan 2004 13:01:19 -  1.5
  +++ LocalStrings_ja.properties31 Aug 2004 13:35:31 -  1.5.2.1
  @@ -35,6 +35,7 @@
   
standardManager.managerLoad=\u6c38\u7d9a\u8a18\u61b6\u88c5\u7f6e\u304b\u3089\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u30ed\u30fc\u30c9\u4e2d\u306e\u4f8b\u5916\u3067\u3059
   
standardManager.managerUnload=\u6c38\u7d9a\u8a18\u61b6\u88c5\u7f6e\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u30a2\u30f3\u30ed\u30fc\u30c9\u4e2d\u306e\u4f8b\u5916\u3067\u3059
   
standardSession.attributeEvent=\u30bb\u30c3\u30b7\u30e7\u30f3\u5c5e\u6027\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u304c\u4f8b\u5916\u3092\u6295\u3052\u307e\u3057\u305f
  
+standardSession.bindingEvent=\u30bb\u30c3\u30b7\u30e7\u30f3\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u304c\u4f8b\u5916\u3092\u6295\u3052\u307e\u3057\u305f
   standardSession.invalidate.ise=invalidate: 

Re: Tomcat Benchmarking / Load Testing

2004-08-31 Thread Gaurav Vaish
Can you please name a few?


Happy Hacking,
Gaurav Vaish
ttp://gallery.mastergaurav.net
--



On Tue, 31 Aug 2004 08:11:50 -0500, Peter Lin [EMAIL PROTECTED] wrote:
 there's plenty of big sites using tomcat. They just don't say it. I
 know several sites getting millions of page views a day using tomcat
 just fine.
 
 peter
 
 
 
 
 On Tue, 31 Aug 2004 09:49:32 +0530, Gaurav Vaish [EMAIL PROTECTED] wrote:
  Hi Rémy,
 
   Thanks for your response.
 
   In anycase, is there a list of people / companies using Tomcat
  (standalone or with Apache)?
 
  Happy Hacking,
  Gaurav Vaish
  http://gallery.mastergaurav.net
  --
 
 
 
 
  On Mon, 30 Aug 2004 23:51:22 +0200, Remy Maucherat [EMAIL PROTECTED] wrote:
  
  
   Gaurav Vaish wrote:
  
   Hi,
   
 I am looking for some good case-study on Tomcat loadtest and benchmarking.
   
 It may or may not be with mod_jk(2) however a study with the
   following paramters would be useful:
   
 - JDK Version
 - Tomcat version
 - OS (with version and SPs)
 - Apache Version (if not standalone)
 - Concurrent Users (Threads)
 - Response Time
   
 The problem is that we have a e-Learning application running on
   Tomcat 4.x (planning to migrate to 5.x) which faced severe problems
   when put on production server. Stress testing in labs were passed
   gracefully, however it gives several issues with around 500 concurrent
   users on the production server.
   
 In anycase, which would be more scalable (load) - standalone Tomcat
   or with Apache/mod_jk?
   
   
  The details of the production server are:
   
 - Red Hat Enterprise Server 9.0
 - Kernel 2.4.9
 - JDK 1.4.2 (Sun JDK)
 - Tomcat 4.0 (Standalone)
 - 2048MB RAM
 - 4-Processor CPU (2GHz each), Intel 386
   
   
   Tomcat 5.0 is faster than 4.1 which is faster than 4.0, but we don't
   have any numbers to give you.
   Feel free to contribute results.
  
   Rémy
  
   -
   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: Tomcat Benchmarking / Load Testing

2004-08-31 Thread Shapira, Yoav

Hi,
I'm sure he would if he could, but as I said they're mostly confidential.  This is 
getting off-topic for the tomcat-dev list, please continue discussion on tomcat-user 
if you'd like.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Gaurav Vaish [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 9:39 AM
To: Peter Lin
Cc: Tomcat Developers List
Subject: Re: Tomcat Benchmarking / Load Testing

Can you please name a few?


Happy Hacking,
Gaurav Vaish
ttp://gallery.mastergaurav.net
--



On Tue, 31 Aug 2004 08:11:50 -0500, Peter Lin [EMAIL PROTECTED] wrote:
 there's plenty of big sites using tomcat. They just don't say it. I
 know several sites getting millions of page views a day using tomcat
 just fine.

 peter




 On Tue, 31 Aug 2004 09:49:32 +0530, Gaurav Vaish [EMAIL PROTECTED]
wrote:
  Hi Rémy,
 
   Thanks for your response.
 
   In anycase, is there a list of people / companies using Tomcat
  (standalone or with Apache)?
 
  Happy Hacking,
  Gaurav Vaish
  http://gallery.mastergaurav.net
  --
 
 
 
 
  On Mon, 30 Aug 2004 23:51:22 +0200, Remy Maucherat [EMAIL PROTECTED]
wrote:
  
  
   Gaurav Vaish wrote:
  
   Hi,
   
 I am looking for some good case-study on Tomcat loadtest and
benchmarking.
   
 It may or may not be with mod_jk(2) however a study with the
   following paramters would be useful:
   
 - JDK Version
 - Tomcat version
 - OS (with version and SPs)
 - Apache Version (if not standalone)
 - Concurrent Users (Threads)
 - Response Time
   
 The problem is that we have a e-Learning application running on
   Tomcat 4.x (planning to migrate to 5.x) which faced severe problems
   when put on production server. Stress testing in labs were passed
   gracefully, however it gives several issues with around 500
concurrent
   users on the production server.
   
 In anycase, which would be more scalable (load) - standalone
Tomcat
   or with Apache/mod_jk?
   
   
  The details of the production server are:
   
 - Red Hat Enterprise Server 9.0
 - Kernel 2.4.9
 - JDK 1.4.2 (Sun JDK)
 - Tomcat 4.0 (Standalone)
 - 2048MB RAM
 - 4-Processor CPU (2GHz each), Intel 386
   
   
   Tomcat 5.0 is faster than 4.1 which is faster than 4.0, but we don't
   have any numbers to give you.
   Feel free to contribute results.
  
   Rémy
  
   -
   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]




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]



DO NOT REPLY [Bug 30964] New: - Server crash on manual flush

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30964.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30964

Server crash on manual flush

   Summary: Server crash on manual flush
   Product: Tomcat 4
   Version: 4.1.30
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Connector:Coyote HTTP/1.1
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The JVM crash on manual flush JSP pages before close client side browser.
Hot code to crash (chat_atend.jsp):

...
  while(user != null || !status.equals(break)) {
if (user.getChat() != null) {
  if ((ce=cliente.getChar().getLastChat()) != null) {
out.println(trtd+ce.getTimedChat()+/td/tr);
out.flush(); // if client side has closed, crash here!!
  }
}
Thread.sleep(1000);
  }...

Error log:

Unexpected Signal : 11 occurred at PC=0x5527148A
Function=JVM_handle_linux_signal+0xAA
Library=/usr/java/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so

Current Java thread:
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:757)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:436)
at
org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:442)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:968)
at org.apache.coyote.Response.action(Response.java:226)
at org.apache.coyote.Response.finish(Response.java:348)
at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:324)
at 
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:486)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:200)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)

Dynamic libraries:
00253000-00261000 r-xp  03:42 1474759/lib/libresolv-2.3.3.so
00261000-00263000 rw-p e000 03:42 1474759/lib/libresolv-2.3.3.so
00bea000-00bff000 r-xp  03:42 1474741/lib/ld-2.3.3.so
00bff000-00c0 r--p 00014000 03:42 1474741/lib/ld-2.3.3.so
00c0-00c01000 rw-p 00015000 03:42 1474741/lib/ld-2.3.3.so
00c03000-00d18000 r-xp  03:42 1474745/lib/tls/libc-2.3.3.so
00d18000-00d1a000 r--p 00115000 03:42 1474745/lib/tls/libc-2.3.3.so
00d1a000-00d1c000 rw-p 00117000 03:42 1474745/lib/tls/libc-2.3.3.so
00d2-00d41000 r-xp  03:42 1474747/lib/tls/libm-2.3.3.so
00d41000-00d42000 r--p 0002 03:42 1474747/lib/tls/libm-2.3.3.so
00d42000-00d43000 rw-p 00021000 03:42 1474747/lib/tls/libm-2.3.3.so
00d45000-00d47000 r-xp  03:42 1474748/lib/libdl-2.3.3.so
00d47000-00d48000 r--p 1000 03:42 1474748/lib/libdl-2.3.3.so
00d48000-00d49000 rw-p 2000 03:42 1474748/lib/libdl-2.3.3.so
00d6e000-00d7c000 r-xp  03:42 1474755/lib/tls/libpthread-0.61.so
00d7c000-00d7d000 r--p d000 03:42 1474755/lib/tls/libpthread-0.61.so
00d7d000-00d7e000 rw-p e000 03:42 1474755/lib/tls/libpthread-0.61.so
00dfb000-00dfd000 r-xp  03:42 1474767/lib/libcom_err.so.2.1
00dfd000-00dfe000 rw-p 1000 03:42 1474767/lib/libcom_err.so.2.1
07f16000-07f27000 r-xp  03:42 1474772/lib/libnsl-2.3.3.so
07f27000-07f28000 r--p 00011000 03:42 1474772/lib/libnsl-2.3.3.so
07f28000-07f29000 rw-p 00012000 03:42 1474772/lib/libnsl-2.3.3.so
08048000-08056000 r-xp  03:42 280517 /usr/java/j2sdk1.4.2_05/bin/java
08056000-08059000 rw-p d000 03:42 280517 /usr/java/j2sdk1.4.2_05/bin/java
55016000-55412000 r-xp  03:42 281666
/usr/java/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so
55412000-5542d000 rw-p 003fb000 03:42 281666
/usr/java/j2sdk1.4.2_05/jre/lib/i386/client/libjvm.so
5543f000-55447000 r-xp  03:42 281694
/usr/java/j2sdk1.4.2_05/jre/lib/i386/native_threads/libhpi.so
55447000-55448000 rw-p 7000 03:42 281694
/usr/java/j2sdk1.4.2_05/jre/lib/i386/native_threads/libhpi.so
5545b000-55465000 r-xp  03:42 1474610/lib/libnss_files-2.3.3.so
55465000-55466000 r--p 9000 03:42 

RE: Japanese message updates and one bug fix in Tomcat 5

2004-08-31 Thread Shapira, Yoav

Hi,
I've applied your patches on the TOMCAT_5_0 branch and Amy Roh has done
so in CVS HEAD.  Thanks for submitting them ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Kazuhiro Kazama [mailto:[EMAIL PROTECTED]
Sent: Monday, August 30, 2004 2:26 AM
To: [EMAIL PROTECTED]
Subject: Japanese message updates and one bug fix in Tomcat 5

This mail includes Japanese message updates for Tomcat 5. And this
patch resolves the problem which you can't deploy tomcat by ant in
Japanese environment.

Thanks,

Kazuhiro Kazama ([EMAIL PROTECTED])NTT Network Innovation
Laboratories



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: [Patch] File descriptor leak in ManagerBase - please advise.

2004-08-31 Thread Shapira, Yoav

Hi,
randomIS is set to null in the getBytes method.  But that's not as good
as an explicit close.  So I'll add an explicit close before setting
randomIS to null.  Your patch I don't like as much because it closes the
stream before the readLong method is invoked on it.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Renato [mailto:[EMAIL PROTECTED]
Sent: Monday, August 30, 2004 1:43 PM
To: [EMAIL PROTECTED]
Subject: [Patch] File descriptor leak in ManagerBase - please advise.

Hi all,

I running linux with tomcat 5.0.28. Today I have the
following error:

java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:331)
at java.net.Socket.init(Socket.java:304)
at java.net.Socket.init(Socket.java:124)
(...)

By checking with 'lsof -p tomcat_pid', I saw that
there thousands of opened /dev/urandom files.

I looked at the code and I found that in class
org/apache/catalina/session/ManagerBase.java, the
/dev/urandom is opened but apparently never closed...
( any reason ? )

I made this patch and it fixed my problem, with no
colateral effected so far...

---
../jakarta-tomcat-5.0.27-src/jakarta-tomcat-
catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.jav
a
 2004-06-17 22:11:20.0 -0300
+++
jakarta-tomcat-
catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.jav
a
2004-08-30 14:23:43.0 -0300
@@ -194,10 +194,12 @@
 try {
 File f=new File( devRandomSource );
 if( ! f.exists() ) return null;
-randomIS= new DataInputStream( new
FileInputStream(f));
+FileInputStream fin = new
FileInputStream(f);
+randomIS= new DataInputStream(fin);
 randomIS.readLong();
 if( log.isDebugEnabled() )
 log.debug( Opening  +
devRandomSource );
+fin.close();
 return randomIS;
 } catch (IOException ex){
 return null;
@@ -505,10 +507,12 @@
 devRandomSource=s;
 File f=new File( devRandomSource
);
 if( ! f.exists() ) return;
-randomIS= new DataInputStream(
new FileInputStream(f));
+FileInputStream fin = new
FileInputStream(f);
+randomIS= new
DataInputStream(fin);
 randomIS.readLong();
 if( log.isDebugEnabled() )
 log.debug( Opening  +
devRandomSource );
+   fin.close();
 } catch( IOException ex ) {
 randomIS=null;
 }

Any comment ?
Thanks for the attention
Renato - Brazil.




___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-
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]



cvs commit: jakarta-tomcat-catalina/webapps/docs changelog.xml

2004-08-31 Thread yoavs
yoavs   2004/08/31 07:05:22

  Modified:catalina/src/share/org/apache/catalina/session Tag:
TOMCAT_5_0 ManagerBase.java
   webapps/docs Tag: TOMCAT_5_0 changelog.xml
  Log:
  Added explicit close of randomIS DataInputStream in ManagerBase for better resource 
handling.
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.27.2.1  +14 -1 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.java
  
  Index: ManagerBase.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.java,v
  retrieving revision 1.27
  retrieving revision 1.27.2.1
  diff -u -r1.27 -r1.27.2.1
  --- ManagerBase.java  26 May 2004 16:13:59 -  1.27
  +++ ManagerBase.java  31 Aug 2004 14:05:22 -  1.27.2.1
  @@ -510,6 +510,12 @@
   if( log.isDebugEnabled() )
   log.debug( Opening  + devRandomSource );
   } catch( IOException ex ) {
  +try {
  + randomIS.close();
  +} catch (Exception e) {
  +log.warn(Failed to close randomIS.);
  +}
  +
   randomIS=null;
   }
   }
  @@ -803,6 +809,13 @@
   } catch( Exception ex ) {
   }
   devRandomSource=null;
  + 
  +try {
  + randomIS.close();
  +} catch (Exception e) {
  + log.warn(Failed to close randomIS.);
  + }
  +
   randomIS=null;
   }
   Random random = getRandom();
  
  
  
  No   revision
  No   revision
  1.70.2.21 +3 -0  jakarta-tomcat-catalina/webapps/docs/changelog.xml
  
  Index: changelog.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v
  retrieving revision 1.70.2.20
  retrieving revision 1.70.2.21
  diff -u -r1.70.2.20 -r1.70.2.21
  --- changelog.xml 31 Aug 2004 13:35:31 -  1.70.2.20
  +++ changelog.xml 31 Aug 2004 14:05:22 -  1.70.2.21
  @@ -39,6 +39,9 @@
 fix
   bug30624/bug: Enhanced null checking in 
RealmBase#findSecurityConstraints. (yoavs)
 /fix
  +  fix
  +Added explicit close of randomIS DataInputStream to ManagerBase for better 
resource handling. (yoavs)
  +  /fix
   /changelog
 /subsection
 subsection name=Webapps
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session ManagerBase.java

2004-08-31 Thread yoavs
yoavs   2004/08/31 07:07:54

  Modified:catalina/src/share/org/apache/catalina/session
ManagerBase.java
  Log:
  Added explicit close of randomIS DataInputSource for better resource handling.
  
  Revision  ChangesPath
  1.32  +14 -1 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.java
  
  Index: ManagerBase.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- ManagerBase.java  16 Aug 2004 09:31:05 -  1.31
  +++ ManagerBase.java  31 Aug 2004 14:07:54 -  1.32
  @@ -452,6 +452,12 @@
   if( log.isDebugEnabled() )
   log.debug( Opening  + devRandomSource );
   } catch( IOException ex ) {
  +try {
  + randomIS.close();
  + } catch (Exception e) {
  +log.warn(Failed to close randomIS.);
  + }
  +
   randomIS=null;
   }
   }
  @@ -728,6 +734,13 @@
   } catch( Exception ex ) {
   }
   devRandomSource=null;
  + 
  +try {
  + randomIS.close();
  + } catch (Exception e) {
  +log.warn(Failed to close randomIS.);
  + }
  +
   randomIS=null;
   }
   Random random = getRandom();
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30568] - Cannot find daemon loader

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30568.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30568

Cannot find daemon loader

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 14:23 ---
I don't have a Gentoo system to test.  This works for me on Solaris and RHEL by 
following the Tomcat docs, no problem.

bootstrap.jar includes commons-daemon.jar in its manifest Class Path.  If 
commons-daemon.jar is in the same directory with the proper file permissions, 
you should have no problem with this.  If you do have a problem, it's a 
configuration or installation issue, not a Tomcat bug.

Finally, please use separate Bugzilla issues for separate bugs, don't combine 
them.  For example, the ./configure script bug you report should be a separate 
issue.  (That one as I mentioned I can't test because I don't have a Gentoo 
system).  Thanks.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/tester/src/tester/org/apache/tester Jndi02.java

2004-08-31 Thread idarwin
idarwin 2004/08/31 07:41:22

  Modified:tester/src/tester/org/apache/tester Jndi02.java
  Log:
  More enum-keyword conflict resolution
  
  Revision  ChangesPath
  1.3   +4 -4  
jakarta-tomcat-catalina/tester/src/tester/org/apache/tester/Jndi02.java
  
  Index: Jndi02.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/tester/src/tester/org/apache/tester/Jndi02.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Jndi02.java   27 Feb 2004 14:58:57 -  1.2
  +++ Jndi02.java   31 Aug 2004 14:41:22 -  1.3
  @@ -310,10 +310,10 @@
   int counts[] = new int[names.length];
   for (int i = 0; i  names.length; i++)
   counts[i] = 0;
  -NamingEnumeration enum =
  +NamingEnumeration namingEnum =
   initContext.listBindings(java:comp/env);
  -while (enum.hasMore()) {
  -Binding binding = (Binding) enum.next();
  +while (namingEnum.hasMore()) {
  +Binding binding = (Binding) namingEnum.next();
   String name = binding.getName();
   boolean found = false;
   for (int i = 0; i  names.length; i++) {
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml

2004-08-31 Thread yoavs
yoavs   2004/08/31 07:41:48

  Modified:catalina/src/share/org/apache/catalina/core
StandardContext.java
   webapps/docs/config context.xml
  Log:
  - Made TLD processing optional (default is true for backward compatability and it's 
the more common case anyways).
  - Documented new processTlds context attribute as well as tldValidation and 
tldNamespaceAware context attributes.
  
  Revision  ChangesPath
  1.143 +59 -30
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.142
  retrieving revision 1.143
  diff -u -r1.142 -r1.143
  --- StandardContext.java  29 Aug 2004 16:46:09 -  1.142
  +++ StandardContext.java  31 Aug 2004 14:41:47 -  1.143
  @@ -613,6 +613,10 @@
*/
private boolean webXmlNamespaceAware = false;
   
  +/**
  + * Attribute value used to turn on/off TLD processing
  + */
  +private boolean processTlds = true;
   
   /**
* Attribute value used to turn on/off XML validation
  @@ -4026,37 +4030,13 @@
   
   // Start the Valves in our pipeline (including the basic),
   // if any
  -if (pipeline instanceof Lifecycle)
  +if (pipeline instanceof Lifecycle) {
   ((Lifecycle) pipeline).start();
  + }
   
  -// Read tldListeners. XXX Option to disable
  -TldConfig tldConfig = new TldConfig();
  -tldConfig.setContext(this);
  -
  -// (1)  check if the attribute has been defined
  -//  on the context element.
  -tldConfig.setTldValidation(tldValidation);
  -tldConfig.setTldNamespaceAware(tldNamespaceAware);
  -
  -// (2) if the attribute wasn't defined on the context
  -// try the host.
  -if (!tldValidation){
  -tldConfig.setTldValidation
  -(((StandardHost) getParent()).getXmlValidation());
  -}
  -
  -if (!tldNamespaceAware){
  -tldConfig.setTldNamespaceAware
  -(((StandardHost) getParent()).getXmlNamespaceAware());
  -}
  -
  -try {
  -tldConfig.execute();
  -} catch (Exception ex) {
  -log.error(Error reading tld listeners  
  -  + ex.toString(), ex);
  -//ok=false;
  -}
  +if(getProcessTlds() {
  + processTlds();
  + }
   
   // Notify our interested LifecycleListeners
   lifecycle.fireLifecycleEvent(START_EVENT, null);
  @@ -4173,6 +4153,40 @@
   
   //cacheContext();
   }
  +
  +/**
  + * Processes TLDs.
  + *
  + * @throws LifecycleException If an error occurs
  + */
  + protected void processTlds() throws LifecycleException {
  +   TldConfig tldConfig = new TldConfig();
  +   tldConfig.setContext(this);
  +
  +   // (1)  check if the attribute has been defined
  +   //  on the context element.
  +   tldConfig.setTldValidation(tldValidation);
  +   tldConfig.setTldNamespaceAware(tldNamespaceAware);
  +
  +   // (2) if the attribute wasn't defined on the context
  +   // try the host.
  +   if (!tldValidation) {
  + tldConfig.setTldValidation
  +   (((StandardHost) getParent()).getXmlValidation());
  +   }
  +
  +   if (!tldNamespaceAware) {
  + tldConfig.setTldNamespaceAware
  +   (((StandardHost) getParent()).getXmlNamespaceAware());
  +   }
  +
  +   try {
  + tldConfig.execute();
  +   } catch (Exception ex) {
  + log.error(Error reading tld listeners  
  ++ ex.toString(), ex); 
  +   }
  + }
   
   private void cacheContext() {
   try {
  @@ -5288,6 +5302,21 @@
   return tldValidation;
   }
   
  +/**
  + * Sets the process TLDs attribute.
  + *
  + * @param newProcessTlds The new value
  + */
  +public void setProcessTlds(boolean newProcessTlds) {
  + processTlds = newProcessTlds;
  +}
  +
  +/**
  + * Returns the processTlds attribute value.
  + */
  +public boolean getProcessTlds() {
  + return processTlds;
  +}
   
   /**
* Get the server.xml host attribute's xmlNamespaceAware.
  
  
  
  1.12  +22 -0 jakarta-tomcat-catalina/webapps/docs/config/context.xml
  
  Index: 

cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml

2004-08-31 Thread yoavs
yoavs   2004/08/31 07:50:41

  Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0
StandardContext.java
   webapps/docs Tag: TOMCAT_5_0 changelog.xml
   webapps/docs/config Tag: TOMCAT_5_0 context.xml
  Log:
  Added StandardContext processTlds attribute, added context configuration references 
docs for processTlds, tldValidation, tldNamespaceAware.
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.130.2.3 +60 -30
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.130.2.2
  retrieving revision 1.130.2.3
  diff -u -r1.130.2.2 -r1.130.2.3
  --- StandardContext.java  28 Aug 2004 23:57:02 -  1.130.2.2
  +++ StandardContext.java  31 Aug 2004 14:50:41 -  1.130.2.3
  @@ -602,6 +602,10 @@
*/
private boolean webXmlNamespaceAware = false;
   
  +/**
  + * Attribute value used to turn on/off TLD processing
  + */
  +private boolean processTlds = true;
   
   /**
* Attribute value used to turn on/off XML validation
  @@ -4254,37 +4258,13 @@
   
   // Start the Valves in our pipeline (including the basic),
   // if any
  -if (pipeline instanceof Lifecycle)
  +if (pipeline instanceof Lifecycle) {
   ((Lifecycle) pipeline).start();
  + }
   
  -// Read tldListeners. XXX Option to disable
  -TldConfig tldConfig = new TldConfig();
  -tldConfig.setContext(this);
  -
  -// (1)  check if the attribute has been defined
  -//  on the context element.
  -tldConfig.setTldValidation(tldValidation);
  -tldConfig.setTldNamespaceAware(tldNamespaceAware);
  -
  -// (2) if the attribute wasn't defined on the context
  -// try the host.
  -if (!tldValidation){
  -tldConfig.setTldValidation
  -(((StandardHost) getParent()).getXmlValidation());
  -}
  -
  -if (!tldNamespaceAware){
  -tldConfig.setTldNamespaceAware
  -(((StandardHost) getParent()).getXmlNamespaceAware());
  -}
  -
  -try {
  -tldConfig.execute();
  -} catch (Exception ex) {
  -log.error(Error reading tld listeners  
  -  + ex.toString(), ex);
  -//ok=false;
  -}
  +if(getProcessTlds() {
  + processTlds();
  + }
   
   // Notify our interested LifecycleListeners
   lifecycle.fireLifecycleEvent(START_EVENT, null);
  @@ -4401,6 +4381,41 @@
   
   //cacheContext();
   }
  +
  +   /**
  +* Processes the TLDs.
  +*
  +* @throws LifecycleException If an error occurs
  +*/
  +protected void processTlds() throws LifecycleException {
  +  TldConfig tldConfig = new TldConfig();
  +  tldConfig.setContext(this);
  +
  +  // (1)  check if the attribute has been defined
  +  //  on the context element.
  +  tldConfig.setTldValidation(tldValidation);
  +  tldConfig.setTldNamespaceAware(tldNamespaceAware);
  +
  +  // (2) if the attribute wasn't defined on the context
  +  // try the host.
  +  if (!tldValidation){
  +tldConfig.setTldValidation
  +  (((StandardHost) getParent()).getXmlValidation());
  +  }
  +
  +  if (!tldNamespaceAware){
  +tldConfig.setTldNamespaceAware
  +  (((StandardHost) getParent()).getXmlNamespaceAware());
  +  }
  +
  +  try {
  +tldConfig.execute();
  +  } catch (Exception ex) {
  +log.error(Error reading tld listeners  
  +  + ex.toString(), ex);
  +  }
  +}
  +
   
   private void cacheContext() {
   try {
  @@ -5586,7 +5601,22 @@
   public boolean getTldValidation(){
   return tldValidation;
   }
  +   
  +/**
  + * Sets the processTlds attribute value.
  + *
  + * @param newProcessTlds The new attribute value
  + */
  +public void setProcessTlds(boolean newProcessTlds) {
  + processTlds = newProcessTlds;
  +}
   
  +/**
  + * Returns the processTlds attribute value.
  + */
  +public boolean getProcessTlds() {
  + return processTlds;
  +}
   
   /**
* Get the server.xml host attribute's 

DO NOT REPLY [Bug 30583] - Cannot switch of tld scan for Embedded tomcat

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30583.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30583

Cannot switch of tld scan for Embedded tomcat

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 14:53 ---
OK, feature added.  StandardContext now has a processTlds attribute which you 
can set to false in your use-case.  I also took processTlds() out of the big 
start() method so that classes extending StandardContext can easily modify 
processTlds behavior.  All of this will be available in Tomcat 5.0.29 and 5.5.0.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml

2004-08-31 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:
yoavs   2004/08/31 07:50:41
 Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0
   StandardContext.java
  webapps/docs Tag: TOMCAT_5_0 changelog.xml
  webapps/docs/config Tag: TOMCAT_5_0 context.xml
 Log:
 Added StandardContext processTlds attribute, added context configuration references docs for processTlds, tldValidation, tldNamespaceAware.
 

I can feel two more commits are coming in shortly ;)
Can you fix the tabs at the same time ?
Rémy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


DO NOT REPLY [Bug 30612] - Bind Mode not work for JNDIRealm(LDAP)

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30612.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30612

Bind Mode not work for JNDIRealm(LDAP)

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 14:55 ---
How do you know this is a Tomcat problem as opposed to a configuration problem 
on your end?  

Bugzilla is not a discussion forum.  Please raise your problem on the tomcat-
user list, and ask for advice there.  If after discussion it's determined this 
really is a Tomcat bug, you can re-open this item.  At that time, please add 
complete configuration details so that we can try and reproduce your problem.  
Thanks ;)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml

2004-08-31 Thread Shapira, Yoav

Hi,
I'm actually working in emacs over PuTTY due to some weird network/firewall 
(mis)configuration issues here at work, so it's a pain for me to fix the tabs at this 
time ;(

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 10:53 AM
To: Tomcat Developers List
Subject: Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config
context.xml

[EMAIL PROTECTED] wrote:

yoavs   2004/08/31 07:50:41

  Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0
StandardContext.java
   webapps/docs Tag: TOMCAT_5_0 changelog.xml
   webapps/docs/config Tag: TOMCAT_5_0 context.xml
  Log:
  Added StandardContext processTlds attribute, added context configuration
references docs for processTlds, tldValidation, tldNamespaceAware.


I can feel two more commits are coming in shortly ;)
Can you fix the tabs at the same time ?

Rémy


-
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]



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core StandardContext.java

2004-08-31 Thread yoavs
yoavs   2004/08/31 08:07:24

  Modified:catalina/src/share/org/apache/catalina/core
StandardContext.java
  Log:
  Added missing ), oops ;)
  
  Revision  ChangesPath
  1.144 +2 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.143
  retrieving revision 1.144
  diff -u -r1.143 -r1.144
  --- StandardContext.java  31 Aug 2004 14:41:47 -  1.143
  +++ StandardContext.java  31 Aug 2004 15:07:23 -  1.144
  @@ -4034,7 +4034,7 @@
   ((Lifecycle) pipeline).start();
}
   
  -if(getProcessTlds() {
  +if(getProcessTlds()) {
processTlds();
}
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core StandardContext.java

2004-08-31 Thread yoavs
yoavs   2004/08/31 08:08:02

  Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0
StandardContext.java
  Log:
  Added missing ), oops ;)
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.130.2.4 +2 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.130.2.3
  retrieving revision 1.130.2.4
  diff -u -r1.130.2.3 -r1.130.2.4
  --- StandardContext.java  31 Aug 2004 14:50:41 -  1.130.2.3
  +++ StandardContext.java  31 Aug 2004 15:08:02 -  1.130.2.4
  @@ -4262,7 +4262,7 @@
   ((Lifecycle) pipeline).start();
}
   
  -if(getProcessTlds() {
  +if(getProcessTlds()) {
processTlds();
}
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30533] - search dtd with system location in CATALINA_BASE/bin

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30533.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30533

search dtd with system location in CATALINA_BASE/bin





--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 15:13 ---
Does this still happen with 5.0.28?  Is there more to the stack trace, 
specifically an org.apache.catalina part?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 22695] - TC 5.0.9 Exception During Startup

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=22695.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=22695

TC 5.0.9 Exception During Startup

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 15:14 ---
I guess not.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Benchmarking / Load Testing

2004-08-31 Thread Sandy McArthur
We, University of Florida, use Tomcat 5 for our webapps when we can. 
(We also use WebSphere and WebLogic when needed.)

Our largest use of Tomcat is with our webmail cluster. You can find 
some stats for that at: http://webstats.ufl.edu/webmail.ufl.edu/ (Note: 
that the monthly reports are behind because of problems with analog on 
AIX.)

Yesterday during peak usage we were handling 55 request per second: 
http://webstats.ufl.edu/webmail.ufl.edu/daily-2004-08-30.html#hoursum

Our setup is 3 machines running Apache HTTPD with mod_jk load balancing 
to 4 machines running Tomcat 5. While all of those machines are beefy 
quad CPU boxes with between 2 to 8 gig of ram none of them are single 
purpose machines.

Our Apache HTTPD machines serve over a hundred virtual hosts, so there 
are a lot of other factors which makes it hard for me to assert any 
performance numbers of our tomcat setup. I can say our last problems 
with our webmail setup stemmed from running out of simultaneous 
connections in apache httpd when all the students returned this past 
fall. The 4 boxes running tomcat is overpowered to handle any surge in 
usage and I haven't seen their CPU load cross 33%.

On Aug 31, 2004, at 9:39 AM, Gaurav Vaish wrote:
Can you please name a few?
On Tue, 31 Aug 2004 08:11:50 -0500, Peter Lin [EMAIL PROTECTED] 
wrote:
there's plenty of big sites using tomcat. They just don't say it. I
know several sites getting millions of page views a day using tomcat
just fine.
--
Sandy McArthur
Government big enough to supply everything you
need is big enough to take everything you have ...
The course of history shows that as a government
grows, liberty decreases. -- Thomas Jefferson


smime.p7s
Description: S/MIME cryptographic signature


RE: Tomcat Benchmarking / Load Testing

2004-08-31 Thread Shapira, Yoav

Hi,
Thanks for sharing.
(FAQ'ed)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Sandy McArthur [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 11:19 AM
To: Tomcat Developers List
Subject: Re: Tomcat Benchmarking / Load Testing

We, University of Florida, use Tomcat 5 for our webapps when we can.
(We also use WebSphere and WebLogic when needed.)

Our largest use of Tomcat is with our webmail cluster. You can find
some stats for that at: http://webstats.ufl.edu/webmail.ufl.edu/ (Note:
that the monthly reports are behind because of problems with analog on
AIX.)

Yesterday during peak usage we were handling 55 request per second:
http://webstats.ufl.edu/webmail.ufl.edu/daily-2004-08-30.html#hoursum

Our setup is 3 machines running Apache HTTPD with mod_jk load balancing
to 4 machines running Tomcat 5. While all of those machines are beefy
quad CPU boxes with between 2 to 8 gig of ram none of them are single
purpose machines.

Our Apache HTTPD machines serve over a hundred virtual hosts, so there
are a lot of other factors which makes it hard for me to assert any
performance numbers of our tomcat setup. I can say our last problems
with our webmail setup stemmed from running out of simultaneous
connections in apache httpd when all the students returned this past
fall. The 4 boxes running tomcat is overpowered to handle any surge in
usage and I haven't seen their CPU load cross 33%.

On Aug 31, 2004, at 9:39 AM, Gaurav Vaish wrote:

 Can you please name a few?

 On Tue, 31 Aug 2004 08:11:50 -0500, Peter Lin [EMAIL PROTECTED]
 wrote:
 there's plenty of big sites using tomcat. They just don't say it. I
 know several sites getting millions of page views a day using tomcat
 just fine.

--
Sandy McArthur

Government big enough to supply everything you
need is big enough to take everything you have ...
The course of history shows that as a government
grows, liberty decreases. -- Thomas Jefferson



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 Benchmarking / Load Testing

2004-08-31 Thread Gaurav Vaish
Hello Sandy,

  Great thanks for sharing this piece of information. I am pretty
confident that this would definitely assist me in my work.

  However, I just wonder what tool did you use to create this
statistics which is simply awsome!


Happy Hacking,
Gaurav Vaish
http://gallery.mastergaurav.net
---



On Tue, 31 Aug 2004 11:19:26 -0400, Sandy McArthur [EMAIL PROTECTED] wrote:
 We, University of Florida, use Tomcat 5 for our webapps when we can.
 (We also use WebSphere and WebLogic when needed.)
 
 Our largest use of Tomcat is with our webmail cluster. You can find
 some stats for that at: http://webstats.ufl.edu/webmail.ufl.edu/ (Note:
 that the monthly reports are behind because of problems with analog on
 AIX.)
 
 Yesterday during peak usage we were handling 55 request per second:
 http://webstats.ufl.edu/webmail.ufl.edu/daily-2004-08-30.html#hoursum
 
 Our setup is 3 machines running Apache HTTPD with mod_jk load balancing
 to 4 machines running Tomcat 5. While all of those machines are beefy
 quad CPU boxes with between 2 to 8 gig of ram none of them are single
 purpose machines.
 
 Our Apache HTTPD machines serve over a hundred virtual hosts, so there
 are a lot of other factors which makes it hard for me to assert any
 performance numbers of our tomcat setup. I can say our last problems
 with our webmail setup stemmed from running out of simultaneous
 connections in apache httpd when all the students returned this past
 fall. The 4 boxes running tomcat is overpowered to handle any surge in
 usage and I haven't seen their CPU load cross 33%.
 
 On Aug 31, 2004, at 9:39 AM, Gaurav Vaish wrote:
 
  Can you please name a few?
 
  On Tue, 31 Aug 2004 08:11:50 -0500, Peter Lin [EMAIL PROTECTED]
  wrote:
  there's plenty of big sites using tomcat. They just don't say it. I
  know several sites getting millions of page views a day using tomcat
  just fine.
 
 --
 Sandy McArthur
 
 Government big enough to supply everything you
 need is big enough to take everything you have ...
 The course of history shows that as a government
 grows, liberty decreases. -- Thomas Jefferson
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-site/xdocs-faq misc.xml

2004-08-31 Thread yoavs
yoavs   2004/08/31 08:35:23

  Modified:docs index.html
   docs/faq misc.html
   docs/faq/printer misc.html
   xdocsindex.xml
   xdocs-faq misc.xml
  Log:
  Added to U of Florida to production users list, added section for 5.5.x on the home 
page.
  
  Revision  ChangesPath
  1.64  +7 -1  jakarta-tomcat-site/docs/index.html
  
  Index: index.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/index.html,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- index.html24 Aug 2004 12:40:09 -  1.63
  +++ index.html31 Aug 2004 15:35:23 -  1.64
  @@ -239,10 +239,16 @@
 /td/tr
 trtd
   blockquote
  -pstrongTomcat 5.x/strong is the current 
release of Tomcat, and
  +pstrongTomcat 5.x/strong is the current 
major release of Tomcat, and
   builds upon the Tomcat 3.3 and Tomcat 4.1 codebases. 
   The 5.x releases implement the strongServlet 2.4/strong 
   and strongJSP 2.0/strong specifications./p
  +pstrongTomcat 5.5.x/strong.  
Tomcat 5.5 is the next branch in the 
  +Tomcat 5.x major release.  While it supports the same Servlet and JSP
  +Specification versions as Tomcat 5.0.x, there are significant changes
  +in many areas under the hood.  Please refer to the Tomcat 5.5 Changelog
  +for details.
  +/p
   pstrongTomcat 5.0.x/strong.  
Tomcat 5.0 improves on Tomcat 4.1 in many
   ways, including:
   ul
  
  
  
  1.25  +2 -1  jakarta-tomcat-site/docs/faq/misc.html
  
  Index: misc.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/faq/misc.html,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- misc.html 1 Jun 2004 13:13:18 -   1.24
  +++ misc.html 31 Aug 2004 15:35:23 -  1.25
  @@ -3,7 +3,7 @@
 dd {padding-bottom : 10px;}
   /style/headbody vlink=#525D76 alink=#525D76 link=#525D76 
text=#00 bgcolor=#fftable cellspacing=4 width=100% 
border=0!--PAGE HEADER--trtd colspan=2!--JAKARTA LOGO--a 
href=http://jakarta.apache.org/;img border=0 alt=The Jakarta Project 
align=left src=http://jakarta.apache.org//images/jakarta-logo.gif;/a!--PROJECT 
LOGO--a href=http://jakarta.apache.org/tomcat/;img border=0 alt=
 Tomcat FAQ
  - align=right src=../images/tomcat.gif/a/td/tr!--HEADER 
SEPARATOR--trtd colspan=2hr size=1 noshade=/td/trtr!--LEFT SIDE 
NAVIGATION--td nowrap=true valign=top 
width=20%pstrongLinks/strong/pullia href=..Tomcat 
Home/a/lilia href=index.htmlFAQ 
Home/a/li/ulpstrongContents/strong/pullia 
href=bugs.htmlBugs/a/lilia href=classnotfound.htmlClass Not 
Found/a/lilia href=connectors.htmlConnectors/a/lilia 
href=database.htmlDatabase/a/lilia 
href=deployment.htmlDeployment/a/lilia 
href=http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto;How do 
I/a/lilia href=unix.htmlLinux / Unix/a/lilia 
href=memory.htmlMemory/a/lilia href=meta.htmlMeta/a/lilia 
href=misc.htmlMiscellaneous/a/lilia href=performance.htmlMonitoring / 
Performance/a/lilia 
href=http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links;Other 
Resources/a/lilia href=security.htmlSecurity/a/lilia 
href=version.htmlWhich Version/a/lilia href=tomcatuser.htmlTomcat User 
List/a/lilia href=windows.htmlWindows/a/li/ul/td!--RIGHT SIDE MAIN 
BODY--td align=left valign=top width=80%table cellspacing=4 width=100% 
border=0trtd nowrap=true valign=top align=lefth1Tomcat 
FAQ/h1h2Miscellaneous Questions/h2/tdtd nowrap=true valign=top 
align=rightsmalla href=printer/misc.htmlimg alt=Printer Friendly Version 
border=0 src=../images/printer.gifbrprint-friendlybrversion
  + align=right src=../images/tomcat.gif/a/td/tr!--HEADER 
SEPARATOR--trtd colspan=2hr size=1 noshade=/td/trtr!--LEFT SIDE 
NAVIGATION--td nowrap=true valign=top 
width=20%pstrongLinks/strong/pullia href=..Tomcat 
Home/a/lilia href=index.htmlFAQ 
Home/a/li/ulpstrongContents/strong/pullia 
href=bugs.htmlBugs/a/lilia href=classnotfound.htmlClass Not 
Found/a/lilia href=connectors.htmlConnectors/a/lilia 
href=database.htmlDatabase/a/lilia 
href=deployment.htmlDeployment/a/lilia 
href=http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Howto;How do 
I/a/lilia href=unix.htmlLinux / Unix/a/lilia href=os2.htmlOS/2, 
z/OS/a/lilia href=memory.htmlMemory/a/lilia 
href=meta.htmlMeta/a/lilia href=misc.htmlMiscellaneous/a/lilia 
href=performance.htmlMonitoring / Performance/a/lilia 
href=http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links;Other 
Resources/a/lilia href=security.htmlSecurity/a/lilia 
href=version.htmlWhich Version/a/lilia href=tomcatuser.htmlTomcat User 
List/a/lilia href=windows.htmlWindows/a/li/ul/td!--RIGHT SIDE MAIN 

Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml

2004-08-31 Thread Paul Speed
To configure space tabs on Emacs... quoted from:
http://www.student.northpark.edu/pemente/emacs_tabs.htm
 For this session, force Emacs to indent with spaces, never with TABs:

 M-x set-variableRET indent-tabs-modeRET nil

 Permanently force Emacs to indent with spaces, never with TABs:

 (setq-default indent-tabs-mode nil);   # put this in your .emacs file
Or, to just one spot convert tabs to spaces for a given selection:
M-x untabify
I don't have an emacs up and running at the moment so can't verify, but 
it sounds right from what I remember.  As I recall, untabify requires 
selecting the contents of the buffer first.

-Paul
Shapira, Yoav wrote:
Hi,
I'm actually working in emacs over PuTTY due to some weird network/firewall 
(mis)configuration issues here at work, so it's a pain for me to fix the tabs at this 
time ;(
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 10:53 AM
To: Tomcat Developers List
Subject: Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config
context.xml
[EMAIL PROTECTED] wrote:

yoavs   2004/08/31 07:50:41
Modified:catalina/src/share/org/apache/catalina/core Tag: TOMCAT_5_0
  StandardContext.java
 webapps/docs Tag: TOMCAT_5_0 changelog.xml
 webapps/docs/config Tag: TOMCAT_5_0 context.xml
Log:
Added StandardContext processTlds attribute, added context configuration
references docs for processTlds, tldValidation, tldNamespaceAware.

I can feel two more commits are coming in shortly ;)
Can you fix the tabs at the same time ?
Rémy
-
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: cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml

2004-08-31 Thread Shapira, Yoav

Hi,
Good tip, done, thanks.

I was going to raise the issue of Jalopy-fying Tomcat 5.5 anyways.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Paul Speed [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 1:18 PM
To: Tomcat Developers List
Subject: Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config
context.xml


To configure space tabs on Emacs... quoted from:
http://www.student.northpark.edu/pemente/emacs_tabs.htm

  For this session, force Emacs to indent with spaces, never with TABs:
 
  M-x set-variableRET indent-tabs-modeRET nil
 
  Permanently force Emacs to indent with spaces, never with TABs:
 
  (setq-default indent-tabs-mode nil);   # put this in your .emacs file

Or, to just one spot convert tabs to spaces for a given selection:

M-x untabify

I don't have an emacs up and running at the moment so can't verify, but
it sounds right from what I remember.  As I recall, untabify requires
selecting the contents of the buffer first.

-Paul

Shapira, Yoav wrote:

 Hi,
 I'm actually working in emacs over PuTTY due to some weird
network/firewall (mis)configuration issues here at work, so it's a pain for
me to fix the tabs at this time ;(

 Yoav Shapira
 Millennium Research Informatics



-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 10:53 AM
To: Tomcat Developers List
Subject: Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/config
context.xml

[EMAIL PROTECTED] wrote:


yoavs   2004/08/31 07:50:41

 Modified:catalina/src/share/org/apache/catalina/core Tag:
TOMCAT_5_0
   StandardContext.java
  webapps/docs Tag: TOMCAT_5_0 changelog.xml
  webapps/docs/config Tag: TOMCAT_5_0 context.xml
 Log:
 Added StandardContext processTlds attribute, added context
configuration

references docs for processTlds, tldValidation, tldNamespaceAware.


I can feel two more commits are coming in shortly ;)
Can you fix the tabs at the same time ?

Rémy


-
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]




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]



Hi!

2004-08-31 Thread V. Karthik Kumar
Hi,

I'm new to this list :)

I'm looking ahead to contribute to my favorite Web-container 

(and, oh... someone change the current 5.0x version to reflect 5.0.28 on
the Tomcat site... )




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hi!

2004-08-31 Thread Shapira, Yoav

Hi,
Welcome ;)  The web site shows latest stable version, and 5.0.28 has yet
to be voted as such.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: V. Karthik Kumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 2:34 PM
To: Tomcat Developers
Subject: Hi!

Hi,

I'm new to this list :)

I'm looking ahead to contribute to my favorite Web-container

(and, oh... someone change the current 5.0x version to reflect 5.0.28
on
the Tomcat site... )




-
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]



NSI notes for 5.5.0 (or actually 5.5.1 ;))

2004-08-31 Thread Shapira, Yoav

To myself or whoever want to take care of it:
- Change all occurrences Tomcat 5.0 to Tomcat 5.5 in tomcat.nsi
- Fix
  [exec] 2 warnings:
  [exec]   unknown variable/constant {SecTomcatDocs} detected,
ignoring (ma
:MUI_DESCRIPTION_TEXT:5)
  [exec]   LangString DESC_SecTomcatDocs is not set in language table
of la
age 1033

Yoav Shapira
Millennium Research Informatics





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]



cvs commit: jakarta-servletapi-4/src/share/javax/servlet/jsp/tagext BodyContent.java BodyTag.java BodyTagSupport.java IterationTag.java PageData.java Tag.java TagAttributeInfo.java TagData.java TagExtraInfo.java TagInfo.java TagLibraryInfo.java TagLibraryValidator.java TagSupport.java TagVariableInfo.java TryCatchFinally.java ValidationMessage.java VariableInfo.java

2004-08-31 Thread jfarcand
jfarcand2004/08/31 12:10:54

  Modified:.LICENSE
   src/share/javax/servlet Filter.java FilterChain.java
FilterConfig.java GenericServlet.java
RequestDispatcher.java Servlet.java
ServletConfig.java ServletContext.java
ServletContextAttributeEvent.java
ServletContextAttributeListener.java
ServletContextEvent.java
ServletContextListener.java ServletException.java
ServletInputStream.java ServletOutputStream.java
ServletRequest.java ServletRequestWrapper.java
ServletResponse.java ServletResponseWrapper.java
SingleThreadModel.java UnavailableException.java
   src/share/javax/servlet/http Cookie.java HttpServlet.java
HttpServletRequest.java
HttpServletRequestWrapper.java
HttpServletResponse.java
HttpServletResponseWrapper.java HttpSession.java
HttpSessionActivationListener.java
HttpSessionAttributeListener.java
HttpSessionBindingEvent.java
HttpSessionBindingListener.java
HttpSessionContext.java HttpSessionEvent.java
HttpSessionListener.java HttpUtils.java
   src/share/javax/servlet/jsp HttpJspPage.java
JspEngineInfo.java JspException.java
JspFactory.java JspPage.java JspTagException.java
JspWriter.java PageContext.java
   src/share/javax/servlet/jsp/tagext BodyContent.java
BodyTag.java BodyTagSupport.java IterationTag.java
PageData.java Tag.java TagAttributeInfo.java
TagData.java TagExtraInfo.java TagInfo.java
TagLibraryInfo.java TagLibraryValidator.java
TagSupport.java TagVariableInfo.java
TryCatchFinally.java ValidationMessage.java
VariableInfo.java
  Log:
  Update licence to Apache 2.0
  
  patch submitted by Mark Thomas
  
  Revision  ChangesPath
  1.3   +197 -60   jakarta-servletapi-4/LICENSE
  
  http://cvs.apache.org/viewcvs/jakarta-servletapi-4/LICENSE.diff?r1=1.2r2=1.3
  
  
  1.4   +13 -57jakarta-servletapi-4/src/share/javax/servlet/Filter.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/Filter.java.diff?r1=1.3r2=1.4
  
  
  1.2   +13 -57jakarta-servletapi-4/src/share/javax/servlet/FilterChain.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/FilterChain.java.diff?r1=1.1r2=1.2
  
  
  1.2   +13 -57jakarta-servletapi-4/src/share/javax/servlet/FilterConfig.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/FilterConfig.java.diff?r1=1.1r2=1.2
  
  
  1.4   +13 -57jakarta-servletapi-4/src/share/javax/servlet/GenericServlet.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/GenericServlet.java.diff?r1=1.3r2=1.4
  
  
  1.2   +13 -57
jakarta-servletapi-4/src/share/javax/servlet/RequestDispatcher.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/RequestDispatcher.java.diff?r1=1.1r2=1.2
  
  
  1.2   +13 -57jakarta-servletapi-4/src/share/javax/servlet/Servlet.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/Servlet.java.diff?r1=1.1r2=1.2
  
  
  1.2   +13 -57jakarta-servletapi-4/src/share/javax/servlet/ServletConfig.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/ServletConfig.java.diff?r1=1.1r2=1.2
  
  
  1.5   +13 -57jakarta-servletapi-4/src/share/javax/servlet/ServletContext.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/ServletContext.java.diff?r1=1.4r2=1.5
  
  
  1.4   +13 -57
jakarta-servletapi-4/src/share/javax/servlet/ServletContextAttributeEvent.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/ServletContextAttributeEvent.java.diff?r1=1.3r2=1.4
  
  
  1.2   +16 -0 
jakarta-servletapi-4/src/share/javax/servlet/ServletContextAttributeListener.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/ServletContextAttributeListener.java.diff?r1=1.1r2=1.2
  
  
  1.2   +13 -57
jakarta-servletapi-4/src/share/javax/servlet/ServletContextEvent.java
  
  
http://cvs.apache.org/viewcvs/jakarta-servletapi-4/src/share/javax/servlet/ServletContextEvent.java.diff?r1=1.1r2=1.2
  
  
  1.2   +13 -57

cvs commit: jakarta-tomcat-site/xdocs/stylesheets project.xml

2004-08-31 Thread yoavs
yoavs   2004/08/31 12:20:26

  Modified:docs bugreport.html index.html irc.html resources.html
   xdocs/stylesheets project.xml
  Log:
  Added tomcat 5.5 to a couple of places.
  
  Revision  ChangesPath
  1.23  +2 -0  jakarta-tomcat-site/docs/bugreport.html
  
  Index: bugreport.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/bugreport.html,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- bugreport.html9 May 2004 14:13:14 -   1.22
  +++ bugreport.html31 Aug 2004 19:20:26 -  1.23
  @@ -75,6 +75,8 @@
   /ul
   pstrongDocumentation/strong/p
   ul
  +lia href=./tomcat-5.5-doc/index.htmlTomcat 5.5/a
  +/li
   lia href=./tomcat-5.0-doc/index.htmlTomcat 5.0/a
   /li
   lia href=./tomcat-4.1-doc/index.htmlTomcat 4.1/a
  
  
  
  1.65  +2 -0  jakarta-tomcat-site/docs/index.html
  
  Index: index.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/index.html,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- index.html31 Aug 2004 15:35:23 -  1.64
  +++ index.html31 Aug 2004 19:20:26 -  1.65
  @@ -77,6 +77,8 @@
   /ul
   pstrongDocumentation/strong/p
   ul
  +lia href=./tomcat-5.5-doc/index.htmlTomcat 5.5/a
  +/li
   lia href=./tomcat-5.0-doc/index.htmlTomcat 5.0/a
   /li
   lia href=./tomcat-4.1-doc/index.htmlTomcat 4.1/a
  
  
  
  1.22  +2 -0  jakarta-tomcat-site/docs/irc.html
  
  Index: irc.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/irc.html,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- irc.html  9 Mar 2004 20:11:44 -   1.21
  +++ irc.html  31 Aug 2004 19:20:26 -  1.22
  @@ -75,6 +75,8 @@
   /ul
   pstrongDocumentation/strong/p
   ul
  +lia href=./tomcat-5.5-doc/index.htmlTomcat 5.5/a
  +/li
   lia href=./tomcat-5.0-doc/index.htmlTomcat 5.0/a
   /li
   lia href=./tomcat-4.1-doc/index.htmlTomcat 4.1/a
  
  
  
  1.26  +2 -0  jakarta-tomcat-site/docs/resources.html
  
  Index: resources.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/resources.html,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- resources.html5 Apr 2004 17:06:12 -   1.25
  +++ resources.html31 Aug 2004 19:20:26 -  1.26
  @@ -75,6 +75,8 @@
   /ul
   pstrongDocumentation/strong/p
   ul
  +lia href=./tomcat-5.5-doc/index.htmlTomcat 5.5/a
  +/li
   lia href=./tomcat-5.0-doc/index.htmlTomcat 5.0/a
   /li
   lia href=./tomcat-4.1-doc/index.htmlTomcat 4.1/a
  
  
  
  1.14  +1 -0  jakarta-tomcat-site/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/xdocs/stylesheets/project.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- project.xml   8 Sep 2003 10:29:54 -   1.13
  +++ project.xml   31 Aug 2004 19:20:26 -  1.14
  @@ -15,6 +15,7 @@
   /menu
   
   menu name=Documentation
  +item name=Tomcat 5.5   href=/tomcat-5.5-doc/index.html/
   item name=Tomcat 5.0   href=/tomcat-5.0-doc/index.html/
   item name=Tomcat 4.1   href=/tomcat-4.1-doc/index.html/
   item name=Tomcat 3.3   href=/tomcat-3.3-doc/index.html/
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30964] - Server crash on manual flush

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30964.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30964

Server crash on manual flush

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 19:42 ---
This is a JVM bug, not a tomcat bug. The text in your error message:
quote
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
/quote
is a big hint.
To be 100% sure I tried this on 1.4.2_05 on Windows and all works. You also 
seem to be using a JRE rather than a JDK. This might or might not be a factor.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-5 tomcat.nsi

2004-08-31 Thread yoavs
yoavs   2004/08/31 12:51:22

  Modified:.tomcat.nsi
  Log:
  Replaced 5.0 with 5.5 to reflect Tomcat branch.
  
  Revision  ChangesPath
  1.49  +23 -23jakarta-tomcat-5/tomcat.nsi
  
  Index: tomcat.nsi
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/tomcat.nsi,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- tomcat.nsi26 Aug 2004 17:03:34 -  1.48
  +++ tomcat.nsi31 Aug 2004 19:51:22 -  1.49
  @@ -86,7 +86,7 @@
 !insertmacro MUI_LANGUAGE English
   
 ;Folder-select dialog
  -  InstallDir $PROGRAMFILES\Apache Software Foundation\Tomcat 5.0
  +  InstallDir $PROGRAMFILES\Apache Software Foundation\Tomcat 5.5
   
 ;Install types
 InstType Normal
  @@ -94,7 +94,7 @@
 InstType Full
   
 ; Main registry key
  -  InstallDirRegKey HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0 
  +  InstallDirRegKey HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.5 
   
 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
 ReserveFile jvm.ini
  @@ -143,7 +143,7 @@
 IfSilent +2 0
 !insertmacro MUI_INSTALLOPTIONS_READ $2 jvm.ini Field 2 State
   
  -;  CopyFiles /SILENT $2\lib\tools.jar $INSTDIR\common\lib 4500
  +;  CopyFiles /SILENT $2\lib\tools.jar $INSTDIR\common\lib 45.5
 ClearErrors
   
 Call configure
  @@ -201,36 +201,36 @@
   
 !insertmacro MUI_INSTALLOPTIONS_READ $2 jvm.ini Field 2 State
   
  -  SetOutPath $SMPROGRAMS\Apache Tomcat 5.0
  +  SetOutPath $SMPROGRAMS\Apache Tomcat 5.5
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Tomcat Home Page.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Tomcat Home Page.lnk \
http://jakarta.apache.org/tomcat;
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Welcome.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Welcome.lnk \
http://127.0.0.1:$R0/;
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Tomcat Administration.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Tomcat Administration.lnk \
http://127.0.0.1:$R0/admin/;
   
 IfFileExists $INSTDIR\webapps\webapps\tomcat-docs 0 NoDocumentaion
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Tomcat Documentation.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Tomcat Documentation.lnk \
$INSTDIR\webapps\tomcat-docs\index.html
   
   NoDocumentaion:
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Uninstall Tomcat 5.0.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Uninstall Tomcat 5.5.lnk \
$INSTDIR\Uninstall.exe
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Tomcat 5.0 Program Directory.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Tomcat 5.5 Program Directory.lnk \
$INSTDIR
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Monitor Tomcat.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Monitor Tomcat.lnk \
$INSTDIR\bin\tomcat5w.exe \
'//MS//Tomcat5' \
$INSTDIR\tomcat.ico 0 SW_SHOWNORMAL
   
  -  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.0\Configure Tomcat.lnk \
  +  CreateShortCut $SMPROGRAMS\Apache Tomcat 5.5\Configure Tomcat.lnk \
$INSTDIR\bin\tomcat5w.exe \
'//ES//Tomcat5' \
$INSTDIR\tomcat.ico 0 SW_SHOWNORMAL
  @@ -283,11 +283,11 @@
   
 WriteUninstaller $INSTDIR\Uninstall.exe
   
  -  WriteRegStr HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0 InstallPath 
$INSTDIR
  -  WriteRegStr HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0 Version 
@VERSION@
  -  WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache 
Tomcat 5.0 \
  -   DisplayName Apache Tomcat 5.0 (remove only)
  -  WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache 
Tomcat 5.0 \
  +  WriteRegStr HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.5 InstallPath 
$INSTDIR
  +  WriteRegStr HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.5 Version 
@VERSION@
  +  WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache 
Tomcat 5.5 \
  +   DisplayName Apache Tomcat 5.5 (remove only)
  +  WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache 
Tomcat 5.5 \
  UninstallString '$INSTDIR\Uninstall.exe'
   
   SectionEnd
  @@ -566,9 +566,9 @@
 ClearErrors
   
 DeleteRegKey HKCR JSPFile
  -  DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache 
Tomcat 5.0
  -  DeleteRegKey HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0
  -  RMDir /r $SMPROGRAMS\Apache Tomcat 5.0
  +  DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache 
Tomcat 5.5
  +  DeleteRegKey HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.5
  +  RMDir /r $SMPROGRAMS\Apache Tomcat 

RE: [Patch] File descriptor leak in ManagerBase - please advise.

2004-08-31 Thread Renato
Hi,

I just saw your fix. I'll give it a try and let you
know.

Thanks.

--- Shapira, Yoav [EMAIL PROTECTED] wrote:

 
 Hi,
 randomIS is set to null in the getBytes method.  But
 that's not as good
 as an explicit close.  So I'll add an explicit close
 before setting
 randomIS to null.  Your patch I don't like as much
 because it closes the
 stream before the readLong method is invoked on it.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Renato [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 30, 2004 1:43 PM
 To: [EMAIL PROTECTED]
 Subject: [Patch] File descriptor leak in
 ManagerBase - please advise.
 
 Hi all,
 
 I running linux with tomcat 5.0.28. Today I have
 the
 following error:
 
 java.net.SocketException: Too many open files
 at
 java.net.Socket.createImpl(Socket.java:331)
 at java.net.Socket.init(Socket.java:304)
 at java.net.Socket.init(Socket.java:124)
 (...)
 
 By checking with 'lsof -p tomcat_pid', I saw that
 there thousands of opened /dev/urandom files.
 
 I looked at the code and I found that in class
 org/apache/catalina/session/ManagerBase.java, the
 /dev/urandom is opened but apparently never
 closed...
 ( any reason ? )
 
 I made this patch and it fixed my problem, with no
 colateral effected so far...
 
 ---
 ../jakarta-tomcat-5.0.27-src/jakarta-tomcat-

catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.jav
 a
  2004-06-17 22:11:20.0 -0300
 +++
 jakarta-tomcat-

catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.jav
 a
 2004-08-30 14:23:43.0 -0300
 @@ -194,10 +194,12 @@
  try {
  File f=new File( devRandomSource
 );
  if( ! f.exists() ) return null;
 -randomIS= new DataInputStream( new
 FileInputStream(f));
 +FileInputStream fin = new
 FileInputStream(f);
 +randomIS= new
 DataInputStream(fin);
  randomIS.readLong();
  if( log.isDebugEnabled() )
  log.debug( Opening  +
 devRandomSource );
 +fin.close();
  return randomIS;
  } catch (IOException ex){
  return null;
 @@ -505,10 +507,12 @@
  devRandomSource=s;
  File f=new File(
 devRandomSource
 );
  if( ! f.exists() ) return;
 -randomIS= new DataInputStream(
 new FileInputStream(f));
 +FileInputStream fin = new
 FileInputStream(f);
 +randomIS= new
 DataInputStream(fin);
  randomIS.readLong();
  if( log.isDebugEnabled() )
  log.debug( Opening  +
 devRandomSource );
 +   fin.close();
  } catch( IOException ex ) {
  randomIS=null;
  }
 
 Any comment ?
 Thanks for the attention
 Renato - Brazil.
 
 
 
 
 ___
 Do you Yahoo!?
 Win 1 of 4,000 free domain names from Yahoo! Enter
 now.
 http://promotions.yahoo.com/goldrush
 

-
 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]
 
 




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-catalina/webapps/docs/config context.xml

2004-08-31 Thread yoavs
yoavs   2004/08/31 12:55:17

  Modified:webapps/docs status.xml
   webapps/docs/config context.xml
  Log:
  Cleaned up status and correct the XML for tld validation attributes.
  
  Revision  ChangesPath
  1.7   +11 -9 jakarta-tomcat-catalina/webapps/docs/status.xml
  
  Index: status.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/status.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- status.xml5 Aug 2004 13:10:35 -   1.6
  +++ status.xml31 Aug 2004 19:55:17 -  1.7
  @@ -30,21 +30,18 @@
 section name=Current Status Summary
   p
 bTomcat 5.0.27/b was released on June 17th, 2004.  At that time, the 
TOMCAT_5_0
  -  branch was tagged in CVS, and work on Tomcat 5.1 (or 5.5, or 5.next, we 
haven't
  -  decided yet) began.  Until the first stable release of Tomcat 5.1, building 
from
  +  branch was tagged in CVS, and work on Tomcat 5.5 began.  Until the first 
stable 
  +  release of Tomcat 5.1, building from
 CVS head may be unstable or broken: use the TOMCAT_5_0 branch tag to build
 the Tomcat 5.0 releases.
   /p
   p
  -  bTomcat 5.1/b has several major goals.  They are discussed in the 
tomcat-dev
  +  bTomcat 5.5/b has several major goals.  They are discussed in the 
tomcat-dev
 mailing list's 5.next thread: 
 a 
href=http://marc.theaimsgroup.com/?l=tomcat-devamp;w=2amp;r=1amp;s=5.nextamp;q=b;MARC/a.
  -  The status of some of these items is detailed below.
  -/p
  -p
  -  bTomcat 4.0.x/b is relatively old, and not actively maintained or 
supported.
  -  It is strongly recommended that users of these releases upgrade to the latest
  -  stable Tomcat 5.0 release or at least the latest stable Tomcat 4.1 release.
  +  The status of some of these items is detailed below.  Once 5.5 releases are
  +  available, please refer to the Changelog accompanying each release for 
detailed
  +  changes, enhancements, and fixes.
   /p
   p
 bTomcat 4.1.x/b is no longer actively developed.  It is maintained to 
address
  @@ -52,6 +49,11 @@
 for Tomcat 4.1.x will likely cease once a stable release or two of Tomcat 5.1 
are out.
 Users of Tomcat 4.1.x are strongly encouraged to upgrade to the latest stable 
Tomcat
 5.0 release.
  +/p
  +p
  +  bTomcat 4.0.x/b is relatively old, and not actively maintained or 
supported.
  +  It is strongly recommended that users of these releases upgrade to the latest
  +  stable Tomcat 5.0 release or at least the latest stable Tomcat 4.1 release.
   /p
   p
 bTomcat 3.3.x/b is in roughly the same maintenance mode as Tomcat 4.1.x.
  
  
  
  1.13  +2 -2  jakarta-tomcat-catalina/webapps/docs/config/context.xml
  
  Index: context.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/config/context.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- context.xml   31 Aug 2004 14:41:48 -  1.12
  +++ context.xml   31 Aug 2004 19:55:17 -  1.13
  @@ -277,7 +277,7 @@
   of the flag is codefalse/code./p
 /attribute
   
  -  attribute value=tldNamespaceAware required=false
  +  attribute name=tldNamespaceAware required=false
   pIf the value of this flag is codetrue/code, the TLD files
   XML validation will be namespace-aware.  If you turn this flag on,
   you should probably also turn codetldValidation/code on.  The
  @@ -286,7 +286,7 @@
   /p
 /attribute
   
  -  attribute value=tldValidation required=false
  +  attribute name=tldValidation required=false
   pIf the value of this flag is codetrue/code, the TLD files
   will be XML validated on context startup.  The default value for
   this flag is codefalse/code, and setting it to true will incur
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



separate configuration from distribution?

2004-08-31 Thread Thomas Zehetbauer
Hi,

to ease upgrading I am using $CATALINA_BASE to separate my local
configuration from the tomcat distribution. Now I am trying to configure
a J2EE JNDI datasource and have found that: These jar files along with
your the jar file for your JDBC driver should be installed in
$CATALINA_HOME/common/lib.. I hope there already is an undocumented way
to install additional JAR files in $CATALINA_BASE but if there is none,
I guess this would be an useful feature to add.

Tom
-- 
  T h o m a s   Z e h e t b a u e r   ( TZ251 )
  PGP encrypted mail preferred - KeyID 96FFCB89
  finger [EMAIL PROTECTED] for key

Error reading FAT record: Try the SKINNY one? (Y/N)




signature.asc
Description: This is a digitally signed message part


DO NOT REPLY [Bug 27371] - java.lang.ThreadDeath caused by log4j when reloading Tomcat app

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=27371.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27371

java.lang.ThreadDeath caused by log4j when reloading Tomcat app





--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 20:11 ---
I've got the same exception, but without log4j envolvement. To reproduce try 
this:

1. In TC 5.0.27 login to admin application.
2. Under the Host-Create New Context create the new context pointing to some 
JSP webapp outside standard webapps directory.
3. When finished successfuly, try to invoke this application and you should get 
ThreadDeath exception.

BTW, it is working fine when deploying to the standard webapps directory.

Here is a stack:

java.lang.ThreadDeath
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1229)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1189)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1316)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:220)
at org.apache.jasper.compiler.ParserController.parse
(ParserController.java:101)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:799)
...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session ManagerBase.java

2004-08-31 Thread Renato
Hi Yoav,

I just give it try and it didn't work. I still see
thousands of opened '/dev/urandom' with lsof:

java8457 webserver   19r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   20r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   21r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   22r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   23r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   24r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   25r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   26r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   27r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   28r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   29r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   30r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   31r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   32r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   33r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   34r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   35r   CHR  1,9   
 39427 /dev/urandom
java8457 webserver   36r   CHR  1,9   
 39427 /dev/urandom

I think the leak is on 'new FileInputStream(f)' and
not is randomIS.

Thanks again.

--- [EMAIL PROTECTED] wrote:

 yoavs   2004/08/31 07:07:54
 
   Modified:   
 catalina/src/share/org/apache/catalina/session
 ManagerBase.java
   Log:
   Added explicit close of randomIS DataInputSource
 for better resource handling.
   
   Revision  ChangesPath
   1.32  +14 -1

jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.java
   
   Index: ManagerBase.java
  

===
   RCS file:

/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/ManagerBase.java,v
   retrieving revision 1.31
   retrieving revision 1.32
   diff -u -r1.31 -r1.32
   --- ManagerBase.java16 Aug 2004 09:31:05 -
 1.31
   +++ ManagerBase.java31 Aug 2004 14:07:54 -
 1.32
   @@ -452,6 +452,12 @@
if( log.isDebugEnabled() )
log.debug( Opening  +
 devRandomSource );
} catch( IOException ex ) {
   +try {
   +   randomIS.close();
   +   } catch (Exception e) {
   +log.warn(Failed to close
 randomIS.);
   +   }
   +
randomIS=null;
}
}
   @@ -728,6 +734,13 @@
} catch( Exception ex ) {
}
devRandomSource=null;
   + 
   +try {
   +   randomIS.close();
   +   } catch (Exception e) {
   +log.warn(Failed to close
 randomIS.);
   +   }
   +
randomIS=null;
}
Random random = getRandom();
   
   
   
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 




___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30409] - Bad error message when taglib shortname is null

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30409.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30409

Bad error message when taglib shortname is null

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-08-31 20:43 ---
The code quoted as the source of this issue is outside the control of the 
tomcat team as it is part of the jakarta-servletapi-4 module. Note that 
similar code exisits in the jakarta-servletapi-5 module.

You will need to contact the servlet spec team regarding this issue:
[EMAIL PROTECTED]

I am marking this as INVALID as it is outside the scope of the tomcat source 
code, not because the root cause of the issue is invalid.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[GUMP@brutus]: jakarta-tomcat-catalina/jakarta-tomcat-catalina success

2004-08-31 Thread bobh
To whom it may satisfy...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact folk at [EMAIL PROTECTED]

Project jakarta-tomcat-catalina *no longer* has an issue.
Project State : 'Success', Reason ''

Full details are available at:


http://brutus.apache.org/gump/public/jakarta-tomcat-catalina/jakarta-tomcat-catalina/index.html

That said, some snippets follow:


The following annotations were provided:
 -DEBUG- Jar [naming-resources.jar] identifier set to jar basename: [naming-resources]
 -DEBUG- Jar [servlets-default.jar] identifier set to jar basename: [servlets-default]
 -DEBUG- Jar [naming-common.jar] identifier set to jar basename: [naming-common]
 -DEBUG- Jar [catalina.jar] identifier set to jar basename: [catalina]
 -DEBUG- Jar [bootstrap.jar] identifier set to jar basename: [bootstrap]
 -DEBUG- Jar [servlets-common.jar] identifier set to jar basename: [servlets-common]
 -DEBUG- Jar [servlets-invoker.jar] identifier set to jar basename: [servlets-invoker]
 -DEBUG- Dependency on javamail exists, no need to add for property mail.jar.
 -DEBUG- Dependency on jaf exists, no need to add for property activation.jar.
 -DEBUG- Dependency on jmx exists, no need to add for property jmx.jar.
 -DEBUG- Dependency on jakarta-servletapi-5-servlet exists, no need to add for 
property servlet-api.jar.
 -DEBUG- Dependency on jakarta-servletapi-5-jsp exists, no need to add for property 
jsp-api.jar.
 -DEBUG- Dependency on xml-xerces exists, no need to add for property xml-apis.jar.
 -DEBUG- Dependency on xml-xerces exists, no need to add for property xercesImpl.jar.
 -DEBUG- Dependency on jakarta-tomcat-util exists, no need to add for property 
tomcat-util.jar.
 -DEBUG- Dependency on commons-logging exists, no need to add for property 
commons-logging-api.jar.
 -DEBUG- Dependency on ant exists, no need to add for property ant.home.
 -DEBUG- Dependency on jsse exists, no need to add for property jsse.home.
 -DEBUG- Dependency on jmx exists, no need to add for property jmx.home.
 -DEBUG- Dependency on jmx exists, no need to add for property jmxtools.jar.
 -DEBUG- Dependency on jndi exists, no need to add for property jndi.home.
 -DEBUG- Dependency on jakarta-regexp exists, no need to add for property regexp.home.
 -DEBUG- Dependency on jakarta-regexp exists, no need to add for property regexp.jar.
 -DEBUG- Dependency on javamail exists, no need to add for property mail.home.
 -DEBUG- Dependency on jaf exists, no need to add for property activation.home.
 -DEBUG- Dependency on jakarta-tomcat-coyote exists, no need to add for property 
tomcat-coyote.home.


The following work was performed:
http://brutus.apache.org/gump/public/jakarta-tomcat-catalina/jakarta-tomcat-catalina/gump_work/build_jakarta-tomcat-catalina_jakarta-tomcat-catalina.html
Work Name: build_jakarta-tomcat-catalina_jakarta-tomcat-catalina (Type: Build)
State: Success
Elapsed: 21 secs
Command Line: java -Djava.awt.headless=true 
-Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/java/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-xerces2/java/build/xml-apis.jar:/usr/local/gump/public/workspace/xml-xalan/java/build/xalan-unbundled.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -Dgump.merge=/usr/local/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only -Dtomcat33.home=--UnSet-- 
-Djsp-api.jar=/usr/local/gump/public/workspace/jakarta-servletapi-5/jsr152/dist/lib/jsp-api.jar
 -Djmx.jar=/usr/local/gump/packages/jmx-1_2-ri/lib/jmxri.jar 
-Djmx.home=/usr/local/gump/packages/jmx-1_2-ri 
-Djdbc20ext.jar=/usr/local/gump/packages/jdbc2_0/jdbc2_0-stdext.jar 
-Djtc.home=/usr/local/gump/public/workspace/jakarta-tomcat-connectors 
-Dmail.home=/usr/local/gump/packages/javamail-1.3 
-Dant.home=/usr/local/gump/public/workspace/ant/dist 
-Dsite2.home=/usr/local/gump/public/workspace/jakarta-site2 
-Dcommons-collections.jar=/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-31082004.jar
 -Dcatalina.deploy=/usr/local/gump/public/workspace/jakarta-tomcat-catalina/build 
-Dxml-apis.jar=/usr/local/gump/public/workspace/xml-xerces2/java/build/xml-apis.jar 
-DxercesImpl.jar=/usr/local/gump/public/workspace/xml-xerces2/java/build/xercesImpl.jar
 -Djsse.home=/usr/local/gump/packages/jsse1.0.3 
-Djaas.jar=/usr/local/gump/packages/jaas1_0/lib/jaas.jar 
-Dcatalina.build=/usr/local/gump/public/workspace/jakarta-tomcat-catalina/build 
-Dcommons-fileupload.jar=/usr/local/gump/public/workspace/jakarta-commons/fileupload/target/commons-fileupload-31082004.jar
 -Dmail.jar=/usr/local/gump/packages/javamail-1.3/mail.jar 
-Dcommons-digester.jar=/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar
 -Djndi.jar=/usr/local/gump/packages/jndi1_2_1/lib/jndi.jar 
-Djmxtools.jar=/usr/local/gump/packages/jmx-1_2-ri/lib/jmxtools.jar 

cvs commit: jakarta-tomcat-catalina/catalina build.xml

2004-08-31 Thread yoavs
yoavs   2004/08/31 16:52:39

  Modified:catalina build.xml
  Log:
  Additional minor JavaDoc fixes.
  
  Revision  ChangesPath
  1.68  +2 -1  jakarta-tomcat-catalina/catalina/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/build.xml,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- build.xml 29 Aug 2004 18:13:28 -  1.67
  +++ build.xml 31 Aug 2004 23:52:39 -  1.68
  @@ -711,7 +711,8 @@
 version=true
 windowtitle=Tomcat API Documentation
 doctitle=Tomcat API
  -  bottom=Copyright #169; 2000-2003 Apache Software Foundation.  All Rights 
Reserved.
  +  bottom=Copyright #169; 2000-2004 Apache Software Foundation.  All Rights 
Reserved.
  +  additionalparam=-breakiterator
   /
 /target
   
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/digester CallMethodRule.java NodeCreateRule.java

2004-08-31 Thread yoavs
yoavs   2004/08/31 16:52:52

  Modified:http11/src/java/org/apache/coyote/http11
Http11Processor.java InternalOutputBuffer.java
   jk/java/org/apache/ajp Ajp13.java RequestHandler.java
   jk/java/org/apache/ajp/tomcat4/config ApacheConfig.java
BaseJkConfig.java IISConfig.java NSConfig.java
   jk/java/org/apache/jk/common MsgAjp.java
   jk/java/org/apache/jk/core Msg.java
   util/java/org/apache/tomcat/util/digester
CallMethodRule.java NodeCreateRule.java
  Log:
  Additional minor JavaDoc fixes.
  
  Revision  ChangesPath
  1.106 +2 -2  
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
  
  Index: Http11Processor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
  retrieving revision 1.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- Http11Processor.java  23 Aug 2004 19:29:35 -  1.105
  +++ Http11Processor.java  31 Aug 2004 23:52:51 -  1.106
  @@ -399,7 +399,7 @@
* The mime-type String will be exactly matched
* in the response mime-type header .
* 
  - * @param userAgent user-agent string
  + * @param mimeType mime-type string
*/
   public void addCompressableMimeType(String mimeType) {
   compressableMimeTypes = 
  @@ -698,7 +698,7 @@
   
   /** Get the request associated with this processor.
*
  - * @return
  + * @return The request
*/
   public Request getRequest() {
   return request;
  
  
  
  1.23  +1 -1  
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/InternalOutputBuffer.java
  
  Index: InternalOutputBuffer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/InternalOutputBuffer.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- InternalOutputBuffer.java 15 Jul 2004 14:33:38 -  1.22
  +++ InternalOutputBuffer.java 31 Aug 2004 23:52:51 -  1.23
  @@ -643,7 +643,7 @@
* buffer to the output stream, without filtering. This method is meant to
* be used to write the response header.
* 
  - * @param bc data to be written
  + * @param cc data to be written
*/
   protected void write(CharChunk cc) {
   
  
  
  
  1.29  +0 -4  jakarta-tomcat-connectors/jk/java/org/apache/ajp/Ajp13.java
  
  Index: Ajp13.java
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/Ajp13.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- Ajp13.java24 Feb 2004 08:48:43 -  1.28
  +++ Ajp13.java31 Aug 2004 23:52:52 -  1.29
  @@ -38,8 +38,6 @@
* translates from Tomcat's internal servlet support methods
* (e.g. doWrite) to the correct packets to send to the web server.
*
  - * @see Ajp13Interceptor 
  - *
* @author Dan Milstein [EMAIL PROTECTED]
* @author Keith Wannamaker [EMAIL PROTECTED]
* @author Kevin Seguin [EMAIL PROTECTED]
  @@ -479,8 +477,6 @@
* Close the socket connection to the web server.  In general, sockets
* are maintained across many requests, so this will not be called
* after finish().  
  - *
  - * @see Ajp13Interceptor#processConnection
*/
   public void close() throws IOException {
   if (debug  0) {
  
  
  
  1.22  +0 -4  
jakarta-tomcat-connectors/jk/java/org/apache/ajp/RequestHandler.java
  
  Index: RequestHandler.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/RequestHandler.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- RequestHandler.java   15 Jun 2004 20:37:10 -  1.21
  +++ RequestHandler.java   31 Aug 2004 23:52:52 -  1.22
  @@ -625,8 +625,6 @@
   
   /**
* Return the next byte of request body data (to a servlet).
  - *
  - * @see Request#doRead
*/
   public int doRead(Ajp13 ch) throws IOException 
   {
  @@ -651,8 +649,6 @@
*
* @return The number of bytes actually copied into the buffer, or -1
* if the end of the stream has been reached.
  - *
  - * @see Request#doRead
*/
   public int doRead(Ajp13 ch, byte[] b, int off, int len) throws IOException 
   {
  
  
  
  1.8   +2 -2  
jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4/config/ApacheConfig.java
  
  Index: ApacheConfig.java
  

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler ErrorDispatcher.java

2004-08-31 Thread yoavs
yoavs   2004/08/31 16:52:59

  Modified:jasper2  build.xml
   jasper2/src/share/org/apache/jasper/compiler
ErrorDispatcher.java
  Log:
  Additional minor JavaDoc fixes.
  
  Revision  ChangesPath
  1.29  +2 -1  jakarta-tomcat-jasper/jasper2/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/build.xml,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- build.xml 29 Aug 2004 18:15:03 -  1.28
  +++ build.xml 31 Aug 2004 23:52:59 -  1.29
  @@ -178,7 +178,8 @@
version=true
windowtitle=Jasper Internal API Documentation
doctitle=Jasper API
  - bottom=Copyright #169; 2000 Apache Software Foundation.  All Rights 
Reserved.
  + bottom=Copyright #169; 2000-2004 Apache Software Foundation.  All Rights 
Reserved.
  + additionalparam=-breakiterator
   /
 /target
   
  
  
  
  1.23  +1 -1  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ErrorDispatcher.java
  
  Index: ErrorDispatcher.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ErrorDispatcher.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- ErrorDispatcher.java  16 Aug 2004 23:48:35 -  1.22
  +++ ErrorDispatcher.java  31 Aug 2004 23:52:59 -  1.23
  @@ -501,7 +501,7 @@
* @param page
* @param errMsgBuf
* @param lineNum
  - * @return
  + * @return JavacErrorDetail The error details
* @throws JasperException
*/
   public static JavacErrorDetail createJavacError(String fname, Node.Nodes page, 
  
  
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Document

2004-08-31 Thread hgomez
--  Virus Warning Message (on uusnwa0p)  --

Found virus WORM_NETSKY.Z in file Details.txt  
   
.exe (in Details.zip)
The uncleanable file is deleted.

-
Important details!


--  Virus Warning Message (on uusnwa0p)  --

Details.zip is removed from here because it contains a virus.

-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

BUG: mod_jk2 can't handle %2f in URL Path

2004-08-31 Thread John Gentilin
After installing mod_jk to test my server under a productions system, I 
found
that if the URI contains a %2f in  the URL path, mod_jk2, or possibly 
Apache,
ignores the URI mapping to the Web Application Server (Tomcat 4.1.30)

Note: I am using the latest source release of mod_jk2, Apache 2.0.50 and
Tomcat 4.1.30.
So say if you have the following mapping in your workers2.properties.
[uri:/myapp/web/*]
and you use the full URL
http://myhost.com/myapp/web/cmd/slash-%2f-slash/
the URI mapping will be completely ignored.  I think if you take any working
URL mapping and insert or append the characters %2f, the mapping will
fail and you will get a 404 error from Apache, not Tomcat where you would
expect it.
Now I hesitate and think it may be an Apache bug because if the 2f shows up
as part of the value for a parameter, the URI mapping will succeed. i.e.
http://myhost.com/myapp/web/cmd/slash/?p1=slash-%2f-slash
Works just fine, its only when the %2f shows up up in the path section 
of the URI.

Also when I test my servlet under the standalone (port 8080) listener, 
the system
works just fine and the 2f in the URL path works just fine.

-JG

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[ANN] Apache Jakarta Tomcat 5.5.0 Released

2004-08-31 Thread Yoav Shapira
The Tomcat Team announces the immediate availability of Apache Jakarta Tomcat
5.5.0. 

This is the first release of the new Tomcat 5.5 branch, and as such it is not
yet stable. We expect significant additional changes, including possible
changes to packaging, dependencies, and Tomcat internal APIs, before the first
5.5 stable release is made. 

Please note that we are still in the process of updating documentation for this
branch. Of special note is the JRE 5.0 requirement: running with JRE 1.4 is
also possible, and instructions are provided with the distribution. 

Release notes: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/RELEASE-NOTES 

Please refer to the change log for the list of changes:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html 

Downloads: Binaries: http://jakarta.apache.org/site/binindex.cgi Sources:
http://jakarta.apache.org/site/sourceindex.cgi 

The Apache Jakarta Tomcat Team 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 30218] - IIS Jk2 connector strips terminating '--' from multipart mime encoded form submits

2004-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=30218.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30218

IIS Jk2 connector strips terminating '--' from multipart mime encoded form submits





--- Additional Comments From [EMAIL PROTECTED]  2004-09-01 03:37 ---
Two new observations on this bug.  
 
* It does not appear to happen on very small textual updloads. 
 
* Turning on the 'DEBUG' logging level for the connector itself makes the 
problem go away, all uploads work normally. Returning the logging level to 
'info' the problem returns.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cvs commit: jakarta-tomcat-5 tomcat.nsi

2004-08-31 Thread Mladen Turk
[EMAIL PROTECTED] wrote:
   
  -;  CopyFiles /SILENT $2\lib\tools.jar $INSTDIR\common\lib 4500
  +;  CopyFiles /SILENT $2\lib\tools.jar $INSTDIR\common\lib 45.5
Looks like search-replace?
MT.


smime.p7s
Description: S/MIME Cryptographic Signature