cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java

2005-05-27 Thread remm
remm2005/05/27 01:26:38

  Modified:util/java/org/apache/tomcat/util/net AprEndpoint.java
  Log:
  - If not using sendfile, don't allocate sebdfile resources.
  
  Revision  ChangesPath
  1.36  +11 -7 
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.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- AprEndpoint.java  26 May 2005 18:34:50 -  1.35
  +++ AprEndpoint.java  27 May 2005 08:26:38 -  1.36
  @@ -445,12 +445,14 @@
   pollerThread.start();
   
   // Start sendfile thread
  -sendfile = new Sendfile();
  -sendfile.init();
  -sendfileThread = new Thread(sendfile, getName() + -Sendfile);
  -sendfileThread.setPriority(getThreadPriority());
  -sendfileThread.setDaemon(true);
  -sendfileThread.start();
  +if (useSendfile) {
  +sendfile = new Sendfile();
  +sendfile.init();
  +sendfileThread = new Thread(sendfile, getName() + 
-Sendfile);
  +sendfileThread.setPriority(getThreadPriority());
  +sendfileThread.setDaemon(true);
  +sendfileThread.start();
  +}
   }
   }
   
  @@ -485,7 +487,9 @@
   running = false;
   unlockAccept();
   poller.destroy();
  -sendfile.destroy();
  +if (useSendfile) {
  +sendfile.destroy();
  +}
   acceptorThread = null;
   pollerThread = null;
   sendfileThread = null;
  
  
  

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



[MSK-31466]: cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java

2005-05-27 Thread Technical Support
== Please reply above this line ==

tomcat-dev@jakarta.apache.org,

Your request for technical support has been submitted.

You will receive a response via e-mail within
two business days (excluding holidays).

Your problem or question will receive the attention it deserves.  Listed below 
are details of this ticket.  You will need to use the ticket key listed below 
to update the status of this ticket from web.

Ticket ID: MSK-31466
Ticket Key: 48e8f695
Subject: cvs commit: 
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java
Department: Technical Support

You can check the status or reply to this ticket online at 
http://assist.mediafour.com/index.php?_a=tickets_m=viewmain[EMAIL 
PROTECTED]ticketkeyre=48e8f695_i=MSK-31466

** Assistance from Mediafour representatives and
** other users is available at:

** http://forums.mediafour.com


We are dedicated to making great software. If you feel that your request is not 
handled well or in a timely manner, please contact: [EMAIL PROTECTED]

Please let us know if we can be of further assistance,

Team Mediafour

cvs commit: jakarta-tomcat-catalina/catalina/src/conf server.xml

2005-05-27 Thread remm
remm2005/05/27 02:41:38

  Modified:catalina/src/share/org/apache/catalina/core
StandardServer.java LocalStrings.properties
   catalina/src/conf server.xml
  Added:   catalina/src/share/org/apache/catalina/core
AprLifecycleListener.java
  Log:
  - Add a listener for handling APR init/shutdown.
  - Unfortunately, some hacks remain in the Connector class, as the protocol
handler is instantiated too early right now. Fixing it is not urgent, 
though.
  
  Revision  ChangesPath
  1.44  +2 -1  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardServer.java
  
  Index: StandardServer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- StandardServer.java   18 Apr 2005 22:02:02 -  1.43
  +++ StandardServer.java   27 May 2005 09:41:38 -  1.44
  @@ -734,6 +734,7 @@
   
log.info(sm.getString(standardServer.initialize.initialized));
   return;
   }
  +lifecycle.fireLifecycleEvent(INIT_EVENT, null);
   initialized = true;
   
   if( oname==null ) {
  
  
  
  1.22  +2 -0  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/LocalStrings.properties,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- LocalStrings.properties   3 May 2005 17:24:10 -   1.21
  +++ LocalStrings.properties   27 May 2005 09:41:38 -  1.22
  @@ -14,6 +14,8 @@
   applicationRequest.badRequest=Request is not a 
javax.servlet.ServletRequestWrapper
   applicationResponse.badParent=Cannot locate parent Response implementation
   applicationResponse.badResponse=Response is not a 
javax.servlet.ServletResponseWrapper
  +aprListener.aprInit=The Apache Portable Runtime which allows optimal 
performance in production environments was not found on the java.library.path: 
{0}
  +aprListener.aprDestroy=Failed shutdown of Apache Portable Runtime
   containerBase.addDefaultMapper=Exception configuring default mapper of class 
{0}
   containerBase.alreadyStarted=Container {0} has already been started
   containerBase.notConfigured=No basic Valve has been configured
  
  
  
  1.1  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java
  
  Index: AprLifecycleListener.java
  ===
  /*
   * Copyright 2002,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the License);
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *  http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an AS IS BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.catalina.core;
  
  
  import java.lang.reflect.Method;
  import org.apache.catalina.Lifecycle;
  import org.apache.catalina.LifecycleEvent;
  import org.apache.catalina.LifecycleListener;
  import org.apache.catalina.util.StringManager;
  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
  
  
  /**
   * Implementation of codeLifecycleListener/code that will init and
   * and destroy APR.
   *
   * @author Remy Maucherat
   * @version $Revision: 1.1 $ $Date: 2005/05/27 09:41:38 $
   * @since 4.1
   */
  
  public class AprLifecycleListener
  implements LifecycleListener {
  
  private static Log log = LogFactory.getLog(AprLifecycleListener.class);
  
  /**
   * The string manager for this package.
   */
  protected StringManager sm =
  StringManager.getManager(Constants.Package);
  
  // -- LifecycleListener 
Methods
  
  
  /**
   * Primary entry point for startup and shutdown events.
   *
   * @param event The event that has occurred
   */
  public void lifecycleEvent(LifecycleEvent event) {
  
  if (Lifecycle.INIT_EVENT.equals(event.getType())) {
  try {
  String methodName = initialize;
  Class paramTypes[] = new Class[1];
  paramTypes[0] = String.class;
  Object paramValues[] = 

cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni Library.java

2005-05-27 Thread remm
remm2005/05/27 03:04:43

  Modified:catalina/src/share/org/apache/catalina/core
AprLifecycleListener.java
   jni/java/org/apache/tomcat/jni Library.java
  Log:
  - terminate(boolean) - terminate().
  
  Revision  ChangesPath
  1.2   +3 -7  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java
  
  Index: AprLifecycleListener.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/AprLifecycleListener.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AprLifecycleListener.java 27 May 2005 09:41:38 -  1.1
  +++ AprLifecycleListener.java 27 May 2005 10:04:43 -  1.2
  @@ -78,13 +78,9 @@
   } else if (Lifecycle.AFTER_STOP_EVENT.equals(event.getType())) {
   try {
   String methodName = terminate;
  -Class paramTypes[] = new Class[1];
  -paramTypes[0] = Boolean.TYPE;
  -Object paramValues[] = new Object[1];
  -paramValues[0] = Boolean.TRUE;
   Method method = 
Class.forName(org.apache.tomcat.jni.Library)
  -.getMethod(methodName, paramTypes);
  -method.invoke(null, paramValues);
  +.getMethod(methodName, null);
  +method.invoke(null, null);
   } catch (Throwable t) {
   if (!log.isDebugEnabled()) {
   log.info(sm.getString(aprListener.aprDestroy));
  
  
  
  1.5   +2 -14 
jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Library.java
  
  Index: Library.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Library.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Library.java  16 Apr 2005 09:17:38 -  1.4
  +++ Library.java  27 May 2005 10:04:43 -  1.5
  @@ -68,7 +68,7 @@
   /* destroy global TCN's APR pool
* This has to be the last call to TCN library.
*/
  -private static native void terminate();
  +public static native void terminate();
   /* Internal function for loading APR Features */
   private static native boolean has(int what);
   /* Internal function for loading APR Features */
  @@ -196,16 +196,4 @@
   return initialize();
   }
   
  -/**
  - * Tear down any APR internal data structures which aren't torn down
  - * automatically.
  - * An APR program must call this function at termination once it
  - * has stopped using APR services.
  - */
  -static public void terminate(boolean doCleanup)
  -{
  -terminate();
  -/* TODO: doCleanup code */
  -}
  -
   }
  
  
  

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



cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11AprProtocol.java

2005-05-27 Thread remm
remm2005/05/27 08:40:23

  Modified:http11/src/java/org/apache/coyote/http11
Http11AprProtocol.java
  Log:
  - Call endpoint.destroy on destroy.
  
  Revision  ChangesPath
  1.8   +1 -1  
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java
  
  Index: Http11AprProtocol.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Http11AprProtocol.java26 May 2005 14:43:09 -  1.7
  +++ Http11AprProtocol.java27 May 2005 15:40:23 -  1.8
  @@ -198,7 +198,7 @@
   public void destroy() throws Exception {
   if(log.isInfoEnabled())
   log.info(sm.getString(http11protocol.stop, getName()));
  -ep.stop();
  +ep.destroy();
   if( tpOname!=null )
   Registry.getRegistry(null, null).unregisterComponent(tpOname);
   if( rgOname != null )
  
  
  

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



cvs commit: jakarta-tomcat-connectors/jni/native/src pool.c

2005-05-27 Thread mturk
mturk   2005/05/27 09:38:09

  Modified:jni/native/src pool.c
  Log:
  Make sure our global pool is accessor for all the pools.
  
  Revision  ChangesPath
  1.5   +7 -2  jakarta-tomcat-connectors/jni/native/src/pool.c
  
  Index: pool.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/pool.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- pool.c24 May 2005 09:24:40 -  1.4
  +++ pool.c27 May 2005 16:38:09 -  1.5
  @@ -18,11 +18,13 @@
* @author Mladen Turk
* @version $Revision$, $Date$
*/
  - 
  +
   #include apr.h
   #include apr_pools.h
   #include tcn.h
   
  +extern apr_pool_t *tcn_global_pool;
  +
   static apr_status_t generic_pool_cleanup(void *data)
   {
   apr_status_t rv = APR_SUCCESS;
  @@ -45,6 +47,9 @@
   apr_pool_t *n;
   
   UNREFERENCED(o);
  +/* Make sure our global pool is accessor for all pools */
  +if (p == NULL)
  +p = tcn_global_pool;
   TCN_THROW_IF_ERR(apr_pool_create(n, p), n);
   cleanup:
   return P2J(n);
  
  
  

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



cvs commit: jakarta-tomcat-connectors/jni/native/src jnilib.c network.c poll.c

2005-05-27 Thread mturk
mturk   2005/05/27 09:39:13

  Modified:jni/native/include tcn.h
   jni/native/src jnilib.c network.c poll.c
  Log:
  Add statistics data that is compiled in only if -DTCN_DO_STATISTICS
  is defined at compile time.
  
  Revision  ChangesPath
  1.6   +5 -3  jakarta-tomcat-connectors/jni/native/include/tcn.h
  
  Index: tcn.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/include/tcn.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- tcn.h 24 May 2005 09:24:39 -  1.5
  +++ tcn.h 27 May 2005 16:39:13 -  1.6
  @@ -18,7 +18,7 @@
* @author Mladen Turk
* @version $Revision$, $Date$
*/
  - 
  +
   #ifndef TCN_H
   #define TCN_H
   
  @@ -138,5 +138,7 @@
   
   typedef struct tcn_callback tcn_callback_t;
   
  -
  +#ifdef TCN_DO_STATISTICS
  +#define TCN_MAX(a, b) ((a)  (b) ? (a) : (b))
  +#endif
   #endif /* TCN_H */
  
  
  
  1.5   +17 -4 jakarta-tomcat-connectors/jni/native/src/jnilib.c
  
  Index: jnilib.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/jnilib.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jnilib.c  24 May 2005 09:24:40 -  1.4
  +++ jnilib.c  27 May 2005 16:39:13 -  1.5
  @@ -18,7 +18,7 @@
* @author Mladen Turk
* @version $Revision$, $Date$
*/
  - 
  +
   #include apr.h
   #include apr_pools.h
   #include apr_version.h
  @@ -30,6 +30,10 @@
   #include tcn.h
   #include tcn_version.h
   
  +#ifdef TCN_DO_STATISTICS
  +extern void sp_poll_dump_statistics();
  +extern void sp_network_dump_statistics();
  +#endif
   
   apr_pool_t *tcn_global_pool = NULL;
   static JavaVM *tcn_global_vm = NULL;
  @@ -44,7 +48,7 @@
   JNIEnv *env;
   
   UNREFERENCED(reserved);
  -if ((*vm)-GetEnv(vm, (void **)env, JNI_VERSION_1_2)) {
  +if ((*vm)-GetEnv(vm, (void **)env, JNI_VERSION_1_4)) {
   return JNI_ERR;
   }
   tcn_global_vm = vm;
  @@ -63,7 +67,7 @@
   return JNI_ERR;
   
   apr_initialize();
  -return  JNI_VERSION_1_2;
  +return  JNI_VERSION_1_4;
   }
   
   
  @@ -73,6 +77,7 @@
   JNIEnv *env;
   
   UNREFERENCED(reserved);
  +
   if ((*vm)-GetEnv(vm, (void **)env, JNI_VERSION_1_2)) {
   return;
   }
  @@ -161,8 +166,16 @@
   
   UNREFERENCED_STDARGS;
   if (tcn_global_pool) {
  +#ifdef TCN_DO_STATISTICS
  +fprintf(stderr, APR Statistical data \n);
  +#endif
   apr_pool_destroy(tcn_global_pool);
   tcn_global_pool = NULL;
  +#ifdef TCN_DO_STATISTICS
  +sp_poll_dump_statistics();
  +sp_network_dump_statistics();
  +fprintf(stderr, APR Terminated\n);
  +#endif
   }
   }
   
  
  
  
  1.21  +51 -3 jakarta-tomcat-connectors/jni/native/src/network.c
  
  Index: network.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/network.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- network.c 24 May 2005 09:24:40 -  1.20
  +++ network.c 27 May 2005 16:39:13 -  1.21
  @@ -18,12 +18,19 @@
* @author Mladen Turk
* @version $Revision$, $Date$
*/
  - 
  +
   #include apr.h
   #include apr_pools.h
   #include apr_network_io.h
  +#include apr_portable.h
   #include tcn.h
   
  +#ifdef TCN_DO_STATISTICS
  +static int sp_created  = 0;
  +static int sp_closed   = 0;
  +static int sp_cleared  = 0;
  +static int sp_accepted = 0;
  +#endif
   
   #if  !APR_HAVE_IPV6
   #define APR_INET6 APR_INET
  @@ -40,6 +47,25 @@
   else if (F == 1) T = SOCK_DGRAM; \
   else T = F
   
  +#ifdef TCN_DO_STATISTICS
  +
  +static apr_status_t sp_socket_cleanup(void *data)
  +{
  +sp_cleared++;
  +return APR_SUCCESS;
  +}
  +
  +void sp_network_dump_statistics()
  +{
  +fprintf(stderr, Network Statistics ..\n);
  +fprintf(stderr, Sockets created : %d\n, sp_created);
  +fprintf(stderr, Sockets accepted: %d\n, sp_accepted);
  +fprintf(stderr, Sockets closed  : %d\n, sp_closed);
  +fprintf(stderr, Sockets cleared : %d\n, sp_cleared);
  +}
  +
  +#endif
  +
   TCN_IMPLEMENT_CALL(jlong, Address, info)(TCN_STDARGS,
jstring hostname,
jint family, jint port,
  @@ -138,6 +164,13 @@
   TCN_THROW_IF_ERR(apr_socket_create(s,
f, t, protocol, p), s);
   
  +#ifdef TCN_DO_STATISTICS
  +sp_created++;
  +apr_pool_cleanup_register(p, (const void *)s,
  +  sp_socket_cleanup,
  +  apr_pool_cleanup_null);
  +#endif
  +
   cleanup:
   return P2J(s);
   
  @@ -159,6 +192,12 @@
   
   

cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java

2005-05-27 Thread mturk
mturk   2005/05/27 09:45:56

  Modified:util/java/org/apache/tomcat/util/net AprEndpoint.java
  Log:
  Just a comment change for TCP_DEFER_ACCEPT.
  No functional change.
  
  Revision  ChangesPath
  1.37  +2 -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.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- AprEndpoint.java  27 May 2005 08:26:38 -  1.36
  +++ AprEndpoint.java  27 May 2005 16:45:56 -  1.37
  @@ -409,7 +409,8 @@
   }
   
   // Delay accepting of new connections until data is available
  -// TODO: Make that configurable   
  +// Only Linux kernels 2.4 + have that implemented
  +// on other platforms this call is noop and will return APR_ENOTIMPL.
Socket.optSet(serverSock, Socket.APR_TCP_DEFER_ACCEPT, 1);
   
   initialized = true;
  
  
  

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



DO NOT REPLY [Bug 35038] - After login tomcat throws Broken Pipe.

2005-05-27 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=35038.
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=35038





--- Additional Comments From [EMAIL PROTECTED]  2005-05-28 03:04 ---
(In reply to comment #2)
 Hi,
 Thanks for your valuable information. We can't update the Tomcat version. 
 Because it came along with the Product (Documentum4.i). 

It's theoretically possible to update the Connector only, but I don't know of 
anybody that has tried it in a very long time. Probably easier is to front 
your app with Apache and mod_jk.  Prior to 3.3.2, the stand-alone Connector 
isn't really suitable for production use.

 Now i want to clarify only one thing. 
 In our home page contains 5 frame set. We are facing this issue (Broken 
pipe) 
 only in the Header Frame set. Rest of the frame are displaing correctly. 
 How it is possible?
 User confirm that, she didn't press the stop button.
 Thanks,

Well, modern browsers (esp. ones from MS) can get confused when presented with 
frames and a HTTP/1.0 server.  If you disable the use of HTTP/1.1 in the 
browser, it may work better (at the expense of much worse performance on all 
other sites).

The problem is that with HTTP/1.0, the browser needs to open a new Socket 
connection to retrieve each part of the frame, and they don't like this 
anymore than your server does.  What is probably happening is that the browser 
is attempting to use the keep-alive extension to HTTP/1.0, and giving up in 
disgust when it discovers that the (now deprecated) Http10Connector doesn't 
support it.

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



What to do now

2005-05-27 Thread Bill Barker
Now that we are officially a TLP (and, by the way, congrats Remy :), what is 
the migration strategy?


I'm assuming that we'll need to do a new 'ci' on all of what once was 
jakarta-tomcat*, but did jakarta-servletapi* and jakarta-watchdog* follow 
us?





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: What to do now

2005-05-27 Thread Bill Barker


- Original Message - 
From: Bill Barker [EMAIL PROTECTED]

To: Tomcat Developers List tomcat-dev@jakarta.apache.org
Sent: Friday, May 27, 2005 6:43 PM
Subject: What to do now


Now that we are officially a TLP (and, by the way, congrats Remy :), what 
is

the migration strategy?

I'm assuming that we'll need to do a new 'ci' on all of what once was
jakarta-tomcat*, but did jakarta-servletapi* and jakarta-watchdog* follow
us?



s/ci/co/





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] 




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]

rfe

2005-05-27 Thread Albretch Mueller
 I was wondering if any one other than me has had the need to use a run-time
'before-bootstrapping' and 'cleaning-after-at-the-very-end' type of
functionality.

 I have been using it all along in my webapps and I think it is really
useful to the point that, it should be included in the Tomcat as a
'standard' hack or extra functionality.

 I have used it primarily to:
 1._ read in at run time security sensitive settings that I am not
comfortable with declaring in server.xml, web.xml or in any other config
file in the file system (yes, I am a healthy paranoid (I have plenty of
reasons to be like that))
 2._ to create RAM based tables for session handling using hsqldb (you
should still save your sessions in the back end and reload them to the front
end ram based tables)

 This is what I have been doing the monkey way:

 1._ gone to the source org.apache.catalina.startup.BootStrap.main and
  1.1_ inserted my code right after the method signature to make sure
absolute nothing has been previously staged by the VM
  1.2_ with the necessary import declarations if needed
  1.3_ recompile and jarred everything as 'bootstrap02.jar'

 2._ removed 'bootstrap.jar' and placed 'bootstrap02.jar' in
$CATALINA_HOME/bin/

 3._ commented out the 'CLASSPATH' setting in catalina.[bat|sh]
rem set CLASSPATH=%CLASSPATH%;%CATALINA_HOME%\bin\bootstrap.jar
#
CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/b
in/commons-logging-api.jar

 changing 'bootstrap.jar' for 'bootstrap02.jar'

 4._ the line in which the JVM process is started

exec $_RUNJAVA $JAVA_OPTS $CATALINA_OPTS \
  -classpath $CLASSPATH \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.home=$CATALINA_HOME \
  -Djava.io.tmpdir=$CATALINA_TMPDIR \
  org.apache.catalina.startup.Bootstrap $@ start

 or something similar depending on how you startup TC should be echoed (this
should be standard too)

 Interface EntryExit{
  public boolean doFirst();
  public boolean doLast();
 }

 then a class -which name should be convened upon-, say '_firstandlast',
should implement the EntryExit interface and used at tomcat bootstrapping
process as a command object and then discarded.

 If possible, no trace should be left of this object in memory and only its
actions/secondary effects should be staged for this run time only. This is
not an object to keep around

 Then people could code around inside of the doFirst() method of this
command object, which will be invoked at startup and doLast() which will be
invoked when TC shuts down

 If TC does not find this object at startup/shutdown it simply bypasses the
step in either ...Bootstrap.class or at the very end of the code segment of
org.apache.catalina.startup.Catalina$CatalinaShutdownHook(?) when
_firstandlast.doLast() should be called.

 I guess I could just do it myself in TC source code, but it is better if we
just spec out the feature and tell our hearts for people keeping a mental
map of this code base to give it some thoughts and streamline this feature,
some issues would be security relating to differing contexts and class
loaders ones.

 lbrtchx



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