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

2005-07-20 Thread remm
remm2005/07/20 02:45:14

  Modified:util/java/org/apache/tomcat/util/net AprEndpoint.java
   webapps/docs changelog.xml
  Log:
  - Remove useless import.
  - Add SSL to the changelog.
  
  Revision  ChangesPath
  1.68  +0 -1  
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java
  
  Index: AprEndpoint.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- AprEndpoint.java  16 Jul 2005 12:22:42 -  1.67
  +++ AprEndpoint.java  20 Jul 2005 09:45:14 -  1.68
  @@ -16,7 +16,6 @@
   
   package org.apache.tomcat.util.net;
   
  -import java.io.IOException;
   import java.net.InetAddress;
   import java.util.ArrayList;
   import java.util.HashMap;
  
  
  
  1.322 +1 -4  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.321
  retrieving revision 1.322
  diff -u -r1.321 -r1.322
  --- changelog.xml 3 Jul 2005 16:41:23 -   1.321
  +++ changelog.xml 20 Jul 2005 09:45:14 -  1.322
  @@ -147,9 +147,6 @@
 fix
   bug34578/bug: Updated JNDIRealm comment. (yoavs)
 /fix
  -  add
  -[Placeholder for HttpAprConnector]
  -  /add
 fix
   bug34273/bug: Better Bootstrap warning message. [Path from Ralf 
Hauser] (yoavs)
 /fix
  @@ -187,7 +184,7 @@
   Add some Mbean attributes and operations to ChannelSocket (pero)
 /update
 add
  -Apache Portable Runtime based HTTP/1.1 protocol handler (remm)
  +Apache Portable Runtime based HTTP/1.1 protocol handler, with SSL 
support (remm)
 /add
 add
   Add support for simple file-based CRLs under JDK 1.5 (billbarker)
  
  
  

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



Re: binary streaming / content-type problem with mod_jk ?

2005-07-20 Thread Jérôme Chauvin

Any ideas ?
It would be helpful :)
Thanks,

Jérôme Chauvin

Le 19 juil. 05, à 10:09, Jérôme Chauvin a écrit :


Hi all !

I've developed a servlet (BinaryStreaming based on 
StreamingContent by Raj Behera) which does a binary stream of a mpeg 
video file which is created progressively (by another 
servlet/software/Unix command/... not important ) and finally read and 
played by Quicktime.

I use Apache and Tomcat so I've installed mod_jk

All work well (- MacOS and Windows) but... :
If I go on http://localhost:8080/my_test/BinaryStreaming it 
works well with QuickTime 7 and QuickTime 6 (6, 6.5, 6.5.2, ...).


I have mod_jk so I can go on  
http://localhost/my_test/BinaryStreaming   and here it still works 
well with QT7.
But QT6 seems to wait that the video file is entirely created to start 
the viewing instead of starting to play the movie as soon as there is 
data in it, progressively.
- like it does with QT7 and QT6 with :8080  OR  when I use QT7 
without :8080.


I think it's due to mod_jk but I've no idea to make it work


I've found that another person had a similar problem, but no answer 
was given :

http://www.junlu.com/msg/107218.html

This message was posted in 09/2004 and it seems that Apache causes 
problems with pre-defined MIME-Types.




Does someone have an answer or an idea ? :-)
I really need to fix this ! :(

Thanks in advance.  :o)

Regards,

Jérôme

---
Jérôme Chauvin

OPSOMAI
77, rue de Charonne
75011 Paris - France
Tél : +33 (0)1 58 39 38 22
Fax : +33 (0)1 43 70 70 72
@ : [EMAIL PROTECTED]
URL : http://www.opsomai.com

How to do authentication and secure line HTTPS (SSL)

2005-07-20 Thread Abdullah Abdullah

Dear all

Actually, I would like to ask you that how can I do authentication and 
secure line HTTPS (SSL) for my web pages ? It is worth mentioning that I am 
using JSP and Tomcat 5.5.9 .


Thank you in advance.

Regards
Abdullah

_
Use MSN Messenger to send music and pics to your friends 
http://messenger.msn.co.uk



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



Re: [VOTE] JK 1.2.14.1

2005-07-20 Thread Henri Gomez
good for me on Suse SLES 9 PowerPC.

On iSeries V5R3 built without problem, waiting now for installation on
our test machine.

2005/7/19, Jean-Jacques Clar [EMAIL PROTECTED]:
 
 Please vote:
 
 
 [X] Stable -- good build
 [ ] Alpha -- something serious is wrong: what is it?
 
 Functional and stress tested against 2.0.54, and 2.1.6
 on NetWare 6.5 SP3 and SP4 on MP server (4 CPUS).
 Only stress test for apache 1.3.
 Using Tomcat 4.1.30.
 
 Thank you,
 
 JJ
 


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



New tag ?

2005-07-20 Thread Remy Maucherat

Hi,

I think the APR capabilities that we added are now sufficiently stable 
to warrant testing. If the other areas that saw changes recently 
(clustering, JK) are ok too, then it could be a good idea to release a 
new build.


Rémy

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



Re: New tag ?

2005-07-20 Thread Bill Barker

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Developers List tomcat-dev@jakarta.apache.org
Sent: Wednesday, July 20, 2005 3:42 AM
Subject: New tag ?


Hi,

I think the APR capabilities that we added are now sufficiently stable
to warrant testing. If the other areas that saw changes recently
(clustering, JK) are ok too, then it could be a good idea to release a
new build.


JK should be fine.  I've been pretty careful with the changes.

It would be nice to fix BZ 35696 (since it's a spec issue).  I'll see if I
can get some time to look at it.

Rémy





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]



DO NOT REPLY [Bug 24506] - New line elimination at end of directives

2005-07-20 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=24506.
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=24506





--- Additional Comments From [EMAIL PROTECTED]  2005-07-20 20:01 ---
(In reply to comment #3)
 trimSpaces removes any template text between two standard or custom actions 
 only
 if the template text is all white spaces, and should not cause the space to be
 removed in your cases.  Supply a test case if you still have problems.

True, but trimSpaces is still far too eager for the following universal case:

${firstName} ${lastName} - bobsmith

...which really is not what you want, and means the directive is effectively
useless. TrimSpaces should only remove NEWLINE characters NOT SPACES between two
directives (and hence should probably be renamed). It wouldnt be so bad for HTML
if it just normalized it down to one space: s/\s+\ /

This is also discussed here:
http://raibledesigns.com/comments/rd/sunsets/trim_spaces_in_your_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]



cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources BaseDirContext.java ProxyDirContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:03:18

  Modified:catalina/src/share/org/apache/naming NamingContext.java
SelectorContext.java
   catalina/src/share/org/apache/naming/resources
BaseDirContext.java ProxyDirContext.java
  Log:
  Tabs to 8 spaces.
  
  Revision  ChangesPath
  1.10  +11 -11
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/NamingContext.java
  
  Index: NamingContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/NamingContext.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- NamingContext.java26 Aug 2004 21:46:17 -  1.9
  +++ NamingContext.java20 Jul 2005 21:03:18 -  1.10
  @@ -236,8 +236,8 @@
   throws NamingException {
   checkWritable();
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   throw new NamingException
   (sm.getString(namingContext.invalidName));
  @@ -445,8 +445,8 @@
   
   checkWritable();
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   throw new NamingException
   (sm.getString(namingContext.invalidName));
  @@ -581,8 +581,8 @@
   public NameParser getNameParser(Name name)
   throws NamingException {
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   return nameParser;
   
  @@ -632,8 +632,8 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  - prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +prefix = (Name) name.clone();
  +return prefix.addAll(name);
   }
   
   
  @@ -822,8 +822,8 @@
   
   checkWritable();
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   throw new NamingException
   (sm.getString(namingContext.invalidName));
  
  
  
  1.4   +5 -5  
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/SelectorContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SelectorContext.java  26 Aug 2004 21:46:17 -  1.3
  +++ SelectorContext.java  20 Jul 2005 21:03:18 -  1.4
  @@ -504,8 +504,8 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  - prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +prefix = (Name) name.clone();
  +return prefix.addAll(name);
   }
   
   
  @@ -651,7 +651,7 @@
   protected String parseName(String name) 
   throws NamingException {
   
  - if ((!initialContext)  (name.startsWith(prefix))) {
  +if ((!initialContext)  (name.startsWith(prefix))) {
   return (name.substring(prefixLength));
   } else {
   if (initialContext) {
  @@ -675,7 +675,7 @@
   protected Name parseName(Name name) 
   throws NamingException {
   
  - if ((!initialContext)  (!name.isEmpty()) 
  +if ((!initialContext)  (!name.isEmpty()) 
(name.get(0).equals(prefix))) {
   return (name.getSuffix(1));
   } else {
  
  
  
  1.7   +12 -12
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/BaseDirContext.java
  
  Index: BaseDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/BaseDirContext.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- BaseDirContext.java   4 Feb 2005 22:08:03 -   1.6
  +++ BaseDirContext.java   20 Jul 2005 21:03:18 -  1.7
  @@ -120,7 +120,7 @@
* Return the debugging detail level for this component.
*/
   public int getDebug() {
  - return (this.debug);
  +  

cvs commit: jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java SelectorContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:04:02

  Modified:naming/src/org/apache/naming/modules/cache Tag: TOMCAT_5_0
ProxyDirContext.java
   naming/src/org/apache/naming/modules/java Tag: TOMCAT_5_0
SelectorContext.java
  Log:
  Tabs to 8 spaces.
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.3.2.1   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java
  
  Index: ProxyDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -r1.3 -r1.3.2.1
  --- ProxyDirContext.java  24 Feb 2004 08:58:09 -  1.3
  +++ ProxyDirContext.java  20 Jul 2005 21:04:02 -  1.3.2.1
  @@ -607,7 +607,7 @@
   public Name composeName(Name name, Name prefix)
   throws NamingException {
   prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +return prefix.addAll(name);
   }
   
   
  
  
  
  No   revision
  No   revision
  1.5.2.1   +4 -4  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- SelectorContext.java  24 Feb 2004 08:58:08 -  1.5
  +++ SelectorContext.java  20 Jul 2005 21:04:02 -  1.5.2.1
  @@ -500,8 +500,8 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  - prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +prefix = (Name) name.clone();
  +return prefix.addAll(name);
   }
   
   
  @@ -649,7 +649,7 @@
   protected String parseName(String name) 
   throws NamingException {
   
  - if ((!initialContext)  (name.startsWith(prefix))) {
  +if ((!initialContext)  (name.startsWith(prefix))) {
   return (name.substring(prefixLength));
   } else {
   if (initialContext) {
  @@ -673,7 +673,7 @@
   protected Name parseName(Name name) 
   throws NamingException {
   
  - if ((!initialContext)  (!name.isEmpty()) 
  +if ((!initialContext)  (!name.isEmpty()) 
(name.get(0).equals(prefix))) {
   return (name.getSuffix(1));
   } else {
  
  
  

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



cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources BaseDirContext.java ProxyDirContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:09:51

  Modified:catalina/src/share/org/apache/naming NamingContext.java
SelectorContext.java
   catalina/src/share/org/apache/naming/resources
BaseDirContext.java ProxyDirContext.java
  Log:
  Fix bug 35769. composeName(Name, Name) returns wrong result.
   - Patch provided by Laurent Simon
  
  Revision  ChangesPath
  1.11  +2 -2  
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/NamingContext.java
  
  Index: NamingContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/NamingContext.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- NamingContext.java20 Jul 2005 21:03:18 -  1.10
  +++ NamingContext.java20 Jul 2005 21:09:50 -  1.11
  @@ -632,7 +632,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.5   +2 -2  
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/SelectorContext.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SelectorContext.java  20 Jul 2005 21:03:18 -  1.4
  +++ SelectorContext.java  20 Jul 2005 21:09:50 -  1.5
  @@ -504,7 +504,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.8   +2 -2  
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/BaseDirContext.java
  
  Index: BaseDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/BaseDirContext.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- BaseDirContext.java   20 Jul 2005 21:03:18 -  1.7
  +++ BaseDirContext.java   20 Jul 2005 21:09:50 -  1.8
  @@ -617,7 +617,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.19  +2 -2  
jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/ProxyDirContext.java
  
  Index: ProxyDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/resources/ProxyDirContext.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ProxyDirContext.java  20 Jul 2005 21:03:18 -  1.18
  +++ ProxyDirContext.java  20 Jul 2005 21:09:50 -  1.19
  @@ -651,7 +651,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  

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



cvs commit: jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java SelectorContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:12:32

  Modified:naming/src/org/apache/naming/core Tag: TOMCAT_5_0
BaseContext.java
   naming/src/org/apache/naming/modules/cache Tag: TOMCAT_5_0
ProxyDirContext.java
   naming/src/org/apache/naming/modules/java Tag: TOMCAT_5_0
SelectorContext.java
  Log:
  Fix bug 35769. composeName(Name, Name) returns wrong result.
   - Patch provided by Laurent Simon
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.5.2.1   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseContext.java
  
  Index: BaseContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseContext.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- BaseContext.java  24 Feb 2004 08:58:08 -  1.5
  +++ BaseContext.java  20 Jul 2005 21:12:32 -  1.5.2.1
  @@ -414,7 +414,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  No   revision
  No   revision
  1.3.2.2   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java
  
  Index: ProxyDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java,v
  retrieving revision 1.3.2.1
  retrieving revision 1.3.2.2
  diff -u -r1.3.2.1 -r1.3.2.2
  --- ProxyDirContext.java  20 Jul 2005 21:04:02 -  1.3.2.1
  +++ ProxyDirContext.java  20 Jul 2005 21:12:32 -  1.3.2.2
  @@ -606,7 +606,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  No   revision
  No   revision
  1.5.2.2   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java,v
  retrieving revision 1.5.2.1
  retrieving revision 1.5.2.2
  diff -u -r1.5.2.1 -r1.5.2.2
  --- SelectorContext.java  20 Jul 2005 21:04:02 -  1.5.2.1
  +++ SelectorContext.java  20 Jul 2005 21:12:32 -  1.5.2.2
  @@ -500,7 +500,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources BaseDirContext.java ProxyDirContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:21:30

  Modified:catalina/src/share/org/apache/naming NamingContext.java
SelectorContext.java
   catalina/src/share/org/apache/naming/resources
BaseDirContext.java ProxyDirContext.java
  Log:
  Tabs to 8 spaces.
  
  Revision  ChangesPath
  1.7   +11 -11
jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/NamingContext.java
  
  Index: NamingContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/NamingContext.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- NamingContext.java29 Aug 2004 16:46:15 -  1.6
  +++ NamingContext.java20 Jul 2005 21:21:30 -  1.7
  @@ -241,8 +241,8 @@
   throws NamingException {
   checkWritable();
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   throw new NamingException
   (sm.getString(namingContext.invalidName));
  @@ -450,8 +450,8 @@
   
   checkWritable();
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   throw new NamingException
   (sm.getString(namingContext.invalidName));
  @@ -586,8 +586,8 @@
   public NameParser getNameParser(Name name)
   throws NamingException {
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   return nameParser;
   
  @@ -637,8 +637,8 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  - prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +prefix = (Name) name.clone();
  +return prefix.addAll(name);
   }
   
   
  @@ -829,8 +829,8 @@
   
   checkWritable();
   
  - while ((!name.isEmpty())  (name.get(0).length() == 0))
  - name = name.getSuffix(1);
  +while ((!name.isEmpty())  (name.get(0).length() == 0))
  +name = name.getSuffix(1);
   if (name.isEmpty())
   throw new NamingException
   (sm.getString(namingContext.invalidName));
  
  
  
  1.3   +5 -5  
jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/SelectorContext.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SelectorContext.java  27 Feb 2004 14:58:53 -  1.2
  +++ SelectorContext.java  20 Jul 2005 21:21:30 -  1.3
  @@ -504,8 +504,8 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  - prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +prefix = (Name) name.clone();
  +return prefix.addAll(name);
   }
   
   
  @@ -651,7 +651,7 @@
   protected String parseName(String name) 
   throws NamingException {
   
  - if ((!initialContext)  (name.startsWith(prefix))) {
  +if ((!initialContext)  (name.startsWith(prefix))) {
   return (name.substring(prefixLength));
   } else {
   if (initialContext) {
  @@ -675,7 +675,7 @@
   protected Name parseName(Name name) 
   throws NamingException {
   
  - if ((!initialContext)  (!name.isEmpty()) 
  +if ((!initialContext)  (!name.isEmpty()) 
(name.get(0).equals(prefix))) {
   return (name.getSuffix(1));
   } else {
  
  
  
  1.6   +10 -10
jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/BaseDirContext.java
  
  Index: BaseDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/BaseDirContext.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BaseDirContext.java   23 Jun 2004 16:59:42 -  1.5
  +++ BaseDirContext.java   20 Jul 2005 21:21:30 -  1.6
  @@ -116,7 +116,7 @@
* Return the document root for this component.
*/
   public String getDocBase() {
  - 

cvs commit: jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java SelectorContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:21:44

  Modified:naming/src/org/apache/naming/modules/cache
ProxyDirContext.java
   naming/src/org/apache/naming/modules/java
SelectorContext.java
  Log:
  Tabs to 8 spaces.
  
  Revision  ChangesPath
  1.4   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java
  
  Index: ProxyDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ProxyDirContext.java  24 Feb 2004 08:58:09 -  1.3
  +++ ProxyDirContext.java  20 Jul 2005 21:21:44 -  1.4
  @@ -607,7 +607,7 @@
   public Name composeName(Name name, Name prefix)
   throws NamingException {
   prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +return prefix.addAll(name);
   }
   
   
  
  
  
  1.6   +4 -4  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SelectorContext.java  24 Feb 2004 08:58:08 -  1.5
  +++ SelectorContext.java  20 Jul 2005 21:21:44 -  1.6
  @@ -500,8 +500,8 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  - prefix = (Name) name.clone();
  - return prefix.addAll(name);
  +prefix = (Name) name.clone();
  +return prefix.addAll(name);
   }
   
   
  @@ -649,7 +649,7 @@
   protected String parseName(String name) 
   throws NamingException {
   
  - if ((!initialContext)  (name.startsWith(prefix))) {
  +if ((!initialContext)  (name.startsWith(prefix))) {
   return (name.substring(prefixLength));
   } else {
   if (initialContext) {
  @@ -673,7 +673,7 @@
   protected Name parseName(Name name) 
   throws NamingException {
   
  - if ((!initialContext)  (!name.isEmpty()) 
  +if ((!initialContext)  (!name.isEmpty()) 
(name.get(0).equals(prefix))) {
   return (name.getSuffix(1));
   } else {
  
  
  

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



Re: binary streaming / content-type problem with mod_jk ?

2005-07-20 Thread Henri Gomez
not true, mod_jk didn't change the mime type provided by servlet output.

I'm doing it on productions servers to handle on the fly generated PDFs

2005/7/20, Jérôme Chauvin [EMAIL PROTECTED]:
 Any ideas ?
 It would be helpful :)
 Thanks,
 
 Jérôme Chauvin
 
 Le 19 juil. 05, à 10:09, Jérôme Chauvin a écrit :
 
  Hi all !
 
  I've developed a servlet (BinaryStreaming based on
  StreamingContent by Raj Behera) which does a binary stream of a mpeg
  video file which is created progressively (by another
  servlet/software/Unix command/... not important ) and finally read and
  played by Quicktime.
  I use Apache and Tomcat so I've installed mod_jk
 
  All work well (- MacOS and Windows) but... :
  If I go on http://localhost:8080/my_test/BinaryStreaming it
  works well with QuickTime 7 and QuickTime 6 (6, 6.5, 6.5.2, ...).
 
  I have mod_jk so I can go on
  http://localhost/my_test/BinaryStreaming   and here it still works
  well with QT7.
  But QT6 seems to wait that the video file is entirely created to start
  the viewing instead of starting to play the movie as soon as there is
  data in it, progressively.
  - like it does with QT7 and QT6 with :8080  OR  when I use QT7
  without :8080.
 
  I think it's due to mod_jk but I've no idea to make it work
 
 
  I've found that another person had a similar problem, but no answer
  was given :
  http://www.junlu.com/msg/107218.html
 
  This message was posted in 09/2004 and it seems that Apache causes
  problems with pre-defined MIME-Types.
 
 
 
  Does someone have an answer or an idea ? :-)
  I really need to fix this ! :(
 
  Thanks in advance.  :o)
 
  Regards,
 
  Jérôme
 
  ---
  Jérôme Chauvin
 
  OPSOMAI
  77, rue de Charonne
  75011 Paris - France
  Tél : +33 (0)1 58 39 38 22
  Fax : +33 (0)1 43 70 70 72
  @ : [EMAIL PROTECTED]
  URL : http://www.opsomai.com


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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources BaseDirContext.java ProxyDirContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:25:19

  Modified:catalina/src/share/org/apache/naming NamingContext.java
SelectorContext.java
   catalina/src/share/org/apache/naming/resources
BaseDirContext.java ProxyDirContext.java
  Log:
  Fix bug 35769. composeName(Name, Name) returns wrong result.
   - Patch provided by Laurent Simon
   - Ported from TC4
  
  Revision  ChangesPath
  1.8   +2 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/NamingContext.java
  
  Index: NamingContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/NamingContext.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NamingContext.java20 Jul 2005 21:21:30 -  1.7
  +++ NamingContext.java20 Jul 2005 21:25:18 -  1.8
  @@ -637,7 +637,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.4   +2 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/SelectorContext.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SelectorContext.java  20 Jul 2005 21:21:30 -  1.3
  +++ SelectorContext.java  20 Jul 2005 21:25:18 -  1.4
  @@ -504,7 +504,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.7   +2 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/BaseDirContext.java
  
  Index: BaseDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/BaseDirContext.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- BaseDirContext.java   20 Jul 2005 21:21:30 -  1.6
  +++ BaseDirContext.java   20 Jul 2005 21:25:18 -  1.7
  @@ -595,7 +595,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.18  +2 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/ProxyDirContext.java
  
  Index: ProxyDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/ProxyDirContext.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ProxyDirContext.java  20 Jul 2005 21:21:30 -  1.17
  +++ ProxyDirContext.java  20 Jul 2005 21:25:18 -  1.18
  @@ -685,7 +685,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  

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



cvs commit: jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java SelectorContext.java

2005-07-20 Thread markt
markt   2005/07/20 14:25:45

  Modified:naming/src/org/apache/naming/core BaseContext.java
   naming/src/org/apache/naming/modules/cache
ProxyDirContext.java
   naming/src/org/apache/naming/modules/java
SelectorContext.java
  Log:
  Fix bug 35769. composeName(Name, Name) returns wrong result.
   - Patch provided by Laurent Simon
   - Ported from TC4
  
  Revision  ChangesPath
  1.6   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseContext.java
  
  Index: BaseContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/core/BaseContext.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BaseContext.java  24 Feb 2004 08:58:08 -  1.5
  +++ BaseContext.java  20 Jul 2005 21:25:44 -  1.6
  @@ -414,7 +414,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.5   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java
  
  Index: ProxyDirContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/cache/ProxyDirContext.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ProxyDirContext.java  20 Jul 2005 21:21:44 -  1.4
  +++ ProxyDirContext.java  20 Jul 2005 21:25:44 -  1.5
  @@ -606,7 +606,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  
  1.7   +1 -1  
jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java
  
  Index: SelectorContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/naming/src/org/apache/naming/modules/java/SelectorContext.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SelectorContext.java  20 Jul 2005 21:21:44 -  1.6
  +++ SelectorContext.java  20 Jul 2005 21:25:45 -  1.7
  @@ -500,7 +500,7 @@
*/
   public Name composeName(Name name, Name prefix)
   throws NamingException {
  -prefix = (Name) name.clone();
  +prefix = (Name) prefix.clone();
   return prefix.addAll(name);
   }
   
  
  
  

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



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

2005-07-20 Thread markt
markt   2005/07/20 14:28:31

  Modified:webapps/docs changelog.xml
  Log:
  Update changelog for bug 35769 fix.
  
  Revision  ChangesPath
  1.323 +4 -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.322
  retrieving revision 1.323
  diff -u -r1.322 -r1.323
  --- changelog.xml 20 Jul 2005 09:45:14 -  1.322
  +++ changelog.xml 20 Jul 2005 21:28:31 -  1.323
  @@ -172,6 +172,10 @@
   Fix handling of symbolic links when the DefaultServlet is generating 
directory
   listings. (markt)
 /fix
  +  fix
  +bug35769/bug: Correct implementation of 
javax.naming.Context.composeName( Name, Name)
  +in multiple places. Patch provided by Laurent Simon. (markt)
  +  /fix
   /changelog
 /subsection
 
  
  
  

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



DO NOT REPLY [Bug 35769] - Wrong implementation of javax.naming.Context.composeName

2005-07-20 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=35769.
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=35769


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-07-20 23:28 ---
I have applied to the fix to 4.1.x and 5.5.x

Many thanks for the patch.

-- 
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: How to do authentication and secure line HTTPS (SSL)

2005-07-20 Thread Mark Thomas
Please post this, and any other requests relating to the usage of Tomcat 
rather than the development of Tomcat, to the tomcat-user list.


Mark



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



Re: New tag ?

2005-07-20 Thread Remy Maucherat

Bill Barker wrote:

Hi,

I think the APR capabilities that we added are now sufficiently stable
to warrant testing. If the other areas that saw changes recently
(clustering, JK) are ok too, then it could be a good idea to release a
new build.


JK should be fine.  I've been pretty careful with the changes.


I was referring to the NIO channel which is marked as experimental in 
the changelog.



It would be nice to fix BZ 35696 (since it's a spec issue).  I'll see if I
can get some time to look at it.


Ok.

Rémy

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



inprocess Tomcat/apache via mod_jk

2005-07-20 Thread Christine Ho
Hi,
   I tried to setup Tomcat 5.5.9 running inside the
apache server 2.x via the mod_jk on RHEL4. I got the
following error:
[debug] open_jvm2::jk_jni_worker.c (1055): JVM created
[emerg] get_bridge_object::jk_jni_worker.c (1097):
Can't find class
org/apache/tomcat/modules/server/JNIEndpoint

I looked at the mod_jk source codes and found out that
the mod_jk supports the TC32_BRIDGE_TYPE and
TC33_BRIDGE_TYPE. It doesnt support bridge type of
tomcat 4.x and up. Plus the tomcat 5.5.9 doesnt have
the JNIEndpoint.class.

However, it seems to me that the deprecated mod_jk2
supports bridge type of tomcat 4.x and up because it
tries to instantiate the class
org/apache/jk/apr/TomcatStarter.class which exists in
tomcat-ajp.jar. 

I really dont understand why the mod_jk supports
tomcat 3.x only whereas the deprecated mod_jk2
supports tomcat 4.x and 5.x. Can somebody please tell
me why? 

Also is it easy to have mod_jk to support
TC55_BRIDGE_TYPE? Based on the mod_jk source codes
jk_jni_worker.c, I think I just need to define the
TC55_JAVA_BRIDGE_CLASS_NAME to be
org/apache/jk/apr/TomcatStarter.class and then assign
it to the btype. Is it just that simple?

Another question is what the disadvantages of running
tomcat inside the apache are. I googled and it seems
to me that not too many people try to run inprocess
tomcat inside apache. I would be interested in adding
the 5.5 bridge type to the mod_jk.

thanks,
Christine


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

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



Support JSS in Tomcat

2005-07-20 Thread Christine Ho
Hi,
  Tomcat 5.5.x supports JSSE only. I am working on web
application which uses JSS
(http://www.mozilla.org/projects/security/pki/jss/javadoc/)
I need to run the web application on Tomcat 5.x. I
implemented the JSSSocketFactory.java, JSSSupport.java
etc in the new package called
org.apache.tomcat.util.net.jss. I tried to specify the
SocketFactory class in server.xml but it doesnt work.
I thought we can do something like that:

Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5
maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https
secure=true
  Factory
className=org.apache.tomcat.util.net.jss.JSSServerSocketFactory
   clientAuth=false protocol=SSL/
/Connector

It doesnt work at all. I looked at the source code and
found out that SSLImplementationName is always null.
Currently, I have to change the implementations array
in SSLImplementation.java to include my implementation
class which is JSSImplementationClass. Then recompiled
the tomcat and it works. I just wonder if I overlook
some of the configuration parameters in server.xml. If
the server.xml in tomcat 5.5 does not support the
Factory parameter, then I would like to modify the
codes to support this feature. Therefore i dont need
to recompile the tomcat to include my
SSLServerSocketFactory implementation. Also I would
like to contribute my codes for the JSS
ServerSocketFactory implementation if you are
interested.

Christine




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: New tag ?

2005-07-20 Thread Bill Barker

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Developers List tomcat-dev@jakarta.apache.org
Sent: Wednesday, July 20, 2005 2:47 PM
Subject: Re: New tag ?


Bill Barker wrote:
Hi,

I think the APR capabilities that we added are now sufficiently stable
to warrant testing. If the other areas that saw changes recently
(clustering, JK) are ok too, then it could be a good idea to release a
new build.

 JK should be fine.  I've been pretty careful with the changes.

I was referring to the NIO channel which is marked as experimental in
the changelog.

Well, it's still flakey on Windows ;-).  AFAIK the NIO channel only works
well on one (obsolete :) O/S.  I think experimental is still a good
description for it.  Since it needs to be explicitly enabled, it won't
affect the stability of JK for users that don't want to try it, and there is
no good reason to hold up a release just for it.


 It would be nice to fix BZ 35696 (since it's a spec issue).  I'll see if
I
 can get some time to look at it.

Ok.

Rémy




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: Support JSS in Tomcat

2005-07-20 Thread Bill Barker
The Factory element is deprecated in TC 5.x.  In particular, you can't use
it to specify a SocketFactory.

You pass the FQN of your SSLImplementation to the Connector with something
like:
  Connector protocol=HTTP/1.1 port=8443 secure=true scheme=https
sslProtocol=SSL

sSLImplementation=org.apache.tomcat.util.net.jss.JSSImplementationClass /

I'd be happy to review your implementation (assuming that the licensing is
compatible with ASF) if you want to submit it.  The easiest way is to open a
BZ enhancement request and attach your code to that.

- Original Message -
From: Christine Ho [EMAIL PROTECTED]
To: tomcat-dev@jakarta.apache.org
Sent: Wednesday, July 20, 2005 4:54 PM
Subject: Support JSS in Tomcat


Hi,
  Tomcat 5.5.x supports JSSE only. I am working on web
application which uses JSS
(http://www.mozilla.org/projects/security/pki/jss/javadoc/)
I need to run the web application on Tomcat 5.x. I
implemented the JSSSocketFactory.java, JSSSupport.java
etc in the new package called
org.apache.tomcat.util.net.jss. I tried to specify the
SocketFactory class in server.xml but it doesnt work.
I thought we can do something like that:

Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5
maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 scheme=https
secure=true
  Factory
className=org.apache.tomcat.util.net.jss.JSSServerSocketFactory
   clientAuth=false protocol=SSL/
/Connector

It doesnt work at all. I looked at the source code and
found out that SSLImplementationName is always null.
Currently, I have to change the implementations array
in SSLImplementation.java to include my implementation
class which is JSSImplementationClass. Then recompiled
the tomcat and it works. I just wonder if I overlook
some of the configuration parameters in server.xml. If
the server.xml in tomcat 5.5 does not support the
Factory parameter, then I would like to modify the
codes to support this feature. Therefore i dont need
to recompile the tomcat to include my
SSLServerSocketFactory implementation. Also I would
like to contribute my codes for the JSS
ServerSocketFactory implementation if you are
interested.

Christine




Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs


-
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: Support JSS in Tomcat

2005-07-20 Thread Christine Ho
Thanks. It works.

JSS can be used under either Mozilla Public License
(MPL) or LGPL. Is MPL or LGPL compatible with ASF
license? The good thing about JSS is that it is
FIPS-140 compliant.
 
Christine

--- Bill Barker [EMAIL PROTECTED] wrote:

 The Factory element is deprecated in TC 5.x.  In
 particular, you can't use
 it to specify a SocketFactory.
 
 You pass the FQN of your SSLImplementation to the
 Connector with something
 like:
   Connector protocol=HTTP/1.1 port=8443
 secure=true scheme=https
 sslProtocol=SSL
 

sSLImplementation=org.apache.tomcat.util.net.jss.JSSImplementationClass
 /
 
 I'd be happy to review your implementation (assuming
 that the licensing is
 compatible with ASF) if you want to submit it.  The
 easiest way is to open a
 BZ enhancement request and attach your code to that.
 
 - Original Message -
 From: Christine Ho [EMAIL PROTECTED]
 To: tomcat-dev@jakarta.apache.org
 Sent: Wednesday, July 20, 2005 4:54 PM
 Subject: Support JSS in Tomcat
 
 
 Hi,
   Tomcat 5.5.x supports JSSE only. I am working on
 web
 application which uses JSS

(http://www.mozilla.org/projects/security/pki/jss/javadoc/)
 I need to run the web application on Tomcat 5.x. I
 implemented the JSSSocketFactory.java,
 JSSSupport.java
 etc in the new package called
 org.apache.tomcat.util.net.jss. I tried to specify
 the
 SocketFactory class in server.xml but it doesnt
 work.
 I thought we can do something like that:
 
 Connector

className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5
 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https
 secure=true
   Factory

className=org.apache.tomcat.util.net.jss.JSSServerSocketFactory
clientAuth=false protocol=SSL/
 /Connector
 
 It doesnt work at all. I looked at the source code
 and
 found out that SSLImplementationName is always null.
 Currently, I have to change the implementations
 array
 in SSLImplementation.java to include my
 implementation
 class which is JSSImplementationClass. Then
 recompiled
 the tomcat and it works. I just wonder if I overlook
 some of the configuration parameters in server.xml.
 If
 the server.xml in tomcat 5.5 does not support the
 Factory parameter, then I would like to modify the
 codes to support this feature. Therefore i dont need
 to recompile the tomcat to include my
 SSLServerSocketFactory implementation. Also I would
 like to contribute my codes for the JSS
 ServerSocketFactory implementation if you are
 interested.
 
 Christine
 
 
 
 
 Start your day with Yahoo! - make it your home page
 http://www.yahoo.com/r/hs
 
 

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





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



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

2005-07-20 Thread billbarker
billbarker2005/07/20 20:59:10

  Modified:jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  Make certain that release is called for custom tags when tag-pooling is 
disabled.
  
  Fix for Bug #35696
  
  Revision  ChangesPath
  1.241 +9 -2  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java
  
  Index: Generator.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.240
  retrieving revision 1.241
  diff -u -r1.240 -r1.241
  --- Generator.java5 Apr 2005 23:14:43 -   1.240
  +++ Generator.java21 Jul 2005 03:59:10 -  1.241
  @@ -2278,15 +2278,19 @@
   out.printin(if ();
   out.print(tagHandlerVar);
   out.println(
  -.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE));
  +.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {);
   out.pushIndent();
  +if(!n.implementsTryCatchFinally()) {
  +out.printin(tagHandlerVar);
  +out.println(.release(););
  +}
   if (isTagFile || isFragment) {
   out.printil(throw new SkipPageException(););
   } else {
   out.printil((methodNesting  0) ? return true; : 
return;);
   }
   out.popIndent();
  -
  +out.printil(});
   // Synchronize AT_BEGIN scripting variables
   syncScriptingVars(n, VariableInfo.AT_BEGIN);
   
  @@ -2317,6 +2321,9 @@
   out.print(.reuse();
   out.print(tagHandlerVar);
   out.println(););
  +} else {
  +out.printin(tagHandlerVar);
  +out.println(.release(););
   }
   
   if (n.implementsTryCatchFinally()) {
  
  
  

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



DO NOT REPLY [Bug 35696] - Jasper does not call relase method for non pool custom jsp tags

2005-07-20 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=35696.
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=35696


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-07-21 06:00 ---
This is fixed in the CVS, and will appear in 5.5.10

-- 
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-catalina/webapps/docs changelog.xml

2005-07-20 Thread billbarker
billbarker2005/07/20 21:12:33

  Modified:webapps/docs changelog.xml
  Log:
  Doc changes
  
  Revision  ChangesPath
  1.324 +7 -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.323
  retrieving revision 1.324
  diff -u -r1.323 -r1.324
  --- changelog.xml 20 Jul 2005 21:28:31 -  1.323
  +++ changelog.xml 21 Jul 2005 04:12:33 -  1.324
  @@ -211,6 +211,9 @@
 add
   Apache Portable Runtime based AJP/1.3 protocol handler (remm)
 /add
  +  fix
  +Delay reading the inital request body packet by default for the 
AJP/1.3 Java connector. (billbarker)
  +  /fix
/changelog
 /subsection
   
  @@ -236,6 +239,10 @@
 fix
   bug34465/bug: Jspc failure if there is no web.xml (remm)
 /fix
  +  fix
  +bug35696/bug: Make certain that release is called for custom 
tags 
  + when tag-pooling is disabled. (billbarker)
  +  /fix
   /changelog
 /subsection
 
  
  
  

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