cvs commit: jakarta-tomcat-4.0/webapps/admin/realm jdbcRealm.jsp jndiRealm.jsp memoryRealm.jsp userDatabaseRealm.jsp

2002-05-02 Thread manveen

manveen 02/05/03 00:16:58

  Modified:webapps/admin/realm jdbcRealm.jsp jndiRealm.jsp
memoryRealm.jsp userDatabaseRealm.jsp
  Log:
  Add a check if the realm can be deleted or not.
  
  Revision  ChangesPath
  1.4   +4 -1  jakarta-tomcat-4.0/webapps/admin/realm/jdbcRealm.jsp
  
  Index: jdbcRealm.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/realm/jdbcRealm.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jdbcRealm.jsp 24 Mar 2002 04:13:24 -  1.3
  +++ jdbcRealm.jsp 3 May 2002 07:16:58 -   1.4
  @@ -23,6 +23,7 @@
 
 
 
  +  
   
 
   
  @@ -42,10 +43,12 @@
 
- 
 
  +  
  

  - 
  + 
  +   
  
 

  
  
  
  1.4   +4 -1  jakarta-tomcat-4.0/webapps/admin/realm/jndiRealm.jsp
  
  Index: jndiRealm.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/realm/jndiRealm.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jndiRealm.jsp 24 Mar 2002 04:13:24 -  1.3
  +++ jndiRealm.jsp 3 May 2002 07:16:58 -   1.4
  @@ -22,6 +22,7 @@
 
 
 
  +  
   
 
   
  @@ -41,11 +42,13 @@
 
- 
 
  +  
 

  
  - 
  + 
  +
 

 
  
  
  
  1.4   +3 -0  jakarta-tomcat-4.0/webapps/admin/realm/memoryRealm.jsp
  
  Index: memoryRealm.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/realm/memoryRealm.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- memoryRealm.jsp   24 Mar 2002 04:13:24 -  1.3
  +++ memoryRealm.jsp   3 May 2002 07:16:58 -   1.4
  @@ -23,6 +23,7 @@
 
 
 
  +  
   
 
   
  @@ -42,10 +43,12 @@
 
- 
 
  +  
 

  
  +
   
 

  
  
  
  1.4   +4 -1  jakarta-tomcat-4.0/webapps/admin/realm/userDatabaseRealm.jsp
  
  Index: userDatabaseRealm.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/realm/userDatabaseRealm.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- userDatabaseRealm.jsp 24 Mar 2002 04:13:24 -  1.3
  +++ userDatabaseRealm.jsp 3 May 2002 07:16:58 -   1.4
  @@ -23,6 +23,7 @@
 
 
 
  +  
   
 
   
  @@ -41,11 +42,13 @@
 
 
- 
  -  
  +  
  +  
 

  
  + 

 

  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/connector connector.jsp

2002-05-02 Thread manveen

manveen 02/05/02 23:15:14

  Modified:webapps/admin/connector connector.jsp
  Log:
  Missing comment in last checkin.
  
  Revision  ChangesPath
  1.14  +1 -0  jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp
  
  Index: connector.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- connector.jsp 3 May 2002 06:14:04 -   1.13
  +++ connector.jsp 3 May 2002 06:15:13 -   1.14
  @@ -263,6 +263,7 @@

<%-- display password only while creating connector. Do not display 
 password as cleartext --%>
  + <%--

   

  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/connector connector.jsp

2002-05-02 Thread manveen

manveen 02/05/02 23:14:05

  Modified:webapps/admin/connector connector.jsp
  Log:
  Take keyStorePassword input only while creating. Do not display the password while 
viewing./editing.
  
  Revision  ChangesPath
  1.13  +3 -0  jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp
  
  Index: connector.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- connector.jsp 3 May 2002 05:43:52 -   1.12
  +++ connector.jsp 3 May 2002 06:14:04 -   1.13
  @@ -261,9 +261,12 @@



  + <%-- display password only while creating connector. Do not display 
  +  password as cleartext --%>

   

  + --%>
   
   
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/connector connector.jsp

2002-05-02 Thread manveen

manveen 02/05/02 22:43:52

  Modified:webapps/admin/connector connector.jsp
  Log:
  Donot show keyStore password as cleartext.
  
  Revision  ChangesPath
  1.12  +2 -2  jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp
  
  Index: connector.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- connector.jsp 2 May 2002 18:00:15 -   1.11
  +++ connector.jsp 3 May 2002 05:43:52 -   1.12
  @@ -259,10 +259,10 @@
   :
   

  - 
  + 


  -   
  +

   
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users UsersTreeBuilder.java

2002-05-02 Thread manveen

manveen 02/05/02 22:40:05

  Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users
UsersTreeBuilder.java
  Log:
  Rearrange the order in which Users, Groups, and Roles appear in the subtree.
  
  Revision  ChangesPath
  1.4   +5 -5  
jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java
  
  Index: UsersTreeBuilder.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- UsersTreeBuilder.java 3 May 2002 01:04:49 -   1.3
  +++ UsersTreeBuilder.java 3 May 2002 05:40:05 -   1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java,v
 1.3 2002/05/03 01:04:49 manveen Exp $
  - * $Revision: 1.3 $
  - * $Date: 2002/05/03 01:04:49 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java,v
 1.4 2002/05/03 05:40:05 manveen Exp $
  + * $Revision: 1.4 $
  + * $Date: 2002/05/03 05:40:05 $
*
* 
*
  @@ -77,7 +77,7 @@
* for administering the user database.
*
* @author Craig R. McClanahan
  - * @version $Revision: 1.3 $ $Date: 2002/05/03 01:04:49 $
  + * @version $Revision: 1.4 $ $Date: 2002/05/03 05:40:05 $
* @since 4.1
*/
   
  @@ -165,9 +165,9 @@
false);
   
   root.addChild(subtree);
  +subtree.addChild(users);
   subtree.addChild(groups);
   subtree.addChild(roles);
  -subtree.addChild(users);
   
   }
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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

2002-05-02 Thread larryi

larryi  02/05/02 22:39:58

  Modified:jk/native/common jk_global.h
  Log:
  Add a macro for WIN32 to emulate the gettimeofday() function using the
  WIN32 _ftime() function.
  
  Revision  ChangesPath
  1.17  +7 -1  jakarta-tomcat-connectors/jk/native/common/jk_global.h
  
  Index: jk_global.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_global.h,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- jk_global.h   4 Dec 2001 19:44:23 -   1.16
  +++ jk_global.h   3 May 2002 05:39:58 -   1.17
  @@ -59,7 +59,7 @@
* Description: Global definitions and include files that should exist *
*  anywhere   *
* Author:  Gal Shachor <[EMAIL PROTECTED]>   *
  - * Version: $Revision: 1.16 $   *
  + * Version: $Revision: 1.17 $   *
***/
   
   #ifndef JK_GLOBAL_H
  @@ -81,6 +81,7 @@
   #ifdef WIN32
   #include 
   #include 
  +#include 
   #else
   #include 
   #include 
  @@ -192,6 +193,11 @@
   #endif /* CHARSET_EBCDIC */
   
   #endif /* APR_CHARSET_EBCDIC */
  +
  +#ifdef WIN32
  +/* For WIN32, emulate gettimeofday() using _ftime() */
  +#define gettimeofday(tv,tz) { struct _timeb tb; _ftime(&tb); (tv)->tv_sec = 
tb.time; (tv)->tv_usec = tb.millitm * 1000; }
  +#endif
   
   #ifdef __cplusplus
   }
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/native build.xml

2002-05-02 Thread larryi

larryi  02/05/02 22:31:20

  Modified:jk/native build.xml
  Log:
  Add required MS SDK include and lib entries.  Drop the if="win32" in the
  linkOpt since the iis target is valid only for win32.
  
  Revision  ChangesPath
  1.31  +3 -1  jakarta-tomcat-connectors/jk/native/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/build.xml,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- build.xml 12 Apr 2002 15:57:31 -  1.30
  +++ build.xml 3 May 2002 05:31:20 -   1.31
  @@ -310,6 +310,7 @@
   
   
   
  +
   
 
 
  @@ -332,7 +333,8 @@
 
 
 
  -  
  +  
  +  
   
 
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk build.properties.sample

2002-05-02 Thread larryi

larryi  02/05/02 22:27:45

  Modified:jk   build.properties.sample
  Log:
  Change parens to curly braces so substitution will work as expected
  
  Revision  ChangesPath
  1.12  +2 -2  jakarta-tomcat-connectors/jk/build.properties.sample
  
  Index: build.properties.sample
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/build.properties.sample,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- build.properties.sample   20 Apr 2002 22:51:10 -  1.11
  +++ build.properties.sample   3 May 2002 05:27:45 -   1.12
  @@ -62,6 +62,6 @@
   # Microsft SDK
   
   # mssdk.home=c:/Program Files/Microsoft SDK
  -# mssdk.include=$(mssdk.home)/include
  -# mssdk.lib=$(mssdk.home)/lib
  +# mssdk.include=${mssdk.home}/include
  +# mssdk.lib=${mssdk.home}/lib
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk build.xml

2002-05-02 Thread larryi

larryi  02/05/02 22:25:54

  Modified:jk   build.xml
  Log:
  Update jkant target so it can build immediately after a clean.
  
  Revision  ChangesPath
  1.39  +3 -0  jakarta-tomcat-connectors/jk/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/build.xml,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- build.xml 1 May 2002 22:39:09 -   1.38
  +++ build.xml 3 May 2002 05:25:54 -   1.39
  @@ -189,6 +189,9 @@
   
   
   
  +
  +
  +
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers MsvcCompiler.java

2002-05-02 Thread larryi

larryi  02/05/02 22:24:17

  Modified:jk/jkant/java/org/apache/jk/ant/compilers MsvcCompiler.java
  Log:
  Add quotes around include files, if not already present, in case path includes
  spaces.
  
  Revision  ChangesPath
  1.5   +8 -1  
jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/MsvcCompiler.java
  
  Index: MsvcCompiler.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/jkant/java/org/apache/jk/ant/compilers/MsvcCompiler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MsvcCompiler.java 4 Dec 2001 01:43:52 -   1.4
  +++ MsvcCompiler.java 3 May 2002 05:24:17 -   1.5
  @@ -156,7 +156,14 @@
   ccpw.println(localCflags);
   for( int i=0; i 0 ) {
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/users user.jsp

2002-05-02 Thread manveen

manveen 02/05/02 21:45:46

  Modified:webapps/admin/users user.jsp
  Log:
  * Password should not be displayed in clear text.
  * Add URLs to create and delete users.
  
  Revision  ChangesPath
  1.3   +10 -9 jakarta-tomcat-4.0/webapps/admin/users/user.jsp
  
  Index: user.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/users/user.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- user.jsp  10 Feb 2002 08:06:20 -  1.2
  +++ user.jsp  3 May 2002 04:45:46 -   1.3
  @@ -38,16 +38,17 @@
   
 -
   
  -
  -<%--
  -
  -  
  +
  +
   
  -
  -  
  +
  +
  +
   
  ---%>
  -  
  + 
   
 
   
  @@ -95,7 +96,7 @@
 
   
   
  -  
  +  
   
 
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 8763] New: - Web app libraries (log4j.jar) remain locked after web apps' stop / remove

2002-05-02 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=8763

Web app libraries (log4j.jar) remain locked after web apps' stop / remove

   Summary: Web app libraries (log4j.jar) remain locked after web
apps' stop / remove
   Product: Tomcat 4
   Version: 4.0.3 Final
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Major
  Priority: Other
 Component: Unknown
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi,
I have got automated deployment system that stops a web application and then 
replaces all the WEB-INF files the app is using (note I am not using a war 
archive) and starts the app. The problems is that when the app is stopped, 
Tomcat still keeps some of the lib files open (in my case it is only log4j.jar) 
and thus they cannot be overwritten by the deployment system.

I also tried to stop the application and remove it, but the log4j.jar file 
still remains locked and cannot be removed. All the other files/libraries are 
successfully removed. It might as well be some log4j issue, but perhaps someone 
might be aware of its weird behaviour in Tomcat apps.

Does Tomcat releases all context resources when the app is stopped? Or only 
when its removed?

Thanks a lot,
Jan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: SSI Servlet has big problems

2002-05-02 Thread Dan Sandberg

I'll be done with the SSI rewrite tomorrow.

I'd like to get the community's advice on a number of issues:

1-I changed the names of the files from Ssi... to SSI...  This seems to 
be more consistent with the naming scheme of other files, and made 
things easier for me since I did a gradual rewrite of everything.  This 
will make it harder to see what I changed when I submit a diff, 
however.  I changed 75% of everything, so I'm not sure this matters.  Is 
it ok?

2-What's the story with the SSI jar having the .renametojar extension? 
 I'm surmising that this is because this class will be loaded under the 
system class loader rather than the user servlet class loader, causing 
the #exec functionality to be a security risk.  Can't we just have a 
directory where we put servlets that should be loaded under the 'safe' 
class loader?

3-Right now the SSIServlet has an initialization parameter to determine 
whether unsupported commands ( #foobar ) should be ignored.  It seems 
like the issue should be more complicated than this.  There is a 
difference between #foobar and #if.  #foobar is not supported by anyone, 
and should be handled the same way apache would do it ( echo an error ). 
 #if however, IS handled by apache, and is not handled by the 
SSIServlet.  Therefore it seems that the initialization parameter 
mentioned should only apply to the latter case.  Personally I think this 
initialization parameter should be axed completely, as I don't see where 
its use solves more problems that it creates.  For example, if a person 
did have code that used #if, #else, etc., then by ignoring these 
directives we'd end up making the output be even weirder ( and with no 
explanation of why! ) than if we just stuck [an error occurred while 
processing this directive] all over the place.

4-Right now we are not logging invalid atribute names ( --#echo 
nonExistantAttribute="foobar" -- ), or logging invalid commands, or 
logging invalid settings for attributes ( --#echo 
encoding="noSuchEncoding" var="DOCUMENT_NAME" -- ).   Apache logs this 
stuff, it seems like we should too.  Where do I log it to ( what 
classes/methods do I use )? Should there be a way to turn this logging off?

5-The command <#echo var='SOMETHING'> is not too useful right now, 
because what SOMETHING can be is highly constrained.  
I'd like to make so that this command searches the request attributes ( 
for a variable named SOMETHING ).  This will make this servlet more 
useful when writing filters that use it.  More importantly, it lets 
existing users who are using SSI already have more power without needing 
to rewrite their .shtml files in .jsp.  [The company that I consult for 
said they would find this useful, so I'm not making this up] I'd like to 
also implement the #set command, so that it sets a variable in the 
request.  Anyone have objections to this?

6-This servlet has the option of being buffered or unbuffered.  Can 
someone explain to me why this is useful?  The SSIServlet should never 
throw an error, so I don't see why this would matter.

Thanks,

Dan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Rating 4.1.0

2002-05-02 Thread Remy Maucherat

I'm planning to give 4.1.0 an "Alpha" rating. So far, it seems to be working
relatively well, and would probably be worthy of a "Beta" tag if it was
feature complete and had a little more polish.

I'm confident the upcoming 4.1.1 milestone will adress this, and will be
able to get released as a beta.

I'll advertise "4.1.0 Alpha" a little bit (on tomcat-user and FM), and add
the resource files for the binaries, as people have expressed some interest
to test 4.1, but don't know where to get it.

(If people would like to see this released as "Beta", let me know)

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans ServerLifecycleListener.java StandardServerMBean.java

2002-05-02 Thread craigmcc

craigmcc02/05/02 19:19:23

  Modified:catalina/src/share/org/apache/catalina/core
StandardServer.java
   catalina/src/share/org/apache/catalina/mbeans
ServerLifecycleListener.java
StandardServerMBean.java
  Log:
  Plug in the infrastructure for creating and destroying MBeans for the
  global NamingResources instance (that corresponds to the
   section of server.xml), in preparation for the
  admin tool supporting the dynamic creation, editing, and removal of
  global JNDI resource configurations (and the associated resources themselves).
  
  TODOs for the rest of this support:
  
  * Update MBeanUtils to include the MBean-related methods for
NamingResources, ContextEnvironment, and ContextResource objects.
  
  * Uncomment the corresponding MBeanUtils.createMBean() and
MBeanUtils.destroyMBean() calls in ServerLifecycleListener.
  
  * Write MBeans for NamingResources et al that do the required
manipulations to NamingResources (and add/remove resources in the
corresponding javax.naming.directory.DirContext).
  
  Revision  ChangesPath
  1.23  +9 -4  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java
  
  Index: StandardServer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- StandardServer.java   6 Mar 2002 06:49:11 -   1.22
  +++ StandardServer.java   3 May 2002 02:19:23 -   1.23
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
 1.22 2002/03/06 06:49:11 craigmcc Exp $
  - * $Revision: 1.22 $
  - * $Date: 2002/03/06 06:49:11 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
 1.23 2002/05/03 02:19:23 craigmcc Exp $
  + * $Revision: 1.23 $
  + * $Date: 2002/05/03 02:19:23 $
*
* 
*
  @@ -93,7 +93,7 @@
* (but not required) when deploying and starting Catalina.
*
* @author Craig R. McClanahan
  - * @version $Revision: 1.22 $ $Date: 2002/03/06 06:49:11 $
  + * @version $Revision: 1.23 $ $Date: 2002/05/03 02:19:23 $
*/
   
   public final class StandardServer
  @@ -277,7 +277,12 @@
   public void setGlobalNamingResources
   (NamingResources globalNamingResources) {
   
  +NamingResources oldGlobalNamingResources =
  +this.globalNamingResources;
   this.globalNamingResources = globalNamingResources;
  +support.firePropertyChange("globalNamingResources",
  +   oldGlobalNamingResources,
  +   this.globalNamingResources);
   
   }
   
  
  
  
  1.24  +388 -99   
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java
  
  Index: ServerLifecycleListener.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ServerLifecycleListener.java  18 Apr 2002 00:13:07 -  1.23
  +++ ServerLifecycleListener.java  3 May 2002 02:19:23 -   1.24
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java,v
 1.23 2002/04/18 00:13:07 amyroh Exp $
  - * $Revision: 1.23 $
  - * $Date: 2002/04/18 00:13:07 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ServerLifecycleListener.java,v
 1.24 2002/05/03 02:19:23 craigmcc Exp $
  + * $Revision: 1.24 $
  + * $Date: 2002/05/03 02:19:23 $
*
* 
*
  @@ -98,6 +98,10 @@
   import org.apache.catalina.core.StandardHost;
   import org.apache.catalina.core.StandardServer;
   import org.apache.catalina.core.StandardService;
  +import org.apache.catalina.deploy.ContextEnvironment;
  +import org.apache.catalina.deploy.ContextResource;
  +import org.apache.catalina.deploy.NamingResources;
  +import org.apache.catalina.deploy.ResourceParams;
   
   
   /**
  @@ -107,7 +111,7 @@
*
* @author Craig R. McClanahan
* @author Amy Roh
  - * @version $Revision: 1.23 $ $Date: 2002/04/18 00:13:07 $
  + * @version $Revision: 1.24 $ $Date: 2002/05/03 02:19:23 $
*/
   
   public class ServerLifecycleListener
  @@ -176,12 +180,20 @@
   
   Lifecycle lifecycle = event.getLifecycle();
   if (Lifecycle.START_EVENT.equals(event.getType())) {
  +if (lifecy

Re: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Punky Tse

Henri,

> 
> What about reporting webapp version at init time,
> 
> [Thu May 02 21:44:38 2002] [notice] Apache/2.0.35 (Unix) mod_ssl/2.0.35OpenSSL/0.9.6 
>DAV/2 mod_jk/1.2.0 configured -- resuming normal operations   
> 
> 
> could be
> 
> [Thu May 02 21:44:38 2002] [notice] Apache/2.0.35 (Unix) mod_ssl/2.0.35OpenSSL/0.9.6 
>DAV/2 mod_jk/1.2.0 mod_webapp 1.2.0 configured -- resuming normal operations  
>  
> 
> Nota that mod_jk / mod_webapp coexist very well ;)
> 

try:
=
$ telnet punknix.homeip.net 80
Trying 61.18.154.226...
Connected to punknix.homeip.net.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 03 May 2002 01:32:34 GMT
Server: Apache/2.0.37-dev (Unix) mod_webapp/1.0.2
Content-Location: index.html.en
Vary: negotiate,accept,accept-language,accept-charset
TCN: choice
Last-Modified: Wed, 01 May 2002 14:43:53 GMT
ETag: "2a78e-5b0-c72f5c40;2a7a7-94f-c73e9e80"
Accept-Ranges: bytes
Content-Length: 1456
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en
Expires: Fri, 03 May 2002 01:32:34 GMT

Connection closed by foreign host.
=

I had been make this patch for a very long time (3/4/5 months).  And 
send to this list several times...  If you like, just grap my patch and 
comit.

(wa_version.h must be placed in include/ dir, and change to *whatever* 
version you like!)

Punky

P.S.  May be next time, I send the patch to bugzilla in order to draw 
more attention.






Index: mod_webapp.c
===
RCS file: /home/cvspublic/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c,v
retrieving revision 1.31
diff -u -r1.31 mod_webapp.c
--- mod_webapp.c17 Jan 2002 17:02:13 -  1.31
+++ mod_webapp.c30 Jan 2002 17:47:45 -
@@ -68,6 +68,7 @@
 #include 
 #include 
 #include 
+#include 
 
 /* * */
 /* GENERIC DECLARATIONS  */
@@ -523,6 +524,11 @@
 return(OK);
 }
 
+static void wam_init_handler(server_rec *s, ap_pool *p)
+{
+ap_add_version_component(WA_EXPOSED_VERSION);
+}
+
 /* List of all available Apache handlers */
 static const handler_rec wam_handlers[] = {
 {"webapp-handler", wam_invoke},
@@ -532,7 +538,7 @@
 /* Apache module declaration */
 module MODULE_VAR_EXPORT webapp_module = {
 STANDARD_MODULE_STUFF,
-NULL,   /* module initializer */
+wam_init_handler,   /* module initializer */
 NULL,   /* per-directory config creator */
 NULL,   /* dir config merger */
 NULL,   /* server config creator */


Index: mod_webapp.c
===
RCS file: /home/cvspublic/jakarta-tomcat-connectors/webapp/apache-2.0/mod_webapp.c,v
retrieving revision 1.7
diff -u -r1.7 mod_webapp.c
--- mod_webapp.c17 Jan 2002 17:02:13 -  1.7
+++ mod_webapp.c30 Jan 2002 17:47:15 -
@@ -69,6 +69,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 /* * */
@@ -520,12 +521,20 @@
 return DECLINED;
 }
 
+static int wam_init_handler(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp,
+ server_rec *s)
+{
+ap_add_version_component(p, WA_EXPOSED_VERSION);
+return OK;
+}
+
 static void register_hooks(apr_pool_t *p)
 {
 ap_hook_handler(wam_invoke, NULL, NULL, APR_HOOK_MIDDLE);
 ap_hook_translate_name(wam_match, NULL, NULL, APR_HOOK_MIDDLE);
 ap_hook_child_init(wam_startup, NULL, NULL, APR_HOOK_MIDDLE);
 ap_hook_map_to_storage(wam_map_to_storage, NULL, NULL, APR_HOOK_MIDDLE);
+ap_hook_post_config(wam_init_handler, NULL, NULL, APR_HOOK_MIDDLE);
 }
 
 /* Apache module declaration */


/* = *
 *   *
 * The Apache Software License,  Version 1.1 *
 *   *
 *  Copyright (c) 1999-2001 The Apache Software Foundation.  *
 *   All rights reserved.*
 *   *
 * = *
 *   *
 * Redistribution and use in source and binary forms,  with or without modi- *
 * fication, are permitted provided that the following conditions are met:   *
 *   

cvs commit: jakarta-tomcat-4.0/webapps/admin/images Users.gif

2002-05-02 Thread manveen

manveen 02/05/02 18:48:30

  Modified:webapps/admin/images Users.gif
  Log:
  Updating image
  
  Revision  ChangesPath
  1.2   +4 -3  jakarta-tomcat-4.0/webapps/admin/images/Users.gif
  
<>
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvs commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Punky Tse

Henri,

As said by Pier, what you need is to have ServerName well defined. That 
means I need to have a line:

ServerName punknix.homeip.net:80

in httpd.conf.  It is somewhat different from apache 1.3.  In 1.3 you 
can leave it blank.  But in 2.0, I seems that you need to have it 
defined to work with mod_webapp.

Punky

GOMEZ Henri wrote:
> Ok, so you have to add  around
> webapp config.
> 
> I remember an old mail where Pier told something
> about adding support to DefaultHost but it's quite
> sometimes ago
> 
> -
> Henri Gomez ___[_]
> EMAIL : [EMAIL PROTECTED](. .) 
> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
> 
> 
> 
> 
>>-Original Message-
>>From: Punky Tse [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, May 02, 2002 6:19 PM
>>To: Tomcat Developers List
>>Subject: Re: cvs
>>commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh
>>
>>
>>Henri,
>>
>>I have no problem in my linux box.  My conf:
>>===
>>
>>ServerName punknix.homeip.net:80
>>#LoadModule webapp_module modules/mod_webapp.so
>>LoadModule webapp_module modules/libwebapp.so
>>WebAppConnection conn warp localhost:8008
>>WebAppDeploy examples conn /examples
>>
>>===
>>
>>Punky
>>
>>GOMEZ Henri wrote:
>>
>>
>>>It build on my Redhat 6.2 box but failed at http2 start :
>>>
>>>Invalid virtual host name ?[
>>>
>>>-
>>>Henri Gomez ___[_]
>>>EMAIL : [EMAIL PROTECTED](. .) 
>>>PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
>>>PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
>>>
>>>
>>>
>>> 
>>>
>>>
-Original Message-
From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 12:31 PM
To: Tomcat Developers List
Subject: Re: cvs
commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh


"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

   


>>Autoconf is _only_ required when building straight out of 
>>   
>>
>
CVS, you can
   


>>always use nightlies, which have the already-autoconfed
>>"configure" script.
>>
>>It's a PITA, but there are so many changes between 2.1x and 
>>   
>>
>
2.5x that
   


>>maintaining if for both will be a major pain in the neck...
>>
>>Otherwise, we can always check-in the configure script (now 
>>   
>>
>
I hear Jon
   


>>screaming out loud :)
>>   
>>
>
>Don't make Jon sad, just send me a copy of configure script and
>I'll try the build ;)
> 
>

Since the nightly since the very latest (important) changes 
didn't run yet,
here's a snapshot: 
>>>
> http://nagoya.apache.org/~pier/webapp-current.tar.gz
> 
>>>  Pier
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   
>>>
>>>For additional commands, e-mail: 
>>>
>>>
>>>
>>>   
>>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>> 
>>
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin login.jsp

2002-05-02 Thread manveen

manveen 02/05/02 18:14:11

  Modified:webapps/admin login.jsp
  Log:
  Modified look and feel of login page
  
  Revision  ChangesPath
  1.5   +38 -14jakarta-tomcat-4.0/webapps/admin/login.jsp
  
  Index: login.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/login.jsp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- login.jsp 1 Dec 2001 03:09:19 -   1.4
  +++ login.jsp 3 May 2002 01:14:11 -   1.5
  @@ -25,42 +25,66 @@
   
   
   
  -
  +
   
   
   
   
   
  -
  -
   
  -  
  +  
  +
  + 
  +
  + 
  +
  +  
  +
  +
  +
   
  + 
  + 
  + 
 
  -
  +
 
 
   
 
   
  +
   
 
  -
  +
 
 
   
 
   
  +
   
  -  
  -
  -  
  -  
  -
  -  
  -
  +
  +   
  + 
  +
  +
  + 
  +
  + 
  +     
  +
  +   
  +
  +    
  +   
  + 
 
  +    
  +  
  +  
  + 
   
   
   

cvs commit: jakarta-tomcat-4.0/webapps/admin/images Datasource.gif Login.jpg LoginBackgroundTile.gif

2002-05-02 Thread manveen

manveen 02/05/02 18:13:49

  Added:   webapps/admin/images Datasource.gif Login.jpg
LoginBackgroundTile.gif
  Log:
  Images for Login page and datasources.
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Datasource.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Login.jpg
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/LoginBackgroundTile.gif
  
<>
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvs commit:jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeansMBeanFactory.java

2002-05-02 Thread Jon Scott Stevens

on 5/2/02 5:27 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> +String pathStr = pname.getKeyProperty("path");
> +if (pathStr.equals("/")) {
> +pathStr = "";
> +}

Also, this seems to repeat code over and over and over...why not make a
simple method?

-jon


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvs commit:jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeansMBeanFactory.java

2002-05-02 Thread Jon Scott Stevens

on 5/2/02 5:27 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> +if (pathStr.equals("/")) {

Should be '/'

?

-jon


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/images Groups.gif Users.gif

2002-05-02 Thread manveen

manveen 02/05/02 18:05:54

  Added:   webapps/admin/images Groups.gif Users.gif
  Log:
  Images for "User Administration" tree.
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Groups.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Users.gif
  
<>
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users UsersTreeBuilder.java

2002-05-02 Thread manveen

manveen 02/05/02 18:04:49

  Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users
UsersTreeBuilder.java
  Log:
  Use new images for Groups/Users in the tree control.
  
  Revision  ChangesPath
  1.3   +6 -6  
jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java
  
  Index: UsersTreeBuilder.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UsersTreeBuilder.java 10 Feb 2002 05:48:57 -  1.2
  +++ UsersTreeBuilder.java 3 May 2002 01:04:49 -   1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java,v
 1.2 2002/02/10 05:48:57 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/02/10 05:48:57 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users/UsersTreeBuilder.java,v
 1.3 2002/05/03 01:04:49 manveen Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/05/03 01:04:49 $
*
* 
*
  @@ -77,7 +77,7 @@
* for administering the user database.
*
* @author Craig R. McClanahan
  - * @version $Revision: 1.2 $ $Date: 2002/02/10 05:48:57 $
  + * @version $Revision: 1.3 $ $Date: 2002/05/03 01:04:49 $
* @since 4.1
*/
   
  @@ -135,7 +135,7 @@
true);
   TreeControlNode groups = new TreeControlNode
   ("Global Administer Groups",
  - "folder_16_pad.gif",
  + "Groups.gif",
resources.getMessage("users.treeBuilder.groupsNode"),
"users/listGroups.do?databaseName=" +
URLEncoder.encode(databaseName) +
  @@ -155,7 +155,7 @@
false);
   TreeControlNode users = new TreeControlNode
   ("Global Administer Users",
  - "folder_16_pad.gif",
  + "Users.gif",
resources.getMessage("users.treeBuilder.usersNode"),
"users/listUsers.do?databaseName=" +
URLEncoder.encode(databaseName) +
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin TomcatTreeBuilder.java

2002-05-02 Thread manveen

manveen 02/05/02 17:57:23

  Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin
TomcatTreeBuilder.java
  Log:
  Display the new images in the tree control node, change image depending on the type 
of node.
  
  Revision  ChangesPath
  1.29  +12 -12
jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java
  
  Index: TomcatTreeBuilder.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- TomcatTreeBuilder.java22 Apr 2002 18:53:51 -  1.28
  +++ TomcatTreeBuilder.java3 May 2002 00:57:23 -   1.29
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java,v
 1.28 2002/04/22 18:53:51 manveen Exp $
  - * $Revision: 1.28 $
  - * $Date: 2002/04/22 18:53:51 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/TomcatTreeBuilder.java,v
 1.29 2002/05/03 00:57:23 manveen Exp $
  + * $Revision: 1.29 $
  + * $Date: 2002/05/03 00:57:23 $
*
* 
*
  @@ -93,7 +93,7 @@
*
* @author Jazmin Jonson
* @author Manveen Kaur
  - * @version $Revision: 1.28 $ $Date: 2002/04/22 18:53:51 $
  + * @version $Revision: 1.29 $ $Date: 2002/05/03 00:57:23 $
*/
   
   
  @@ -162,7 +162,7 @@
   String nodeLabel = SERVER_LABEL;
   TreeControlNode serverNode =
   new TreeControlNode(serverName,
  -"folder_16_pad.gif",
  +"Server.gif",
   nodeLabel,
   "EditServer.do?select=" +
   URLEncoder.encode(serverName) +
  @@ -197,7 +197,7 @@
   "Service (" + objectName.getKeyProperty("name") + ")";
   TreeControlNode serviceNode =
   new TreeControlNode(serviceName,
  -"folder_16_pad.gif",
  +"Service.gif",
   nodeLabel,
   "EditService.do?select=" +
   URLEncoder.encode(serviceName) +
  @@ -236,7 +236,7 @@
   "Connector (" + objectName.getKeyProperty("port") + ")";
   TreeControlNode connectorNode =
   new TreeControlNode(connectorName,
  -"folder_16_pad.gif",
  +"Connector.gif",
   nodeLabel,
   "EditConnector.do?select=" +
   URLEncoder.encode(connectorName) +
  @@ -269,7 +269,7 @@
   "Host (" + objectName.getKeyProperty("host") + ")";
   TreeControlNode hostNode =
   new TreeControlNode(hostName,
  -"folder_16_pad.gif",
  +"Host.gif",
   nodeLabel,
   "EditHost.do?select=" +
   URLEncoder.encode(hostName) +
  @@ -306,7 +306,7 @@
   "Context (" + objectName.getKeyProperty("path") + ")";
   TreeControlNode contextNode =
   new TreeControlNode(contextName,
  -"folder_16_pad.gif",
  +"Context.gif",
   nodeLabel,
   "EditContext.do?select=" +
   URLEncoder.encode(contextName) +
  @@ -341,7 +341,7 @@
   String nodeLabel = "Logger for " + containerNode.getLabel();
   TreeControlNode loggerNode =
   new TreeControlNode(loggerName,
  -"folder_16_pad.gif",
  +"Logger.gif",
   nodeLabel,
   "EditLogger.do?select=" +
   URLEncoder.encode(loggerName) +
  @@ -374,7 +374,7 @@
   String nodeLabel = "Realm for " + containerNode.getLabel();
   TreeControlNode realmNode =
   new TreeControlNode(realmName,
  -"folder_16_pad.gif",
  +"Realm.gif",
   nodeLabel,
   "EditRealm.do?select=" +

cvs commit: jakarta-tomcat-4.0/webapps/admin/images Connector.gif Context.gif Host.gif Logger.gif Realm.gif Server.gif Service.gif Valve.gif

2002-05-02 Thread manveen

manveen 02/05/02 17:55:43

  Added:   webapps/admin/images Connector.gif Context.gif Host.gif
Logger.gif Realm.gif Server.gif Service.gif
Valve.gif
  Log:
  Adding images for displaying in the tree control.
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Connector.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Context.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Host.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Logger.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Realm.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Server.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Service.gif
  
<>
  
  
  1.1  jakarta-tomcat-4.0/webapps/admin/images/Valve.gif
  
<>
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans MBeanFactory.java

2002-05-02 Thread amyroh

amyroh  02/05/02 17:27:17

  Modified:catalina/src/share/org/apache/catalina/mbeans
MBeanFactory.java
  Log:
  Check "/" when looking for root context.
  
  Revision  ChangesPath
  1.30  +65 -30
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java
  
  Index: MBeanFactory.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- MBeanFactory.java 2 May 2002 02:03:15 -   1.29
  +++ MBeanFactory.java 3 May 2002 00:27:17 -   1.30
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v
 1.29 2002/05/02 02:03:15 amyroh Exp $
  - * $Revision: 1.29 $
  - * $Date: 2002/05/02 02:03:15 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MBeanFactory.java,v
 1.30 2002/05/03 00:27:17 amyroh Exp $
  + * $Revision: 1.30 $
  + * $Date: 2002/05/03 00:27:17 $
*
* 
*
  @@ -117,7 +117,7 @@
* org.apache.catalina.core.StandardServer component.
*
* @author Amy Roh
  - * @version $Revision: 1.29 $ $Date: 2002/05/02 02:03:15 $
  + * @version $Revision: 1.30 $ $Date: 2002/05/03 00:27:17 $
*/
   
   public class MBeanFactory extends BaseModelMBean {
  @@ -201,8 +201,11 @@
   Engine engine = (Engine) service.getContainer();
   if (type.equals("Context")) {
   Host host = (Host) engine.findChild(pname.getKeyProperty("host"));
  -Context context =
  -(Context) host.findChild(pname.getKeyProperty("path"));
  +String pathStr = pname.getKeyProperty("path");
  +if (pathStr.equals("/")) {
  +pathStr = "";
  +}
  +Context context = (Context) host.findChild(pathStr);
   ((StandardContext)context).addValve(accessLogger);
   } else if (type.equals("Engine")) {
   ((StandardEngine)engine).addValve(accessLogger);
  @@ -339,8 +342,11 @@
   Engine engine = (Engine) service.getContainer();
   if (type.equals("Context")) {
   Host host = (Host) engine.findChild(pname.getKeyProperty("host"));
  -Context context =
  -(Context) host.findChild(pname.getKeyProperty("path"));
  +String pathStr = pname.getKeyProperty("path");
  +if (pathStr.equals("/")) {
  +pathStr = "";
  +}
  +Context context = (Context) host.findChild(pathStr);
   context.setLogger(fileLogger);
   } else if (type.equals("Engine")) {
   engine.setLogger(fileLogger);
  @@ -525,8 +531,11 @@
   Engine engine = (Engine) service.getContainer();
   if (type.equals("Context")) {
   Host host = (Host) engine.findChild(pname.getKeyProperty("host"));
  -Context context =
  -(Context) host.findChild(pname.getKeyProperty("path"));
  +String pathStr = pname.getKeyProperty("path");
  +if (pathStr.equals("/")) {
  +pathStr = "";
  +}
  +Context context = (Context) host.findChild(pathStr);
   context.setRealm(realm);
   } else if (type.equals("Engine")) {
   engine.setRealm(realm);
  @@ -565,8 +574,11 @@
   Engine engine = (Engine) service.getContainer();
   if (type.equals("Context")) {
   Host host = (Host) engine.findChild(pname.getKeyProperty("host"));
  -Context context =
  -(Context) host.findChild(pname.getKeyProperty("path"));
  +String pathStr = pname.getKeyProperty("path");
  +if (pathStr.equals("/")) {
  +pathStr = "";
  +}
  +Context context = (Context) host.findChild(pathStr);
   context.setRealm(realm);
   } else if (type.equals("Engine")) {
   engine.setRealm(realm);
  @@ -605,8 +617,11 @@
   Engine engine = (Engine) service.getContainer();
   if (type.equals("Context")) {
   Host host = (Host) engine.findChild(pname.getKeyProperty("host"));
  -Context context =
  -(Context) host.findChild(pname.getKeyProperty("path"));
  +String pathStr = pname.getKeyProperty("path");
  +if (pathStr.equals("/")) {
  +pathStr = "";
  +}
  +Context context = (Context) host.findChild(pathStr);
   context.setRealm(realm);
   } else if (type.equals("Engine")) {
   engine.setRealm(realm);
  @@ -645,8 +660,11 @@
   Engine engine = 

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy ContextEjb.java ContextEnvironment.java ContextLocalEjb.java ContextResource.java ContextResourceLink.java NamingResources.java ResourceParams.java

2002-05-02 Thread craigmcc

craigmcc02/05/02 17:13:02

  Modified:catalina/src/share/org/apache/catalina/deploy
ContextEjb.java ContextEnvironment.java
ContextLocalEjb.java ContextResource.java
ContextResourceLink.java NamingResources.java
ResourceParams.java
  Log:
  Add listener registration support to NamingResources, so that we'll be able
  to dynamically create and remove MBeans for global JNDI resources defined
  via the admin tool (or any other dynamic mechanism) while Tomcat is running.
  
  Add cross reference links from each of the resource definition objects so
  that they can find the NamingResources collection with which they are
  associated.  At present, this is only needed to get from a
  ContextResource to the corresponding ResourceParams (and vice versa), but
  it's better to do things consistently across all types.
  
  Revision  ChangesPath
  1.6   +21 -4 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEjb.java
  
  Index: ContextEjb.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEjb.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ContextEjb.java   22 Jul 2001 20:25:10 -  1.5
  +++ ContextEjb.java   3 May 2002 00:13:01 -   1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEjb.java,v
 1.5 2001/07/22 20:25:10 pier Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/07/22 20:25:10 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEjb.java,v
 1.6 2002/05/03 00:13:01 craigmcc Exp $
  + * $Revision: 1.6 $
  + * $Date: 2002/05/03 00:13:01 $
*
* 
*
  @@ -71,7 +71,7 @@
* deployment descriptor.
*
* @author Craig R. McClanahan
  - * @version $Revision: 1.5 $ $Date: 2001/07/22 20:25:10 $
  + * @version $Revision: 1.6 $ $Date: 2002/05/03 00:13:01 $
*/
   
   public final class ContextEjb {
  @@ -198,6 +198,23 @@
   sb.append("]");
   return (sb.toString());
   
  +}
  +
  +
  +//  Package Methods
  +
  +
  +/**
  + * The NamingResources with which we are associated (if any).
  + */
  +protected NamingResources resources = null;
  +
  +public NamingResources getNamingResource() {
  +return (this.resources);
  +}
  +
  +void setNamingResources(NamingResources resources) {
  +this.resources = resources;
   }
   
   
  
  
  
  1.6   +21 -4 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEnvironment.java
  
  Index: ContextEnvironment.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEnvironment.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ContextEnvironment.java   9 Sep 2001 00:48:11 -   1.5
  +++ ContextEnvironment.java   3 May 2002 00:13:01 -   1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEnvironment.java,v
 1.5 2001/09/09 00:48:11 craigmcc Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/09/09 00:48:11 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextEnvironment.java,v
 1.6 2002/05/03 00:13:01 craigmcc Exp $
  + * $Revision: 1.6 $
  + * $Date: 2002/05/03 00:13:01 $
*
* 
*
  @@ -70,7 +70,7 @@
* an  element in the deployment descriptor.
*
* @author Craig R. McClanahan
  - * @version $Revision: 1.5 $ $Date: 2001/09/09 00:48:11 $
  + * @version $Revision: 1.6 $ $Date: 2002/05/03 00:13:01 $
*/
   
   public final class ContextEnvironment {
  @@ -177,6 +177,23 @@
   sb.append("]");
   return (sb.toString());
   
  +}
  +
  +
  +//  Package Methods
  +
  +
  +/**
  + * The NamingResources with which we are associated (if any).
  + */
  +protected NamingResources resources = null;
  +
  +public NamingResources getNamingResource() {
  +return (this.resources);
  +}
  +
  +void setNamingResources(NamingResources resources) {
  +this.resources = resources;
   }
   
   
  
  
  
  1.3   +21 -4 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/deploy/ContextLocalEjb.java
  
  Index: ContextLocalEjb.java
  ===
  RCS file: 
/home/cvs/jakarta-tom

cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin CommitChangesAction.java

2002-05-02 Thread manveen

manveen 02/05/02 16:50:51

  Added:   webapps/admin/WEB-INF/classes/org/apache/webapp/admin
CommitChangesAction.java
  Log:
  Action class that implements the store/commit changes to server.xml
  
  Revision  ChangesPath
  1.1  
jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/CommitChangesAction.java
  
  Index: CommitChangesAction.java
  ===
  /*
   * $Header: 
/home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/CommitChangesAction.java,v
 1.1 2002/05/02 23:50:51 manveen Exp $
   * $Revision: 1.1 $
   * $Date: 2002/05/02 23:50:51 $
   *
   * 
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *notice, this list of conditions and the following disclaimer in
   *the documentation and/or other materials provided with the
   *distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *any, must include the following acknowlegement:
   *   "This product includes software developed by the
   *Apache Software Foundation (http://www.apache.org/)."
   *Alternately, this acknowlegement may appear in the software itself,
   *if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Struts", and "Apache Software
   *Foundation" must not be used to endorse or promote products derived
   *from this software without prior written permission. For written
   *permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called "Apache"
   *nor may "Apache" appear in their names without prior written
   *permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * .
   *
   */
  
  
  package org.apache.webapp.admin;
  
  
  import java.io.IOException;
  import java.util.Iterator;
  import java.util.List;
  import java.util.Locale;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import javax.servlet.http.HttpSession;
  import org.apache.struts.action.Action;
  import org.apache.struts.action.ActionErrors;
  import org.apache.struts.action.ActionForm;
  import org.apache.struts.action.ActionForward;
  import org.apache.struts.action.ActionMapping;
  
  import org.apache.struts.util.MessageResources;
  
  import javax.management.MBeanServer;
  import javax.management.ObjectInstance;
  import javax.management.ObjectName;
  import javax.management.JMException;
  
  /**
   * Implementation of Action that saves the current settings
   * and writes them out to server.xml
   *
   * @author Manveen Kaur
   * @version $Revision: 1.1 $ $Date: 2002/05/02 23:50:51 $
   */
  
  public final class CommitChangesAction extends Action {
  
  /**
   * The MBeanServer we will be interacting with.
   */
  private MBeanServer mBServer = null;
  
  /**
   * The MessageResources we will be retrieving messages from.
   */
  private MessageResources resources = null;
  
  // - Public Methods
  
  
  /**
   * Process the specified HTTP request, and create the corresponding HTTP
   * response (or forward to 

cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties

2002-05-02 Thread manveen

manveen 02/05/02 16:49:36

  Modified:webapps/admin banner.jsp
   webapps/admin/WEB-INF struts-config.xml
   webapps/admin/WEB-INF/classes/org/apache/webapp/admin
ApplicationResources_en.properties
ApplicationResources_es.properties
  Log:
  * Added a link from the banner to save configuration changes to server.xml
  
  Revision  ChangesPath
  1.4   +17 -0 jakarta-tomcat-4.0/webapps/admin/banner.jsp
  
  Index: banner.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/banner.jsp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- banner.jsp27 Feb 2002 05:40:57 -  1.3
  +++ banner.jsp2 May 2002 23:49:36 -   1.4
  @@ -17,12 +17,29 @@
   
   
   
  +
  +<%--
   
 
 
   
 
   
  +--%>
  +
  +
  +
  +  
  +  
  +
  +  
  + 
  +  
  +
  +  
  +  
  +
  +
   
   
   
  
  
  
  1.45  +8 -0  jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml
  
  Index: struts-config.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- struts-config.xml 18 Apr 2002 06:55:09 -  1.44
  +++ struts-config.xml 2 May 2002 23:49:36 -   1.45
  @@ -374,6 +374,14 @@
 redirect="true"/>
   
   
  +
  +
  +  
  +
  +
   
   mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Re: jakarta-tomcat-connectors documentation/summaries

2002-05-02 Thread Bojan Smojver

On Thu, 2002-05-02 at 23:43, Christopher K. St. John wrote:

> think "We are the
> world" as sung by a chorus of tomcat developers, all holding
> hands, etc).

He, he, I like this one :-)

Bojan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans StandardServerMBean.java

2002-05-02 Thread craigmcc

craigmcc02/05/02 16:21:02

  Modified:catalina/src/share/org/apache/catalina/mbeans
StandardServerMBean.java
  Log:
  Flag the missing saves of resources defined under  with a
  FIXME note.
  
  Revision  ChangesPath
  1.19  +12 -4 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java
  
  Index: StandardServerMBean.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- StandardServerMBean.java  2 May 2002 23:10:13 -   1.18
  +++ StandardServerMBean.java  2 May 2002 23:21:02 -   1.19
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.18 2002/05/02 23:10:13 craigmcc Exp $
  - * $Revision: 1.18 $
  - * $Date: 2002/05/02 23:10:13 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.19 2002/05/02 23:21:02 craigmcc Exp $
  + * $Revision: 1.19 $
  + * $Date: 2002/05/02 23:21:02 $
*
* 
*
  @@ -120,7 +120,7 @@
* org.apache.catalina.core.StandardServer component.
*
* @author Amy Roh
  - * @version $Revision: 1.18 $ $Date: 2002/05/02 23:10:13 $
  + * @version $Revision: 1.19 $ $Date: 2002/05/02 23:21:02 $
*/
   
   public class StandardServerMBean extends BaseModelMBean {
  @@ -778,6 +778,14 @@
   writer.print(wListeners[i]);
   writer.println("");
   }
  +
  +// Store nested naming resources elements
  +/* FIXME - DefaultContext does not have a getNamingResources() method
  +NamingResources nresources = dcontext.getNamingResources();
  +if (nresources != null) {
  +storeNamingResources(writer, indent + 2, nresources);
  +}
  +*/
   
   // Store the ending of this element
   for (int i = 0; i < indent; i++) {
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup NamingRuleSet.java

2002-05-02 Thread craigmcc

craigmcc02/05/02 16:10:13

  Modified:catalina/src/share/org/apache/catalina/mbeans
StandardServerMBean.java
   catalina/src/share/org/apache/catalina/startup
NamingRuleSet.java
  Log:
  Work around the lack of an o.a.c.deploy.ContextResourceEnvRef for now.
  
  Revision  ChangesPath
  1.18  +29 -4 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java
  
  Index: StandardServerMBean.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- StandardServerMBean.java  2 May 2002 22:14:45 -   1.17
  +++ StandardServerMBean.java  2 May 2002 23:10:13 -   1.18
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.17 2002/05/02 22:14:45 craigmcc Exp $
  - * $Revision: 1.17 $
  - * $Date: 2002/05/02 22:14:45 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.18 2002/05/02 23:10:13 craigmcc Exp $
  + * $Revision: 1.18 $
  + * $Date: 2002/05/02 23:10:13 $
*
* 
*
  @@ -120,7 +120,7 @@
* org.apache.catalina.core.StandardServer component.
*
* @author Amy Roh
  - * @version $Revision: 1.17 $ $Date: 2002/05/02 22:14:45 $
  + * @version $Revision: 1.18 $ $Date: 2002/05/02 23:10:13 $
*/
   
   public class StandardServerMBean extends BaseModelMBean {
  @@ -1188,6 +1188,31 @@
   writer.print("");
  +}
  +
  +// Store nested  elements
  +String[] eresources = resources.findResourceEnvRefs();
  +for (int i = 0; i < eresources.length; i++) {
  +for (int j = 0; j < indent; j++) {
  +writer.print(' ');
  +}
  +writer.println("");
  +for (int j = 0; j < indent + 2; j++) {
  +writer.print(' ');
  +}
  +writer.print("");
  +writer.print(eresources[i]);
  +writer.println("");
  +for (int j = 0; j < indent + 2; j++) {
  +writer.print(' ');
  +}
  +writer.print("");
  +writer.print(resources.findResourceEnvRef(eresources[i]));
  +writer.println("");
  +for (int j = 0; j < indent; j++) {
  +writer.print(' ');
  +}
  +writer.println("");
   }
   
   // Store nested  elements
  
  
  
  1.3   +9 -4  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/NamingRuleSet.java
  
  Index: NamingRuleSet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/NamingRuleSet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- NamingRuleSet.java2 May 2002 22:14:45 -   1.2
  +++ NamingRuleSet.java2 May 2002 23:10:13 -   1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/NamingRuleSet.java,v
 1.2 2002/05/02 22:14:45 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/05/02 22:14:45 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/NamingRuleSet.java,v
 1.3 2002/05/02 23:10:13 craigmcc Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/05/02 23:10:13 $
*
* 
*
  @@ -82,7 +82,7 @@
*
* @author Craig R. McClanahan
* @author Remy Maucherat
  - * @version $Revision: 1.2 $ $Date: 2002/05/02 22:14:45 $
  + * @version $Revision: 1.3 $ $Date: 2002/05/02 23:10:13 $
*/
   
   public class NamingRuleSet extends RuleSetBase {
  @@ -168,6 +168,11 @@
   digester.addSetNext(prefix + "Resource",
   "addResource",
   "org.apache.catalina.deploy.ContextResource");
  +
  +digester.addCallMethod(prefix + "ResourceEnvRef",
  +   "addResourceEnvRef", 2);
  +digester.addCallParam(prefix + "ResourceEnvRef/name", 0);
  +digester.addCallParam(prefix + "ResourceEnvRef/type", 1);
   
   digester.addObjectCreate(prefix + "ResourceParams",
"org.apache.catalina.deploy.ResourceParams");
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: creating a custom StandardServer

2002-05-02 Thread Craig R. McClanahan



On Thu, 2 May 2002, Shane Redlick wrote:

> Date: Thu, 2 May 2002 15:50:41 -0700
> From: Shane Redlick <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: creating a custom StandardServer
>
> Hello,
>
> Does anyone know of anyone thats made a custom catalina server?  I have
> some SOAP services that Im currently running in tomcat, but I would like
> to avoid the overhead of the full tomcat implementation and create
> something basic for the purpose of publishing SOAP services only.
>
> Any links or downloads would be appreciated.
>

One approach would be to use the "embedded server" mechanism to start up
Tomcat inside your own server application.  In the jakarta-tomcat-4.0
source repository, see the source code of the class
"org.apache.catalina.startup.Embedded" -- there is a dummy main() method
at the bottom that illustrates how you can set up a very simple servlet
container environment without needing to parse server.xml or anything like
that.

> Thanks in advance,
>
> Shane.
>

Craig




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




creating a custom StandardServer

2002-05-02 Thread Shane Redlick

Hello,

Does anyone know of anyone thats made a custom catalina server?  I have some SOAP 
services that Im currently running in tomcat, but I would like to avoid the overhead 
of the full tomcat implementation and create something basic for the purpose of 
publishing SOAP services only.

Any links or downloads would be appreciated.

Thanks in advance,

Shane.



cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup NamingRuleSet.java

2002-05-02 Thread craigmcc

craigmcc02/05/02 15:14:45

  Modified:catalina/src/share/org/apache/catalina/core
StandardEngine.java StandardHost.java
   catalina/src/share/org/apache/catalina/mbeans
StandardServerMBean.java
   catalina/src/share/org/apache/catalina/startup
NamingRuleSet.java
  Log:
  Refactor storing of resource related information (under 
  and  elements) into a shared common method.
  
  Remaining issues for 100% reproducible configuration:
  
  * StandardDefaultContext needs to be refactored to use a NamingResources
instance underneath (like StandardContext does) in order to save
resource definitions nested inside .
  
  * Need to create o.a.c.deploy.ContextResourceEnvRef and the associated
handling of  elements so that such things can be
registered and saved in naming resources.
  
  * Currently, resources that are defined only in web.xml (such as
 settings) are saved to server.xml as well, instead of
only the things that originally came from server.xml.  Generally,
this is benign (because updating values in web.xml will override
the stored values), but we should really only be saving the stuff
that was originally configured here.
  
  Once these items are addressed, changes made via the admin webapp (or other
  dynamic changes, such as applications deployed via the manager webapp) will
  be persisted across Tomcat restarts.
  
  Revision  ChangesPath
  1.15  +12 -4 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java
  
  Index: StandardEngine.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- StandardEngine.java   6 Mar 2002 06:49:11 -   1.14
  +++ StandardEngine.java   2 May 2002 22:14:45 -   1.15
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
 1.14 2002/03/06 06:49:11 craigmcc Exp $
  - * $Revision: 1.14 $
  - * $Date: 2002/03/06 06:49:11 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngine.java,v
 1.15 2002/05/02 22:14:45 craigmcc Exp $
  + * $Revision: 1.15 $
  + * $Date: 2002/05/02 22:14:45 $
*
* 
*
  @@ -86,7 +86,7 @@
* fully qualified host name of that virtual host.
*
* @author Craig R. McClanahan
  - * @version $Revision: 1.14 $ $Date: 2002/03/06 06:49:11 $
  + * @version $Revision: 1.15 $ $Date: 2002/05/02 22:14:45 $
*/
   
   public class StandardEngine
  @@ -217,6 +217,14 @@
   support.firePropertyChange("defaultContext",
  oldDefaultContext, this.defaultContext);
   
  +}
  +
  +
  +/**
  + * Retrieve the DefaultContext for new web applications.
  + */
  +public DefaultContext getDefaultContext() {
  +return (this.defaultContext);
   }
   
   
  
  
  
  1.27  +12 -4 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java
  
  Index: StandardHost.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- StandardHost.java 20 Mar 2002 12:29:55 -  1.26
  +++ StandardHost.java 2 May 2002 22:14:45 -   1.27
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java,v
 1.26 2002/03/20 12:29:55 glenn Exp $
  - * $Revision: 1.26 $
  - * $Date: 2002/03/20 12:29:55 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardHost.java,v
 1.27 2002/05/02 22:14:45 craigmcc Exp $
  + * $Revision: 1.27 $
  + * $Date: 2002/05/02 22:14:45 $
*
* 
*
  @@ -95,7 +95,7 @@
*
* @author Craig R. McClanahan
* @author Remy Maucherat
  - * @version $Revision: 1.26 $ $Date: 2002/03/20 12:29:55 $
  + * @version $Revision: 1.27 $ $Date: 2002/05/02 22:14:45 $
*/
   
   public class StandardHost
  @@ -309,6 +309,14 @@
   support.firePropertyChange("defaultContext",
  oldDefaultContext, this.defaultContext);
   
  +}
  +
  +
  +/**
  + * Retrieve the DefaultContext for new web applications.
  + */
  +public DefaultContext getDefaultContext() {
  +return (this.defaultContext);
   }
   
   
  
  
  
  1.17  +319 -183  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbean

RE: [VOTE] tomcat 4 rpm to re-use standard listening ports ?

2002-05-02 Thread Larry Isaacs

+1 

Larry

> -Original Message-
> From: GOMEZ Henri [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, May 02, 2002 3:23 PM
> To: [EMAIL PROTECTED]
> Subject: [VOTE] tomcat 4 rpm to re-use standard listening ports ?
> 
> 
> Hi,
> 
> As you may know, the current tomcat 4 rpm change
> all the listen ports (http10, http11, ajp) to
> assure a pacific ;) coexistence between with an
> allready installed tomcat3.
> 
> I wonder if it won't be time to restore the original ports,
> just to avoid users questions.
> 
> I'll provide a little script in rpm to change
> the ports for users who still want to have 
> active at the same time, TC 3.3.1 and TC 4.x.
> 
> I've got a tomcat 4.0.4-b2 rpm ready and could
> make the changes quickly.
> 
> Vote please :
> 
> -
> Henri Gomez ___[_]
> EMAIL : [EMAIL PROTECTED](. .) 
> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

>> Hm. Might do that as well...
> 
> I could add that if you want ;)
> Just to show to Jon that I could also commit in webapp ;)

If you want...

>>> Nota that mod_jk / mod_webapp coexist very well ;)
>> 
>> Why shouldn't they? For sure I'm not going to set JK's
>> pointers to NULL just
>> to make it segfault :)
> 
> Never think about it ?

Yeah, but then I'd have to dig into JK's sources and I wouldn't tell to do
that not even to my worst enemy... :)

Pier

--
I think that it's extremely foolish to name a server after the current U.S.
President. B.W. Fitzpatrick



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: WebApp 1.2.0

2002-05-02 Thread GOMEZ Henri

Ok, I'll leave you now.

See you tomorrow :)

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 02, 2002 10:07 PM
>To: Tomcat Developers List
>Subject: WebApp 1.2.0
>
>
>I want to finish up a couple of things before tagging, such as 
>having a make
>which actually builds up a "dist" directory, update the docs 
>slightly and
>stupid things like that... Maybe later tonight?
>
>Pier
>
>--
>I think that it's extremely foolish to name a server after the 
>current U.S.
>President. 
>B.W. Fitzpatrick
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jakarta-tomcat-connectors documentation/summaries

2002-05-02 Thread GOMEZ Henri

An URL to add :

http://www.ubeans.com/tomcat/index.html



-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, May 01, 2002 7:54 PM
>To: [EMAIL PROTECTED]
>Subject: RE: jakarta-tomcat-connectors documentation/summaries
>
>
>
> Another update. Same disclaimers as before.
>
>
>
>
>FAQ's (just an idea, these don't have to be included)
>
> Q: Is mod_webapp replacing mod_jk?
> A: No. See below for links to documentation, then choose the one that
>best suits your needs.
>
> Q: Is Coyote replacing mod_jk?
> A: Coyote isn't the same sort of thing as mod_jk, see below in the
>"Coyote" section for more details.
>
> Q: It's all very confusing.
> A: Yes. A good strategy is to read through the summaries below and
>follow some of the documentation links. If you still have
>questions, try searching the tomcat-user mailing list archives,
>someone has probably answered the question already, there may even
>be a HOWTO already prepared. If that doesn't help, then you might
>consider posting your question to tomcat-users.
>
>
>non-jakarta howto's:
>
> these were culled from recent posts to tomcat-users. i have no way to
> judge if they are any good. it would be nice to only include the ones
> that someone can vouch for, but that may be too much work. the list
> is evolving...
>
> http://www.acg-gmbh.de/mod_jk/
>   Apache 2.0/Tomcat 4/mod_jk/Win32
>
> http://www.pubbitch.org/jboss/
>   Apache 2.0/Tomcat 4/mod_jk2/JBoss
>   Apache 2.0/Tomcat 4/mod_webapp/JBoss
>
> http://bruno.vernay.free.fr/HowTo/bWebServerHowTo/index.html
>   Apache ?.?/Tomcat 4/mod_webapp/Win32
>   "references" link has list of other HOWTO's
>
>
>
>
>mod_jserv
>
> although it's probably still in production use at some sites,
> mod_jserv generally shouldn't be considered for new installations.
>
> why it was written:
>   it was there first. 
>
> where to get the source:
>   jakarta-tomcat repository
>   src/native/mod_jserv/
>
> where to get documentation:
>   
>http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-h
>owto.html
>
>   [ed] In tomcat-3.3-doc/index.html, it looks like mod_jserv is the
>   suggested connector, and mod_jk is optional or alternative or
>   something. It's my understanding that this is incorrect, and mod_jk
>   should be used for new installations. It's a little confusing.
>
> unerlying protocol:
>   AJP11 - original protocol
>   Ajp12 - also supported in mod_jk1.
>
> works with:
>   servlet containers:
> JServ
> Tomcat3.x as well ( which supports ajp12 )
>   web servers:
> All apache1.3 versions
>   operating systems:
> ???
>
>
>mod_jk
>
>   why it was written:
> originally, clean-up of mod_jserv. Refactoring of mod_jserv to
> better abstract the server and protocol.
>
>   features:
> many production users. load balancing with both tomcat 3 and
> tomcat 4 <[EMAIL PROTECTED]> "Pretty good OO model, good
> abstraction for server and protocol, etc."
>
>   future: 
> mod_jk2, as of [30 Apr 2002] still in pre-alpha.
>
>   status:
> in production for tomcat 3, 4. see also webapp connector.
>
>   where to get the source:
> jakarta-tomcat-connectors/jk
>
>   where to get documentation:
> jakarta-tomcat-connectors/jk
> tomcat-dev mailing list archives
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
>
>   works with:
> servlet containers:
>   jserv?
>   tomcat-3
>   tomcat-4
> web servers:
>   domino
>   apache 1.3
>   apache 2.0 (HEAD)
>   netscape
>   AOLServer ( not in the main tree ).
>   IIS
> platforms:
>   many.
>
>   underlying protocol:
> AJP, see mod_jserv
> evolution:
>   AJP12, binary
>   AJP13, better SSL support. the current protocol.
>   AJP14, there is no AJP14, it's a shelved experiment. AJP13 is
> flexible enough for future growth, and there's the
> possibility of eventually moving to an industry-standard
> marshalling protocol like XDR or CDR. see comments below.
>
>   documentation/mailing-list/cvs comments of interest:
>
>   Re: [NITPICK] didn't see this one coming...
>   Mon, 29 Apr 2002 07:54:09 -0700 (PDT)
>   <[EMAIL PROTECTED]>
>... Note that mod_jk2 is not and will not be ready
>for 4.1 ...
>
>   <[EMAIL PROTECTED]> "Also - it's [mod_jk -ed] the 
>area/component of
>   tomcat with the largest number of individual commiters ( by my
>   count at least ). And more important - one of the things that 3.x
>   and 4.x share and seem to bring cooperation from 

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans StandardServerMBean.java

2002-05-02 Thread craigmcc

craigmcc02/05/02 13:08:31

  Modified:catalina/src/share/org/apache/catalina/mbeans
StandardServerMBean.java
  Log:
  Correctly persist  elements inside , and  elements
  (if non-defaults) inside .
  
  Revision  ChangesPath
  1.16  +50 -6 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java
  
  Index: StandardServerMBean.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- StandardServerMBean.java  2 May 2002 19:32:28 -   1.15
  +++ StandardServerMBean.java  2 May 2002 20:08:31 -   1.16
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.15 2002/05/02 19:32:28 amyroh Exp $
  - * $Revision: 1.15 $
  - * $Date: 2002/05/02 19:32:28 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.16 2002/05/02 20:08:31 craigmcc Exp $
  + * $Revision: 1.16 $
  + * $Date: 2002/05/02 20:08:31 $
*
* 
*
  @@ -80,6 +80,7 @@
   import javax.management.MBeanServer;
   import javax.management.ObjectName;
   import javax.management.RuntimeOperationsException;
  +import javax.naming.directory.DirContext;
   import org.apache.catalina.Connector;
   import org.apache.catalina.Container;
   import org.apache.catalina.Context;
  @@ -104,6 +105,7 @@
   import org.apache.catalina.deploy.ContextEnvironment;
   import org.apache.catalina.deploy.ResourceParams;
   import org.apache.catalina.net.ServerSocketFactory;
  +import org.apache.catalina.session.PersistentManager;
   import org.apache.commons.beanutils.PropertyUtils;
   import org.apache.commons.modeler.BaseModelMBean;
   
  @@ -113,7 +115,7 @@
* org.apache.catalina.core.StandardServer component.
*
* @author Amy Roh
  - * @version $Revision: 1.15 $ $Date: 2002/05/02 19:32:28 $
  + * @version $Revision: 1.16 $ $Date: 2002/05/02 20:08:31 $
*/
   
   public class StandardServerMBean extends BaseModelMBean {
  @@ -134,6 +136,7 @@
*/
   private static String exceptions[][] = {
   { "org.apache.catalina.core.StandardContext", "configured" },
  +{ "org.apache.catalina.core.StandardContext", "name" },
   { "org.apache.catalina.core.StandardContext", "publicId" },
   { "org.apache.catalina.core.StandardContext", "workDir" },
   { "org.apache.catalina.session.StandardManager", "distributable" },
  @@ -594,6 +597,12 @@
   }
   
   // Store nested  element
  +DirContext resources = context.getResources();
  +if (resources != null) {
  +storeResources(writer, indent + 2, resources);
  +}
  +
  +/*
   ContextResource[] resources = context.findResources();
   for (int i = 0; i < resources.length; i++) {
   for (int j = 0; j < indent + 2; j++) {
  @@ -647,6 +656,7 @@
   }
   }
   }
  +*/
   
   
   // Store nested  elements
  @@ -937,7 +947,7 @@
   }
   
   // Store nested  elements
  -; // FIXME
  +; // FIXME - But it's not supported by any standard Host implementation
   
   // Store nested  elements (or other relevant containers)
   Container children[] = host.findChildren();
  @@ -1098,7 +1108,12 @@
   writer.println(">");
   
   // Store nested  element
  -; // FIXME
  +if (manager instanceof PersistentManager) {
  +Store store = ((PersistentManager) manager).getStore();
  +if (store != null) {
  +storeStore(writer, indent + 2, store);
  +}
  +}
   
   // Store the ending of this element
   for (int i = 0; i < indent; i++) {
  @@ -1126,6 +1141,35 @@
   }
   writer.print("");
  +
  +}
  +
  +
  +/**
  + * Store the specified Resources properties.
  + *
  + * @param writer PrintWriter to which we are storing
  + * @param indent Number of spaces to indent this element
  + * @param resources Object whose properties are being stored
  + *
  + * @exception Exception if an exception occurs while storing
  + */
  +private void storeResources(PrintWriter writer, int indent,
  +DirContext resources) throws Exception {
  +
  +if (resources instanceof org.apache.naming.resources.FileDirContext) {
  +return;
  +}
  +if (resources instanceof org.apache.naming.resources.WARDirContext) {
  +return;
  +}
  +
  +for (int i = 

WebApp 1.2.0

2002-05-02 Thread Pier Fumagalli

I want to finish up a couple of things before tagging, such as having a make
which actually builds up a "dist" directory, update the docs slightly and
stupid things like that... Maybe later tonight?

Pier

--
I think that it's extremely foolish to name a server after the current U.S.
President. B.W. Fitzpatrick



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread GOMEZ Henri

>> [Thu May 02 21:44:38 2002] [notice] Apache/2.0.35 (Unix)
>> mod_ssl/2.0.35OpenSSL/0.9.6 DAV/2 mod_jk/1.2.0 mod_webapp 
>1.2.0 configured --
>> resuming normal operations
>
>Hm. Might do that as well...

I could add that if you want ;)
Just to show to Jon that I could also commit in webapp ;)

>> Nota that mod_jk / mod_webapp coexist very well ;)
>
>Why shouldn't they? For sure I'm not going to set JK's 
>pointers to NULL just
>to make it segfault :)

Never think about it ?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

> Ok, I added :
> 
> ServerName hgo1.slib.com:8092
> 
> and it works fine.
> 
> BTW, it need to have A FULL HOST:PORT

Correct... On Apache 2.0 yes because there's no Port directive.
But since that thing is beating the crap out of me, I'll just change the
whole lot... The only thing is that I might have to do some changes on the
configuration directives... :(

> What about reporting webapp version at init time,
> 
> [Thu May 02 21:44:38 2002] [notice] Apache/2.0.35 (Unix)
> mod_ssl/2.0.35OpenSSL/0.9.6 DAV/2 mod_jk/1.2.0 configured -- resuming normal
> operations   
> 
> could be
> 
> [Thu May 02 21:44:38 2002] [notice] Apache/2.0.35 (Unix)
> mod_ssl/2.0.35OpenSSL/0.9.6 DAV/2 mod_jk/1.2.0 mod_webapp 1.2.0 configured --
> resuming normal operations

Hm. Might do that as well...

> Nota that mod_jk / mod_webapp coexist very well ;)

Why shouldn't they? For sure I'm not going to set JK's pointers to NULL just
to make it segfault :)

Pier

--
I think that it's extremely foolish to name a server after the current U.S.
President. B.W. Fitzpatrick


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread GOMEZ Henri

>"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:
>
>> Ok, so you have to add  around
>> webapp config.
>
>No...
>
>> I remember an old mail where Pier told something
>> about adding support to DefaultHost but it's quite
>> sometimes ago
>
>You just have to put "ServerName" outside of ANY virtual host...
>

Ok, I added :

ServerName hgo1.slib.com:8092   

and it works fine.

BTW, it need to have A FULL HOST:PORT

What about reporting webapp version at init time,

[Thu May 02 21:44:38 2002] [notice] Apache/2.0.35 (Unix) mod_ssl/2.0.35OpenSSL/0.9.6 
DAV/2 mod_jk/1.2.0 configured -- resuming normal operations

could be

[Thu May 02 21:44:38 2002] [notice] Apache/2.0.35 (Unix) mod_ssl/2.0.35OpenSSL/0.9.6 
DAV/2 mod_jk/1.2.0 mod_webapp 1.2.0 configured -- resuming normal operations   
 

Nota that mod_jk / mod_webapp coexist very well ;)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/conf workers2.properties

2002-05-02 Thread costin

costin  02/05/02 12:46:17

  Modified:jk/conf  workers2.properties
  Log:
  Changed to use the new proposed attributes.
  
  I used tomcatId as a temporary name - instance is a bit too generic.
  If you have a better sugestion for the name - please let me know !
  ( route is also a bit overloaded )
  
  I also started to add 'group' attributes - it'll be used to
  automatically create lb workers.
  
  The current config will have 2 workers, and send all the requests to the
  unix socket. If that fails, it should fall back to the second worker.
  
  The /examples1 should allwasy go to the second worker.
  
  ( that doesn't work yet - I need to plug in the 'group' magic ).
  
  Revision  ChangesPath
  1.10  +23 -19jakarta-tomcat-connectors/jk/conf/workers2.properties
  
  Index: workers2.properties
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/conf/workers2.properties,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- workers2.properties   30 Apr 2002 06:50:05 -  1.9
  +++ workers2.properties   2 May 2002 19:46:17 -   1.10
  @@ -28,46 +28,40 @@
   
   # Default channel 
   [channel.socket:localhost:8009]
  -# lbfactor=1
  +lbfactor=1
  +tomcatId=localhost:8009
   
   
   # Example additional socket channel. The location is in the name ( URL-style
   [channel.socket:localhost:8019]
  -
  -
  -# Example 2 - explicitely set the host/port, the name can be anything.
  -# [channel.socket:myWorker]
  -# host=myHost
  -# port=8109
  +tomcatId=localhost:8019
  +lbfactor=1
  +group=lb_1
  +group=lb_2
   
   
   # Example unix socket.
   # XXX We must use an explicit setting to use substitution - resolve this
   [channel.apr:unixSocket]
   file=${TOMCAT_HOME}/work/jk2.socket
  +tomcatId=localhost:8009
  +lbfactor=0
   
   
  +# 
  +# The JNI channel is enabled and configured automatically
  +# if a VM is detected and tomcat started.
   [channel.jni:jni]
   
    Workers 
   # All non-ajp13 workers or workers with special configurations
  +# There is no configuration for ajp13 workers - you just configure
  +# channels 
   
   # The status worker. 
   [worker.status]
   
   
  -# This is created by default - and used for all webapps that don't specify 
  -# explicitely an worker.
  -# It'll automatically get all the 'forwarding' workers/channels.
  -# [worker.lb]
  -
  -
  -# Note that we use separate lines instead of , separated values. 
  -# This is also created by default - when a forwarding worker has a 
  -# 'group' property
  -# [worker.lb:group1]
  -
  -
   # Requirements: libjvm.so MUST BE INCLUDED in LD_LIBRARY_PATH for this 
   # to work reliably and on all platforms. Same for other java libs. 
   # "java" script is a good example, Sun needs it to start java and we need it to.
  @@ -106,6 +100,10 @@
   [uri:/examples]
   context=/examples
   
  +[uri:/examples1]
  +context=/examples
  +group=lb_1
  +
   [uri:localhost:8080/examples]
   context=/examples
   
  @@ -122,6 +120,12 @@
   
   # Prefix mapping
   [uri:/examples/servlet/RequestInfoExample/*]
  +
  +[uri:/examples/*]
  +
  +[uri:/examples1/*]
  +# XXX The setting should be only on host and context
  +group=lb_1
   
   # Extension match
   [uri:/examples/*.jsp]
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

> Ok, so you have to add  around
> webapp config.

No...

> I remember an old mail where Pier told something
> about adding support to DefaultHost but it's quite
> sometimes ago

You just have to put "ServerName" outside of ANY virtual host...

Pier

--
I think that it's extremely foolish to name a server after the current U.S.
President. B.W. Fitzpatrick



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

> May I suggest you drop the latest tarball, with
> the configure included :) in jtc/webapp ?
> 
> Or I could do it for you and prepare the layout
> but need something like a version number/release :
> 
> 1.0.3b1, 1.0.2 

Version??? Doh... Someone calls it 1.1, someone 0.9, someone 1.0... I'd say
we call it 1.2.0 (which I've never seen around) and start back from scratch
from there...

I'll put up the tarball...

Pier

--
I think that it's extremely foolish to name a server after the current U.S.
President. B.W. Fitzpatrick



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread GOMEZ Henri

May I suggest you drop the latest tarball, with 
the configure included :) in jtc/webapp ?

Or I could do it for you and prepare the layout
but need something like a version number/release :

1.0.3b1, 1.0.2 

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 02, 2002 8:30 PM
>To: Tomcat Developers List
>Subject: Re:
>cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh
>
>
>"Pier Fumagalli" <[EMAIL PROTECTED]> wrote:
>
>> "GOMEZ Henri" <[EMAIL PROTECTED]> wrote:
>> 
>>> It build on my Redhat 6.2 box but failed at http2 start :
>>> 
>>> Invalid virtual host name ?[
>> 
>> Put "ServerName" befor WebApp... Will have to fix that one
>
>BTW, this at least tells me that it works FWIW, the only 
>things I changed
>were build stuff, and so, once you load the DSO, you're set...
>
>Pier
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans StandardServerMBean.java

2002-05-02 Thread amyroh

amyroh  02/05/02 12:32:28

  Modified:catalina/src/share/org/apache/catalina/mbeans
StandardServerMBean.java
  Log:
  Fix Resource and ResourceParam config save.
  
  Revision  ChangesPath
  1.15  +98 -106   
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java
  
  Index: StandardServerMBean.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- StandardServerMBean.java  2 May 2002 17:45:43 -   1.14
  +++ StandardServerMBean.java  2 May 2002 19:32:28 -   1.15
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.14 2002/05/02 17:45:43 craigmcc Exp $
  - * $Revision: 1.14 $
  - * $Date: 2002/05/02 17:45:43 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.15 2002/05/02 19:32:28 amyroh Exp $
  + * $Revision: 1.15 $
  + * $Date: 2002/05/02 19:32:28 $
*
* 
*
  @@ -113,7 +113,7 @@
* org.apache.catalina.core.StandardServer component.
*
* @author Amy Roh
  - * @version $Revision: 1.14 $ $Date: 2002/05/02 17:45:43 $
  + * @version $Revision: 1.15 $ $Date: 2002/05/02 19:32:28 $
*/
   
   public class StandardServerMBean extends BaseModelMBean {
  @@ -595,61 +595,59 @@
   
   // Store nested  element
   ContextResource[] resources = context.findResources();
  - for (int i = 0; i < resources.length; i++) {
  +for (int i = 0; i < resources.length; i++) {
   for (int j = 0; j < indent + 2; j++) {
   writer.print(' ');
   }
   writer.print("");
  -}   
   
  -// Store nested  elements
  -NamingResources namingResources = context.getNamingResources();
  -ResourceParams[] params = namingResources.findResourceParams();
  -for (int i = 0; i < indent + 2; i++) {
  -writer.print(' ');
  -}
  -if (params.length > 0) {
  -writer.print("");
  - 
  -for (int i = 0; i < params.length; i++) {
  -Hashtable resourceParams = params[i].getParameters();
  -Enumeration nameEnum = resourceParams.keys();
  -Enumeration valueEnum = resourceParams.elements();
  -while ((nameEnum.hasMoreElements()) && (valueEnum.hasMoreElements())) { 
 
  -for (int j = 0; j < indent + 4; j++) {
  -writer.print(' ');
  -}
  -writer.println("");
  -for (int j = 0; j < indent + 6; j++) {
  -writer.print(' ');
  -}   
  -writer.print("");
  -writer.print(nameEnum.nextElement());
  -writer.println(""); 
  -for (int j = 0; j < indent + 6; j++) {
  -writer.print(' ');
  -}   
  -writer.print(""); 
  -writer.print(valueEnum.nextElement());
  -writer.println(""); 
  -for (int j = 0; j < indent + 4; j++) {
  -writer.print(' ');
  -}   
  -writer.println("");  
  +// Store nested  elements
  +NamingResources namingResources = context.getNamingResources();
  +ResourceParams[] params = namingResources.findResourceParams();  
  +for (int j = 0; j < params.length; j++ ) {
  +if (resources[i].getName().equals(params[j].getName())) {
  +for (int k = 0; k < indent + 2; k++) {
  +writer.print(' ');
  +}
  +writer.print("");
  +Hashtable resourceParams = params[j].getParameters();
  +Enumeration nameEnum = resourceParams.keys();
  +Enumeration valueEnum = resourceParams.elements();
  +while ((nameEnum.hasMoreElements()) && 
  +(valueEnum.hasMoreElements())) {  
  +for (int k = 0; k < indent + 4; k++) {
  +writer.print(' ');
  +}
  +writer.println("");
  +for (int k = 0; k < indent + 6; k++) {
  +writer.print(' ');
  +}   
  +writer.print("");
  +writer.print(

RE: cvs commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread GOMEZ Henri

Ok, so you have to add  around
webapp config.

I remember an old mail where Pier told something
about adding support to DefaultHost but it's quite
sometimes ago

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Punky Tse [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 02, 2002 6:19 PM
>To: Tomcat Developers List
>Subject: Re: cvs
>commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh
>
>
>Henri,
>
>I have no problem in my linux box.  My conf:
>===
>
>ServerName punknix.homeip.net:80
>#LoadModule webapp_module modules/mod_webapp.so
>LoadModule webapp_module modules/libwebapp.so
>WebAppConnection conn warp localhost:8008
>WebAppDeploy examples conn /examples
>
>===
>
>Punky
>
>GOMEZ Henri wrote:
>
>>It build on my Redhat 6.2 box but failed at http2 start :
>>
>>Invalid virtual host name ?[
>>
>>-
>>Henri Gomez ___[_]
>>EMAIL : [EMAIL PROTECTED](. .) 
>>PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
>>PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
>>
>>
>>
>>  
>>
>>>-Original Message-
>>>From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
>>>Sent: Thursday, May 02, 2002 12:31 PM
>>>To: Tomcat Developers List
>>>Subject: Re: cvs
>>>commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh
>>>
>>>
>>>"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>Autoconf is _only_ required when building straight out of 
>
>
>>>CVS, you can
>>>
>>>
>always use nightlies, which have the already-autoconfed
>"configure" script.
>
>It's a PITA, but there are so many changes between 2.1x and 
>
>
>>>2.5x that
>>>
>>>
>maintaining if for both will be a major pain in the neck...
>
>Otherwise, we can always check-in the configure script (now 
>
>
>>>I hear Jon
>>>
>>>
>screaming out loud :)
>
>
Don't make Jon sad, just send me a copy of configure script and
I'll try the build ;)
  

>>>Since the nightly since the very latest (important) changes 
>>>didn't run yet,
>>>here's a snapshot: 
http://nagoya.apache.org/~pier/webapp-current.tar.gz
>>
>>   Pier
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
>>
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[VOTE] tomcat 4 rpm to re-use standard listening ports ?

2002-05-02 Thread GOMEZ Henri

Hi,

As you may know, the current tomcat 4 rpm change
all the listen ports (http10, http11, ajp) to
assure a pacific ;) coexistence between with an
allready installed tomcat3.

I wonder if it won't be time to restore the original ports,
just to avoid users questions.

I'll provide a little script in rpm to change
the ports for users who still want to have 
active at the same time, TC 3.3.1 and TC 4.x.

I've got a tomcat 4.0.4-b2 rpm ready and could
make the changes quickly.

Vote please :

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 6509] - Mod_webapp tries to deploy all apps down all connections

2002-05-02 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=6509

Mod_webapp tries to deploy all apps down all connections





--- Additional Comments From [EMAIL PROTECTED]  2002-05-02 19:16 ---
"Marty Lee" <[EMAIL PROTECTED]> wrote:
> 
> I'll download the new version tonight and make a new patch

Thanks Marty, let me know...

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [4.1.0] Anyone testing it ?

2002-05-02 Thread GOMEZ Henri

>> I'll have to try some kind of bootstrap action
>> in my rpm, start compiling TC 4.x with binaries,
>> then goes to JTC and rebuild it against newly
>> built TC 4.x, then install these in place of
>> bundled binaries ?(8
>
>I think you can compile coyote without 4.x/3.x 
>( it has autodetection and will not compile the parts
>that depend on tomcat ). Then you can compile the rest
>of jtc, as it depends only on coyote.


>Then 3.3/4.x, and recompile coyote to get the 
>tomcat specific part.

Urg ;)

I used the good old bootstrap method.

1) compiled TC4 with provided binary jars

2) compiled util, coyote, http11, jk/jk2 
   against fresh TC4

3) replaced the original binaries with the
   newly generated util, coyote, http11, jk jars.

:)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"Pier Fumagalli" <[EMAIL PROTECTED]> wrote:

> "GOMEZ Henri" <[EMAIL PROTECTED]> wrote:
> 
>> It build on my Redhat 6.2 box but failed at http2 start :
>> 
>> Invalid virtual host name ?[
> 
> Put "ServerName" befor WebApp... Will have to fix that one

BTW, this at least tells me that it works FWIW, the only things I changed
were build stuff, and so, once you load the DSO, you're set...

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: PROPOSAL: mod_jk2: Group/Instance

2002-05-02 Thread Hans Schmid



> -Ursprungliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 2. Mai 2002 19:35
> An: Tomcat Developers List
> Betreff: Re: PROPOSAL: mod_jk2: Group/Instance
>
>
> On Thu, 2 May 2002, Bernd Koecke wrote:
>
> > misunderstood it. After you said that my patch is included a
> had a closer look
> > at mod_jk. I can't see anything of my code but I found the
> special meaning of
> > the zero lb_factor/lb_value. It seems that I didn't understand
> it right at the
> > first time. This could solve my problem but after a closer look
> and some testing
> > I found another problem. When you set the lb_value in
> workers.properties to 1
> > for the local tomcat and 0 for the others, you get the desired
> behavior. But if
> > you switch off the local tomcat for a short time you come into
> trouble. The
> > problem is the 0 for the other workers. The calculation of
> lb_worker transforms
> > the 0 to _inf_. Because 1/0 for a double is _inf_. This is
> greater than any


Thats why we use values like 0.01 in this situation in mod_jk1 and live
with the few lost sessions.

Somewhere in the tomcat-Dev archives I once saw a patch introducing a
'active' flag
for the lbfactor, but I never had the time to apply this patch and try it
out.

it was something like

worker.ajp13-01.lbfactor=1
worker.ajp13-01.active=0

in the workers.properties

(we already discussed this one in 2001 :)
http://marc.theaimsgroup.com/?l=tomcat-dev&m=100719342027584&w=4

>
> I think there is a piece that checks for 0 and sets it to DEFAULT_VALUE
> (==1 ) before doing 1/lb.
>
> While looking at the code - I'm not very sure this whole float is needed,
> I'll try to find a way to simplify it and use ints ( maybe 0..100 with
> some 'special' values for NEVER and ALLWAYS, or some additional flags ).
>
> But the way it works ( or at least how I understand it ) is that if the
> main worker fails, then we look at all workers in error state and try the
> one with the oldest error. And the 'main' worker will be tried again when
> the timeout expires.
>
>
> I haven't tested this too much, I just applied the patches ( that I
> understand :-), I'll add some more debugging for this process and maybe
> we can find a better solution.
>
> But this functionality is essential for the JNI worker and very important
> in general - so I really want to find the best solution. If you have any
> patch idea, let me know.
>
> To avoid further confusion and complexity in the lb-factor/value, I
> think we should add one more flag ( 'local_worker' ? ) and use it
> explicitely. Again, patches are wellcome - it's allways good to have
>  different ( and more ) eyes looking at the code.
>
> ( that can go in both jk1, but I can't see a release of jk2 without this
> functionality )
>
> Costin
>
>
> > other lb_value and greater than the lb_value of the local
> tomcat. But after a
> > failure of the local tomcat he is in error_state. After some
> time its set to
> > recovering and if the local tomcat is back again the function
> jk(2)_get_max_lb
> > gets the highest lb_value. This is _inf_ from one of the other
> workers. The
> > addition of a value to _inf_ is meaningless. You end up with an
> lb_value of
> > _inf_ for the local worker. If this worker isn't the first in
> the worker list,
> > it will never be choosen again. Because his lb_value will never
> be less than
> > another lb_value, because all the other workers have _inf_ as
> theire lb_values.
> > So every request without a session will be routed to the first
> of the other
> > tomcats.
> >
> > The only way out is a restart of the local apache after tomcat
> is up and
> > running. But I don't know when tomcat is finished with all his
> contexts and
> > started the connectors.
> >
> > I didn't looked very deep into jk2, but I found the same
> > get_most_suitable_worker and get_max_lb functions. The
> jk2_get_max_lb function
> > will always return _inf_. In your answer to some other mails
> you said, that
> > workers could be removed. Do I understand it right, that if my
> local tomcat goes
> > down his worker is removed from the list and after he is
> comming up again added
> > to the worker list with reseted lb_value (only for mod_jk2)?
> >
> > The next days I will look in the docu and code of jk2 and give
> it a try. May be
> > all my problems gone away with the new module :).
> >
> > Sorry if I ask stupid questions, but I want to make it working
> for our new cluster.
> >
> > Thanks
> >
> > Bernd
> >
> > > This is essential for jk2's JNI worker, which fits perfectly this case
> > > ( you don't want to send via TCP when you have a tomcat
> instance in the
> > > same process ).
> > >
> > >
> > >
> > >>(2) Tomcat instances in standby or "soft shutdown" mode where
> they serve
> > >>requests bound by established sessions, and requests without
> a session only
> > >>if all non-standby instances have failed.
> > >
> > >
> > > That's what the SHM scoreboard is going to do ( among o

cvs commit: jakarta-tomcat-4.0/webapps/admin/host host.jsp

2002-05-02 Thread manveen

manveen 02/05/02 11:22:17

  Modified:webapps/admin/host host.jsp
  Log:
  Disable links for deleting host and adding/deleting realms to the host of the admin 
app so that the tool doesnt crash.
  
  Revision  ChangesPath
  1.14  +5 -1  jakarta-tomcat-4.0/webapps/admin/host/host.jsp
  
  Index: host.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/host/host.jsp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- host.jsp  18 Apr 2002 06:46:45 -  1.13
  +++ host.jsp  2 May 2002 18:22:17 -   1.14
  @@ -69,6 +69,7 @@
 URLEncoder.encode(thisObjectName) %>'> 

   
  +

   - 
   
  @@ -80,6 +81,7 @@
 URLEncoder.encode(thisObjectName) %>'> 

   
  +

   - 
   
  @@ -91,13 +93,15 @@
 URLEncoder.encode(thisObjectName) %>'> 

   
  +

   - 
   
 

  -   
  +
  +   


  
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvscommit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

> It build on my Redhat 6.2 box but failed at http2 start :
> 
> Invalid virtual host name ?[

Put "ServerName" befor WebApp... Will have to fix that one

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




PROPOSAL: mod_jk2: new lb values

2002-05-02 Thread costinm

Based on the previous discussion:

- change lbfactor from float to int ( maybe rename it to avoid confusion)

- The value will be from 1 to MAX ( 100 ? ).

- Smaller values will mean more work. The value '0' ( or a special 
flag ? ) will mean the worker will be used allways ( as long as it is not 
in_error state ). We can make sure the '0' is the first in the list, 
and avoid looking for others.

-  A factor 2 will take 2 times fewer requests than factor 1, 3 will be 
1/3, etc. ( each worker uses a counter, and the counter is incremented on 
each request with the factor value - that's how it works today to 
implement the round roubin ).

-  When a worker reaches MAX, all workers will be reset to their
original values and error state reset. ( that means we'll reset the
error state based on number of requests, not time ) ( is this a good idea ?) 

- A value of MAX ( Or flag ? ) will mean the worker will take no 
request, except those with a previous session id. That's the gracefull
shutdown.

In addition, I'm in process of moving the lb properties to channel, 
since that's what the user should configure in jk2. 

Costin



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/context context.jsp

2002-05-02 Thread manveen

manveen 02/05/02 11:16:10

  Modified:webapps/admin/context context.jsp
  Log:
  cannot add or delete a realm from the admin context.
  
  Revision  ChangesPath
  1.6   +4 -1  jakarta-tomcat-4.0/webapps/admin/context/context.jsp
  
  Index: context.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/context/context.jsp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- context.jsp   26 Apr 2002 19:15:52 -  1.5
  +++ context.jsp   2 May 2002 18:16:10 -   1.6
  @@ -51,6 +51,9 @@
 URLEncoder.encode(thisObjectName) %>'> 

   
  +<%-- cannot delete or add the realm of the context of the admin app --%>
  +
- 

   
  @@ -60,7 +63,7 @@
 URLEncoder.encode(thisObjectName) %>'> 

   
  ---%>
  +
 
-  
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/service service.jsp

2002-05-02 Thread manveen

manveen 02/05/02 11:15:40

  Modified:webapps/admin/service service.jsp
  Log:
  cannot add or delete a realm for the service the admin app is running on.
  
  Revision  ChangesPath
  1.15  +3 -0  jakarta-tomcat-4.0/webapps/admin/service/service.jsp
  
  Index: service.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/service/service.jsp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- service.jsp   26 Apr 2002 19:05:12 -  1.14
  +++ service.jsp   2 May 2002 18:15:40 -   1.15
  @@ -80,6 +80,8 @@
 URLEncoder.encode(thisObjectName) %>'> 

 
  +   <%-- cannot delete or add a Realm for the service the admin app runs 
on --%>
  +  
  
   - 
 
  @@ -91,6 +93,7 @@
 URLEncoder.encode(thisObjectName) %>'> 

 
  +  
  
   - 
 
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [VOTE] New committer: Christopher St John

2002-05-02 Thread Bill Barker

+1
- Original Message -
From: "Remy Maucherat" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 01, 2002 1:59 PM
Subject: [VOTE] New committer: Christopher St John


> I'd like to propose Christopher St John  as a
> committer on Tomcat. Christopher has contributed ideas and code to do some
> improvements to the design of Catalina. More importantly, he seems very
> motivated and willing to contribute very significant time and effort on
> Tomcat.
>
> He has my +1.
>
> Remy
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/webapps/admin/connector connector.jsp

2002-05-02 Thread manveen

manveen 02/05/02 11:00:15

  Modified:webapps/admin/connector connector.jsp
  Log:
  Keystore password and filename input allowed only while creating a new SSL connector.
  
  Revision  ChangesPath
  1.11  +11 -3 jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp
  
  Index: connector.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/connector/connector.jsp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- connector.jsp 30 Apr 2002 18:10:48 -  1.10
  +++ connector.jsp 2 May 2002 18:00:15 -   1.11
  @@ -242,22 +242,30 @@
   
   
   
  -  <%-- FIXME: Input only allowed on create transaction?? --%>
  +<%-- Input allowed only on create --%>
   
   :
   
  +

  + 
  + 
  +   
  + 
   
   
   
   
   :
   
  -<%-- should the password be of type html:password or is cleartext 
ok? --%>
  + 

  + 
  + 
  +   
  + 
   
   
  -
   
  
 
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans StandardServerMBean.java

2002-05-02 Thread craigmcc

craigmcc02/05/02 10:45:43

  Modified:catalina/src/share/org/apache/catalina/mbeans
StandardServerMBean.java
  Log:
  When saving server.xml, render , ,
  , and  elements correctly.
  
  Revision  ChangesPath
  1.14  +40 -8 
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java
  
  Index: StandardServerMBean.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- StandardServerMBean.java  2 May 2002 02:03:15 -   1.13
  +++ StandardServerMBean.java  2 May 2002 17:45:43 -   1.14
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.13 2002/05/02 02:03:15 amyroh Exp $
  - * $Revision: 1.13 $
  - * $Date: 2002/05/02 02:03:15 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServerMBean.java,v
 1.14 2002/05/02 17:45:43 craigmcc Exp $
  + * $Revision: 1.14 $
  + * $Date: 2002/05/02 17:45:43 $
*
* 
*
  @@ -113,7 +113,7 @@
* org.apache.catalina.core.StandardServer component.
*
* @author Amy Roh
  - * @version $Revision: 1.13 $ $Date: 2002/05/02 02:03:15 $
  + * @version $Revision: 1.14 $ $Date: 2002/05/02 17:45:43 $
*/
   
   public class StandardServerMBean extends BaseModelMBean {
  @@ -516,7 +516,15 @@
   writer.println(">");
   
   // Store nested  elements
  -; // FIXME
  +String iListeners[] = context.findInstanceListeners();
  +for (int i = 0; i < iListeners.length; i++) {
  +for (int j = 0; j < indent; j++) {
  +writer.print(' ');
  +}
  +writer.print("");
  +writer.print(iListeners[i]);
  +writer.println("");
  +}
   
   // Store nested  elements
   if (context instanceof Lifecycle) {
  @@ -663,10 +671,26 @@
   }
   
   // Store nested  elements
  -; // FIXME
  +String wLifecycles[] = context.findWrapperLifecycles();
  +for (int i = 0; i < wLifecycles.length; i++) {
  +for (int j = 0; j < indent; j++) {
  +writer.print(' ');
  +}
  +writer.print("");
  +writer.print(wLifecycles[i]);
  +writer.println("");
  +}
   
   // Store nested  elements
  -; // FIXME
  +String wListeners[] = context.findWrapperListeners();
  +for (int i = 0; i < wListeners.length; i++) {
  +for (int j = 0; j < indent; j++) {
  +writer.print(' ');
  +}
  +writer.print("");
  +writer.print(wListeners[i]);
  +writer.println("");
  +}
   
   // Store the ending of this element
   for (int i = 0; i < indent; i++) {
  @@ -910,7 +934,15 @@
   writer.println(">");
   
   // Store nested  elements
  -; // FIXME
  +String aliases[] = host.findAliases();
  +for (int i = 0; i < aliases.length; i++) {
  +for (int j = 0; j < indent; j++) {
  +writer.print(' ');
  +}
  +writer.print("");
  +writer.print(aliases[i]);
  +writer.println("");
  +}
   
   // Store nested  elements
   ; // FIXME
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: PROPOSAL: mod_jk2: Group/Instance

2002-05-02 Thread costinm

On Thu, 2 May 2002, Bernd Koecke wrote:

> misunderstood it. After you said that my patch is included a had a closer look 
> at mod_jk. I can't see anything of my code but I found the special meaning of 
> the zero lb_factor/lb_value. It seems that I didn't understand it right at the 
> first time. This could solve my problem but after a closer look and some testing 
> I found another problem. When you set the lb_value in workers.properties to 1 
> for the local tomcat and 0 for the others, you get the desired behavior. But if 
> you switch off the local tomcat for a short time you come into trouble. The 
> problem is the 0 for the other workers. The calculation of lb_worker transforms 
> the 0 to _inf_. Because 1/0 for a double is _inf_. This is greater than any 

I think there is a piece that checks for 0 and sets it to DEFAULT_VALUE 
(==1 ) before doing 1/lb. 

While looking at the code - I'm not very sure this whole float is needed,
I'll try to find a way to simplify it and use ints ( maybe 0..100 with 
some 'special' values for NEVER and ALLWAYS, or some additional flags ).

But the way it works ( or at least how I understand it ) is that if the 
main worker fails, then we look at all workers in error state and try the 
one with the oldest error. And the 'main' worker will be tried again when 
the timeout expires.


I haven't tested this too much, I just applied the patches ( that I 
understand :-), I'll add some more debugging for this process and maybe 
we can find a better solution.

But this functionality is essential for the JNI worker and very important
in general - so I really want to find the best solution. If you have any
patch idea, let me know.

To avoid further confusion and complexity in the lb-factor/value, I 
think we should add one more flag ( 'local_worker' ? ) and use it 
explicitely. Again, patches are wellcome - it's allways good to have 
 different ( and more ) eyes looking at the code. 

( that can go in both jk1, but I can't see a release of jk2 without this 
functionality )

Costin


> other lb_value and greater than the lb_value of the local tomcat. But after a 
> failure of the local tomcat he is in error_state. After some time its set to 
> recovering and if the local tomcat is back again the function jk(2)_get_max_lb 
> gets the highest lb_value. This is _inf_ from one of the other workers. The 
> addition of a value to _inf_ is meaningless. You end up with an lb_value of 
> _inf_ for the local worker. If this worker isn't the first in the worker list, 
> it will never be choosen again. Because his lb_value will never be less than 
> another lb_value, because all the other workers have _inf_ as theire lb_values. 
> So every request without a session will be routed to the first of the other 
> tomcats.
> 
> The only way out is a restart of the local apache after tomcat is up and 
> running. But I don't know when tomcat is finished with all his contexts and 
> started the connectors.
> 
> I didn't looked very deep into jk2, but I found the same 
> get_most_suitable_worker and get_max_lb functions. The jk2_get_max_lb function 
> will always return _inf_. In your answer to some other mails you said, that 
> workers could be removed. Do I understand it right, that if my local tomcat goes 
> down his worker is removed from the list and after he is comming up again added 
> to the worker list with reseted lb_value (only for mod_jk2)?
> 
> The next days I will look in the docu and code of jk2 and give it a try. May be 
> all my problems gone away with the new module :).
> 
> Sorry if I ask stupid questions, but I want to make it working for our new cluster.
> 
> Thanks
> 
> Bernd
> 
> > This is essential for jk2's JNI worker, which fits perfectly this case
> > ( you don't want to send via TCP when you have a tomcat instance in the 
> > same process ).
> > 
> > 
> > 
> >>(2) Tomcat instances in standby or "soft shutdown" mode where they serve
> >>requests bound by established sessions, and requests without a session only
> >>if all non-standby instances have failed.
> > 
> > 
> > That's what the SHM scoreboard is going to do ( among other things ). 
> > You can register tomcat instances ( which will be added automatically ),
> > or unregister - in which case no new requests ( except the old sessions )
> > will go to the unregistered tomcat.
> > 
> > 
> > Costin
> > 
> > 
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>>On Tue, 30 Apr 2002, Bernd Koecke wrote:
> >>>
> >>>
> some weeks ago I send a patch for mod_jk for an only routing lb_worker. A
> >>>
> >>few 
> >>
> days later I sent the docu. Henry Gomez said, that it should be commited.
> >>>
> >>But it 
> >>
> I think it isn't in the repository. But its the same  with me here, to
> >>>
> >>mutch 
> >>
> work for to less time :).
> >>>
> >>>I think it is in mod_jk, I remember seeing the commit. 
> >>>
> >>>And I think I commited it in jk2 as well ( after some modifications ).
> >>>
> >>>
> I need sticky sessions b

Re: TC41 Test Drop

2002-05-02 Thread Anthony W. Marino

> On Thu, 2 May 2002, Anthony W. Marino wrote:
> > I would like to run TC41 with however I have some questions I need
> > answered.
> >
> > 1) Do I need to (should I) update the coyote connectors available in this
> > drop with a more recent drop found somewhere else?
>
> I don't think so. You can wait for the next milestone, or use the nightly
> if you want.

I assume you're talking about a milestone for TC.  When will it be available?
Nightly drop of TC or coyote?

>
> > 2) What mod_jk2 drop should I use to test TC41/Apache2 integration?
>
> mod_jk1 whould be used - I'm not sure if Remy updated the .tar.gz.
>
> Later in the release cycle we'll start populating the binary directories.
>
> Costin

Are you saying that all that I might need is already self contained in TC41 
drop or is there a drop for mod_jk that you're referring to?

Thanks,
Anthony

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [VOTE] New committer: Christopher St John

2002-05-02 Thread Manveen Kaur

+1

Manveen

Remy Maucherat wrote:

> I'd like to propose Christopher St John  as a
> committer on Tomcat. Christopher has contributed ideas and code to do some
> improvements to the design of Catalina. More importantly, he seems very
> motivated and willing to contribute very significant time and effort on
> Tomcat.
>
> He has my +1.
>
> Remy
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvs commit: jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Punky Tse

Pier,

You have done a very good job.  After your "renovation" work, it 
compiles and runs on FreeBSD without error.  Bravo!!  \^o^/

Cheers,
Punky.

Pier Fumagalli wrote:

>"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:
>
>  
>
>>>Autoconf is _only_ required when building straight out of CVS, you can
>>>always use nightlies, which have the already-autoconfed
>>>"configure" script.
>>>
>>>It's a PITA, but there are so many changes between 2.1x and 2.5x that
>>>maintaining if for both will be a major pain in the neck...
>>>
>>>Otherwise, we can always check-in the configure script (now I hear Jon
>>>screaming out loud :)
>>>  
>>>
>>Don't make Jon sad, just send me a copy of configure script and
>>I'll try the build ;)
>>
>>
>
>Since the nightly since the very latest (important) changes didn't run yet,
>here's a snapshot: http://nagoya.apache.org/~pier/webapp-current.tar.gz
>
>Pier
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: PROPOSAL: mod_jk2: Group/Instance

2002-05-02 Thread Bernd Koecke

[EMAIL PROTECTED] wrote:
> On Thu, 2 May 2002, Amund Elstad wrote:
> 
> 
>>(1) all requests without a session are routed to a specific tomcat instance
>>(if that instance is working). 
> 
> 
> That has been added, and it should work in both jk1 and jk2 ( I don't 
> remember who sent the patch, but I remember adding it ). If it doesn't 
> work yet, is easy to fix.
> 

Sorry, may be I'm stupid, but how does it work? I looked at jk and jk2. My 
understanding is the following:

The worker which uses the jvm route is the lb_worker. The others don't use the 
SessionId extension. You could tweak this worker, but its buggy or I 
misunderstood it. After you said that my patch is included a had a closer look 
at mod_jk. I can't see anything of my code but I found the special meaning of 
the zero lb_factor/lb_value. It seems that I didn't understand it right at the 
first time. This could solve my problem but after a closer look and some testing 
I found another problem. When you set the lb_value in workers.properties to 1 
for the local tomcat and 0 for the others, you get the desired behavior. But if 
you switch off the local tomcat for a short time you come into trouble. The 
problem is the 0 for the other workers. The calculation of lb_worker transforms 
the 0 to _inf_. Because 1/0 for a double is _inf_. This is greater than any 
other lb_value and greater than the lb_value of the local tomcat. But after a 
failure of the local tomcat he is in error_state. After some time its set to 
recovering and if the local tomcat is back again the function jk(2)_get_max_lb 
gets the highest lb_value. This is _inf_ from one of the other workers. The 
addition of a value to _inf_ is meaningless. You end up with an lb_value of 
_inf_ for the local worker. If this worker isn't the first in the worker list, 
it will never be choosen again. Because his lb_value will never be less than 
another lb_value, because all the other workers have _inf_ as theire lb_values. 
So every request without a session will be routed to the first of the other 
tomcats.

The only way out is a restart of the local apache after tomcat is up and 
running. But I don't know when tomcat is finished with all his contexts and 
started the connectors.

I didn't looked very deep into jk2, but I found the same 
get_most_suitable_worker and get_max_lb functions. The jk2_get_max_lb function 
will always return _inf_. In your answer to some other mails you said, that 
workers could be removed. Do I understand it right, that if my local tomcat goes 
down his worker is removed from the list and after he is comming up again added 
to the worker list with reseted lb_value (only for mod_jk2)?

The next days I will look in the docu and code of jk2 and give it a try. May be 
all my problems gone away with the new module :).

Sorry if I ask stupid questions, but I want to make it working for our new cluster.

Thanks

Bernd

> This is essential for jk2's JNI worker, which fits perfectly this case
> ( you don't want to send via TCP when you have a tomcat instance in the 
> same process ).
> 
> 
> 
>>(2) Tomcat instances in standby or "soft shutdown" mode where they serve
>>requests bound by established sessions, and requests without a session only
>>if all non-standby instances have failed.
> 
> 
> That's what the SHM scoreboard is going to do ( among other things ). 
> You can register tomcat instances ( which will be added automatically ),
> or unregister - in which case no new requests ( except the old sessions )
> will go to the unregistered tomcat.
> 
> 
> Costin
> 
> 
>>[EMAIL PROTECTED] wrote:
>>
>>
>>>On Tue, 30 Apr 2002, Bernd Koecke wrote:
>>>
>>>
some weeks ago I send a patch for mod_jk for an only routing lb_worker. A
>>>
>>few 
>>
days later I sent the docu. Henry Gomez said, that it should be commited.
>>>
>>But it 
>>
I think it isn't in the repository. But its the same  with me here, to
>>>
>>mutch 
>>
work for to less time :).
>>>
>>>I think it is in mod_jk, I remember seeing the commit. 
>>>
>>>And I think I commited it in jk2 as well ( after some modifications ).
>>>
>>>
I need sticky sessions but no loadbalancing in the module. If a request
>>>
>>without 
>>
a session comes in, it should be routed to the _local_ tomcat.
>>>
>>>Well, there is another use-case with the exact same behavior - Apache2 
>>>with tomcat in JNI mode. All requests without session should be routed to 
>>>the _jni_ channel ( i.e. in-process, minimal overhead ).
>>>
>>>It's exacly the same - so be sure I do my best to handle this case :-)
>>>
>>>Apache2 acts like a 'natural' load-balancer/fail-over, with the parent
>>>process monitoring for crashes and it starts/stop childs based on 
>>>load.
>>>
>>>
>>>
I think this could be possible with the associated instance of a channel
>>>
>>(item 
>>
7). Then I have to configure all four nodes for the same group. Because
>>>
>>all 
>>
nodes will serve the same webapps and associate the channel with this
>>>

Re: TC41 Test Drop

2002-05-02 Thread costinm

On Thu, 2 May 2002, Anthony W. Marino wrote:

> I would like to run TC41 with however I have some questions I need answered.
> 
> 1) Do I need to (should I) update the coyote connectors available in this drop 
> with a more recent drop found somewhere else?

I don't think so. You can wait for the next milestone, or use the nightly 
if you want.

> 2) What mod_jk2 drop should I use to test TC41/Apache2 integration?

mod_jk1 whould be used - I'm not sure if Remy updated the .tar.gz.

Later in the release cycle we'll start populating the binary directories.

Costin


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvs commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Punky Tse

Henri,

I have no problem in my linux box.  My conf:
===

ServerName punknix.homeip.net:80
#LoadModule webapp_module modules/mod_webapp.so
LoadModule webapp_module modules/libwebapp.so
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

===

Punky

GOMEZ Henri wrote:

>It build on my Redhat 6.2 box but failed at http2 start :
>
>Invalid virtual host name ?[
>
>-
>Henri Gomez ___[_]
>EMAIL : [EMAIL PROTECTED](. .) 
>PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
>PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
>
>
>
>  
>
>>-Original Message-
>>From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, May 02, 2002 12:31 PM
>>To: Tomcat Developers List
>>Subject: Re: cvs
>>commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh
>>
>>
>>"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:
>>
>>
>>
Autoconf is _only_ required when building straight out of 


>>CVS, you can
>>
>>
always use nightlies, which have the already-autoconfed
"configure" script.

It's a PITA, but there are so many changes between 2.1x and 


>>2.5x that
>>
>>
maintaining if for both will be a major pain in the neck...

Otherwise, we can always check-in the configure script (now 


>>I hear Jon
>>
>>
screaming out loud :)


>>>Don't make Jon sad, just send me a copy of configure script and
>>>I'll try the build ;)
>>>  
>>>
>>Since the nightly since the very latest (important) changes 
>>didn't run yet,
>>here's a snapshot: http://nagoya.apache.org/~pier/webapp-current.tar.gz
>>
>>   Pier
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
>>
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem while retreiving Client Certificate

2002-05-02 Thread Raja Neravati

Hi,

I am using Tomcat 4.0.3 with Apache 1.3.24 on Redhat Linux 7.1. For SSL, I
have configured Apache with mod_ssl & the connector I am using is
mod_webapp. The SSL Connection is successfully done. I have a servlet on
Tomcat which is expecting a Client Certificate. I have made "SSLVerifyClient
-- True" & it accepts client certificate at SSL Handshake. 

I am using the following code to retreive the certificate from servlet
running on Tomcat

Object certReqObject =
request.getAttribute("javax.servlet.request.X509Certificate");
I have downloaded the WarpConnector source. In WarpRequest.java, the
certificate object is set to null if any exception occurs. 
Can any one help me where I am going wrong. I am using trial Server
certificate which we automatically get while configuring Apache with SSL.
The certificate entry in httpd.conf is as follows


SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
SSLVerifyClient require
SSLVerifyDepth  10 


Please help me out at the earliest as I am struck badly.
Thanks & Regards,
..Raj


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvs commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread GOMEZ Henri

It build on my Redhat 6.2 box but failed at http2 start :

Invalid virtual host name ?[

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 02, 2002 12:31 PM
>To: Tomcat Developers List
>Subject: Re: cvs
>commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh
>
>
>"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:
>
>>> Autoconf is _only_ required when building straight out of 
>CVS, you can
>>> always use nightlies, which have the already-autoconfed
>>> "configure" script.
>>> 
>>> It's a PITA, but there are so many changes between 2.1x and 
>2.5x that
>>> maintaining if for both will be a major pain in the neck...
>>> 
>>> Otherwise, we can always check-in the configure script (now 
>I hear Jon
>>> screaming out loud :)
>> 
>> Don't make Jon sad, just send me a copy of configure script and
>> I'll try the build ;)
>
>Since the nightly since the very latest (important) changes 
>didn't run yet,
>here's a snapshot: http://nagoya.apache.org/~pier/webapp-current.tar.gz
>
>Pier
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jakarta-tomcat-connectors documentation/summaries

2002-05-02 Thread GOMEZ Henri

> Where should it go?

Yes go, will fix it after.

You could start installing the draft doc in your own
dir in jakarta (public_html).

We could all check it ;)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 8744] New: - No way to configure/extend runtime classloaders.

2002-05-02 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://nagoya.apache.org/bugzilla/show_bug.cgi?id=8744

No way to configure/extend runtime classloaders.

   Summary: No way to configure/extend runtime classloaders.
   Product: Tomcat 4
   Version: 4.0.3 Final
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


A nice feature would be a way to configure the runtime classloaders 
(specifically the Shared one) to load/monitor other directories in addition to 
or instead of the hardcoded $CATALINA_HOME/lib.  Looking at the code, this 
shouldn't be altogether a difficult change, and I would be willing to write a 
patch.  This change would keep the system classpath out the way to prevent 
silly problems, but still allow some extension mechanism.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




TC41 Test Drop

2002-05-02 Thread Anthony W. Marino

I would like to run TC41 with however I have some questions I need answered.

1) Do I need to (should I) update the coyote connectors available in this drop 
with a more recent drop found somewhere else?

2) What mod_jk2 drop should I use to test TC41/Apache2 integration?


Thank You,
Anthony

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [VOTE] New committer: Christopher St John

2002-05-02 Thread Larry Isaacs

+1

Larry

> -Original Message-
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 01, 2002 5:00 PM
> To: Tomcat Developers List
> Subject: [VOTE] New committer: Christopher St John
> 
> 
> I'd like to propose Christopher St John  distributopia.com> as a
> committer on Tomcat. Christopher has contributed ideas and 
> code to do some
> improvements to the design of Catalina. More importantly, he 
> seems very
> motivated and willing to contribute very significant time and 
> effort on
> Tomcat.
> 
> He has my +1.
> 
> Remy
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: PROPOSAL: mod_jk2: Group/Instance

2002-05-02 Thread costinm

On Thu, 2 May 2002, Amund Elstad wrote:

> (1) all requests without a session are routed to a specific tomcat instance
> (if that instance is working). 

That has been added, and it should work in both jk1 and jk2 ( I don't 
remember who sent the patch, but I remember adding it ). If it doesn't 
work yet, is easy to fix.

This is essential for jk2's JNI worker, which fits perfectly this case
( you don't want to send via TCP when you have a tomcat instance in the 
same process ).


> (2) Tomcat instances in standby or "soft shutdown" mode where they serve
> requests bound by established sessions, and requests without a session only
> if all non-standby instances have failed.

That's what the SHM scoreboard is going to do ( among other things ). 
You can register tomcat instances ( which will be added automatically ),
or unregister - in which case no new requests ( except the old sessions )
will go to the unregistered tomcat.


Costin

> [EMAIL PROTECTED] wrote:
> 
> >On Tue, 30 Apr 2002, Bernd Koecke wrote:
> >
> >> some weeks ago I send a patch for mod_jk for an only routing lb_worker. A
> few 
> >> days later I sent the docu. Henry Gomez said, that it should be commited.
> But it 
> >> I think it isn't in the repository. But its the same  with me here, to
> mutch 
> >> work for to less time :).
> >
> >I think it is in mod_jk, I remember seeing the commit. 
> >
> >And I think I commited it in jk2 as well ( after some modifications ).
> >
> >> I need sticky sessions but no loadbalancing in the module. If a request
> without 
> >> a session comes in, it should be routed to the _local_ tomcat.
> >
> >Well, there is another use-case with the exact same behavior - Apache2 
> >with tomcat in JNI mode. All requests without session should be routed to 
> >the _jni_ channel ( i.e. in-process, minimal overhead ).
> >
> >It's exacly the same - so be sure I do my best to handle this case :-)
> >
> >Apache2 acts like a 'natural' load-balancer/fail-over, with the parent
> >process monitoring for crashes and it starts/stop childs based on 
> >load.
> >
> >
> >> I think this could be possible with the associated instance of a channel
> (item 
> >> 7). Then I have to configure all four nodes for the same group. Because
> all 
> >> nodes will serve the same webapps and associate the channel with this
> group. But 
> >> for this I need a non balancing group. I don't see if the default
> behavior of a 
> >> group is balancing and if this can be switched off. Is this right or do I
> miss 
> >> something?
> >
> >The default is balancing, but you can tune this using weithgs ( and I 
> >think we use your code for making one instance 'top priority').
> >
> >Please check the code, take a look and send additional comments/patches.
> >
> >It's not yet completely done, of course.
> >
> >
> >Thanks,
> >Costin 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/commonShm.java

2002-05-02 Thread costinm

On Thu, 2 May 2002, Hans Schmid wrote:

> We have two Tomcats in a lb group. Only one is running at a time with
> lbfactor=1,
> the other has lbfactor=0 assinged but is not running -> all requests go to
> TC1
> 
> When we upgrade our system we update the classes/jars and start the second
> Tomcat TC2 in the group,
> switch the lbfactor of TC1 to 0 and the lbfactor fo TC2 to 1 and do a
> graceful
> restart of apache. This way old sessions still go to TC1 whereas new
> sessions go to TC2.

That's exactly what I'm trying to do :-)
( almost - if on the same machine, TC1 going up will automatically add it
to the lb group, and eventually if a TC is detected to go down, it'll be 
automatically removed )

Costin


> 
> After all sessions on TC1 have ended, we shutdown TC1 and TC2 serves
> everything.
> 
> Next update goes in the oposit direction (start TC1, switch lbfactors, wait
> for the end of all
> sessions on TC2 and finally shutdown TC2.
> 
> 
> Thanks,
> Hans
> 
> 
> 
> >   Still to add:
> >   - display ( nicely ) the information in the shm
> >   - read info from shm ( like slots owned by apache processes with
> >   statistics - in a future release )
> >
> >   Revision  ChangesPath
> >   1.9   +27 -0
> > jakarta-tomcat-connectors/jk/java/org/apache/jk/common/Shm.java
> >
> >   Index: Shm.java
> >   ===
> >   RCS file:
> > /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/S
> > hm.java,v
> >   retrieving revision 1.8
> >   retrieving revision 1.9
> >   diff -u -r1.8 -r1.9
> >   --- Shm.java  1 May 2002 22:40:17 -   1.8
> >   +++ Shm.java  2 May 2002 03:18:01 -   1.9
> >   @@ -95,6 +95,7 @@
> >
> >boolean unregister=false;
> >boolean reset=false;
> >   +String dumpFile=null;
> >
> >// Will be dynamic ( getMethodId() ) after things are stable
> >static final int SHM_SET_ATTRIBUTE=0;
> >   @@ -102,6 +103,8 @@
> >static final int SHM_ATTACH=3;
> >static final int SHM_DETACH=4;
> >static final int SHM_RESET=5;
> >   +static final int SHM_DUMP=6;
> >   +static final int SHM_DESTROY=7;
> >
> >public Shm() {
> >}
> >   @@ -112,6 +115,13 @@
> >file=f;
> >}
> >
> >   +/** Copy the scoreboard in a file for debugging
> >   + *  Will also log a lot of information about what's in the
> > scoreboard.
> >   + */
> >   +public void setDump( String dumpFile ) {
> >   +this.dumpFile=dumpFile;
> >   +}
> >   +
> >/** Size. Used only if the scoreboard is to be created.
> > */
> >public void setSize( int size ) {
> >   @@ -199,6 +209,20 @@
> >this.invoke( msg, mCtx );
> >}
> >
> >   +public void dumpScoreboard(String fname) throws IOException {
> >   +if( apr==null ) return;
> >   +MsgContext mCtx=createMsgContext();
> >   +Msg msg=(Msg)mCtx.getMsg(0);
> >   +C2BConverter c2b=(C2BConverter)mCtx.getNote(C2B_NOTE);
> >   +msg.reset();
> >   +
> >   +msg.appendByte( SHM_DUMP );
> >   +
> >   +appendString( msg, fname, c2b);
> >   +
> >   +this.invoke( msg, mCtx );
> >   +}
> >   +
> >public void setNativeAttribute(String name, String val)
> > throws IOException {
> >if( apr==null ) return;
> >MsgContext mCtx=createMsgContext();
> >   @@ -315,8 +339,11 @@
> >return;
> >}
> >init();
> >   +
> >if( reset ) {
> >resetScoreboard();
> >   +} else if( dumpFile!=null ) {
> >   +dumpScoreboard(dumpFile);
> >} else if( unregister ) {
> >unRegisterTomcat( host, port );
> >} else {
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jakarta-tomcat-connectors documentation/summaries

2002-05-02 Thread Ignacio J. Ortega

> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 2 de mayo de 2002 15:44

> 
>  Speaking of having a document at jakarta, it isn't there yet.
> And it won't go live unless everyone likes it (think "We are the
> world" as sung by a chorus of tomcat developers, all holding
> hands, etc). So no worries. 
> 

This is a public list, so unless this thread is not archived anywhere
:), which i doubt, this has reached the status of a jakarta document
with his mere existence, hang or not the doc in the site, is an
implementation detail :).

>  I think it may have reached the "better than nothing" stage,
> and I'd like to start formatting and cleanup. That presupposes
> a destination. I originally talked to Henri Gomez about hanging
> it off a jakarta-tomcat-connectors page, but Glenn Nielsen also
> mentioned a Tomcat FAQ. 
> 
>  Where should it go?
> 

Good question, but the usual rules apply, do it and if anybody finds a
better place, he can move it later :), you are a committer!!, remember??
:).. so your actions can go before your words :)).. 

If i can talk about lessons learned here, actions are much less
discussed than mail list messages :)), and that any newbie committer
breaks the build in his first commit :), may be you will break our
traditions :), i dont know which will be worse.. ;)


Saludos ,
Ignacio J. Ortega


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jakarta-tomcat-connectors documentation/summaries

2002-05-02 Thread Christopher K. St. John

"Ignacio J. Ortega" wrote:
> 
> > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Enviado el: jueves 2 de mayo de 2002 5:16
> 
> For me is controversial to have a document at jakarta, that affirms
>

 Speaking of having a document at jakarta, it isn't there yet.
And it won't go live unless everyone likes it (think "We are the
world" as sung by a chorus of tomcat developers, all holding
hands, etc). So no worries. 

 I think it may have reached the "better than nothing" stage,
and I'd like to start formatting and cleanup. That presupposes
a destination. I originally talked to Henri Gomez about hanging
it off a jakarta-tomcat-connectors page, but Glenn Nielsen also
mentioned a Tomcat FAQ. 

 Where should it go?


-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jakarta-tomcat-connectors documentation/summaries

2002-05-02 Thread GOMEZ Henri

>Costin, Henri, Dan , Larry , Me, and much others done the 
>work, so apart
>from not be true, i think is offensive to all that done that work, and
>contributed his time to support it..

+1

Make a quick search on tomcat-user and tomcat-dev list mailing
list archives and you'll see that mod_jk as never been unsupported.

And that's why it's so widely used on production servers.

Do you seriously think that an average sysadmin will put
on production a piece of code unmaintened ;)

Regards

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: jakarta-tomcat-connectors documentation/summaries

2002-05-02 Thread Ignacio J. Ortega

> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 2 de mayo de 2002 5:16

For me is controversial to have a document at jakarta, that affirms that
prior to webapp, mod_jk was unmaintained, mainly because we have
maintained itall the time.

Costin, Henri, Dan , Larry , Me, and much others done the work, so apart
from not be true, i think is offensive to all that done that work, and
contributed his time to support it..

So get rid the of the citation, or do not include that affirmation,
thanks..

( and of course all others are very valid reasons to try other way,
more, to try another way is ever good :)

Saludos ,
Ignacio J. Ortega



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: PROPOSAL: mod_jk2: Group/Instance

2002-05-02 Thread Amund Elstad

Hi,

My understanding of the old lb-worker is that although you can tweak its
behavior using load-balancing factors, it does not theoretically cover:

(1) all requests without a session are routed to a specific tomcat instance
(if that instance is working). 
(2) Tomcat instances in standby or "soft shutdown" mode where they serve
requests bound by established sessions, and requests without a session only
if all non-standby instances have failed.

(1) is (as noted previously) useful when you have a cluster of Apache
servers.
(2) is useful in a 24x7 production environment. eg mark an instance for
"soft shutdown", wait for existing sessions to expire, do maintenance
(hardware or software), and then add instance back to normal lb-mode. 

It would be great to have support for both in jk2, for example by using
percentage values for load-balancing factors (adding up to 100% for all
instances in a group). Then, for (1) adjust the lbfactor to 100%, and for
(2) adjust the lbfactor to 0%. 

BTW, I think both the Group/Instance and the Autoconfig proporsals are very
good indeed.

cheers,
amund

[EMAIL PROTECTED] wrote:

>On Tue, 30 Apr 2002, Bernd Koecke wrote:
>
>> some weeks ago I send a patch for mod_jk for an only routing lb_worker. A
few 
>> days later I sent the docu. Henry Gomez said, that it should be commited.
But it 
>> I think it isn't in the repository. But its the same  with me here, to
mutch 
>> work for to less time :).
>
>I think it is in mod_jk, I remember seeing the commit. 
>
>And I think I commited it in jk2 as well ( after some modifications ).
>
>> I need sticky sessions but no loadbalancing in the module. If a request
without 
>> a session comes in, it should be routed to the _local_ tomcat.
>
>Well, there is another use-case with the exact same behavior - Apache2 
>with tomcat in JNI mode. All requests without session should be routed to 
>the _jni_ channel ( i.e. in-process, minimal overhead ).
>
>It's exacly the same - so be sure I do my best to handle this case :-)
>
>Apache2 acts like a 'natural' load-balancer/fail-over, with the parent
>process monitoring for crashes and it starts/stop childs based on 
>load.
>
>
>> I think this could be possible with the associated instance of a channel
(item 
>> 7). Then I have to configure all four nodes for the same group. Because
all 
>> nodes will serve the same webapps and associate the channel with this
group. But 
>> for this I need a non balancing group. I don't see if the default
behavior of a 
>> group is balancing and if this can be switched off. Is this right or do I
miss 
>> something?
>
>The default is balancing, but you can tune this using weithgs ( and I 
>think we use your code for making one instance 'top priority').
>
>Please check the code, take a look and send additional comments/patches.
>
>It's not yet completely done, of course.
>
>
>Thanks,
>Costin 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvs commit: jakarta-tomcat-4.0 build.xml

2002-05-02 Thread GOMEZ Henri

Nobody object for the same adaptation in
tomcat 4.1 ?

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, May 02, 2002 9:57 AM
>To: [EMAIL PROTECTED]
>Subject: cvs commit: jakarta-tomcat-4.0 build.xml
>
>
>hgomez  02/05/02 00:56:36
>
>  Modified:.Tag: tomcat_40_branch build.xml
>  Log:
>  PR: Some sites may have servlet api documentations in 
>various location.
>  For example jakarta rpms, install servlet.jar into /usr/share/java
>  and servlet-api javadoc in /usr/share/javadoc/servletapi4
>  
>  Revision  ChangesPath
>  No   revision
>  
>  
>  No   revision
>  
>  
>  1.38.2.15 +2 -1  jakarta-tomcat-4.0/build.xml
>  
>  Index: build.xml
>  ===
>  RCS file: /home/cvs/jakarta-tomcat-4.0/build.xml,v
>  retrieving revision 1.38.2.14
>  retrieving revision 1.38.2.15
>  diff -u -r1.38.2.14 -r1.38.2.15
>  --- build.xml14 Feb 2002 02:37:18 -  1.38.2.14
>  +++ build.xml2 May 2002 07:56:36 -   1.38.2.15
>  @@ -21,6 +21,7 @@
> 
> 
> value="../jakarta-servletapi-4/dist"/>
>  +  value="${servlet.home}/docs/api"/>
> 
> 
> value="${basedir}/webapps/build"/>
>  @@ -187,7 +188,7 @@
>   
>   
>   
>  -  
>  +  
>   
> 
>   
>  
>  
>  
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvs commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread GOMEZ Henri

>> Don't make Jon sad, just send me a copy of configure script and
>> I'll try the build ;)
>
>Since the nightly since the very latest (important) changes 
>didn't run yet,
>here's a snapshot: http://nagoya.apache.org/~pier/webapp-current.tar.gz

Thanks, I'll tell you what happen on my redhat box against
apache 2.0.35

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvs commit:jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

>> Autoconf is _only_ required when building straight out of CVS, you can
>> always use nightlies, which have the already-autoconfed
>> "configure" script.
>> 
>> It's a PITA, but there are so many changes between 2.1x and 2.5x that
>> maintaining if for both will be a major pain in the neck...
>> 
>> Otherwise, we can always check-in the configure script (now I hear Jon
>> screaming out loud :)
> 
> Don't make Jon sad, just send me a copy of configure script and
> I'll try the build ;)

Since the nightly since the very latest (important) changes didn't run yet,
here's a snapshot: http://nagoya.apache.org/~pier/webapp-current.tar.gz

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvs commit: jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread GOMEZ Henri

>Autoconf is _only_ required when building straight out of CVS, you can
>always use nightlies, which have the already-autoconfed 
>"configure" script.
>
>It's a PITA, but there are so many changes between 2.1x and 2.5x that
>maintaining if for both will be a major pain in the neck...
>
>Otherwise, we can always check-in the configure script (now I hear Jon
>screaming out loud :)

Don't make Jon sad, just send me a copy of configure script and
I'll try the build ;)

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cvs commit: jakarta-tomcat-connectors/webapp/supportbuildconf.sh

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

> Urg,
> 
> making autoconf 2.52 a strict mimimum will avoid building
> on allmost all recent Linux distributions, which are still
> 2.12/2.13 based ;(

Autoconf is _only_ required when building straight out of CVS, you can
always use nightlies, which have the already-autoconfed "configure" script.

It's a PITA, but there are so many changes between 2.1x and 2.5x that
maintaining if for both will be a major pain in the neck...

Otherwise, we can always check-in the configure script (now I hear Jon
screaming out loud :)

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [JTC] layout for jtc download site

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

> I'd like to propose the following layout for jtc download.
> 
> I plan to make regular snapshot for jk (jk2 at a later time)
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/b
> in/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/r
> pms/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/s
> rc/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/s
> rc/KEYS  
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/s
> rc/RELEASE-NOTES
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/b
> in/linux/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/b
> in/macosx/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/b
> in/solaris6/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/b
> in/solaris8/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/b
> in/win32/
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/b
> in/netware/
> 
> It will be great if Pier does the same for mod_webapp.
> 
> NB: For projects requiring an APR distro, like mod_webapp in Apache 1.3,
>   APR source tarball should be also present in src subdir, using what JF
>   does for TC 4.0.2 (apr_APACHE_2_0_32.tar.gz).
>   Should be for now apr_APACHE_2_0_35.tar.gz
> 
>   This proposal include for now, only the native parts.
>   I'd like to know if you think we should do the same for
>   java parts (coyote, jk/jk2 java, http11).
> 
> Regards

For the sake of it (quick hack) I can put up a redirection from
jakarta.apache.org to nagoya.apache.org/~pier where the nightlies are.

I don't have much time to dig into this until the week-end...

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_webapp build problem

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

>>> 
>>> I'm trying to build a rpm for mod_webapp against
>>> apache 1.3.23-mod_ssl and apache 2.0.35 on a redhat 7.2 box
>>> 
>>> apache-2.0 failed :
>> 
>> Working on it Henri... I have a whole new kit that I'm going to commit
>> pretty soon, once it's done... Here's a short-hand patch from
>> my machine,
>> I'm breaking few bits and pieces (so right now the 2.0 doesn't
>> even try to
>> compile), but I'm getting a hold on the beast...
> 
> Excellent, as soon as you could fix the 2.0.35 libtool problem,
> I'll be able to release mod_webapp rpm. It works allready for
> Apache 1.3.

My mail server died yesterday, so I lost approximately everything between 8
PM yesterday and 8 AM this morning (London time)...

Folks, what's wrong? I didn't get the original message... (Who tried what
and at what time?)

> BTW : May I recommand you to make a webapp snapshot, for example in
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/webapp/
> including a source tarball with just a webapp part of jtc, and also
> APR tarball from 2.0.35.

We can make this happen... I can SCP the builds over from Nagoya to Icarus
(in theory)

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [VOTE] New committer: Christopher St John

2002-05-02 Thread Pier Fumagalli

"GOMEZ Henri" <[EMAIL PROTECTED]> wrote:

> With a great pleasure Christopher got my +1

+1 from me... Hoping that MinTC will make it in TC40's contrib section or
something like it soon :)

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: cvs commit: jakarta-tomcat-connectors/webapp/support buildconf.sh

2002-05-02 Thread GOMEZ Henri

Urg,

making autoconf 2.52 a strict mimimum will avoid building
on allmost all recent Linux distributions, which are still 
2.12/2.13 based ;(

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, May 01, 2002 2:10 AM
>To: [EMAIL PROTECTED]
>Subject: cvs commit: jakarta-tomcat-connectors/webapp/support
>buildconf.sh
>
>
>pier02/04/30 17:09:46
>
>  Modified:webapp/support buildconf.sh
>  Log:
>  Start enforcing AutoConf 2.52 since it'll be used in the 
>next revision
>  of configure. Nagoya's nightly build have been already 
>upgraded to the
>  correct revision, if you don't have this version, just get 
>the snapshot.
>  
>  Revision  ChangesPath
>  1.10  +4 -4  
>jakarta-tomcat-connectors/webapp/support/buildconf.sh
>  
>  Index: buildconf.sh
>  ===
>  RCS file: 
>/home/cvs/jakarta-tomcat-connectors/webapp/support/buildconf.sh,v
>  retrieving revision 1.9
>  retrieving revision 1.10
>  diff -u -r1.9 -r1.10
>  --- buildconf.sh 29 Apr 2002 19:22:04 -  1.9
>  +++ buildconf.sh 1 May 2002 00:09:46 -   1.10
>  @@ -58,7 +58,7 @@
>   
>   # 
>---
>-- #
>   # Author Pier Fumagalli 
>  -# Version $Id: buildconf.sh,v 1.9 2002/04/29 19:22:04 pier Exp $
>  +# Version $Id: buildconf.sh,v 1.10 2002/05/01 00:09:46 pier Exp $
>   # 
>---
>-- #
>   
>   # 
>---
>-- #
>  @@ -80,16 +80,16 @@
>   
>   if test -z "${VERSION}"; then
>   echo "autoconf not found."
>  -echo "autoconf version 2.13 or newer required to build 
>from CVS."
>  +echo "autoconf version 2.52 or newer required to build 
>from CVS."
>   exit 1
>   fi
>   
>   IFS=.
>   set $VERSION
>   IFS=' '
>  -if test "$1" = "2" -a "$2" -lt "13" || test "$1" -lt "2"; then
>  +if test "$1" = "2" -a "$2" -lt "52" || test "$1" -lt "2"; then
>   echo "autoconf version $VERSION found."
>  -echo "autoconf version 2.13 or newer required to build 
>from CVS."
>  +echo "autoconf version 2.52 or newer required to build 
>from CVS."
>   exit 1
>   fi
>   
>  
>  
>  
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[JTC] layout for jtc download site

2002-05-02 Thread GOMEZ Henri

I'd like to propose the following layout for jtc download.

I plan to make regular snapshot for jk (jk2 at a later time)

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/bin/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/rpms/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/src/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/src/KEYS  
  
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/src/RELEASE-NOTES
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/bin/linux/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/bin/macosx/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/bin/solaris6/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/bin/solaris8/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/bin/win32/
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.x/bin/netware/

It will be great if Pier does the same for mod_webapp.

NB: For projects requiring an APR distro, like mod_webapp in Apache 1.3,
APR source tarball should be also present in src subdir, using what JF
does for TC 4.0.2 (apr_APACHE_2_0_32.tar.gz). 
Should be for now apr_APACHE_2_0_35.tar.gz 
   

This proposal include for now, only the native parts.
I'd like to know if you think we should do the same for 
java parts (coyote, jk/jk2 java, http11).

Regards
-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mod_webapp build problem

2002-05-02 Thread GOMEZ Henri

>> 
>> I'm trying to build a rpm for mod_webapp against
>> apache 1.3.23-mod_ssl and apache 2.0.35 on a redhat 7.2 box
>> 
>> apache-2.0 failed :
>
>Working on it Henri... I have a whole new kit that I'm going to commit
>pretty soon, once it's done... Here's a short-hand patch from 
>my machine,
>I'm breaking few bits and pieces (so right now the 2.0 doesn't 
>even try to
>compile), but I'm getting a hold on the beast...

Excellent, as soon as you could fix the 2.0.35 libtool problem,
I'll be able to release mod_webapp rpm. It works allready for
Apache 1.3.

BTW : May I recommand you to make a webapp snapshot, for example in 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/webapp/
including a source tarball with just a webapp part of jtc, and also
APR tarball from 2.0.35.

See my next proposal :)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [VOTE] New committer: Christopher St John

2002-05-02 Thread GOMEZ Henri

With a great pleasure Christopher got my +1

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, May 01, 2002 11:00 PM
>To: Tomcat Developers List
>Subject: [VOTE] New committer: Christopher St John
>
>
>I'd like to propose Christopher St John  as a
>committer on Tomcat. Christopher has contributed ideas and 
>code to do some
>improvements to the design of Catalina. More importantly, he seems very
>motivated and willing to contribute very significant time and effort on
>Tomcat.
>
>He has my +1.
>
>Remy
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [4.1.0] Anyone testing it ?

2002-05-02 Thread GOMEZ Henri

>I'll have to try some kind of bootstrap action
>in my rpm, start compiling TC 4.x with binaries,
>then goes to JTC and rebuild it against newly
>built TC 4.x, then install these in place of
>bundled binaries ?(8

And ideally I should also make a commons-login rpm
(need to install JDK 1.4 and avalon logkit)

>-
>Henri Gomez ___[_]
>EMAIL : [EMAIL PROTECTED](. .) 
>PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
>PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
>
>
>
>>-Original Message-
>>From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, April 30, 2002 11:50 AM
>>To: Tomcat Developers List
>>Subject: [4.1.0] Anyone testing it ?
>>
>>
>>Is anyone testing 4.1.0 ?
>>The URL as a reminder:
>>http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.0/
>>
>>Obviously, I expect people voting to rate the build to have 
>>tried it ;-)
>>
>>Of particular interest is testing:
>>- AJP 1.3 support
>>- To see if bug 5735 is fixed with the current Coyote connector
>>- Jasper 2
>>
>>Thanks,
>>Remy
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0 build.xml

2002-05-02 Thread hgomez

hgomez  02/05/02 00:56:36

  Modified:.Tag: tomcat_40_branch build.xml
  Log:
  PR: Some sites may have servlet api documentations in various location.
  For example jakarta rpms, install servlet.jar into /usr/share/java
  and servlet-api javadoc in /usr/share/javadoc/servletapi4
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.38.2.15 +2 -1  jakarta-tomcat-4.0/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/build.xml,v
  retrieving revision 1.38.2.14
  retrieving revision 1.38.2.15
  diff -u -r1.38.2.14 -r1.38.2.15
  --- build.xml 14 Feb 2002 02:37:18 -  1.38.2.14
  +++ build.xml 2 May 2002 07:56:36 -   1.38.2.15
  @@ -21,6 +21,7 @@
 
 
 
  +  
 
 
 
  @@ -187,7 +188,7 @@
   
   
   
  -  
  +  
   
 
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [4.1.0] Anyone testing it ? - Jasper2 bug perhaps

2002-05-02 Thread David Shanahan


I have been trying out 4.1.0. I have noticed that if you 
do not specify the language attribute in the page directive
then the contentType attribute has no effect on the page encoding.

If I do this:

<%@ page contentType="text/html; charset=Shift_JIS" %>

and then look at generated source code for the servlet, 
I notice that the content type on the response is set
properly but the source code hasn't been converted
from shift jis to utf8.

However if I do this:

<%@ page language="java" contentType="text/html; charset=Shift_JIS" %>

Everything works fine.

The contentType attribute worked with or without
a language attribute in 4.0.3.



-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 6:50 PM
To: Tomcat Developers List
Subject: [4.1.0] Anyone testing it ?


Is anyone testing 4.1.0 ?
The URL as a reminder:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.0/

Obviously, I expect people voting to rate the build to have tried it ;-)

Of particular interest is testing:
- AJP 1.3 support
- To see if bug 5735 is fixed with the current Coyote connector
- Jasper 2

Thanks,
Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: