[GUMP@brutus]: Project jakarta-tomcat-jk-native (in module jakarta-tomcat-connectors) failed

2005-02-12 Thread Bill Barker
To whom it may engage...

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

Project jakarta-tomcat-jk-native has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 13 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- jakarta-tomcat-jk-native :  Connectors to various web servers


Full details are available at:

http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/gump_work/build_jakarta-tomcat-connectors_jakarta-tomcat-jk-native.html
Work Name: build_jakarta-tomcat-connectors_jakarta-tomcat-jk-native (Type: 
Build)
Work ended in a state of : Failed
Elapsed: 
Command Line: make 
[Working Directory: 
/usr/local/gump/public/workspace/jakarta-tomcat-connectors/jk/native]
-
Making all in common
make[1]: Entering directory 
`/home/gump/workspaces2/public/workspace/jakarta-tomcat-connectors/jk/native/common'
/bin/sh 
/usr/local/gump/public/workspace/apache-httpd/dest-12022005/build/libtool 
--silent --mode=compile gcc 
-I/usr/local/gump/public/workspace/apache-httpd/dest-12022005/include -g -O2 -g 
-O2 -pthread -DHAVE_APR 
-I/usr/local/gump/public/workspace/apr/dest-12022005/include/apr-1 -g -O2 
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE 
-I/home/gump/workspaces2/public/workspace/apache-httpd/srclib/pcre -I 
/opt/jdk1.4/include -I /opt/jdk1.4/include/ -c jk_ajp12_worker.c 
/usr/local/gump/public/workspace/apache-httpd/dest-12022005/build/libtool: 
/usr/local/gump/public/workspace/apache-httpd/dest-12022005/build/libtool: No 
such file or directory
make[1]: *** [jk_ajp12_worker.lo] Error 127
make[1]: Leaving directory 
`/home/gump/workspaces2/public/workspace/jakarta-tomcat-connectors/jk/native/common'
make: *** [all-recursive] Error 1
-

To subscribe to this information via syndicated feeds:
- RSS: 
http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/rss.xml
- Atom: 
http://brutus.apache.org/gump/public/jakarta-tomcat-connectors/jakarta-tomcat-jk-native/atom.xml

== Gump Tracking Only ===
Produced by Gump version 2.2.
Gump Run 1912022005, brutus:brutus-public:1912022005
Gump E-mail Identifier (unique within run) #25.

--
Apache Gump
http://gump.apache.org/ [Instance: brutus]

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



DO NOT REPLY [Bug 32646] - Serious: Exception retrieving password for username

2005-02-12 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=32646.
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=32646





--- Additional Comments From [EMAIL PROTECTED]  2005-02-12 11:21 ---
Maybe this helps:

connectionURL=jdbc:mysql://projekt1:3306/elmar?autoReconnect=true


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 33526] - DatasourceRealm Connection Leak

2005-02-12 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=33526.
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=33526





--- Additional Comments From [EMAIL PROTECTED]  2005-02-12 11:28 ---
Can you verify the version of the realm attached to bug 33357 works fine for you
? Thanks.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



cvs commit: jakarta-tomcat-connectors/jk/native/common jk_lb_worker.c jk_shm.c jk_shm.h

2005-02-12 Thread mturk
mturk   2005/02/12 03:32:13

  Modified:jk/native/common jk_lb_worker.c jk_shm.c jk_shm.h
  Log:
  Simplify shared memory. If shmem is not defined use plain jk_pool instead.
  
  Revision  ChangesPath
  1.44  +5 -5  jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
  
  Index: jk_lb_worker.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- jk_lb_worker.c9 Feb 2005 12:34:13 -   1.43
  +++ jk_lb_worker.c12 Feb 2005 11:32:12 -  1.44
  @@ -56,7 +56,7 @@
   {
   jk_worker_t *w;
   /* Shared memory worker data */
  -jk_shm_w_rec_t  *s;
  +jk_shm_worker_t  *s;
   };
   
   typedef struct worker_record worker_record_t;
  @@ -74,7 +74,7 @@
   JK_CRIT_SEC cs; 
   
   /* Shared memory worker data */
  -jk_shm_w_rec_t  *s;
  +jk_shm_worker_t  *s;
   };
   
   typedef struct lb_worker lb_worker_t;
  @@ -575,7 +575,7 @@
 num_of_workers *
 sizeof(worker_record_t));
   for (i = 0; i  num_of_workers; i++) {
  -p-lb_workers[i].s = jk_shm_worker_alloc();
  +p-lb_workers[i].s = jk_shm_alloc(p-p, 
sizeof(jk_shm_worker_t));
   if (p-lb_workers[i].s == NULL) {
   JK_TRACE_EXIT(l);
   return JK_FALSE;
  @@ -776,7 +776,7 @@
   private_data-buf,
   sizeof(jk_pool_atom_t) * TINY_POOL_SIZE);
   
  -private_data-s = jk_shm_worker_alloc();
  +private_data-s = jk_shm_alloc(private_data-p, 
sizeof(jk_shm_worker_t));
   if (!private_data-s) {
   free(private_data);
   JK_TRACE_EXIT(l);
  
  
  
  1.8   +29 -60jakarta-tomcat-connectors/jk/native/common/jk_shm.c
  
  Index: jk_shm.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_shm.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- jk_shm.c  7 Feb 2005 19:06:34 -   1.7
  +++ jk_shm.c  12 Feb 2005 11:32:12 -  1.8
  @@ -24,16 +24,17 @@
   #include jk_shm.h
   
   /** jk shm header record structure */
  -struct jk_shm_h_rec
  +struct jk_shm_header
   {
   /* Shared memory magic JK_SHM_MAGIC */
  -charmagic[8];
  -int workers;
  -int allocated;
  -jk_shm_w_rec_t  *pr[1];
  -jk_shm_w_rec_t  rr[1];
  +char   magic[8];
  +size_t size;
  +size_t pos;
  +intchilds;
  +char   buf[1];
   };
  -typedef struct jk_shm_h_rec jk_shm_h_rec_t;
  +
  +typedef struct jk_shm_header jk_shm_header_t;
   
   /** jk shm structure */
   struct jk_shm
  @@ -42,13 +43,13 @@
   const char *filename;
   intfd;
   intattached;
  -jk_shm_h_rec_t  *hdr;
  +jk_shm_header_t  *hdr;
   };
   
   typedef struct jk_shm jk_shm_t;
   
   static const char shm_signature[] = { JK_SHM_MAGIC };
  -static jk_shm_t jk_shmem = { 0, NULL, -1, 0, NULL};;
  +static jk_shm_t jk_shmem = { 0, NULL, -1, 0, NULL};
   
   #if defined (WIN32) || defined(NETWARE)
   
  @@ -59,17 +60,16 @@
   return 0;
   }
   
  -jk_shmem.size =  JK_SHM_ALIGN(sizeof(jk_shm_h_rec_t) + 
JK_SHM_MAX_WORKERS * sizeof(jk_shm_w_rec_t));
  +jk_shmem.size =  JK_SHM_ALIGN(sizeof(jk_shm_header_t) + JK_SHM_SIZE);
   
  -jk_shmem.hdr = (jk_shm_h_rec_t *)calloc(1, jk_shmem.size);
  +jk_shmem.hdr = (jk_shm_header_t *)calloc(1, jk_shmem.size);
   if (!jk_shmem.hdr)
   return -1;
   jk_shmem.filename = memory;
   jk_shmem.fd   = 0;
   jk_shmem.attached = 0;
  -
   memcpy(jk_shmem.hdr-magic, shm_signature, 8);
  -jk_shmem.hdr-workers = JK_SHM_MAX_WORKERS;
  +jk_shmem.hdr-size = JK_SHM_SIZE;
   return 0;
   }
   
  @@ -77,6 +77,7 @@
   {
   if (!jk_shm_open(fname)) {
   jk_shmem.attached = 1;
  +jk_shmem.hdr-childs++;
   return 0;
   }
   else
  @@ -122,18 +123,11 @@
   
   /* Use plain memory in case there is no file name */
   if (!fname) {
  -jk_shmem.size = JK_SHM_ALIGN(sizeof(jk_shm_h_rec_t) + 
JK_SHM_MAX_WORKERS * sizeof(jk_shm_w_rec_t *));
  -jk_shmem.hdr  = calloc(1, jk_shmem.size);
  -if (!jk_shmem.hdr)
  -return -1;
  -memcpy(jk_shmem.hdr-magic, shm_signature, 8);
  -jk_shmem.hdr-workers   = JK_SHM_MAX_WORKERS;
  -jk_shmem.hdr-allocated = 0;
  -jk_shmem.filename   = memory;
  +jk_shmem.filename  = memory;
   return 0;
   }
   
  -jk_shmem.size = JK_SHM_ALIGN(sizeof(jk_shm_h_rec_t) + JK_SHM_MAX_WORKERS 
* sizeof(jk_shm_w_rec_t));
  +

cvs commit: jakarta-tomcat-connectors/jk/native/common jk_global.h

2005-02-12 Thread mturk
mturk   2005/02/12 03:33:00

  Modified:jk/native/common jk_global.h
  Log:
  Add shm file tag constant.
  
  Revision  ChangesPath
  1.40  +2 -1  jakarta-tomcat-connectors/jk/native/common/jk_global.h
  
  Index: jk_global.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_global.h,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- jk_global.h   11 Nov 2004 17:01:50 -  1.39
  +++ jk_global.h   12 Feb 2005 11:33:00 -  1.40
  @@ -101,6 +101,7 @@
   #define JK_MOUNT_FILE_TAG   (worker_mount_file)
   #define JK_LOG_LEVEL_TAG(log_level)
   #define JK_LOG_FILE_TAG (log_file)
  +#define JK_SHM_FILE_TAG (shm_file)
   #define JK_WORKER_NAME_TAG  (worker)
   
   #define JK_WORKER_FILE_DEF  (workers.properties)
  
  
  

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



cvs commit: jakarta-tomcat-connectors/jk/native/common jk_ajp12_worker.c jk_service.h

2005-02-12 Thread mturk
mturk   2005/02/12 03:34:00

  Modified:jk/native/common jk_ajp12_worker.c jk_service.h
  Log:
  Use const char* for all constant params passed to AJP.
  Also resolve AS400 constness issues.
  
  Revision  ChangesPath
  1.19  +12 -8 
jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c
  
  Index: jk_ajp12_worker.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- jk_ajp12_worker.c 6 Feb 2005 13:30:34 -   1.18
  +++ jk_ajp12_worker.c 12 Feb 2005 11:33:59 -  1.19
  @@ -298,7 +298,7 @@
   }
   
   #ifdef AS400
  -static int ajpv12_sendasciistring(ajp12_endpoint_t * p, char *buffer)
  +static int ajpv12_sendasciistring(ajp12_endpoint_t * p, const char *buffer)
   {
   int bufferlen;
   
  @@ -311,19 +311,23 @@
   }
   #endif
   
  -#ifdef AS400
  -static int ajpv12_sendstring(ajp12_endpoint_t * p, char *buffer)
  -#else
   static int ajpv12_sendstring(ajp12_endpoint_t * p, const char *buffer)
  -#endif
   {
   int bufferlen;
   
   if (buffer  (bufferlen = strlen(buffer))) {
   #if defined(AS400) || defined(_OSD_POSIX)
  -jk_xlate_to_ascii(buffer, bufferlen);
  -#endif
  +char buf[2048];
  +if (buflen  2048) {
  +memcpy(buf, buffer, bufferlen)
  +jk_xlate_to_ascii(buf, bufferlen);
  +return ajpv12_sendnbytes(p, buffer, bufferlen);
  +}
  +else
  +return -1;
  +#else
   return ajpv12_sendnbytes(p, buffer, bufferlen);
  +#endif
   }
   else {
   return ajpv12_sendnbytes(p, NULL, 0);
  
  
  
  1.22  +10 -10jakarta-tomcat-connectors/jk/native/common/jk_service.h
  
  Index: jk_service.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_service.h,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- jk_service.h  6 Feb 2005 13:30:34 -   1.21
  +++ jk_service.h  12 Feb 2005 11:33:59 -  1.22
  @@ -121,15 +121,15 @@
   /* 
* CGI Environment needed by servlets
*/
  -char *method;
  -char *protocol;
  -char *req_uri;
  -char *remote_addr;
  -char *remote_host;
  -char *remote_user;
  -char *auth_type;
  -char *query_string;
  -char *server_name;
  +const char *method;
  +const char *protocol;
  +const char *req_uri;
  +const char *remote_addr;
  +const char *remote_host;
  +const char *remote_user;
  +const char *auth_type;
  +const char *query_string;
  +const char *server_name;
   unsigned server_port;
   char *server_software;
   unsigned content_length;/* integer that represents the content  
*/
  
  
  

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



DO NOT REPLY [Bug 33505] - mod_jk does not build on OS/400

2005-02-12 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=33505.
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=33505





--- Additional Comments From [EMAIL PROTECTED]  2005-02-12 12:38 ---
I have changed all char * to const char * with local xlate buf.
Can you check if it's buildable an runnable?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



JspC exception

2005-02-12 Thread Jagadeesha T
Hi all,
I am  doing compilation using JspC.It is giving ClassCastException. 
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader()
 
getContextClassLoader() will return AntClassLoader which is incompatible with 
URLClassLoader. 
Is this a bug? If so, does it has a fix?
 
Please, anybody has a solution for this. help me out.
 
Thanks,
Jagga
 
 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

cvs commit: jakarta-tomcat-connectors/jk/native/iis jk_isapi_plugin.c

2005-02-12 Thread mturk
mturk   2005/02/12 03:55:34

  Modified:jk/native/apache-1.3 mod_jk.c
   jk/native/apache-2.0 mod_jk.c
   jk/native/common jk_service.h jk_uri_worker_map.c
jk_uri_worker_map.h
   jk/native/iis jk_isapi_plugin.c
  Log:
  Resolve constness for uri_worker_map. The worker is const per request.
  
  Revision  ChangesPath
  1.64  +2 -2  jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c
  
  Index: mod_jk.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.c,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- mod_jk.c  6 Feb 2005 13:30:34 -   1.63
  +++ mod_jk.c  12 Feb 2005 11:55:33 -  1.64
  @@ -1926,7 +1926,7 @@
   
   if (conf) {
   jk_logger_t *l = conf-log ? conf-log : main_log;
  -char *worker = map_uri_to_worker(conf-uw_map, r-uri, l);
  +const char *worker = map_uri_to_worker(conf-uw_map, r-uri, l);
   
   /* Don't know the worker, ForwardDirectories is set, there is a
* previous request for which the handler is JK_HANDLER (as set 
by
  
  
  
  1.123 +3 -3  jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
  
  Index: mod_jk.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v
  retrieving revision 1.122
  retrieving revision 1.123
  diff -u -r1.122 -r1.123
  --- mod_jk.c  9 Feb 2005 07:39:08 -   1.122
  +++ mod_jk.c  12 Feb 2005 11:55:33 -  1.123
  @@ -2376,7 +2376,7 @@
 jk_module);
   
   if (conf) {
  -char *worker;
  +const char *worker;
   char *uri;
   if ((r-handler != NULL)  (!strcmp(r-handler, JK_HANDLER))) {
   /* Somebody already set the handler, probably manual config
  @@ -2556,7 +2556,7 @@
 jk_module);
   
   if (conf) {
  -char *worker;
  +const char *worker;
   char *uri;
   if ((r-handler != NULL)  (!strcmp(r-handler, JK_HANDLER))) {
   /* Somebody already set the handler, probably manual config
  
  
  
  1.23  +2 -2  jakarta-tomcat-connectors/jk/native/common/jk_service.h
  
  Index: jk_service.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_service.h,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- jk_service.h  12 Feb 2005 11:33:59 -  1.22
  +++ jk_service.h  12 Feb 2005 11:55:33 -  1.23
  @@ -123,7 +123,7 @@
*/
   const char *method;
   const char *protocol;
  -const char *req_uri;
  +char *req_uri;
   const char *remote_addr;
   const char *remote_host;
   const char *remote_user;
  
  
  
  1.44  +6 -8  
jakarta-tomcat-connectors/jk/native/common/jk_uri_worker_map.c
  
  Index: jk_uri_worker_map.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_uri_worker_map.c,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- jk_uri_worker_map.c   6 Feb 2005 13:30:34 -   1.43
  +++ jk_uri_worker_map.c   12 Feb 2005 11:55:33 -  1.44
  @@ -49,7 +49,7 @@
   char *uri;
   
   /* Name of worker mapped */
  -char *worker_name;
  +const char *worker_name;
   
   /* Suffix of uri */
   char *suffix;
  @@ -569,7 +569,6 @@
   continue;
   
   if (uwr-match_type == MATCH_TYPE_WILDCHAR_PATH) {
  -char *wname;
   /* Map is already sorted by ctxt_len */
   if (wildchar_match(uri, uwr-context,
   #ifdef WIN32
  @@ -578,7 +577,6 @@
  0
   #endif
  ) == 0) {
  -wname = uwr-worker_name;
   jk_log(l, JK_LOG_DEBUG,
  Found a wildchar no match %s - %s,
  uwr-worker_name, uwr-context);
  @@ -661,15 +659,15 @@
   }
   
   
  -char *map_uri_to_worker(jk_uri_worker_map_t *uw_map,
  -char *uri, jk_logger_t *l)
  +const char *map_uri_to_worker(jk_uri_worker_map_t *uw_map,
  +  char *uri, jk_logger_t *l)
   {
   unsigned int i;
   int best_match = -1;
   unsigned int longest_match = 0;
   char *url_rewrite;
   char rewrite_char = ';';
  -char *rv = NULL;
  +const char *rv = NULL;
   
   JK_TRACE_ENTER(l);
   if (!uw_map || !uri) {
  @@ -721,7 +719,7 @@
   

DO NOT REPLY [Bug 33535] New: - invalid XML in directory listing with names containing

2005-02-12 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=33535.
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=33535

   Summary: invalid XML in directory listing with names containing

   Product: Tomcat 5
   Version: 5.5.7
  Platform: PC
OS/Version: All
Status: NEW
  Severity: minor
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I used an XSLT stylesheet to format directory listings. When listing a directory
which name (or any of its files' names) contained a  character, the generated
XML code contained an unmasked , wich meens it was invalid and produced an 
error.

The source of the error is located in the DefaultServlet.java where in the
protected method renderXml two Strings have to be checked for illegal XML
characters: cacheEntry.name as the value of the directory attribute of the
listing tag and trimmed that is filled from resourceName and used as the content
of the entry tag. In my opinion it would perhaps be good to replace  and  by
gt; and lt; too, even if I don't know if anyone uses (or even can use) them in
file names. As for  this would make problems in the attribute value - and again
I don't know where this would happen to be in a directory name.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



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

2005-02-12 Thread mturk
mturk   2005/02/12 08:59:45

  Modified:jk/native/common jk_lb_worker.c
  Log:
  Check if malloc has failed before using that memory, not after.
  
  Revision  ChangesPath
  1.45  +6 -5  jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
  
  Index: jk_lb_worker.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- jk_lb_worker.c12 Feb 2005 11:32:12 -  1.44
  +++ jk_lb_worker.c12 Feb 2005 16:59:45 -  1.45
  @@ -574,6 +574,11 @@
   p-lb_workers = jk_pool_alloc(p-p,
 num_of_workers *
 sizeof(worker_record_t));
  +if (!p-lb_workers) {
  +JK_TRACE_EXIT(l);
  +return JK_FALSE;
  +}
  +
   for (i = 0; i  num_of_workers; i++) {
   p-lb_workers[i].s = jk_shm_alloc(p-p, 
sizeof(jk_shm_worker_t));
   if (p-lb_workers[i].s == NULL) {
  @@ -581,10 +586,6 @@
   return JK_FALSE;
   }
   }
  -if (!p-lb_workers) {
  -JK_TRACE_EXIT(l);
  -return JK_FALSE;
  -}
   
   for (i = 0; i  num_of_workers; i++) {
   strncpy(p-lb_workers[i].s-name, worker_names[i],
  
  
  

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



Joanne Tsoi/Hong Kong/HK/SGS is out of the office.

2005-02-12 Thread Joanne_Tsoi
I will be out of the office starting  02/09/2005 and will not return until
02/14/2005.

CNY Holiday, will come back to you right after that.

Thanks and best regards,
Joanne Tsoi
SGS HK Ltd.



The information in this email and any attachments is confidential and 
intended solely for the use of the individual(s) to whom it is addressed 
or otherwise directed. If you are not a named addressee or otherwise an 
intended recipient, you are requested to immediatly notify the sender 
and to delete the email and all attachments from your system.

Visit http://www.sgs.com

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



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

2005-02-12 Thread mturk
mturk   2005/02/12 09:01:00

  Modified:jk/native/common jk_shm.c jk_shm.h
  Log:
  Add modification time and lock api interface.
  
  Revision  ChangesPath
  1.9   +50 -6 jakarta-tomcat-connectors/jk/native/common/jk_shm.c
  
  Index: jk_shm.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_shm.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- jk_shm.c  12 Feb 2005 11:32:12 -  1.8
  +++ jk_shm.c  12 Feb 2005 17:01:00 -  1.9
  @@ -21,6 +21,7 @@
***/
   
   #include jk_pool.h
  +#include jk_mt.h
   #include jk_shm.h
   
   /** jk shm header record structure */
  @@ -31,6 +32,7 @@
   size_t size;
   size_t pos;
   intchilds;
  +time_t modified;
   char   buf[1];
   };
   
  @@ -44,18 +46,21 @@
   intfd;
   intattached;
   jk_shm_header_t  *hdr;
  +CRITICAL_SECTION cs;
   };
   
   typedef struct jk_shm jk_shm_t;
   
   static const char shm_signature[] = { JK_SHM_MAGIC };
   static jk_shm_t jk_shmem = { 0, NULL, -1, 0, NULL};
  +static time_t jk_workers_modified_time = 0;
   
   #if defined (WIN32) || defined(NETWARE)
   
   /* Use plain memory */
   int jk_shm_open(const char *fname)
   {
  +int rc;
   if (jk_shmem.hdr) {
   return 0;
   }
  @@ -70,6 +75,7 @@
   jk_shmem.attached = 0;
   memcpy(jk_shmem.hdr-magic, shm_signature, 8);
   jk_shmem.hdr-size = JK_SHM_SIZE;
  +JK_INIT_CS((jk_shmem.cs), rc);
   return 0;
   }
   
  @@ -87,7 +93,9 @@
   void jk_shm_close()
   {
   if (jk_shmem.hdr) {
  +int rc;
   free(jk_shmem.hdr);
  +JK_DELETE_CS((jk_shmem.cs), rc);
   }
   jk_shmem.hdr = NULL;
   }
  @@ -121,13 +129,13 @@
   jk_shmem.filename = fname;
   jk_shmem.attached = attached;
   
  +jk_shmem.size = JK_SHM_ALIGN(sizeof(jk_shm_header_t) + JK_SHM_SIZE);
  +
   /* Use plain memory in case there is no file name */
   if (!fname) {
   jk_shmem.filename  = memory;
   return 0;
  -}
  -
  -jk_shmem.size = JK_SHM_ALIGN(sizeof(jk_shm_header_t) + JK_SHM_SIZE);
  +}
   
   if (!attached)
   flags |= (O_CREAT|O_TRUNC);
  @@ -179,6 +187,7 @@
   jk_shmem.hdr-childs++;
   /* TODO: check header magic */
   }
  +JK_INIT_CS((jk_shmem.cs), rc);
   return 0;
   }
   
  @@ -194,14 +203,18 @@
   
   void jk_shm_close()
   {
  +int rc;
   if (jk_shmem.hdr) {
   if (jk_shmem.fd = 0) {
   munmap((void *)jk_shmem.hdr, jk_shmem.size);
   close(jk_shmem.fd);
   }
   }
  -jk_shmem.hdr = NULL;
  -jk_shmem.fd  = -1;
  +if (jk_shmem.size)
  +JK_DELETE_CS((jk_shmem.cs), rc);
  +jk_shmem.size = 0;
  +jk_shmem.hdr  = NULL;
  +jk_shmem.fd   = -1;
   }
   
   
  @@ -228,3 +241,34 @@
   {
   return jk_shmem.filename;
   }
  +
  +
  +time_t jk_shm_get_workers_time()
  +{
  +if (jk_shmem.hdr)
  +return jk_shmem.hdr-modified;
  +else
  +return jk_workers_modified_time;
  +}
  +
  +void jk_shm_set_workers_time(time_t t)
  +{
  +if (jk_shmem.hdr)
  +jk_shmem.hdr-modified = t;
  +else
  +jk_workers_modified_time = t;
  +}
  +
  +int jk_shm_lock()
  +{
  +int rc;
  +JK_ENTER_CS((jk_shmem.cs), rc);
  +return rc;
  +}
  +
  +int jk_shm_unlock()
  +{
  +int rc;
  +JK_LEAVE_CS((jk_shmem.cs), rc);
  +return rc;
  +}
  
  
  
  1.7   +15 -1 jakarta-tomcat-connectors/jk/native/common/jk_shm.h
  
  Index: jk_shm.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_shm.h,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- jk_shm.h  12 Feb 2005 11:32:12 -  1.6
  +++ jk_shm.h  12 Feb 2005 17:01:00 -  1.7
  @@ -110,6 +110,20 @@
*/
   void *jk_shm_alloc(jk_pool_t *p, size_t size);
   
  +/* Return workers.properties last modified time
  + */
  +time_t jk_shm_get_workers_time();
  +
  +/* Set workers.properties last modified time
  + */
  +void jk_shm_set_workers_time(time_t t);
  +
  +/* Lock shared memory for thread safe access */
  +int jk_shm_lock();
  +
  +/* Unlock shared memory for thread safe access */
  +int jk_shm_unlock();
  +
   
   #ifdef __cplusplus
   }
  
  
  

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



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

2005-02-12 Thread mturk
mturk   2005/02/12 09:04:57

  Modified:jk/native/common jk_map.c
  Log:
  Update shared memory modification time for workers.properties.
  This will be used for dynamic reloading of workers.properties like in JK2.
  
  Revision  ChangesPath
  1.27  +10 -3 jakarta-tomcat-connectors/jk/native/common/jk_map.c
  
  Index: jk_map.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_map.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- jk_map.c  6 Feb 2005 18:09:03 -   1.26
  +++ jk_map.c  12 Feb 2005 17:04:57 -  1.27
  @@ -29,6 +29,7 @@
   #include jk_pool.h
   #include jk_map.h
   #include jk_util.h
  +#include jk_shm.h
   
   #define CAPACITY_INC_SIZE (50)
   #define LENGTH_OF_LINE(1024)
  @@ -384,10 +385,14 @@
   int rc = JK_FALSE;
   
   if (m  f) {
  +struct stat statbuf;
  +FILE *fp;
  +if ((rc = stat(f, statbuf)) == -1)
  +return JK_FALSE;
   #ifdef AS400
  -FILE *fp = fopen(f, r, o_ccsid=0);
  +fp = fopen(f, r, o_ccsid=0);
   #else
  -FILE *fp = fopen(f, r);
  +fp = fopen(f, r);
   #endif
   
   if (fp) {
  @@ -402,6 +407,8 @@
   break;
   }
   fclose(fp);
  +/* Update shared memory */
  +jk_shm_set_workers_time(statbuf.st_mtime);
   }
   }
   
  
  
  

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



cvs commit: jakarta-tomcat-connectors/jk/native/common jk_service.h

2005-02-12 Thread mturk
mturk   2005/02/12 09:06:34

  Modified:jk/native/common jk_service.h
  Log:
  Add update worker method when for dynamic update of worker
  properties, either by reloading workers.properties file or via jk_status.
  
  Revision  ChangesPath
  1.24  +8 -1  jakarta-tomcat-connectors/jk/native/common/jk_service.h
  
  Index: jk_service.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_service.h,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- jk_service.h  12 Feb 2005 11:55:33 -  1.23
  +++ jk_service.h  12 Feb 2005 17:06:34 -  1.24
  @@ -374,6 +374,13 @@
   jk_worker_env_t *we, jk_logger_t *l);
   
   /*
  + * Update worker either from jk_status or reloading from 
workers.properties
  + */
  +int (JK_METHOD * update) (jk_worker_t *w,
  +  jk_map_t *props,
  +  jk_worker_env_t *we, jk_logger_t *l);
  +
  +/*
* Do whatever initialization needs to be done to start this worker up.
* Configuration options are passed in via the props parameter.  
*/
  
  
  

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



Re: JspC exception

2005-02-12 Thread Remy Maucherat
Jagadeesha T wrote:
Hi all,
I am  doing compilation using JspC.It is giving ClassCastException. 
parentClassLoader = (URLClassLoader)Thread.currentThread().getContextClassLoader()
 
getContextClassLoader() will return AntClassLoader which is incompatible with URLClassLoader. 
Is this a bug? If so, does it has a fix?
 
Please, anybody has a solution for this. help me out.
I know you are probably trying to save our time reading by making your 
message shorter, but could you instead:
- post to tomcat-user
- post the full stack trace
- mention which version you are using

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


DO NOT REPLY [Bug 33538] New: - TagLibraryInfoImpl does not process tag-file elements correctly from JSP 2.0 TLDs

2005-02-12 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=33538.
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=33538

   Summary: TagLibraryInfoImpl does not process tag-file elements
correctly from JSP 2.0 TLDs
   Product: Tomcat 5
   Version: 5.0.28
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


The XML schema for JSP 2.0 TLDs [ http://java.sun.com/xml/ns/j2ee/web-
jsptaglibrary_2_0.xsd ] specifies that xsd:complexType tagFileType may have 
any number of example or tag-extension child elements.

Jasper2 does not ignore these elements while processing the TLDs (as it 
should) and incorrectly logs warnings.

Patch:

Index: TagLibraryInfoImpl.java
===
RCS file: /usr/local/cvsroot/apache/jakarta-tomcat-5.0.28-src/jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java,v
retrieving revision 1.1
diff -c -r1.1 TagLibraryInfoImpl.java
*** TagLibraryInfoImpl.java 12 Feb 2005 17:51:54 -  1.1
--- TagLibraryInfoImpl.java 12 Feb 2005 17:57:25 -
***
*** 473,478 
--- 473,482 
  name = child.getBody();
  } else if (path.equals(tname)) {
  path = child.getBody();
+ } else if (example.equals(tname)) {
+ // Ignore example element
+ } else if (tag-extension.equals(tname)) {
+ // Ignore tag-extension element
  } else {
  if (log.isWarnEnabled()) {
  log.warn(Localizer.getMessage(

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 33539] New: - TagLibraryInfoImpl warning while processing tag-file elements from JSP2.0 TLDs is misleading

2005-02-12 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=33539.
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=33539

   Summary: TagLibraryInfoImpl warning while processing tag-file
elements from JSP2.0 TLDs is misleading
   Product: Tomcat 5
   Version: 5.0.28
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


When an unknown child element is found in a tag-file element while 
processing a JSP 2.0 TLD, TagLibraryInfoImpl produces a misleading error 
message [ a localized version of Unknown element ({0}) in attribute ]

This scenario has nothing to do with the attribute element.

The Japanese translation seemed a bit tricky at the onset, but I'm fully 
confident it is correct ;-)

Patch:

Index: TagLibraryInfoImpl.java
===
RCS file: /usr/local/cvsroot/apache/jakarta-tomcat-5.0.28-src/jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java,v
retrieving revision 1.2
diff -c -r1.2 TagLibraryInfoImpl.java
*** TagLibraryInfoImpl.java 12 Feb 2005 18:31:28 -  1.2
--- TagLibraryInfoImpl.java 12 Feb 2005 18:43:05 -
***
*** 480,486 
  } else {
  if (log.isWarnEnabled()) {
  log.warn(Localizer.getMessage(
! jsp.warning.unknown.element.in.attribute, 
tname));
  }
  }
  }
--- 480,486 
  } else {
  if (log.isWarnEnabled()) {
  log.warn(Localizer.getMessage(
! jsp.warning.unknown.element.in.tagfile, 
tname));
  }
  }
  }


Index: messages.properties
===
RCS file: /usr/local/cvsroot/apache/jakarta-tomcat-5.0.28-src/jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/resources/messages.properties,v
retrieving revision 1.1
diff -c -r1.1 messages.properties
*** messages.properties 12 Feb 2005 18:37:40 -  1.1
--- messages.properties 12 Feb 2005 18:43:35 -
***
*** 153,158 
--- 153,159 
  jsp.error.badGetReader=Cannot create a reader when the stream is not buffered
  jsp.warning.unknown.element.in.taglib=Unknown element ({0}) in taglib
  jsp.warning.unknown.element.in.tag=Unknown element ({0}) in tag
+ jsp.warning.unknown.element.in.tagfile=Unknown element ({0}) in tag-file
  jsp.warning.unknown.element.in.attribute=Unknown element ({0}) in attribute
  jsp.warning.unknown.element.in.variable=Unknown element ({0}) in variable
  jsp.warning.unknown.element.in.validator=Unknown element ({0}) in validator


Index: messages_es.properties
===
RCS file: /usr/local/cvsroot/apache/jakarta-tomcat-5.0.28-src/jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/resources/messages_es.properties,v
retrieving revision 1.1
diff -c -r1.1 messages_es.properties
*** messages_es.properties  12 Feb 2005 18:37:40 -  1.1
--- messages_es.properties  12 Feb 2005 18:44:34 -
***
*** 151,156 
--- 151,157 
  jsp.error.badGetReader=No se puede crear un reader cuando el stream no tiene 
buffer
  jsp.warning.unknown.element.in.taglib=Elemento desconocido ({0}) en taglib
  jsp.warning.unknown.element.in.tag=Elemento desconocido ({0}) en tag
+ jsp.warning.unknown.element.in.tagfile=Elemento desconocido ({0}) en tag-file
  jsp.warning.unknown.element.in.attribute=Elemento desconocido ({0}) en 
attribute
  jsp.warning.unknown.element.in.variable=Elemento desconocido ({0}) en 
variable
  jsp.warning.unknown.element.in.validator=Elemento desconocido ({0}) en 
validator


Index: messages_fr.properties
===
RCS file: /usr/local/cvsroot/apache/jakarta-tomcat-5.0.28-src/jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/resources/messages_fr.properties,v
retrieving revision 1.1
diff -c -r1.1 messages_fr.properties
*** messages_fr.properties  12 Feb 2005 18:37:40 -  1.1
--- messages_fr.properties  12 Feb 2005 18:44:41 -
***
*** 117,122 
--- 117,123 
  jsp.error.badGetReader=Impossible de créer un lecteur (reader) quand le flux 
n''utilse pas des tampons (not buffered)
  jsp.warning.unknown.element.in.TLD=Attention: Elément inconnu {0} dans le TLD
  jsp.warning.unknown.element.in.tag=Attention: Elément inconnu {0} dans le tag
+ 

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

2005-02-12 Thread mturk
mturk   2005/02/12 11:22:35

  Modified:jk/native/common jk_lb_worker.c
  Log:
  Log as error if shm_alloc fails.
  
  Revision  ChangesPath
  1.46  +3 -2  jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
  
  Index: jk_lb_worker.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- jk_lb_worker.c12 Feb 2005 16:59:45 -  1.45
  +++ jk_lb_worker.c12 Feb 2005 19:22:35 -  1.46
  @@ -582,11 +582,12 @@
   for (i = 0; i  num_of_workers; i++) {
   p-lb_workers[i].s = jk_shm_alloc(p-p, 
sizeof(jk_shm_worker_t));
   if (p-lb_workers[i].s == NULL) {
  +jk_log(l, JK_LOG_ERROR, 
  +   allocating worker record from shared memory);
   JK_TRACE_EXIT(l);
   return JK_FALSE;
   }
   }
  -
   for (i = 0; i  num_of_workers; i++) {
   strncpy(p-lb_workers[i].s-name, worker_names[i],
   JK_SHM_STR_SIZ);
  
  
  

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



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

2005-02-12 Thread mturk
mturk   2005/02/12 11:24:08

  Modified:jk/native/common jk_map.c
  Log:
  Do not use asterisk as delimiting char for lists.
  
  Revision  ChangesPath
  1.28  +7 -5  jakarta-tomcat-connectors/jk/native/common/jk_map.c
  
  Index: jk_map.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_map.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- jk_map.c  12 Feb 2005 17:04:57 -  1.27
  +++ jk_map.c  12 Feb 2005 19:24:08 -  1.28
  @@ -244,6 +244,7 @@
   {
   const char *l = jk_map_get_string(m, name, def);
   char **ar = NULL;
  +
   #if defined(AS400) || defined(_REENTRANT)
   char *lasts;
   #endif
  @@ -253,6 +254,7 @@
   if (l) {
   unsigned capacity = 0;
   unsigned idex = 0;
  +char *p;
   char *v = jk_pool_strdup(m-p, l);
   
   if (!v) {
  @@ -264,10 +266,10 @@
* strtok also by a *
*/
   #if defined(AS400) || defined(_REENTRANT)
  -for (l = strtok_r(v,  \t,*, lasts);
  - l; l = strtok_r(NULL,  \t,*, lasts))
  +for (p = strtok_r(v,  \t,, lasts);
  + p; p = strtok_r(NULL,  \t,, lasts))
   #else
  -for (l = strtok(v,  \t,*); l; l = strtok(NULL,  \t,*))
  +for (p = strtok(v,  \t,); p; p = strtok(NULL,  \t,))
   #endif
   
   {
  @@ -281,7 +283,7 @@
   }
   capacity += 5;
   }
  -ar[idex] = jk_pool_strdup(m-p, l);
  +ar[idex] = jk_pool_strdup(m-p, p);
   idex++;
   }
   
  
  
  

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



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

2005-02-12 Thread mturk
mturk   2005/02/12 11:26:42

  Modified:jk/native/common jk_util.c jk_util.h
  Log:
  Add mount directive for worker as mount list. This will enable to get
  rid of uriworkermap.properties as well as using dynamic config.
  
  Revision  ChangesPath
  1.54  +26 -2 jakarta-tomcat-connectors/jk/native/common/jk_util.c
  
  Index: jk_util.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_util.c,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- jk_util.c 6 Feb 2005 17:43:09 -   1.53
  +++ jk_util.c 12 Feb 2005 19:26:41 -  1.54
  @@ -62,6 +62,7 @@
   #define LOCAL_WORKER_ONLY_FLAG  (local_worker_only)
   #define LOCAL_WORKER_FLAG   (local_worker)
   #define DOMAIN_OF_WORKER(domain)
  +#define MOUNT_OF_WORKER (mount)
   
   #define DEFAULT_WORKER_TYPE JK_AJP13_WORKER_NAME
   #define SECRET_KEY_OF_WORKER(secretkey)
  @@ -690,7 +691,7 @@
   
   int jk_get_lb_worker_list(jk_map_t *m,
 const char *lb_wname,
  -  char ***list, unsigned *num_of_wokers)
  +  char ***list, unsigned int *num_of_wokers)
   {
   char buf[1024];
   
  @@ -719,6 +720,29 @@
   return JK_FALSE;
   }
   
  +int jk_get_worker_mount_list(jk_map_t *m,
  + const char *wname,
  + char ***list, unsigned int *num_of_maps)
  +{
  +char buf[1024];
  +
  +if (m  list  num_of_maps  wname) {
  +char **ar = NULL;
  +
  +sprintf(buf, %s.%s.%s, PREFIX_OF_WORKER, wname,
  +MOUNT_OF_WORKER);
  +ar = jk_map_get_string_list(m, buf, num_of_maps, NULL);
  +if (ar) {
  +*list = ar;
  +return JK_TRUE;
  +}
  +*list = NULL;
  +*num_of_maps = 0;
  +}
  +
  +return JK_FALSE;
  +}
  +
   int jk_get_worker_mx(jk_map_t *m, const char *wname, unsigned *mx)
   {
   char buf[1024];
  
  
  
  1.25  +5 -3  jakarta-tomcat-connectors/jk/native/common/jk_util.h
  
  Index: jk_util.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_util.h,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- jk_util.h 6 Feb 2005 13:30:34 -   1.24
  +++ jk_util.h 12 Feb 2005 19:26:42 -  1.25
  @@ -90,8 +90,10 @@
   
   int jk_get_lb_worker_list(jk_map_t *m,
 const char *lb_wname,
  -  char ***list, unsigned *num_of_wokers);
  -
  +  char ***list, unsigned int *num_of_wokers);
  +int jk_get_worker_mount_list(jk_map_t *m,
  + const char *wname,
  + char ***list, unsigned int *num_of_maps);
   const char *jk_get_worker_secret(jk_map_t *m, const char *wname);
   
   int jk_get_worker_mx(jk_map_t *m, const char *wname, unsigned *mx);
  
  
  

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



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

2005-02-12 Thread mturk
mturk   2005/02/12 11:27:43

  Modified:jk/native/common jk_worker.c
  Log:
  Initialize worker mount list if present inside config.
  
  Revision  ChangesPath
  1.28  +21 -1 jakarta-tomcat-connectors/jk/native/common/jk_worker.c
  
  Index: jk_worker.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_worker.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- jk_worker.c   6 Feb 2005 13:30:34 -   1.27
  +++ jk_worker.c   12 Feb 2005 19:27:43 -  1.28
  @@ -106,6 +106,8 @@
   const char *type = jk_get_worker_type(init_data, name);
   worker_factory fac = get_factory_for(type);
   jk_worker_t *w = NULL;
  +unsigned int i, num_of_maps;
  +char **map_names;
   
   *rc = NULL;
   
  @@ -147,6 +149,24 @@
   JK_TRACE_EXIT(l);
   return JK_FALSE;
   }
  +if (jk_get_worker_mount_list(init_data, name,
  + map_names,
  + num_of_maps)  num_of_maps) {
  +for (i = 0; i  num_of_maps; i++) {
  +if (JK_IS_DEBUG_LEVEL(l))
  +jk_log(l, JK_LOG_DEBUG,
  +mounting %s to worker %s,
  +map_names[i], name);
  +if (uri_worker_map_add(we-uri_to_worker, map_names[i],
  +   name, l) == JK_FALSE) {
  +w-destroy(w, l);
  +jk_log(l, JK_LOG_ERROR,
  +   validate failed for %s, name);
  +JK_TRACE_EXIT(l);
  +return JK_FALSE;
  +}
  +}
  +}
   
   *rc = w;
   JK_TRACE_EXIT(l);
  
  
  

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



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

2005-02-12 Thread mturk
mturk   2005/02/12 11:29:08

  Modified:jk/native/common jk_uri_worker_map.c
  Log:
  Remove assigments that can be set at global level.
  
  Revision  ChangesPath
  1.45  +4 -20 
jakarta-tomcat-connectors/jk/native/common/jk_uri_worker_map.c
  
  Index: jk_uri_worker_map.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_uri_worker_map.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- jk_uri_worker_map.c   12 Feb 2005 11:55:33 -  1.44
  +++ jk_uri_worker_map.c   12 Feb 2005 19:29:08 -  1.45
  @@ -294,6 +294,7 @@
   JK_TRACE_EXIT(l);
   return JK_FALSE;
   }
  +uwr-suffix = NULL;
   
   if (*puri == '!') {
   uwr-no_match = 1;
  @@ -317,21 +318,12 @@
   
   if ((asterisk  strchr(asterisk + 1, '*')) ||
   strchr(uri, '?')) {
  -uwr-uri = jk_pool_strdup(uw_map-p, uri);
  -
  -if (!uwr-uri) {
  -jk_log(l, JK_LOG_ERROR,
  -   can't alloc uri string);
  -JK_TRACE_EXIT(l);
  -return JK_FALSE;
  -}
  +uwr-uri = uri;
   /* Lets check if we have multiple
* asterixes in the uri like:
* /context/ * /user/ *
*/
  -uwr-worker_name = worker;
   uwr-context = uri;
  -uwr-suffix = NULL;
   uwr-match_type = MATCH_TYPE_WILDCHAR_PATH;
   jk_log(l, JK_LOG_DEBUG,
   wild chars path rule %s=%s was added,
  @@ -358,7 +350,6 @@
   if (0 == strncmp(/*/, uri, 3)) {
   /* general context path */
   asterisk[1] = '\0';
  -uwr-worker_name = worker;
   uwr-context = uri;
   uwr-suffix = asterisk + 2;
   uwr-match_type = MATCH_TYPE_CONTEXT_PATH;
  @@ -369,7 +360,6 @@
   else if ('.' == asterisk[2]) {
   /* suffix rule */
   asterisk[1] = asterisk[2] = '\0';
  -uwr-worker_name = worker;
   uwr-context = uri;
   uwr-suffix = asterisk + 3;
   uwr-match_type = MATCH_TYPE_SUFFIX;
  @@ -380,7 +370,6 @@
   else if ('\0' != asterisk[2]) {
   /* general suffix rule */
   asterisk[1] = '\0';
  -uwr-worker_name = worker;
   uwr-context = uri;
   uwr-suffix = asterisk + 2;
   uwr-match_type = MATCH_TYPE_GENERAL_SUFFIX;
  @@ -391,9 +380,7 @@
   else {
   /* context based */
   asterisk[1] = '\0';
  -uwr-worker_name = worker;
   uwr-context = uri;
  -uwr-suffix = NULL;
   uwr-match_type = MATCH_TYPE_CONTEXT;
   jk_log(l, JK_LOG_DEBUG,
  match rule %s=%s was added, uri, worker);
  @@ -402,9 +389,7 @@
   else {
   /* Something like : JkMount /servlets/exampl* ajp13 */
   uwr-uri = uri;
  -uwr-worker_name = worker;
   uwr-context = uri;
  -uwr-suffix = NULL;
   uwr-match_type = MATCH_TYPE_EXACT;
   jk_log(l, JK_LOG_DEBUG,
  exact rule %s=%s was added,
  @@ -415,14 +400,13 @@
   else {
   /* Something like:  JkMount /login/j_security_check ajp13 */
   uwr-uri = uri;
  -uwr-worker_name = worker;
   uwr-context = uri;
  -uwr-suffix = NULL;
   uwr-match_type = MATCH_TYPE_EXACT;
   jk_log(l, JK_LOG_DEBUG,
  exact rule %s=%s was added,
  uri, worker);
   }
  +uwr-worker_name = worker;
   uwr-ctxt_len = strlen(uwr-context);
   }
   else {
  
  
  

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



DO NOT REPLY [Bug 29971] - Commented out page directive is parsed

2005-02-12 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=29971.
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=29971


[EMAIL PROTECTED] changed:

   What|Removed |Added

URL||http://tomcat.stud.aitel.his
   ||t.no/jonaroe/Guestbook/web/i
   ||ndex2.jsp




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Jk_map.c build 'problem'?

2005-02-12 Thread NormW
Greetings All,
Just zipping the compiler over the recent updates to mod_jk and get the 
error noted below

Nice to see the 'spirit' of JK2 lives on anyway...
Regards,
Norm
Compiling ../common/jk_lb_worker.c
Compiling ../common/jk_map.c
### mwccnlm Compiler:
#File: ..\common\jk_map.c
# ---
# 413:  jk_shm_set_workers_time(statbuf.st_mtime);
#   Error:  ^
#   illegal implicit conversion from 'struct timespec' to
#   'long'
Errors caused tool to abort.
make: *** [Release.o/jk_map.o] Error 1
C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0
EOT
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Adding CRL support to the Coyote Connector

2005-02-12 Thread Bruce Keats
After looking around and asking various people for help, it looks like
CRLs are not supported in tomcat 5.0.x.  There are some work arounds
but none are very appealing.  So rather than devote effort into the
work around, I would rather devote the effort in solving the problem
by adding CRL support into the Coyote Connector.

Are there any plans on adding CRL support in tomcat in the near
future?  Is anyone else looking into adding CRL support tomcat?

If not then I will probably take a stab at trying to implement CRL
support in the code.  Does anyone know why CRLs were not implemented
in the past?  Is there some fundamental issue that I am not aware of? 
It looks like Java supports CRLs in JRE 1.4.2 (don't know about
previous versions of java).

Any pointers to where to add CRL support in the code would be greatly
appreciated.  I am still trying to locate a good place in the code to
extract the certificates from the TLS connection them run them through
java.security.cert.X509CRL.  If the certificate presented is not valid
then the connection should be terminated.  I am also trying to find
the best place in the code to load the CRL.

Any help would be greatly appreciated.

Bruce

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



Re: Adding CRL support to the Coyote Connector

2005-02-12 Thread Yoav Shapira
Howdy,

 Are there any plans on adding CRL support in tomcat in the near
 future?  Is anyone else looking into adding CRL support tomcat?

No to both.

 If not then I will probably take a stab at trying to implement CRL
 support in the code.  Does anyone know why CRLs were not implemented
 in the past?  Is there some fundamental issue that I am not aware of? 

Probably no fundamental technical issue, just the usual combination: lack of
demand from users and lack of interest on behalf of developers.

 Any help would be greatly appreciated.

I'm not an expert on CRLs, but whatever you can do in a Filter (as in
javax.servlet.Filter) as opposed to in the connector itself is good, because it
means you don't have to hack Tomcat and your solution is container-portable.

Yoav



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



Re: Adding CRL support to the Coyote Connector

2005-02-12 Thread Bill Barker
- Original Message - 
From: Bruce Keats [EMAIL PROTECTED]
To: tomcat-dev@jakarta.apache.org
Sent: Saturday, February 12, 2005 1:49 PM
Subject: Adding CRL support to the Coyote Connector


After looking around and asking various people for help, it looks like
CRLs are not supported in tomcat 5.0.x.  There are some work arounds
but none are very appealing.  So rather than devote effort into the
work around, I would rather devote the effort in solving the problem
by adding CRL support into the Coyote Connector.
Are there any plans on adding CRL support in tomcat in the near
future?  Is anyone else looking into adding CRL support tomcat?
I've looked at it for TC 5.5 + JRE 1.5, but it hasn't itched enough to 
actually get around to implementing it ;-).  I'd be happy to review any 
patch you come up with however.

If not then I will probably take a stab at trying to implement CRL
support in the code.  Does anyone know why CRLs were not implemented
in the past?  Is there some fundamental issue that I am not aware of?
It looks like Java supports CRLs in JRE 1.4.2 (don't know about
previous versions of java).
Prior to CertPathTrustManagerParameters in JRE 1.5, it's more work to pass 
the information to the TrustManager.

Any pointers to where to add CRL support in the code would be greatly
appreciated.  I am still trying to locate a good place in the code to
extract the certificates from the TLS connection them run them through
java.security.cert.X509CRL.  If the certificate presented is not valid
then the connection should be terminated.  I am also trying to find
the best place in the code to load the CRL.
Well, o.a.t.u.net.jsse.JSSE14SocketFactory would be the place to start, as 
the TrustManager is setup there.  I suppose that for JRE 1.4 Tomcat could 
also wrap the TrustManager like it does the KeyManager.

Any help would be greatly appreciated.
Bruce
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message is intended only for the use of the person(s) listed above as 
the intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication 
in error, please notify us immediately by e-mail and then delete all copies of 
this message and any attachments.
In addition you should be aware that ordinary (unencrypted) e-mail sent through 
the Internet is not secure. Do not send confidential or sensitive information, 
such as social security numbers, account numbers, personal identification 
numbers and passwords, to us via ordinary (unencrypted) e-mail.

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

Re: Jk_map.c build 'problem'?

2005-02-12 Thread Günter Knauf
Hi Norm,
that's a netware-own problem;
please add -D_POSIX_SOURCE to the compiler flags and see if that fixes teh 
problem;
if so then please also check if we get no other strange behaviours - then we 
have to go other ways.

Guenter.

 Just zipping the compiler over the recent updates to mod_jk and get the
 error noted below

 Nice to see the 'spirit' of JK2 lives on anyway...
 Regards,
 Norm

 Compiling ../common/jk_lb_worker.c
 Compiling ../common/jk_map.c
 ### mwccnlm Compiler:
 #File: ..\common\jk_map.c
 # ---
 # 413:  jk_shm_set_workers_time(statbuf.st_mtime);
 #   Error:  ^
 #   illegal implicit conversion from 'struct timespec' to
 #   'long'

 Errors caused tool to abort.
 make: *** [Release.o/jk_map.o] Error 1

 C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0

 EOT

 -
 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: Jk_map.c build 'problem'?

2005-02-12 Thread Günter Knauf
Hi Norm,
can you please also do a build for Apache 1.3.x? 
I guess there this problem doesnt occure because of the clib headers; its only 
with Apache2 with libc headers.

that's a netware-own problem;
please add -D_POSIX_SOURCE to the compiler flags and see if that fixes teh 
problem;
if so then please also check if we get no other strange behaviours - then we 
have to go other ways.

Guenter.

 Just zipping the compiler over the recent updates to mod_jk and get the
 error noted below

 Nice to see the 'spirit' of JK2 lives on anyway...
 Regards,
 Norm

 Compiling ../common/jk_lb_worker.c
 Compiling ../common/jk_map.c
 ### mwccnlm Compiler:
 #File: ..\common\jk_map.c
 # ---
 # 413:  jk_shm_set_workers_time(statbuf.st_mtime);
 #   Error:  ^
 #   illegal implicit conversion from 'struct timespec' to
 #   'long'

 Errors caused tool to abort.
 make: *** [Release.o/jk_map.o] Error 1

 C:\Projects\gccnlm\jakarta-tomcat-connectors\jk\native\apache-2.0

 EOT

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