strange problem on i5

2007-03-29 Thread Henri Gomez

Hi to all,

While using with the 1.2.21-dev on i5 (iSeries) I saw a strange
problem when doing SOAP works.

In SOAP, a Fault Exception is sent by Tomcat as an HTTP 500 error (in
header) and the fault code in body.

On Linux and Windows, mod_jk see the header and body :

[Thu Mar 29 12:26:18 2007] [7732:8768] [debug] do_shm_open::jk_shm.c
(284): Shared memory is already open [Thu Mar 29 12:26:18 2007]
[7732:8768] [debug] jk_child_init::mod_jk.c (2588): Attached
shm:/var/log/apache2/jk.shm [Thu Mar 29 12:26:18 2007] [7732:8768]
[debug] jk_child_init::mod_jk.c (2598): Initialized mod_jk/1.2.21-dev
[Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1043): received from
ajp13 pos=0 len=60 max=8192
[Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1043): 04 01
F4 00 19 45 72 72 65 75 72 20 49 6E 74 65  - .Erreur.Inte
[Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1043): 001072 6E
65 20 64 65 20 53 65 72 76 6C 65 74 00 00  - rne.de.Servlet..
[Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1043): 002001 A0
01 00 16 74 65 78 74 2F 78 6D 6C 3B 63 68  - .text/xml;ch
[Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1043): 003061 72
73 65 74 3D 75 74 66 2D 38 00 00 00 00 00  - arset=utf-8.
[Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_unmarshal_response::jk_ajp_common.c (603): status = 500 [Thu Mar
29 12:26:26 2007] [7690:8768] [debug]
ajp_unmarshal_response::jk_ajp_common.c (610): Number of headers is =
1 [Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_unmarshal_response::jk_ajp_common.c (666): Header[0]
[Content-Type] = [text/xml;charset=utf-8] [Thu Mar 29 12:26:26 2007]
[7690:8768] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c
(1043): received from ajp13 pos=0 len=456 max=8192
[Thu Mar 29 12:26:26 2007] [7690:8768] [debug]
ajp_connection_tcp_get_message::jk_ajp_common.c (1043): 03 01
C4 3C 3F 78 6D 6C 20 76 65 72 73 69 6F 6E  - ...

Tagging TOMCAT_NATIVE_1_1_9

2007-03-29 Thread Mladen Turk

Hi,

I'll tag the tcnative to 1.1.9.
It fixes the JVM core in case the acceptor breaks when
we are inside the Socket.accept, and adds OpenBSD platform detection.

--
Regards,
Mladen

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



DO NOT REPLY [Bug 41684] - Some URIs need to be adapted to the changed layout of the stock webapps, some files are missing

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41684





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 05:00 ---
Created an attachment (id=19838)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19838&action=view)
patch for issues excluding "missing files: 2"

I made a patch for above issues.

But I couldn't decided whether to add the txt2html ant task for missing files:
2.

-- 
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 41981] New: - Compression seems to work only for certain files under ~48k

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41981

   Summary: Compression seems to work only for certain files under
~48k
   Product: Tomcat 5
   Version: 5.5.23
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Connector:HTTP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I'm trying to compress JS files on my Tomcat server.  It seems to work fine 
with the following configuration:




This compresses the html, js, and css files nicely.  I noticed a problem when 
the JS files were larger than ~48k.  If it was, it would skip compression of 
them all together.  If i deleted lines from the JS file to make it under that 
48k threshold, it would be compressed properly.  I tried making dummy js files 
full of just comments and it has the same behavior.  

The JS files are server properly with the text/javascript content-type.  
This is the same behavior if i access the JS files via 

DO NOT REPLY [Bug 41981] - Compression seems to work only for certain files under ~48k

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41981





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 05:24 ---
Created an attachment (id=19839)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19839&action=view)
Sample JS that compresses


-- 
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 41981] - Compression seems to work only for certain files under ~48k

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41981





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 05:24 ---
Created an attachment (id=19840)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=19840&action=view)
JS files that doesn't work


-- 
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 41981] - Compression seems to work only for certain files under ~48k

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41981


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19840|JS files that doesn't work  |Sample JS that does not
description||compress




-- 
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 41557] - build.xml uses a different (from the documentation) variable to enable proxying

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41557


[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|trivial |minor




--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 05:50 ---
IMHO, this issue is a real bug to build Tomcat. So I think the severity should
be "minor".

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



Re: Tagging TOMCAT_NATIVE_1_1_9

2007-03-29 Thread Filip Hanik - Dev Lists

cool, yes, lets get this done before 6.0.11

Filip

Mladen Turk wrote:

Hi,

I'll tag the tcnative to 1.1.9.
It fixes the JVM core in case the acceptor breaks when
we are inside the Socket.accept, and adds OpenBSD platform detection.

--
Regards,
Mladen

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



mktemp didn't exist on i5

2007-03-29 Thread Henri Gomez

While rebuild trunk from mod_jk I got an error on iSeries about
missing mktemp in iSeries.

   if (!jk_shmem.lockname) {
   if (shm_lock_reopen) {
   int i;
   jk_shmem.fd_lock = -1;
   mode_t mask = umask(0);
   for (i = 0; i < 8; i++) {
   strcpy(flkname, "/tmp/jkshmlock.XX");
   if (mktemp(flkname)) {
   jk_shmem.fd_lock = open(flkname,
O_RDWR|O_CREAT|O_TRUNC, 0666);
   if (jk_shmem.fd_lock >= 0)
   break;
   }
   }
   umask(mask);
   }


How could we avoid this call ?

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



svn commit: r523717 - in /tomcat/tc6.0.x/trunk/res/confinstall: server_1.xml server_2.xml

2007-03-29 Thread remm
Author: remm
Date: Thu Mar 29 07:02:08 2007
New Revision: 523717

URL: http://svn.apache.org/viewvc?view=rev&rev=523717
Log:
- Default configuration updates.

Modified:
tomcat/tc6.0.x/trunk/res/confinstall/server_1.xml
tomcat/tc6.0.x/trunk/res/confinstall/server_2.xml

Modified: tomcat/tc6.0.x/trunk/res/confinstall/server_1.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/res/confinstall/server_1.xml?view=diff&rev=523717&r1=523716&r2=523717
==
--- tomcat/tc6.0.x/trunk/res/confinstall/server_1.xml (original)
+++ tomcat/tc6.0.x/trunk/res/confinstall/server_1.xml Thu Mar 29 07:02:08 2007
@@ -32,7 +32,14 @@
Documentation at /docs/config/service.html
-->
   
-
+  
+
+
+
+
 
+   
 
 
 



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



DO NOT REPLY [Bug 41973] - IPv6 APR Connectors assumes IPv4-mapped IPv6 address support

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41973





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 07:15 ---
Making APR 2 transparently handle dual stacks sounds great. As a long term goal
that's the ideal solution. Also from a security standpoint, not using IPv4
mapped addresses for all OS's (even those that support it) would be a good idea,
IMO.

While tcnative is aligned with APR 1 could the proposed change be added? I
wasn't sure from your reply if it was. For the BSD's it is particularly needed
since our native jvm doesn't support IPv6. So what happens is that a working
server.xml stops working when tcnative is installed (due to the IPv4 to IPv6
shift when address is null).

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



Re: Tagging TOMCAT_NATIVE_1_1_9

2007-03-29 Thread William L. Thomson Jr.
On Thu, 2007-03-29 at 13:22 +0200, Mladen Turk wrote:
> Hi,
> 
> I'll tag the tcnative to 1.1.9.
> It fixes the JVM core in case the acceptor breaks when
> we are inside the Socket.accept, and adds OpenBSD platform detection.

I never got a chance to make patch since I am not to familiar with
configure. But would be nice for tcnative, to know during configure that
it needs >=apr-1.x. If a check can't be added less a patch. I will get
with another Gentoo dev, and get a patch made and to you all.

Thanks

-- 
William L. Thomson Jr.
Gentoo/Java


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


Re: Tagging TOMCAT_NATIVE_1_1_9

2007-03-29 Thread Mladen Turk

William L. Thomson Jr. wrote:


I never got a chance to make patch since I am not to familiar with
configure. But would be nice for tcnative, to know during configure that
it needs >=apr-1.x. If a check can't be added less a patch. I will get
with another Gentoo dev, and get a patch made and to you all.



That would be a nice feature.

Regards,
Mladen.

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



Re: Tagging TOMCAT_NATIVE_1_1_9

2007-03-29 Thread Mladen Turk

Filip Hanik - Dev Lists wrote:

cool, yes, lets get this done before 6.0.11



Right, that is the idea, because of .tar.gz and
binary dependencies.

Regards,
Mladen.

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



DO NOT REPLY [Bug 41983] New: - JSP compilation is too slow compared to 5.0

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41983

   Summary: JSP compilation is too slow compared to 5.0
   Product: Tomcat 6
   Version: unspecified
  Platform: PC
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I cannot upgrade to 6.0 because of the performance penalty of using the JDT
compiler to compile JSPs.  Even cached compiled pages are taking forever to
render.  I have the same code base running in 5.0 and its just fine.

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



Re: mktemp didn't exist on i5

2007-03-29 Thread Ian Darwin

Henri Gomez wrote:

While rebuild trunk from mod_jk I got an error on iSeries about
missing mktemp in iSeries.

   if (!jk_shmem.lockname) {
   if (shm_lock_reopen) {
   int i;
   jk_shmem.fd_lock = -1;
   mode_t mask = umask(0);
   for (i = 0; i < 8; i++) {
   strcpy(flkname, "/tmp/jkshmlock.XX");
   if (mktemp(flkname)) {
   jk_shmem.fd_lock = open(flkname,
O_RDWR|O_CREAT|O_TRUNC, 0666);
   if (jk_shmem.fd_lock >= 0)
   break;
   }
   }
   umask(mask);
   }


How could we avoid this call ?


Wrong question. mktemp has been in UNIX for a dog's age and in POSIX/SUS 
for a decade or more. See 
http://www.opengroup.org/onlinepubs/007908799/xsh/mktemp.html which is 
the 1997 version of the SUS.


The general approach to making C programs portable to broken systems 
that are missing libraries is to provide a default version, usually 
wrapped in an #ifdef.


IANA(ASF)L but we should be able to incorporate the mktemp 
implementation from anything BSD licensed, like OpenBSD, for this purpose.


Ian

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



DO NOT REPLY [Bug 40809] - Tomcat 5.5.20 fails to load ServletContextListener in tld!

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40809


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




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



Re: mktemp didn't exist on i5

2007-03-29 Thread Henri Gomez

Well I5, also known as iSeries or AS/400, run on i5/OS which is not
Unix but IBM proprietary (called OS/400 previously)

2007/3/29, Ian Darwin <[EMAIL PROTECTED]>:

Henri Gomez wrote:
> While rebuild trunk from mod_jk I got an error on iSeries about
> missing mktemp in iSeries.
>
>if (!jk_shmem.lockname) {
>if (shm_lock_reopen) {
>int i;
>jk_shmem.fd_lock = -1;
>mode_t mask = umask(0);
>for (i = 0; i < 8; i++) {
>strcpy(flkname, "/tmp/jkshmlock.XX");
>if (mktemp(flkname)) {
>jk_shmem.fd_lock = open(flkname,
> O_RDWR|O_CREAT|O_TRUNC, 0666);
>if (jk_shmem.fd_lock >= 0)
>break;
>}
>}
>umask(mask);
>}
>
>
> How could we avoid this call ?

Wrong question. mktemp has been in UNIX for a dog's age and in POSIX/SUS
for a decade or more. See
http://www.opengroup.org/onlinepubs/007908799/xsh/mktemp.html which is
the 1997 version of the SUS.

The general approach to making C programs portable to broken systems
that are missing libraries is to provide a default version, usually
wrapped in an #ifdef.

IANA(ASF)L but we should be able to incorporate the mktemp
implementation from anything BSD licensed, like OpenBSD, for this purpose.

Ian

-
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 41983] - JSP compilation is too slow compared to 5.0

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41983


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 08:57 ---
FYI, the Eclipse JDT-based compilation was introduced and made the default in
Tomcat 5.5, not 6.0.  Can you please provide:

- Your benchmarks showing the slowdown,
- A test WAR and accompanying scripts we can use to reproduce the behavior
you're seeing?

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



Re: mktemp didn't exist on i5

2007-03-29 Thread Ian Darwin

Henri Gomez wrote:

Well I5, also known as iSeries or AS/400, run on i5/OS which is not
Unix but IBM proprietary (called OS/400 previously)


Oh well, it's been broken longer :-)   I stand by my suggestion on how 
to fix it.


Ian

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



DO NOT REPLY [Bug 40809] - Tomcat 5.5.20 fails to load ServletContextListener in tld!

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=40809


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




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



Re: mktemp didn't exist on i5

2007-03-29 Thread Mladen Turk

Henri Gomez wrote:

While rebuild trunk from mod_jk I got an error on iSeries about
missing mktemp in iSeries.

   if (!jk_shmem.lockname) {


#ifnedef WHATEVER


   if (shm_lock_reopen) {
   int i;
   jk_shmem.fd_lock = -1;
   mode_t mask = umask(0);
   for (i = 0; i < 8; i++) {
   strcpy(flkname, "/tmp/jkshmlock.XX");
   if (mktemp(flkname)) {
   jk_shmem.fd_lock = open(flkname,
O_RDWR|O_CREAT|O_TRUNC, 0666);
   if (jk_shmem.fd_lock >= 0)
   break;
   }
   }
   umask(mask);
   }



#endif


The shm_lock_reopen is compile time anyhow.

Regards,
Mladen


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



DO NOT REPLY [Bug 39850] - Need a way to invalidate SSL-session from web application

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=39850





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 12:48 ---
I'm not sure I understand, wouldnt simply 
response.getInputStream().close() take care of it? javax.ssl doesn't cache
session ids

-- 
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 30434] - Findbugs find 'Non-transient non-serializable instance field in serializable class' in java code generated from JSPs

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=30434





--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 13:42 ---
I've been hit by this bug, I don't think it is a theoretical issue:

ADVERTENCIA: No puedo serializar atributo de sesión 1175200206072-spiderMonitor
para sesión BB2887F736CDECA5CD408CC4AFA67D45
java.io.NotSerializableException: org.apache.jasper.runtime.TagHandlerPool
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1462)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:938)
at 
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:516)
at 
org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)
at 
org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)
at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)
at 
org.apache.catalina.core.StandardService.stop(StandardService.java:512)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

Using Tomcat 5.5.17

-- 
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 30434] - Findbugs find 'Non-transient non-serializable instance field in serializable class' in java code generated from JSPs

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=30434


[EMAIL PROTECTED] changed:

   What|Removed |Added

Version|5.0.27  |5.5.17




-- 
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 41983] - JSP compilation is too slow compared to 5.0

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41983


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 14:33 ---
Some facts:
- you can still use Ant/javac if you want to
- using a design which would rely on ever changing JSPs is broken: JSP is not a
template system (and even template systems perform much better if you allow them
to cache or "compile" the pages)

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



Re: mktemp didn't exist on i5

2007-03-29 Thread Henri Gomez

Good thanks

2007/3/29, Mladen Turk <[EMAIL PROTECTED]>:

Henri Gomez wrote:
> While rebuild trunk from mod_jk I got an error on iSeries about
> missing mktemp in iSeries.
>
>if (!jk_shmem.lockname) {

#ifnedef WHATEVER

>if (shm_lock_reopen) {
>int i;
>jk_shmem.fd_lock = -1;
>mode_t mask = umask(0);
>for (i = 0; i < 8; i++) {
>strcpy(flkname, "/tmp/jkshmlock.XX");
>if (mktemp(flkname)) {
>jk_shmem.fd_lock = open(flkname,
> O_RDWR|O_CREAT|O_TRUNC, 0666);
>if (jk_shmem.fd_lock >= 0)
>break;
>}
>}
>umask(mask);
>}
>

#endif


The shm_lock_reopen is compile time anyhow.

Regards,
Mladen


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



svn commit: r523879 - in /tomcat/site/trunk: docs/security-4.html xdocs/security-4.xml

2007-03-29 Thread markt
Author: markt
Date: Thu Mar 29 16:41:17 2007
New Revision: 523879

URL: http://svn.apache.org/viewvc?view=rev&rev=523879
Log:
Fix typo

Modified:
tomcat/site/trunk/docs/security-4.html
tomcat/site/trunk/xdocs/security-4.xml

Modified: tomcat/site/trunk/docs/security-4.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/security-4.html?view=diff&rev=523879&r1=523878&r2=523879
==
--- tomcat/site/trunk/docs/security-4.html (original)
+++ tomcat/site/trunk/docs/security-4.html Thu Mar 29 16:41:17 2007
@@ -603,7 +603,7 @@
 
 Denial of service vulnerability
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0936";>
-   CVE-2002-0639
+   CVE-2002-0936
 
 The issue described requires an attacker to be able to plant a JSP page
on the Tomcat server. If an attacker can do this then the server is

Modified: tomcat/site/trunk/xdocs/security-4.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/security-4.xml?view=diff&rev=523879&r1=523878&r2=523879
==
--- tomcat/site/trunk/xdocs/security-4.xml (original)
+++ tomcat/site/trunk/xdocs/security-4.xml Thu Mar 29 16:41:17 2007
@@ -211,7 +211,7 @@
   
 Denial of service vulnerability
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-0936";>
-   CVE-2002-0639
+   CVE-2002-0936
 The issue described requires an attacker to be able to plant a JSP page
on the Tomcat server. If an attacker can do this then the server is
already compromised. In this case an attacker could just as easily add a



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



DO NOT REPLY [Bug 41990] New: - wmv mime type missing from

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41990

   Summary: wmv mime type missing from
   Product: Tomcat 5
   Version: 5.5.23
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Connector:HTTP
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


conf/web.xml

please add:


wmv
video/x-ms-wmv


-- 
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 41990] - wmv mime type missing from conf/web.xml

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41990


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|wmv mime type missing from  |wmv mime type missing from
   ||conf/web.xml




-- 
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 41990] - several mime types missing from conf/web.xml

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=41990


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|wmv mime type missing from  |several mime types missing
   |conf/web.xml|from conf/web.xml




--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 18:00 ---
It seems several mime types are missing... here is another one...


mp4
video/mp4


Here is a nice list to compare against...

http://www.feedforall.com/mime-types.htm

-- 
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 30434] - Findbugs find 'Non-transient non-serializable instance field in serializable class' in java code generated from JSPs

2007-03-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=30434


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




--- Additional Comments From [EMAIL PROTECTED]  2007-03-29 22:34 ---
Now the report is more specific, as requested in comment #1, reopening.

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



svn commit: r523964 - /tomcat/connectors/trunk/jk/native/common/jk_shm.c

2007-03-29 Thread mturk
Author: mturk
Date: Thu Mar 29 23:58:38 2007
New Revision: 523964

URL: http://svn.apache.org/viewvc?view=rev&rev=523964
Log:
Put the entire code that is JK_SHM_LOCK_REOPEN dependent inside #ifdef

Modified:
tomcat/connectors/trunk/jk/native/common/jk_shm.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_shm.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_shm.c?view=diff&rev=523964&r1=523963&r2=523964
==
--- tomcat/connectors/trunk/jk/native/common/jk_shm.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_shm.c Thu Mar 29 23:58:38 2007
@@ -237,21 +237,18 @@
 #define MAP_FILE(0)
 #endif
 
-#ifdef JK_SHM_LOCK_REOPEN
-static int shm_lock_reopen = 1;
-#else
-static int shm_lock_reopen = 0;
-#endif
-
 static int do_shm_open_lock(const char *fname, int attached, jk_logger_t *l)
 {
 int rc;
 char flkname[256];
 JK_TRACE_ENTER(l);
 
-if (attached) {
-if (shm_lock_reopen)
-jk_shmem.fd_lock = open(jk_shmem.lockname, O_RDWR, 0666);
+if (attached && jk_shmem.lockname) {
+#ifdef JK_SHM_LOCK_REOPEN
+jk_shmem.fd_lock = open(jk_shmem.lockname, O_RDWR, 0666);
+#else
+errno = EINVAL;
+#endif
 if (jk_shmem.fd_lock == -1) {
 rc = errno;
 JK_TRACE_EXIT(l);
@@ -265,25 +262,24 @@
 }
 
 if (!jk_shmem.lockname) {
-if (shm_lock_reopen) {
-int i;
-jk_shmem.fd_lock = -1;
-mode_t mask = umask(0);
-for (i = 0; i < 8; i++) {
-strcpy(flkname, "/tmp/jkshmlock.XX");
-if (mktemp(flkname)) {
-jk_shmem.fd_lock = open(flkname, O_RDWR|O_CREAT|O_TRUNC, 
0666);
-if (jk_shmem.fd_lock >= 0)
-break;
-}
+#ifdef JK_SHM_LOCK_REOPEN
+int i;
+jk_shmem.fd_lock = -1;
+mode_t mask = umask(0);
+for (i = 0; i < 8; i++) {
+strcpy(flkname, "/tmp/jkshmlock.XX");
+if (mktemp(flkname)) {
+jk_shmem.fd_lock = open(flkname, O_RDWR|O_CREAT|O_TRUNC, 0666);
+if (jk_shmem.fd_lock >= 0)
+break;
 }
-umask(mask);
-}
-else {
-strcpy(flkname, fname);
-strcat(flkname, ".lock");
-jk_shmem.fd_lock = open(flkname, O_RDWR|O_CREAT|O_TRUNC, 0666);
 }
+umask(mask);
+#else
+strcpy(flkname, fname);
+strcat(flkname, ".lock");
+jk_shmem.fd_lock = open(flkname, O_RDWR|O_CREAT|O_TRUNC, 0666);
+#endif
 if (jk_shmem.fd_lock == -1) {
 rc = errno;
 JK_TRACE_EXIT(l);
@@ -470,12 +466,12 @@
 if (jk_shmem.hdr) {
 --jk_shmem.hdr->h.data.childs;
 
+#ifdef JK_SHM_LOCK_REOPEN
 if (jk_shmem.fd_lock >= 0) {
-if (shm_lock_reopen) {
-close(jk_shmem.fd_lock);
-jk_shmem.fd_lock = -1;
-}
+close(jk_shmem.fd_lock);
+jk_shmem.fd_lock = -1;
 }
+#endif
 JK_DELETE_CS(&(jk_shmem.cs), rc);
 if (jk_shmem.attached) {
 int p = (int)getpid();



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



Re: mktemp didn't exist on i5

2007-03-29 Thread Mladen Turk

Henri Gomez wrote:

Good thanks



Check now. I put that inside #ifdef JK_SHM_LOCK_REOPEN,
like before, but now, the entire code is compile
time dependent instead just using a var.


Regards,
Mladen.

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