RE: Ajp14 - seems to work :-)

2001-06-25 Thread GOMEZ Henri

Ok, I've got the first request served via Ajp14. There are probably few
details to resolve ( like the fact that the connection is closed after
authentication - I'm not sure why ).

The connection close is normal. When you're in the worker init phase, 
you open a connection to tomcat, authenticate, next grab URI mapped,
and then the worker is destroyed (by Apache), so the connection is
dropped.

I can now start playing with some of the fun callbacks I want 
( and maybe
abstract a bit the marshling and callbacks ).

Be my guest



RE: cvs commit: jakarta-tomcat/src/etc server.xml

2001-06-25 Thread GOMEZ Henri

Ajp14 default port is 8011 :)


-
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: Sunday, June 24, 2001 8:59 PM
To: [EMAIL PROTECTED]
Subject: cvs commit: jakarta-tomcat/src/etc server.xml


costin  01/06/24 11:58:38

  Modified:src/etc  server.xml
  Log:
  Reverted to Ajp13 from the jakarta-tomcat workspace ( ajp13 
implementation
  is frozen, only bug fixes go in - we want to keep this as 
stable as possible)
  
  Added the Ajp14 interceptor ( experimental so far - will be 
eventually
  disabled by default in the 3.3 release - or marked as alpha/beta ).
  
  Revision  ChangesPath
  1.80  +12 -2 jakarta-tomcat/src/etc/server.xml
  
  Index: server.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat/src/etc/server.xml,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- server.xml   2001/06/17 19:07:28 1.79
  +++ server.xml   2001/06/24 18:58:38 1.80
  @@ -212,8 +212,18 @@
address=127.0.0.1
 --
   RequestInterceptor 
  - className=org.apache.ajp.tomcat33.Ajp13Interceptor
  - port=8009 /
  +   
className=org.apache.tomcat.modules.server.Ajp13Interceptor
  +   port=8009 /
  +
  +!-- Apache AJP14 support ( experimental, 
jakarta-tomcat-connectors)
  +This will eventually replace Ajp12 and Ajp13
  +  --
  +RequestInterceptor 
  +   className=org.apache.ajp.tomcat33.Ajp14Interceptor
  +   tomcatAuthentication=false
  +   password=changeme
  +   debug=10   
  +   port=8010 /
   
 !-- 
  Context definitions can be placed here ( not 
recommended ) or 
  
  
  




cvs commit: jakarta-tomcat/src/etc server.xml

2001-06-25 Thread hgomez

hgomez  01/06/25 01:04:39

  Modified:src/etc  server.xml
  Log:
  Ajp14 default port is 8011
  
  Revision  ChangesPath
  1.81  +1 -1  jakarta-tomcat/src/etc/server.xml
  
  Index: server.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat/src/etc/server.xml,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- server.xml2001/06/24 18:58:38 1.80
  +++ server.xml2001/06/25 08:04:35 1.81
  @@ -223,7 +223,7 @@
  tomcatAuthentication=false
  password=changeme
  debug=10
  -   port=8010 /
  +   port=8011 /
   
 !-- 
  Context definitions can be placed here ( not recommended ) or 
  
  
  



[CATALINA] Unknown protocol jndi: MalformedURLException

2001-06-25 Thread Vincent Harcq

Hi,
I come back on a problem expalined in a mail (11 may).
Do you have any news on that one ?

Previous Mail :
===

Craig,

 Simon,

 I'm going to do some internal checking within Sun on this as
 well -- I've
 only played with RMI a little.  The context class loader
 inside Catalina
 web apps is the class loader for that web application, so
 there might be
 conflicts with RMI's assumptions.

 I also have a question -- if the classes of the objects you
 are passing
 are themselves loaded from a parent class loader (i.e. from
 $CATALINA_HOME/lib) instead of the web app class loader, do
 you still have
 to do the marshalling workaround?  I would have expected
 those classes to
 be annotated with a file: URL, because they are loaded by a
 class loader
 that uses file: URLs for its repository.

I'll try this, but I still expect the context class loader to load the
classes, since the file: url will reflect the host of Catalina, but I'm
already on the RMI server host, so file system is different. Unless I miss
somthing (which is very likely), also RMI here seems to behave not as
espected...
And BTW should't the classes loaded from $CATALINA_HOME/lib have a codebase
annotation in form of an URL and served by a HTTP server (Catalina itself I
think) so that the RMI server can dynamically download these classes in case
of necessity ?
I imagine a situation where I deploy a war on Catalina with some
implementation classes, and a jar on a RMI server with the interface that
the classes in the war implement. The RMI server should be able to download
the classes from Catalina, but to do this the codebase annotation should be
something like http://web_host/dynamic_download_classes/ instead of
jar:file:$CATALINA_HOME/lib/xxx.jar!/, correct ?

Thanks for your attention,

Simon


 Craig

 On Fri, 11 May 2001, Bordet, Simone wrote:

  Hello all,
 
  I encounter the following problem using Catalina 4.0b3-4
 (while it was
  working with Tomcat 3.2.x).
  I deploy a war containing a servlet and a javabean. From a
 JSP I invoke the
  servlet, that creates the javabean, that invoke a remote
 object via RMI
  calling a method that takes an instance of a parameter
 class as method
  argument.
  In the war I have the servlet in a jar under WEB-INF/lib,
 and the javabean,
  the stub, and parameter classes under WEB-INF/classes.
  Inside the javabean, I lookup JNDI and obtain a
 java.lang.reflect.Proxy that
  at the end calls the java.rmi.Remote object passing it the argument.
 
  Now, if inside the proxy I call
 RMIClassLoader.getClassAnnotation on the
  parameter class, I obtain:
  jndi:/WEB-INF/classes/ jar:jndi:/WEB-INF/lib/xxx.jar!/
 
  This class annotation is written to the RMI stream and when
 it comes to the
  RMI server side, I got the MalformedURLException: unknown
 protocol jndi.
  Of course the RMI server side does not know how to handle
 the jndi: protocol
  of Catalina, and it does have the parameter class in its
 classpath. Also,
  the RMI server does not run with the SecurityManager.
 
  Another thing that bothers me is that I expected the
 context classloader to
  load the class in the RMI server (from its classpath),
 discarding the
  annotated codebase contained in the RMI stream, but this is
 not the case
  (but maybe I'm missing something).
  Furthermore I got a workaround: if I wrap all arguments
 into a wrapper
  class, and then the wrapper object into a
 java.rmi.MarshalledObject, then
  the whole rigmarole works, ie the call arrives to the server (since
  java.rmi.MarshalledObject is not loaded from
 WEB-INF/classes or WEB-INF/lib
  I have no protocol problems) and then when I call
 MarshalledObject.get() the
  context classloader loads correctly the classes from the RMI server
  classpath.
 
  Finally this problems happens also when the RMI server is
 JBoss, as
  recently pointed out in the JBoss' mailing list.
 
  Any thoughts ?
 
  TIA
 
  Simon
 





cvs commit: jakarta-tomcat-connectors/jk/native/isapi - New directory

2001-06-25 Thread andya

andya   01/06/25 02:14:43

  jakarta-tomcat-connectors/jk/native/isapi - New directory



Problems compiling

2001-06-25 Thread Zachmann, Jens

Hi!

I want to import tomcat in my IDE for compiling (IBM Visual Age for Java).
But first problem I have is that it's not possible to compile the tomcat
with jdk1.1.8. Do I need jdk1.2.x? Because it runs on jdk1.1.8 so I thought
it's also possible to compile it with this version.

Thanks,
Jens



RE: Problems compiling

2001-06-25 Thread Emmanuel Lécharny

Hi,

which kind of problem do you have? Which vaj version are you using? It's
working pretty well for me, but maybe I was lucky, or not in the same
environment?

Emmanuel Lécharny, IKTEK
06 08 33 32 61, www.iktek.com http://www.iktek.com


-Message d'origine-
De : Zachmann, Jens [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 25 juin 2001 12:03
À : '[EMAIL PROTECTED]'
Objet : Problems compiling


Hi!

I want to import tomcat in my IDE for compiling (IBM Visual Age for Java).
But first problem I have is that it's not possible to compile the tomcat
with jdk1.1.8. Do I need jdk1.2.x? Because it runs on jdk1.1.8 so I thought
it's also possible to compile it with this version.

Thanks,
Jens




Réf. : Problems compiling

2001-06-25 Thread JULE, Nicolas - DSIA


Hi Jens,

I don't know if it is the answer you expected, but what I can say is
that 
VisualAge for Java 3.5  runs  with  JDK 1.2.2.
I imported some times ago, tomcat 3.2.1 and it compiled.

Cheers,

Nicolas



De :[EMAIL PROTECTED] le 25/06/2001 12:03
Pour :  tomcat-dev@[EMAIL PROTECTED]@SMTP@Hays Hub
cc : 
Faxer à:
Objet : Problems compiling

Hi!

I want to import tomcat in my IDE for compiling (IBM Visual Age for
Java).
But first problem I have is that it's not possible to compile the
tomcat
with jdk1.1.8. Do I need jdk1.2.x? Because it runs on jdk1.1.8 so I
thought
it's also possible to compile it with this version.

Thanks,
Jens



**
Ce message électronique et tous les fichiers attachés qu'il contient
sont confidentiels et destinés exclusivement à l'usage de la personne
à laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
merci de le retourner à son émetteur. Les idées et opinions présentées
dans ce messages sont celles de son auteur, et ne représentent pas
nécessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales.
La publication, l'usage, la distribution, l'impression ou la copie non
autorisée de ce message et des attachements qu'il contient sont strictement
interdits.

Nous vous informons également que nous avons vérifié l'absence de virus dans
ce message mais que, malgré ce contrôle, nous ne saurions être tenus pour
responsables d'éventuels dégâts occasionnés par un virus non détecté.

This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you have
received this email in error please send it back to the person that sent it
to you. Any views or opinions presented are solely those of author and
do not necessarily represent those the HAYS plc group or any of its subsidiary
companies. Unauthorized publication, use, dissemination, forwarding, printing
or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain
any virus but we decline any responsability in case of any damage caused
by an a non detected virus.

**



RE: Problems compiling

2001-06-25 Thread Zachmann, Jens

I'm using VAJ 3.02 The problem seems to be the missing jdk1.2 support in
this environment.
But the Problem seems to be that the embedded jdk1.2 support variable can't
be compiled. As I understand tomcat should workl properly with this. Isn't
it possible to compile tomcat with jdk1.1.x?

Jens

-Original Message-
From: Emmanuel Lécharny [mailto:[EMAIL PROTECTED]]
Sent: Montag, 25. Juni 2001 12:07
To: [EMAIL PROTECTED]
Subject: RE: Problems compiling


Hi,

which kind of problem do you have? Which vaj version are you using? It's
working pretty well for me, but maybe I was lucky, or not in the same
environment?

Emmanuel Lécharny, IKTEK
06 08 33 32 61, www.iktek.com http://www.iktek.com


-Message d'origine-
De : Zachmann, Jens [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 25 juin 2001 12:03
À : '[EMAIL PROTECTED]'
Objet : Problems compiling


Hi!

I want to import tomcat in my IDE for compiling (IBM Visual Age for Java).
But first problem I have is that it's not possible to compile the tomcat
with jdk1.1.8. Do I need jdk1.2.x? Because it runs on jdk1.1.8 so I thought
it's also possible to compile it with this version.

Thanks,
Jens



Re: Problems compiling

2001-06-25 Thread Pier P. Fumagalli

Zachmann, Jens at [EMAIL PROTECTED] wrote:

 Hi!
 
 I want to import tomcat in my IDE for compiling (IBM Visual Age for Java).
 But first problem I have is that it's not possible to compile the tomcat
 with jdk1.1.8. Do I need jdk1.2.x? Because it runs on jdk1.1.8 so I thought
 it's also possible to compile it with this version.

Yeah... You need a JDK = 1.2 to compile it (went on the list some time
ago). But then it runs in 1.1 also (runs on MacOS/9)

Pier




Why jakarta-tomcat-connectors not in rsync ?

2001-06-25 Thread SongDongsheng



Why jakarta-tomcat-connectors not in rsync 
?


cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http BaseRequest.java

2001-06-25 Thread seguin

seguin  01/06/25 06:33:40

  Added:   util/java/org/apache/tomcat/util/http BaseRequest.java
  Log:
  this is a general-purpose base http request object,
  refactored from org.apache.ajp.AjpRequest.
  
  there may be a few things that don't belong in here,
  namely, jvmRoute, attributes.
  
  the names of the member fields may change so they
  are not the same as the method names ;)
  
  Revision  ChangesPath
  1.1  
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/BaseRequest.java
  
  Index: BaseRequest.java
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  Jk,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   

Re: cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat33Ajp14Interceptor.java

2001-06-25 Thread kevin seguin

[EMAIL PROTECTED] wrote:
 
 On Sun, 24 Jun 2001, kevin seguin wrote:
 
  i've been thinking about this, and, well, isn't this BaseRequest you're
  talking about kind of what org.apache.coyote.Request is?  does it make
  sense to have two of these kinds of objects hanging around?  is
  o.a.c.Request roughly equivalent to core.Request in tomcat 3??
 
 Certainly not for the second part - the core.Request in tomcat3 has a lot
 of tomcat3-specific code ( Container, ContextManager, calls to hooks to
 get special info like encoding, etc ).
 
 The BaseRequest ( or o.a.c.Request ) is focused on the
 basic information associated with a request, as received by the protocol
 adapter.
 
 For the first part - that's true, AjpRequest is very similar in goal with
 o.a.c.Request ( thanks to the refactoring you did :-).
 
 As I said, I like o.a.coyote, but right now my goal is to see Ajp14
 working, and using the existing (working) AjpRequest is easier. Also,
 coyote has more than the base request - I would let this settle down.
 

i hear that :)  my immediate goal is ajp13 for tomcat 4 :)  i've checked
in an intial version of BaseRequest.  it may need some further work...

-kevin.



Problem with URLPatternMatcher

2001-06-25 Thread Creighton Kirkendall

I have noticed that there is a problem in URLPatternMatcher.  It seems that
in the match function we do not update the length. This is a problem because
it causes the pattern matcher not to return the longest pattern.  I noticed
this some time ago but thought it was fixed in latter releases but it turns
out it is still a problem in 3.2.2.  I have included the source with the fix
in this email.


 * http://www.apache.org/.
 *
 * [Additional notices, if required by prior licensing conditions]
 *
 */ 

package org.apache.tomcat.util.pattern;

import java.util.Enumeration;

/**
 * A form of pattern matching for URLs in which the object corresponding
 * to the longest matching pattern is returned.
 *
 * @author Harish Prabandham
 */
public class URLPatternMatcher implements PatternMatcher {
private ImplicationTable itable = new ImplicationTable();

public URLPatternMatcher() {
}

public void set(String pattern, Object value) {
itable.put(new WildcardPattern(pattern), value);
}

public void remove(String pattern) {
itable.remove(pattern);
}

public Object match(String key) {
// Since we want the longest pattern match, we cannot use the
// itable.get(key)...
int len =0;
Object val = null;

for(Enumeration e = itable.keys(key); e.hasMoreElements(); ){
Object thiskey = e.nextElement();
String pattern = thiskey.toString();
if(pattern.length()  len){
val = itable.getValue(thiskey);

/*
 *Update 6-25-001
 */
len=pattern.length();
}
}

return val;
}

public static void main(String[] args) {
PatternMatcher p = new URLPatternMatcher();
try {
p.set(*, default);
p.set(args[0], works);
System.out.println(Match:  + p.match(args[1]));
}catch(Exception e) {
e.printStackTrace();
}
}
}



Creighton Kirkendall
Senior Software Engineer
Hobsons
[EMAIL PROTECTED]



-Original Message-
From: kevin seguin [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: cvs commit:
jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat33Ajp14Intercepto
r.java


[EMAIL PROTECTED] wrote:
 
 On Sun, 24 Jun 2001, kevin seguin wrote:
 
  i've been thinking about this, and, well, isn't this BaseRequest you're
  talking about kind of what org.apache.coyote.Request is?  does it make
  sense to have two of these kinds of objects hanging around?  is
  o.a.c.Request roughly equivalent to core.Request in tomcat 3??
 
 Certainly not for the second part - the core.Request in tomcat3 has a lot
 of tomcat3-specific code ( Container, ContextManager, calls to hooks to
 get special info like encoding, etc ).
 
 The BaseRequest ( or o.a.c.Request ) is focused on the
 basic information associated with a request, as received by the protocol
 adapter.
 
 For the first part - that's true, AjpRequest is very similar in goal with
 o.a.c.Request ( thanks to the refactoring you did :-).
 
 As I said, I like o.a.coyote, but right now my goal is to see Ajp14
 working, and using the existing (working) AjpRequest is easier. Also,
 coyote has more than the base request - I would let this settle down.
 

i hear that :)  my immediate goal is ajp13 for tomcat 4 :)  i've checked
in an intial version of BaseRequest.  it may need some further work...

-kevin.



[jtc - jk] jk_version.h

2001-06-25 Thread kevin seguin

so, forgive me if this is a stupid question, but... how is jk_version.h
generated on windows?  do i need to install cygwin stuff and run
buildconf.sh/configure?

thanks.

-kevin.



RE: [jtc] tabs policy??

2001-06-25 Thread Steve Downey



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, June 24, 2001 7:16 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [jtc] tabs policy??
 
 
 On Sun, 24 Jun 2001, Justin Erenkrantz wrote:
 
  That just leads to formatting problems because people don't 
 understand
  that.  If you must have tabs, they should be the same as 
 the indention 
  level, not some factor of the indention level.  This 
 doesn't have to be 
  complicated.  One tab == one indention level.
 
 I'm not sure I understand how you reached that conclusion, but this is
 what causes all the curent problems ( and the reason for people to
 consider tabs as evil ).
 
 Tab size is 8 - or at least used to be before the idea that you can
 configure this. What's evil is the fact that some editors 
 allow you to 
 change the size of the tab.
 
 In a text you can have multiple indentation levels, and it's 
 true that on
 some typewriters you can use the TAB key to move to the next 
 indentation
 level 

On real typewriters, the TAB key (used for TABles) moved to the next TAB
stop, which could be anywhere on the line. It would make a nice thumping
noise when the carriage hit the stop, too. The notion that tabs == some
number of spaces is a modern aberration stemming from DECWriters having tab
stops every 8 spaces. They also, perversely, would execute a carriage return
when issued a newline.

g

This electronic mail transmission
may contain confidential information and is intended only for the person(s)
named.  Any use, copying or disclosure by any other person is strictly
prohibited.  If you have received this transmission in error, please notify
the sender via e-mail. 



RE: FORM-based authentication idea

2001-06-25 Thread Steve Downey



 -Original Message-
 From: Michael Jennings [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 21, 2001 11:55 AM
 To: [EMAIL PROTECTED]
 Subject: Re: FORM-based authentication idea
 
 
  The best way to think about form-based login is like this:
 
  * The login page is (in essence) part of the container,
not the application.  Therefore, ...
 
  * The login page should *never* be referenced directly by any
other application page, and ...
 
  * The login page should *never* be requested directly by the
user.
 
 How do you enforce that a particular URL should never be 
 asked for by a
 user?
Installing it under WEB-INF is one way. The container will then enforce the
prohibition. However, in general, not publishing the URL anywhere is
probably sufficient. It's not as though with form based login that the user
ever has to see the URL of the login form.

-SMD
This electronic mail transmission
may contain confidential information and is intended only for the person(s)
named.  Any use, copying or disclosure by any other person is strictly
prohibited.  If you have received this transmission in error, please notify
the sender via e-mail. 



cvs commit: jakarta-tomcat-4.0/tester/web Session07a.jsp Session07b.jsp

2001-06-25 Thread craigmcc

craigmcc01/06/25 08:40:56

  Modified:tester/src/bin tester.xml
   tester/src/tester/org/apache/tester TestClient.java
  Added:   tester/web Session07a.jsp Session07b.jsp
  Log:
  Add unit tests for maintaining a session across redirects.
  
  Revision  ChangesPath
  1.52  +17 -0 jakarta-tomcat-4.0/tester/src/bin/tester.xml
  
  Index: tester.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/tester/src/bin/tester.xml,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- tester.xml2001/06/23 19:27:24 1.51
  +++ tester.xml2001/06/25 15:40:47 1.52
  @@ -1144,6 +1144,23 @@
request=${context.path}/WrappedSession06 debug=${debug}
 outContent=Session06 PASSED/
   
  +!-- == Pass Attributes Across Redirect === --
  +
  +!-- Session maintained across redirect --
  +!-- NOTE:  The following two-step pattern is required because
  + HttpURLConnection does not forward the session cookie it
  + receives on to the redirected location (the way that a
  + browser will do so) --
  +
  +tester host=${host} port=${port} protocol=${protocol}
  + request=${context.path}/Session07a.jsp debug=${debug}
  +  status=302/
  +
  +tester host=${host} port=${port} protocol=${protocol}
  + request=${context.path}/Session07b.jsp debug=${debug}
  + joinSession=true
  +  outContent=Session07 PASSED/
  +
 /target
   
   
  
  
  
  1.8   +25 -3 
jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/TestClient.java
  
  Index: TestClient.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/TestClient.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestClient.java   2001/04/17 04:22:25 1.7
  +++ TestClient.java   2001/06/25 15:40:52 1.8
  @@ -108,16 +108,19 @@
* are expected in the response (order independent)./li
* listrongport/strong - The port number to which this request will be
* sent.  Defaults to code8080/code if not specified./li
  + * listrongredirect/strong - If set to true, follow any redirect that
  + * is returned by the server.  (Only works when using HttpURLConnection).
  + * /li
* listrongrequest/strong - The request URI to be transmitted for this
* request.  This value should start with a slash character (/), and
* be the server-relative URI of the requested resource./li
* listrongstatus/strong - The HTTP status code that is expected in the
* response from the server.  Defaults to code200/code if not
  - * specified./li
  + * specified.  Set to zero to disable checking the return value./li
* /ul
*
* @author Craig R. McClanahan
  - * @version $Revision: 1.7 $ $Date: 2001/04/17 04:22:25 $
  + * @version $Revision: 1.8 $ $Date: 2001/06/25 15:40:52 $
*/
   
   public class TestClient extends Task {
  @@ -326,6 +329,20 @@
   
   
   /**
  + * Should we follow redirects returned by the server?
  + */
  +protected boolean redirect = false;
  +
  +public boolean getRedirect() {
  +return (this.redirect);
  +}
  +
  +public void setRedirect(boolean redirect) {
  +this.redirect = redirect;
  +}
  +
  +
  +/**
* The request URI to be sent to the server.  This value is required.
*/
   protected String request = null;
  @@ -435,7 +452,10 @@
  sessionId);
   }
   
  -conn.setFollowRedirects(false);
  +if (this.redirect  (debug = 1))
  +System.out.println(FLAG: setInstanceFollowRedirects( +
  +   this.redirect + ));
  +conn.setInstanceFollowRedirects(this.redirect);
   conn.setRequestMethod(method);
   if (inHeaders != null) {
   String headers = inHeaders;
  @@ -1053,6 +1073,8 @@
*/
   protected String validateStatus(int status) {
   
  +if (this.status == 0)
  +return (null);
   if (this.status == status)
   return (null);
   else
  
  
  
  1.1  jakarta-tomcat-4.0/tester/web/Session07a.jsp
  
  Index: Session07a.jsp
  ===
  %@ page contentType=text/plain %jsp:useBean id=simpleBean
  scope=session class=org.apache.tester.SessionBean/%
simpleBean.setStringProperty(From Session07a);
response.sendRedirect(Session07b.jsp);
  %
  
  
  
  1.1  jakarta-tomcat-4.0/tester/web/Session07b.jsp
  
  Index: Session07b.jsp
  ===
  %@ page contentType=text/plain 

RE: [jtc - jk] jk_version.h

2001-06-25 Thread GOMEZ Henri

so, forgive me if this is a stupid question, but... how is jk_version.h
generated on windows?  do i need to install cygwin stuff and run
buildconf.sh/configure?

Good point Kevin :) 

May be just by editing it ;) 



cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http BaseRequest.java

2001-06-25 Thread seguin

seguin  01/06/25 08:53:28

  Modified:util/java/org/apache/tomcat/util/http BaseRequest.java
  Log:
  removed jvmRoute -- this is jk/ajp specific.
  
  Revision  ChangesPath
  1.2   +4 -14 
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/BaseRequest.java
  
  Index: BaseRequest.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/BaseRequest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BaseRequest.java  2001/06/25 13:33:38 1.1
  +++ BaseRequest.java  2001/06/25 15:53:27 1.2
  @@ -58,7 +58,7 @@
   /***
* Description: Base http request object.  *
* Author:  Keving Seguin [[EMAIL PROTECTED]]  *
  - * Version: $Revision: 1.1 $   *
  + * Version: $Revision: 1.2 $   *
***/
   
   package org.apache.tomcat.util.http;
  @@ -72,7 +72,8 @@
   import org.apache.tomcat.util.buf.MessageBytes;
   
   /**
  - *
  + * A general-purpose object for representing an HTTP
  + * request.
*/
   public class BaseRequest {
   
  @@ -91,7 +92,6 @@
   MessageBytes remoteUser = new MessageBytes();
   MessageBytes authType = new MessageBytes();
   MessageBytes queryString = new MessageBytes();
  -MessageBytes jvmRoute = new MessageBytes();
   String scheme = SCHEME_HTTP;
   boolean secure = false;
   int contentLength = 0;
  @@ -114,7 +114,6 @@
   remoteUser.recycle();
   authType.recycle();
   queryString.recycle();
  -jvmRoute.recycle();
   scheme = SCHEME_HTTP;
   secure = false;
   contentLength = 0;
  @@ -213,14 +212,6 @@
   }
   
   /**
  - * Get the jvm route
  - * @return the jvm route
  - */
  -public MessageBytes jvmRoute() {
  -return jvmRoute;
  -}
  -
  -/**
* Get the scheme
* @return the scheme
*/
  @@ -332,7 +323,7 @@
   StringWriter sw = new StringWriter();
   PrintWriter pw = new PrintWriter(sw);
   
  -pw.println(=== AjpRequest ===);
  +pw.println(=== BaseRequest ===);
   pw.println(method  =  + method.toString());
   pw.println(protocol=  + protocol.toString());
   pw.println(requestURI  =  + requestURI.toString());
  @@ -343,7 +334,6 @@
   pw.println(remoteUser  =  + remoteUser.toString());
   pw.println(authType=  + authType.toString());
   pw.println(queryString =  + queryString.toString());
  -pw.println(jvmRoute=  + jvmRoute.toString());
   pw.println(scheme  =  + scheme.toString());
   pw.println(secure  =  + secure);
   pw.println(contentLength   =  + contentLength);
  
  
  



cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat4 Ajp13Request.java

2001-06-25 Thread seguin

seguin  01/06/25 09:00:43

  Modified:jk/java/org/apache/ajp Ajp13.java AjpRequest.java
   jk/java/org/apache/ajp/tomcat4 Ajp13Request.java
  Log:
  changed AjpRequest so that it extends org.apache.tomcat.util.http.BaseRequest.
  NOTE:  not sure if this is the *right thing* -- perhaps AjpRequest should wrap 
BaseRequest.
  guess we'll figure that out later :)
  
  Revision  ChangesPath
  1.8   +26 -23jakarta-tomcat-connectors/jk/java/org/apache/ajp/Ajp13.java
  
  Index: Ajp13.java
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/ajp/Ajp13.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Ajp13.java2001/06/24 21:17:49 1.7
  +++ Ajp13.java2001/06/25 16:00:38 1.8
  @@ -316,20 +316,20 @@
   
   // Translate the HTTP method code to a String.
   byte methodCode = msg.getByte();
  -req.method.setString( methodTransArray[(int)methodCode - 1] );
  +req.method().setString(methodTransArray[(int)methodCode - 1]);
   
  -msg.getMessageBytes(req.protocol); 
  -msg.getMessageBytes(req.requestURI);
  +msg.getMessageBytes(req.protocol()); 
  +msg.getMessageBytes(req.requestURI());
   
  -msg.getMessageBytes(req.remoteAddr);
  -msg.getMessageBytes(req.remoteHost);
  -msg.getMessageBytes(req.serverName);
  -req.serverPort = msg.getInt();
  +msg.getMessageBytes(req.remoteAddr());
  +msg.getMessageBytes(req.remoteHost());
  +msg.getMessageBytes(req.serverName());
  +req.setServerPort(msg.getInt());
   
isSSL = msg.getBool();
   
// Decode headers
  - MimeHeaders headers = req.headers;
  + MimeHeaders headers = req.headers();
int hCount = msg.getInt();
   for(int i = 0 ; i  hCount ; i++) {
   String hName = null;
  @@ -345,23 +345,26 @@
   if(0xA000 == isc) {
   msg.getInt(); // To advance the read position
   hName = headerTransArray[hId - 1];
  - vMB= headers.addValue( hName );
  + vMB= headers.addValue(hName);
   } else {
// XXX Not very elegant
  - vMB=msg.addHeader( headers );
  - if( vMB==null) return 500; // wrong packet
  + vMB = msg.addHeader(headers);
  + if (vMB == null) {
  +return 500; // wrong packet
  +}
   }
   
   msg.getMessageBytes(vMB);
   
   // set content length, if this is it...
   if (hId == SC_REQ_CONTENT_LENGTH) {
  -req.contentLength = (vMB == null) ? -1 : vMB.getInt();
  +int contentLength = (vMB == null) ? -1 : vMB.getInt();
  +req.setContentLength(contentLength);
   } else if (hId == SC_REQ_CONTENT_TYPE) {
   ByteChunk bchunk = vMB.getByteChunk();
  -req.contentType.setBytes(bchunk.getBytes(),
  - bchunk.getOffset(),
  - bchunk.getLength());
  +req.contentType().setBytes(bchunk.getBytes(),
  +   bchunk.getOffset(),
  +   bchunk.getLength());
   }
   }
   
  @@ -377,19 +380,19 @@
   break;

case SC_A_REMOTE_USER  :
  -msg.getMessageBytes(req.remoteUser);
  +msg.getMessageBytes(req.remoteUser());
   break;

case SC_A_AUTH_TYPE:
  -msg.getMessageBytes(req.authType);
  +msg.getMessageBytes(req.authType());
   break;

case SC_A_QUERY_STRING :
  - msg.getMessageBytes(req.queryString);
  + msg.getMessageBytes(req.queryString());
   break;

case SC_A_JVM_ROUTE:
  -msg.getMessageBytes(req.jvmRoute);
  +msg.getMessageBytes(req.jvmRoute());
   break;

case SC_A_SSL_CERT :
  @@ -424,16 +427,16 @@
   }
   
   if(isSSL) {
  -req.scheme = req.SCHEME_HTTPS;
  -req.secure = true;
  +req.setScheme(req.SCHEME_HTTPS);
  +req.setSecure(true);
   }
   
   // set cookies on request now that we have all headers
  -req.cookies.setHeaders(req.headers);
  +req.cookies().setHeaders(req.headers());
   
// Check to see if there should be a body packet coming along
// immediately after
  - if(req.contentLength  0) {
  + if(req.getContentLength()  0) {
   
/* Read present data */

question about the reloading of servlet

2001-06-25 Thread Henri Delebecque

hello,

I have Tomcat 3.2.2, Apache 1.3.19 and mod_jk.

One of my user is currently developing a servlet, and
change very frequently this one.

from times to times, Tomcat stops reloading it, and I have
to restart it. Is it normal ? Why does he stop reloading ?

I have read numerous posts on this subject, including ones
telling that the reloading of servlet is difficult, since the
classes are loaded into a JVM, which doesn't accept easily
to change a loaded class into memory...

So, my question is:
Will the reloading working well in future versions of Tomcat
(should I try catalina ?), or should I suggest another way of
developing servlet to my user ?

Thanks a lot

__
| Henri Delebecque[EMAIL PROTECTED] |
| Webmaster   |
| Supelec  Tel (33)  01.69.85.14.91   |
| 3 rue Joliot-Curie  |
| Plateau de Moulon Fax:(33) 01.69.85.12.34   |
| 91190 Gif sur Yvette|
| FRANCE  |
|_|





TC4 Beta5

2001-06-25 Thread Srinu Kavi

I'm trying to run TC 4.0 beta 5's Catalina on HP's core services
framework.

(For my convenience, I made temporary/minor changes to 
bootstrap/Startup src such that TC can start w/o startup script,
and as a service on CSF.)

Any ideas what's wrong and what I need to do?

I'll be happy to provide any additional info that might be useful.
Thanks.

Kavi
HP Middleware



Starting service Tomcat-Standalone
Apache Tomcat/4.0-b5
Catalina.start: LifecycleException:  start: :  java.lang.IllegalArgumentException: 
java.net.MalformedURLException: unknown protocol: jndi
LifecycleException:  start: :  java.lang.IllegalArgumentException: 
java.net.MalformedURLException: unknown protocol: jndi
at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:649)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
at org.apache.catalina.core.StandardService.start(StandardService.java:353)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
at org.apache.catalina.startup.Catalina.start(Catalina.java:733)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:655)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
at tutorial.tomcat.TomCatService.run(TomCatService.java:75)
at com.hp.mwlabs.csf.ServiceManagerImpl$1.run(ServiceManagerImpl.java:1144)
at java.lang.Thread.run(Unknown Source)
- Root Cause -
java.lang.IllegalArgumentException: java.net.MalformedURLException: unknown protocol: 
jndi
at 
org.apache.catalina.loader.StandardClassLoader.addRepository(StandardClassLoader.java:439)
at org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:617)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1100)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3189)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278)
at org.apache.catalina.core.StandardService.start(StandardService.java:353)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:458)
at org.apache.catalina.startup.Catalina.start(Catalina.java:733)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:655)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:196)
at tutorial.tomcat.TomCatService.run(TomCatService.java:75)
at com.hp.mwlabs.csf.ServiceManagerImpl$1.run(ServiceManagerImpl.java:1144)
at java.lang.Thread.run(Unknown Source)






Re: question about the reloading of servlet

2001-06-25 Thread Craig R. McClanahan



On Mon, 25 Jun 2001, Henri Delebecque wrote:

 hello,
 
 I have Tomcat 3.2.2, Apache 1.3.19 and mod_jk.
 
 One of my user is currently developing a servlet, and
 change very frequently this one.
 
 from times to times, Tomcat stops reloading it, and I have
 to restart it. Is it normal ? Why does he stop reloading ?
 
 I have read numerous posts on this subject, including ones
 telling that the reloading of servlet is difficult, since the
 classes are loaded into a JVM, which doesn't accept easily
 to change a loaded class into memory...
 
 So, my question is:
 Will the reloading working well in future versions of Tomcat
 (should I try catalina ?), or should I suggest another way of
 developing servlet to my user ?
 

Class reloading works differently in Tomcat 4.0 than in Tomcat 3.2.  In
particular, it is implemented by a background thread looking at changes in
*any* class that has already been loaded, where Tomcat 3.2 checks as a
request is procesed (which normally catches changes to the servlet class
itself, but doesn't always catch changes to bean classes).

 Thanks a lot
 

Craig McClanahan


 __
 | Henri Delebecque[EMAIL PROTECTED] |
 | Webmaster   |
 | Supelec  Tel (33)  01.69.85.14.91   |
 | 3 rue Joliot-Curie  |
 | Plateau de Moulon Fax:(33) 01.69.85.12.34   |
 | 91190 Gif sur Yvette|
 | FRANCE  |
 |_|
 
 
 




Re: TC4 Beta5

2001-06-25 Thread Craig R. McClanahan



On Mon, 25 Jun 2001, Srinu Kavi wrote:

 I'm trying to run TC 4.0 beta 5's Catalina on HP's core services
 framework.
 
 (For my convenience, I made temporary/minor changes to 
 bootstrap/Startup src such that TC can start w/o startup script,
 and as a service on CSF.)
 
 Any ideas what's wrong and what I need to do?
 
 I'll be happy to provide any additional info that might be useful.
 Thanks.
 
 Kavi
 HP Middleware

It looks like there might be issues with how you are setting up the class
loader hierarchy -- which, of course, depends on exactly what changes you
are making to the startup scripts.

In general, the intent is that no changes to these scripts should be
necessary -- any additional classes that need to be exposed are simply
JAR'd up and placed into an appropriate directory.  What did you find
necessary to change?

Craig





Plz help! Tomcat blocks when calling itself - i am desperate!

2001-06-25 Thread Bari, Naeem


I apologize for posting in the dev group, but postings to the
user group have not shed any light on my problem, and I getting
desperate!

Here is my problem:
--

My environment:
  Solaris 8 (fully patched)
  jdk 1.3.1, with hotspot enabled
  tomcat 3.2.2
  apache 1.3.19
 
The problem:
  I have a servlet that opens a URL connection to the
  servlet container. So if I call http://blah/blinky,
  where blinky is my servlet, it is possible under some
  situations for this servlet to open a URL such as
  http://blah/lumpy, where lumpy is some other servlet.
 
  This is part of a largish site publishing framework
  I built on top of JServ. Now, things worked great with
  JServ, but I am having a devil of a time getting this
  to work in Tomcat.
 
Observations:
  When the blinky servlet opens a URL to the same tomcat
  instance, the log entries for mod_jk go as far as making
  the call to marshal stuff before calling tomcat - as seen
  by the mod_jk.log entry:
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
  At this point, nothing happens. I *should* be seeing entries
  for the jk_open_socket function, but they never appear.
 
What I have tried:
  - I have disabled the default 8080 listener, thinking it
may be interfering.
No luck
  - I changed the cachesize of the ajp12 and ajp13 workers
to 8 from the default of 1.
No luck
  - I added the min_spare_threads parameter to the entries
for the ajp12 and ajp13 connectors in server.xml
No luck
  - switched between tomcat 3.2.1 and 3.2.2 *and* 4.0b5
No luck
  - upgraded apache to 1.3.19
No luck
  - switched between jdk1.2.2 and jdk1.3.1
No Luck
  - switched between solaris and win2k
No luck
  - Torn my hair out from the roots
No luck
 
I am at my wits end. Any help will be gratefully accepted.

TIA,
naeem



Re: question about the reloading of servlet

2001-06-25 Thread Mike Anderson

There was a problem with the reload code on 3.2.2.  Since reloading
has been rewritten for 3.3, you can try that or you can get the latest
source from the tomcat_32 branch and use it.  The fix is in 
org.apache.tomcat.core.ServletWrapper.java if you just want the one
file.

 [EMAIL PROTECTED] 06/25/01 09:51AM 
hello,

I have Tomcat 3.2.2, Apache 1.3.19 and mod_jk.

One of my user is currently developing a servlet, and
change very frequently this one.

from times to times, Tomcat stops reloading it, and I have
to restart it. Is it normal ? Why does he stop reloading ?

I have read numerous posts on this subject, including ones
telling that the reloading of servlet is difficult, since the
classes are loaded into a JVM, which doesn't accept easily
to change a loaded class into memory...

So, my question is:
Will the reloading working well in future versions of Tomcat
(should I try catalina ?), or should I suggest another way of
developing servlet to my user ?

Thanks a lot

__
| Henri Delebecque[EMAIL PROTECTED] |
| Webmaster   |
| Supelec  Tel (33)  01.69.85.14.91   |
| 3 rue Joliot-Curie  |
| Plateau de Moulon Fax:(33) 01.69.85.12.34   |
| 91190 Gif sur Yvette|
| FRANCE  |
|_|






cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core LocalStrings.properties LocalStrings_es.properties LocalStrings_fr.properties LocalStrings_se.properties

2001-06-25 Thread marcsaeg

marcsaeg01/06/25 13:19:34

  Modified:src/share/org/apache/tomcat/core Tag: tomcat_32
LocalStrings.properties LocalStrings_es.properties
LocalStrings_fr.properties
LocalStrings_se.properties
  Log:
  Added status codes for RFC 2518
  
  sc.102=Processing
  sc.422=Unprocessable Entity
  sc.423=Locked
  sc.424=Failed Dependency
  sc.507=Insufficient Storage
  
  PR: 2069
  Submitted by: [EMAIL PROTECTED] (Stefan Eissing)
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.8.4.2   +6 -1  
jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/LocalStrings.properties,v
  retrieving revision 1.8.4.1
  retrieving revision 1.8.4.2
  diff -u -r1.8.4.1 -r1.8.4.2
  --- LocalStrings.properties   2001/03/15 20:15:15 1.8.4.1
  +++ LocalStrings.properties   2001/06/25 20:19:23 1.8.4.2
  @@ -1,4 +1,4 @@
  -# $Id: LocalStrings.properties,v 1.8.4.1 2001/03/15 20:15:15 marcsaeg Exp $
  +# $Id: LocalStrings.properties,v 1.8.4.2 2001/06/25 20:19:23 marcsaeg Exp $
   #
   
   # Localized strings for package org.apache.tomcat.core
  @@ -55,6 +55,7 @@
   
   sc.100=Continue
   sc.101=Switching Protocols
  +sc.102=Processing
   sc.200=OK
   sc.201=Created
   sc.202=Accepted
  @@ -88,12 +89,16 @@
   sc.415=Unsupported Media Type
   sc.416=Requested Range Not Satisfiable
   sc.417=Expectation Failed
  +sc.422=Unprocessable Entity
  +sc.423=Locked
  +sc.424=Failed Dependency
   sc.500=Internal Server Error
   sc.501=Not Implemented
   sc.502=Bad Gateway
   sc.503=Service Unavailable
   sc.504=Gateway Timeout
   sc.505=HTTP Version Not Supported
  +sc.507=Insufficient Storage
   
   servletOutputStreamImpl.write.iae=invalid write length: {0}
   servletOutputStreamImpl.fmt.not_iso8859_1=Not an ISO 8859_1 character:{0}
  
  
  
  1.2.4.2   +6 -1  
jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/LocalStrings_es.properties
  
  Index: LocalStrings_es.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/LocalStrings_es.properties,v
  retrieving revision 1.2.4.1
  retrieving revision 1.2.4.2
  diff -u -r1.2.4.1 -r1.2.4.2
  --- LocalStrings_es.properties2001/03/15 20:15:17 1.2.4.1
  +++ LocalStrings_es.properties2001/06/25 20:19:25 1.2.4.2
  @@ -1,4 +1,4 @@
  -# $Id: LocalStrings_es.properties,v 1.2.4.1 2001/03/15 20:15:17 marcsaeg Exp $
  +# $Id: LocalStrings_es.properties,v 1.2.4.2 2001/06/25 20:19:25 marcsaeg Exp $
   #
   
   # Localized strings for package org.apache.tomcat.core
  @@ -54,6 +54,7 @@
   
   sc.100=Continuar
   sc.101=Cambiando Protocolos
  +sc.102=Processing
   sc.200=OK
   sc.201=Creado
   sc.202=Aceptado
  @@ -87,12 +88,16 @@
   sc.415=Tipo de Medio No Soportado
   sc.416=El Rango Pedido No Ser Satifecho
   sc.417=Expectativa Fallada
  +sc.422=Unprocessable Entity
  +sc.423=Locked
  +sc.424=Failed Dependency
   sc.500=Error Interno del Servidor
   sc.501=No Implementado
   sc.502=Gateway Incorrecto
   sc.503=Servicio no Disponible
   sc.504=Gateway Caducado
   sc.505=Version de HTTP No Soportada
  +sc.507=Insufficient Storage
   
   servletOutputStreamImpl.write.iae=longitud de escritura incorrecta: {0}
   servletOutputStreamImpl.fmt.not_iso8859_1=No es un caracter ISO 8859_1:{0}
  
  
  
  1.1.2.3   +6 -1  
jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/LocalStrings_fr.properties
  
  Index: LocalStrings_fr.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/LocalStrings_fr.properties,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- LocalStrings_fr.properties2001/03/15 20:15:17 1.1.2.2
  +++ LocalStrings_fr.properties2001/06/25 20:19:26 1.1.2.3
  @@ -1,4 +1,4 @@
  -# $Id: LocalStrings_fr.properties,v 1.1.2.2 2001/03/15 20:15:17 marcsaeg Exp $
  +# $Id: LocalStrings_fr.properties,v 1.1.2.3 2001/06/25 20:19:26 marcsaeg Exp $
   #
   
   # Localized strings for package org.apache.tomcat.core
  @@ -55,6 +55,7 @@
   
   sc.100=Continue
   sc.101=Switching Protocols
  +sc.102=Processing
   sc.200=OK
   sc.201=Created
   sc.202=Accepted
  @@ -88,12 +89,16 @@
   sc.415=Unsupported Media Type
   sc.416=Requested Range Not Satisfiable
   sc.417=Expectation Failed
  +sc.422=Unprocessable Entity
  +sc.423=Locked
  +sc.424=Failed Dependency
   sc.500=Internal Server Error
   sc.501=Not Implemented
   sc.502=Bad Gateway
   sc.503=Service Unavailable
   sc.504=Gateway Timeout
   sc.505=HTTP Version Not Supported
  +sc.507=Insufficient Storage
   
   

RE: Plz help! Tomcat blocks when calling itself - i am desperate!

2001-06-25 Thread Marc Saegesser

Any chance you could send a small sample application that demonstrates the
problem?

 -Original Message-
 From: Bari, Naeem [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 2:23 PM
 To: '[EMAIL PROTECTED]'
 Subject: Plz help! Tomcat blocks when calling itself - i am desperate!



 I apologize for posting in the dev group, but postings to the
 user group have not shed any light on my problem, and I getting
 desperate!

 Here is my problem:
 --

 My environment:
   Solaris 8 (fully patched)
   jdk 1.3.1, with hotspot enabled
   tomcat 3.2.2
   apache 1.3.19

 The problem:
   I have a servlet that opens a URL connection to the
   servlet container. So if I call http://blah/blinky,
   where blinky is my servlet, it is possible under some
   situations for this servlet to open a URL such as
   http://blah/lumpy, where lumpy is some other servlet.

   This is part of a largish site publishing framework
   I built on top of JServ. Now, things worked great with
   JServ, but I am having a devil of a time getting this
   to work in Tomcat.

 Observations:
   When the blinky servlet opens a URL to the same tomcat
   instance, the log entries for mod_jk go as far as making
   the call to marshal stuff before calling tomcat - as seen
   by the mod_jk.log entry:
 [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
   At this point, nothing happens. I *should* be seeing entries
   for the jk_open_socket function, but they never appear.

 What I have tried:
   - I have disabled the default 8080 listener, thinking it
 may be interfering.
 No luck
   - I changed the cachesize of the ajp12 and ajp13 workers
 to 8 from the default of 1.
 No luck
   - I added the min_spare_threads parameter to the entries
 for the ajp12 and ajp13 connectors in server.xml
 No luck
   - switched between tomcat 3.2.1 and 3.2.2 *and* 4.0b5
 No luck
   - upgraded apache to 1.3.19
 No luck
   - switched between jdk1.2.2 and jdk1.3.1
 No Luck
   - switched between solaris and win2k
 No luck
   - Torn my hair out from the roots
 No luck

 I am at my wits end. Any help will be gratefully accepted.

 TIA,
 naeem




RE: Problem with URLPatternMatcher

2001-06-25 Thread Marc Saegesser

Yep, it looks like this code is broken, but it isn't actually used anywhere
within Tomcat.  In fact it has been removed in 3.3.  Are you trying ot use
this class directly in your code?

 -Original Message-
 From: Creighton Kirkendall [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 8:57 AM
 To: '[EMAIL PROTECTED]'
 Subject: Problem with URLPatternMatcher


 I have noticed that there is a problem in URLPatternMatcher.  It
 seems that
 in the match function we do not update the length. This is a
 problem because
 it causes the pattern matcher not to return the longest pattern.
 I noticed
 this some time ago but thought it was fixed in latter releases
 but it turns
 out it is still a problem in 3.2.2.  I have included the source
 with the fix
 in this email.


  * http://www.apache.org/.
  *
  * [Additional notices, if required by prior licensing conditions]
  *
  */

 package org.apache.tomcat.util.pattern;

 import java.util.Enumeration;

 /**
  * A form of pattern matching for URLs in which the object corresponding
  * to the longest matching pattern is returned.
  *
  * @author Harish Prabandham
  */
 public class URLPatternMatcher implements PatternMatcher {
 private ImplicationTable itable = new ImplicationTable();

 public URLPatternMatcher() {
 }

 public void set(String pattern, Object value) {
 itable.put(new WildcardPattern(pattern), value);
 }

 public void remove(String pattern) {
 itable.remove(pattern);
 }

 public Object match(String key) {
 // Since we want the longest pattern match, we cannot use the
 // itable.get(key)...
 int len =0;
 Object val = null;

 for(Enumeration e = itable.keys(key); e.hasMoreElements(); ){
 Object thiskey = e.nextElement();
 String pattern = thiskey.toString();
 if(pattern.length()  len){
 val = itable.getValue(thiskey);

   /*
*Update 6-25-001
*/
   len=pattern.length();
   }
 }

 return val;
 }

 public static void main(String[] args) {
 PatternMatcher p = new URLPatternMatcher();
 try {
 p.set(*, default);
 p.set(args[0], works);
 System.out.println(Match:  + p.match(args[1]));
 }catch(Exception e) {
 e.printStackTrace();
 }
 }
 }



 Creighton Kirkendall
 Senior Software Engineer
 Hobsons
 [EMAIL PROTECTED]



 -Original Message-
 From: kevin seguin [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 9:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: cvs commit:
 jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat33Ajp14Intercepto
 r.java


 [EMAIL PROTECTED] wrote:
 
  On Sun, 24 Jun 2001, kevin seguin wrote:
 
   i've been thinking about this, and, well, isn't this
 BaseRequest you're
   talking about kind of what org.apache.coyote.Request is?  does it make
   sense to have two of these kinds of objects hanging around?  is
   o.a.c.Request roughly equivalent to core.Request in tomcat 3??
 
  Certainly not for the second part - the core.Request in tomcat3
 has a lot
  of tomcat3-specific code ( Container, ContextManager, calls to hooks to
  get special info like encoding, etc ).
 
  The BaseRequest ( or o.a.c.Request ) is focused on the
  basic information associated with a request, as received by
 the protocol
  adapter.
 
  For the first part - that's true, AjpRequest is very similar in
 goal with
  o.a.c.Request ( thanks to the refactoring you did :-).
 
  As I said, I like o.a.coyote, but right now my goal is to see Ajp14
  working, and using the existing (working) AjpRequest is easier. Also,
  coyote has more than the base request - I would let this settle down.
 

 i hear that :)  my immediate goal is ajp13 for tomcat 4 :)  i've checked
 in an intial version of BaseRequest.  it may need some further work...

 -kevin.




RE: Plz help! Tomcat blocks when calling itself - i am desperate!

2001-06-25 Thread Bari, Naeem


Marc,

Thanks for your response.

I will put together a little servlet that demonstrates this.
I did find out the *cause* of the problem. I think this is a
bug in tomcat...

The situation is this:
 If you have a servlet that implements the SingleThreadedModel
 AND
 this servlet opens a URL back to a servlet in the same container
 THEN
 tomcat will block/deadlock

This did not happen with JServ or any other servlet container.

I commented out the impements sigleThreadedModel line and
it worked like a charm.

Hope this helps in determining the problem. I will send the
servlet to you by tomorrow.

Thanks,
naeem

 -Original Message-
 From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 4:24 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: Plz help! Tomcat blocks when calling itself - i am
 desperate!
 
 
 Any chance you could send a small sample application that 
 demonstrates the
 problem?
 
  -Original Message-
  From: Bari, Naeem [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 25, 2001 2:23 PM
  To: '[EMAIL PROTECTED]'
  Subject: Plz help! Tomcat blocks when calling itself - i am 
 desperate!
 
 
 
  I apologize for posting in the dev group, but postings to the
  user group have not shed any light on my problem, and I getting
  desperate!
 
  Here is my problem:
  --
 
  My environment:
Solaris 8 (fully patched)
jdk 1.3.1, with hotspot enabled
tomcat 3.2.2
apache 1.3.19
 
  The problem:
I have a servlet that opens a URL connection to the
servlet container. So if I call http://blah/blinky,
where blinky is my servlet, it is possible under some
situations for this servlet to open a URL such as
http://blah/lumpy, where lumpy is some other servlet.
 
This is part of a largish site publishing framework
I built on top of JServ. Now, things worked great with
JServ, but I am having a devil of a time getting this
to work in Tomcat.
 
  Observations:
When the blinky servlet opens a URL to the same tomcat
instance, the log entries for mod_jk go as far as making
the call to marshal stuff before calling tomcat - as seen
by the mod_jk.log entry:
  [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
At this point, nothing happens. I *should* be seeing entries
for the jk_open_socket function, but they never appear.
 
  What I have tried:
- I have disabled the default 8080 listener, thinking it
  may be interfering.
  No luck
- I changed the cachesize of the ajp12 and ajp13 workers
  to 8 from the default of 1.
  No luck
- I added the min_spare_threads parameter to the entries
  for the ajp12 and ajp13 connectors in server.xml
  No luck
- switched between tomcat 3.2.1 and 3.2.2 *and* 4.0b5
  No luck
- upgraded apache to 1.3.19
  No luck
- switched between jdk1.2.2 and jdk1.3.1
  No Luck
- switched between solaris and win2k
  No luck
- Torn my hair out from the roots
  No luck
 
  I am at my wits end. Any help will be gratefully accepted.
 
  TIA,
  naeem
 



Connectors in Nightly builds?

2001-06-25 Thread Thom Park

Hi

Does anyone have an E.T.A. on when the connectors will return to the nightly
builds
and/or when they will return to being included in the nighty source drops?

-Thom




RE: Problem with URLPatternMatcher

2001-06-25 Thread Creighton Kirkendall

Well, I was but noticed it had this problem.  I did fix the code, however I
am not sure whether or not I am going to use it.  I do need a URLMatcher.
If you have any suggestions as to a fast one that would be great.  What is
tomcat using to do its security path constraint matching now.

Creighton


-Original Message-
From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 5:47 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem with URLPatternMatcher


Yep, it looks like this code is broken, but it isn't actually used anywhere
within Tomcat.  In fact it has been removed in 3.3.  Are you trying ot use
this class directly in your code?

 -Original Message-
 From: Creighton Kirkendall [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 8:57 AM
 To: '[EMAIL PROTECTED]'
 Subject: Problem with URLPatternMatcher


 I have noticed that there is a problem in URLPatternMatcher.  It
 seems that
 in the match function we do not update the length. This is a
 problem because
 it causes the pattern matcher not to return the longest pattern.
 I noticed
 this some time ago but thought it was fixed in latter releases
 but it turns
 out it is still a problem in 3.2.2.  I have included the source
 with the fix
 in this email.


  * http://www.apache.org/.
  *
  * [Additional notices, if required by prior licensing conditions]
  *
  */

 package org.apache.tomcat.util.pattern;

 import java.util.Enumeration;

 /**
  * A form of pattern matching for URLs in which the object corresponding
  * to the longest matching pattern is returned.
  *
  * @author Harish Prabandham
  */
 public class URLPatternMatcher implements PatternMatcher {
 private ImplicationTable itable = new ImplicationTable();

 public URLPatternMatcher() {
 }

 public void set(String pattern, Object value) {
 itable.put(new WildcardPattern(pattern), value);
 }

 public void remove(String pattern) {
 itable.remove(pattern);
 }

 public Object match(String key) {
 // Since we want the longest pattern match, we cannot use the
 // itable.get(key)...
 int len =0;
 Object val = null;

 for(Enumeration e = itable.keys(key); e.hasMoreElements(); ){
 Object thiskey = e.nextElement();
 String pattern = thiskey.toString();
 if(pattern.length()  len){
 val = itable.getValue(thiskey);

   /*
*Update 6-25-001
*/
   len=pattern.length();
   }
 }

 return val;
 }

 public static void main(String[] args) {
 PatternMatcher p = new URLPatternMatcher();
 try {
 p.set(*, default);
 p.set(args[0], works);
 System.out.println(Match:  + p.match(args[1]));
 }catch(Exception e) {
 e.printStackTrace();
 }
 }
 }



 Creighton Kirkendall
 Senior Software Engineer
 Hobsons
 [EMAIL PROTECTED]



 -Original Message-
 From: kevin seguin [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 9:36 AM
 To: [EMAIL PROTECTED]
 Subject: Re: cvs commit:
 jakarta-tomcat-connectors/jk/java/org/apache/ajp/tomcat33Ajp14Intercepto
 r.java


 [EMAIL PROTECTED] wrote:
 
  On Sun, 24 Jun 2001, kevin seguin wrote:
 
   i've been thinking about this, and, well, isn't this
 BaseRequest you're
   talking about kind of what org.apache.coyote.Request is?  does it make
   sense to have two of these kinds of objects hanging around?  is
   o.a.c.Request roughly equivalent to core.Request in tomcat 3??
 
  Certainly not for the second part - the core.Request in tomcat3
 has a lot
  of tomcat3-specific code ( Container, ContextManager, calls to hooks to
  get special info like encoding, etc ).
 
  The BaseRequest ( or o.a.c.Request ) is focused on the
  basic information associated with a request, as received by
 the protocol
  adapter.
 
  For the first part - that's true, AjpRequest is very similar in
 goal with
  o.a.c.Request ( thanks to the refactoring you did :-).
 
  As I said, I like o.a.coyote, but right now my goal is to see Ajp14
  working, and using the existing (working) AjpRequest is easier. Also,
  coyote has more than the base request - I would let this settle down.
 

 i hear that :)  my immediate goal is ajp13 for tomcat 4 :)  i've checked
 in an intial version of BaseRequest.  it may need some further work...

 -kevin.



Re: Connectors in Nightly builds?

2001-06-25 Thread cmanolache

On Mon, 25 Jun 2001, Thom Park wrote:

 Hi
 
 Does anyone have an E.T.A. on when the connectors will return to the nightly
 builds
 and/or when they will return to being included in the nighty source drops?

Which connectors :-) ? 

If you are talking about the native mod_jk/mod_webapp - I didn't know they
were ever built nightly.

If you are talking about tomcat3.3 - the nightly build is (almost) back,
probably tonight I'll fix the last problem. 

The old connectors are still there, the new connector ( ajp14 and the
improved mod_jk ) is in j-t-c.


Costin





cvs commit: jakarta-tomcat-4.0/service/java - New directory

2001-06-25 Thread pier

pier01/06/25 18:28:45

  jakarta-tomcat-4.0/service/java - New directory



cvs commit: jakarta-tomcat-4.0/service/native - New directory

2001-06-25 Thread pier

pier01/06/25 18:29:21

  jakarta-tomcat-4.0/service/native - New directory



cvs commit: jakarta-tomcat-4.0/service/support - New directory

2001-06-25 Thread pier

pier01/06/25 18:29:29

  jakarta-tomcat-4.0/service/support - New directory



cvs commit: jakarta-tomcat-4.0/service INSTALL.txt

2001-06-25 Thread pier

pier01/06/25 18:30:24

  Added:   service  INSTALL.txt
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/INSTALL.txt
  
  Index: INSTALL.txt
  ===
  To build the service libraries and binary under an UNIX operating
  system you will need:
  
An ANSI-C compliant compiler (GCC is good)
GNU AutoConf
A Java Platform 2 compliant SDK
  
  First of all you need to build the configure program with:
  
 ./support/buildconf.sh
  
  Once the configure script is generated, run it (remember to specify
  either the --with-java=dir parameter or set the JAVA_HOME environment
  to point to your JDK installation. For example:
  
./configure --with-java=/usr/java
  
  or
  
JAVA_HOME=/usr/java
export JAVA_HOME
./configure
  
  If your operating system is supported, configure will go thru cleanly,
  otherwise it will report an error (please send us the details of your
  OS/JDK, or a patch against the sources). To build the binaries and
  libraries simply do:
  
make
  
  This will generate two files: ./java/service.jar and ./native/jsvc.
  It should be straightforward from here on. To check the allowed parameters
  for the jsvc binary simply do
  
./native/jsvc -help
  
  and then, to check a simple service do
  
./native/jsvc -cp ./java/service.jar org.apache.service.support.SimpleService
  
  and telnet to localhost on port 1200. For a less simple example login as root
  and add the -user nobody after the classpath, and 100 after the class name.
  This will start the same daemon but running as user nobody and bound to your
  protected port 100 (again, try telnet to localhost but to port 100 this time).
  
  For other information, the source code is quite readable, and I'm working on
  some documentation.
  
  Have fun...
  
Pier pier.fumagalli AT sun.com
  
  
  
  



cvs commit: jakarta-tomcat-4.0/service Makedefs.in

2001-06-25 Thread pier

pier01/06/25 18:31:14

  Added:   service  Makedefs.in
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/Makedefs.in
  
  Index: Makedefs.in
  ===
  # = #
  #   #
  # 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:   #
  #   #
  # 1. Redistributions of source code  must retain the above copyright notice #
  #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,  WebApp,  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 Software Foundation.#
  #   #
  # 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 indivi- #
  # duals on behalf of the  Apache Software Foundation.  For more information #
  # on the Apache Software Foundation, please see http://www.apache.org/.   #
  #   #
  # = #
  
  # @author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  # @version $Id: Makedefs.in,v 1.1 2001/06/26 01:31:14 pier Exp $
  
  CC = @CC@
  JAVAC = @JAVAC@
  JAR = @JAR@
  CFLAGS = @CFLAGS@
  LDFLAGS = @LDFLAGS@
  JAVACFLAGS = 

cvs commit: jakarta-tomcat-4.0/service Makefile.in

2001-06-25 Thread pier

pier01/06/25 18:31:22

  Added:   service  Makefile.in
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/Makefile.in
  
  Index: Makefile.in
  ===
  # = #
  #   #
  # 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:   #
  #   #
  # 1. Redistributions of source code  must retain the above copyright notice #
  #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,  WebApp,  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 Software Foundation.#
  #   #
  # 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 indivi- #
  # duals on behalf of the  Apache Software Foundation.  For more information #
  # on the Apache Software Foundation, please see http://www.apache.org/.   #
  #   #
  # = #
  
  # @author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  # @version $Id: Makefile.in,v 1.1 2001/06/26 01:31:21 pier Exp $
  
  SUBDIRS = native java
  
  all: native/all java/all
  
  native/all:
$(MAKE) -C native all
  
  

cvs commit: jakarta-tomcat-4.0/service configure.in

2001-06-25 Thread pier

pier01/06/25 18:31:30

  Added:   service  configure.in
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/configure.in
  
  Index: configure.in
  ===
  dnl =
  dnl
  dnl The Apache Software License,  Version 1.1
  dnl
  dnl  Copyright (c) 1999-2001 The Apache Software Foundation.
  dnl   All rights reserved.
  dnl
  dnl =
  dnl
  dnl Redistribution and use in source and binary forms,  with or without modi-
  dnl fication, are permitted provided that the following conditions are met:
  dnl
  dnl 1. Redistributions of source code  must retain the above copyright notice
  dnlnotice, this list of conditions and the following disclaimer.
  dnl
  dnl 2. Redistributions  in binary  form  must  reproduce the  above copyright
  dnlnotice,  this list of conditions  and the following  disclaimer in the
  dnldocumentation and/or other materials provided with the distribution.
  dnl
  dnl 3. The end-user documentation  included with the redistribution,  if any,
  dnlmust include the following acknowlegement:
  dnl
  dnl   This product includes  software developed  by the Apache  Software
  dnlFoundation http://www.apache.org/.
  dnl
  dnlAlternately, this acknowlegement may appear in the software itself, if
  dnland wherever such third-party acknowlegements normally appear.
  dnl
  dnl 4. The names  The  Jakarta  Project,  WebApp,  and  Apache  Software
  dnlFoundation  must not be used  to endorse or promote  products derived
  dnlfrom this  software without  prior  written  permission.  For  written
  dnlpermission, please contact [EMAIL PROTECTED].
  dnl
  dnl 5. Products derived from this software may not be called Apache nor may
  dnlApache appear in their names without prior written permission of the
  dnlApache Software Foundation.
  dnl
  dnl THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WARRANTIES
  dnl INCLUDING, BUT NOT LIMITED TO,  THE IMPLIED WARRANTIES OF MERCHANTABILITY
  dnl AND FITNESS FOR  A PARTICULAR PURPOSE  ARE DISCLAIMED.  IN NO EVENT SHALL
  dnl THE APACHE  SOFTWARE  FOUNDATION OR  ITS CONTRIBUTORS  BE LIABLE  FOR ANY
  dnl DIRECT,  INDIRECT,   INCIDENTAL,  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL
  dnl DAMAGES (INCLUDING,  BUT NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE GOODS
  dnl OR SERVICES;  LOSS OF USE,  DATA,  OR PROFITS;  OR BUSINESS INTERRUPTION)
  dnl HOWEVER CAUSED AND  ON ANY  THEORY  OF  LIABILITY,  WHETHER IN  CONTRACT,
  dnl STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  dnl ANY  WAY  OUT OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF  ADVISED  OF THE
  dnl POSSIBILITY OF SUCH DAMAGE.
  dnl
  dnl =
  dnl
  dnl This software  consists of voluntary  contributions made  by many indivi-
  dnl duals on behalf of the  Apache Software Foundation.  For more information
  dnl on the Apache Software Foundation, please see http://www.apache.org/.
  dnl
  dnl =
  
  dnl -
  dnl Author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  dnl Version $Id: configure.in,v 1.1 2001/06/26 01:31:29 pier Exp $
  dnl -
  
  dnl -
  dnl Initialize AutoConf
  dnl -
  sinclude(./support/apfunctions.m4)dnl
  sinclude(./support/apjava.m4)dnl
  sinclude(./support/apsupport.m4)dnl
  AC_INIT(configure.in)
  AC_CONFIG_AUX_DIR(./support)
  
  dnl -
  dnl Check current host (forget about cross compilation) and validate it
  dnl against the cache (fail if the cache differs)
  dnl -
  AP_MSG_HEADER([Current host])
  AC_CANONICAL_HOST()
  AP_CANONICAL_HOST_CHECK()
  
  dnl -
  dnl Check C environment
  dnl -
  AP_MSG_HEADER([C-Language compilation tools])
  AC_PROG_CC()
  
  dnl -
  dnl Check JAVA environment
  dnl -
  AP_MSG_HEADER([Java compilation tools])
  AP_JAVA()
  AP_PROG_JAVAC()
  AP_PROG_JAR()
  
  dnl 

cvs commit: jakarta-tomcat-4.0/service/java Makefile.in

2001-06-25 Thread pier

pier01/06/25 18:31:51

  Added:   service/java Makefile.in
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/java/Makefile.in
  
  Index: Makefile.in
  ===
  # = #
  #   #
  # 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:   #
  #   #
  # 1. Redistributions of source code  must retain the above copyright notice #
  #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,  WebApp,  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 Software Foundation.#
  #   #
  # 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 indivi- #
  # duals on behalf of the  Apache Software Foundation.  For more information #
  # on the Apache Software Foundation, please see http://www.apache.org/.   #
  #   #
  # = #
  
  # @author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  # @version $Id: Makefile.in,v 1.1 2001/06/26 01:31:51 pier Exp $
  
  include ../Makedefs
  
  SOURCES = Service.java \
ServiceController.java \

cvs commit: jakarta-tomcat-4.0/service/java Service.java

2001-06-25 Thread pier

pier01/06/25 18:31:58

  Added:   service/java Service.java
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/java/Service.java
  
  Index: Service.java
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: Service.java,v 1.1 2001/06/26 01:31:58 pier Exp $ */
  package org.apache.service;
  
  /**
   * The codeService/code interface provides a 

cvs commit: jakarta-tomcat-4.0/service/java ServiceController.java

2001-06-25 Thread pier

pier01/06/25 18:32:07

  Added:   service/java ServiceController.java
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/java/ServiceController.java
  
  Index: ServiceController.java
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: ServiceController.java,v 1.1 2001/06/26 01:32:06 pier Exp $ */
  package org.apache.service;
  
  /**
   * The 

cvs commit: jakarta-tomcat-4.0/service/java ServiceLoader.java

2001-06-25 Thread pier

pier01/06/25 18:32:16

  Added:   service/java ServiceLoader.java
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/java/ServiceLoader.java
  
  Index: ServiceLoader.java
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: ServiceLoader.java,v 1.1 2001/06/26 01:32:15 pier Exp $ */
  package org.apache.service.support;
  
  import 

cvs commit: jakarta-tomcat-4.0/service/java SimpleService.java

2001-06-25 Thread pier

pier01/06/25 18:32:24

  Added:   service/java SimpleService.java
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/java/SimpleService.java
  
  Index: SimpleService.java
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: SimpleService.java,v 1.1 2001/06/26 01:32:23 pier Exp $ */
  package org.apache.service.support;
  
  import java.io.*;
  

cvs commit: jakarta-tomcat-4.0/service/support apfunctions.m4

2001-06-25 Thread pier

pier01/06/25 18:33:01

  Added:   service/support apfunctions.m4
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/support/apfunctions.m4
  
  Index: apfunctions.m4
  ===
  dnl =
  dnl
  dnl The Apache Software License,  Version 1.1
  dnl
  dnl  Copyright (c) 1999-2001 The Apache Software Foundation.
  dnl   All rights reserved.
  dnl
  dnl =
  dnl
  dnl Redistribution and use in source and binary forms,  with or without modi-
  dnl fication, are permitted provided that the following conditions are met:
  dnl
  dnl 1. Redistributions of source code  must retain the above copyright notice
  dnlnotice, this list of conditions and the following disclaimer.
  dnl
  dnl 2. Redistributions  in binary  form  must  reproduce the  above copyright
  dnlnotice,  this list of conditions  and the following  disclaimer in the
  dnldocumentation and/or other materials provided with the distribution.
  dnl
  dnl 3. The end-user documentation  included with the redistribution,  if any,
  dnlmust include the following acknowlegement:
  dnl
  dnl   This product includes  software developed  by the Apache  Software
  dnlFoundation http://www.apache.org/.
  dnl
  dnlAlternately, this acknowlegement may appear in the software itself, if
  dnland wherever such third-party acknowlegements normally appear.
  dnl
  dnl 4. The names  The  Jakarta  Project,  WebApp,  and  Apache  Software
  dnlFoundation  must not be used  to endorse or promote  products derived
  dnlfrom this  software without  prior  written  permission.  For  written
  dnlpermission, please contact [EMAIL PROTECTED].
  dnl
  dnl 5. Products derived from this software may not be called Apache nor may
  dnlApache appear in their names without prior written permission of the
  dnlApache Software Foundation.
  dnl
  dnl THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WARRANTIES
  dnl INCLUDING, BUT NOT LIMITED TO,  THE IMPLIED WARRANTIES OF MERCHANTABILITY
  dnl AND FITNESS FOR  A PARTICULAR PURPOSE  ARE DISCLAIMED.  IN NO EVENT SHALL
  dnl THE APACHE  SOFTWARE  FOUNDATION OR  ITS CONTRIBUTORS  BE LIABLE  FOR ANY
  dnl DIRECT,  INDIRECT,   INCIDENTAL,  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL
  dnl DAMAGES (INCLUDING,  BUT NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE GOODS
  dnl OR SERVICES;  LOSS OF USE,  DATA,  OR PROFITS;  OR BUSINESS INTERRUPTION)
  dnl HOWEVER CAUSED AND  ON ANY  THEORY  OF  LIABILITY,  WHETHER IN  CONTRACT,
  dnl STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  dnl ANY  WAY  OUT OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF  ADVISED  OF THE
  dnl POSSIBILITY OF SUCH DAMAGE.
  dnl
  dnl =
  dnl
  dnl This software  consists of voluntary  contributions made  by many indivi-
  dnl duals on behalf of the  Apache Software Foundation.  For more information
  dnl on the Apache Software Foundation, please see http://www.apache.org/.
  dnl
  dnl =
  
  dnl -
  dnl Author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  dnl Version $Id: apfunctions.m4,v 1.1 2001/06/26 01:33:00 pier Exp $
  dnl -
  
  AC_DEFUN(AP_MSG_HEADER,[
printf \n\033\1331m%s\033\1330m\n $1 12
AC_PROVIDE([$0])
  ])
  
  AC_DEFUN(AP_CANONICAL_HOST_CHECK,[
AC_MSG_CHECKING([cached host system type])
if { test x${ac_cv_host_system_type+set} = xset  
 test x$ac_cv_host_system_type != x$host ; }
then
  AC_MSG_RESULT([$ac_cv_host_system_type])
  AC_MSG_ERROR([remove the \$cache_file\ file and re-run configure])
else
  AC_MSG_RESULT(ok)
  ac_cv_host_system_type=$host
fi
AC_PROVIDE([$0])
  ])
  
  
  



cvs commit: jakarta-tomcat-4.0/service/support apjava.m4

2001-06-25 Thread pier

pier01/06/25 18:33:09

  Added:   service/support apjava.m4
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/support/apjava.m4
  
  Index: apjava.m4
  ===
  dnl =
  dnl
  dnl The Apache Software License,  Version 1.1
  dnl
  dnl  Copyright (c) 1999-2001 The Apache Software Foundation.
  dnl   All rights reserved.
  dnl
  dnl =
  dnl
  dnl Redistribution and use in source and binary forms,  with or without modi-
  dnl fication, are permitted provided that the following conditions are met:
  dnl
  dnl 1. Redistributions of source code  must retain the above copyright notice
  dnlnotice, this list of conditions and the following disclaimer.
  dnl
  dnl 2. Redistributions  in binary  form  must  reproduce the  above copyright
  dnlnotice,  this list of conditions  and the following  disclaimer in the
  dnldocumentation and/or other materials provided with the distribution.
  dnl
  dnl 3. The end-user documentation  included with the redistribution,  if any,
  dnlmust include the following acknowlegement:
  dnl
  dnl   This product includes  software developed  by the Apache  Software
  dnlFoundation http://www.apache.org/.
  dnl
  dnlAlternately, this acknowlegement may appear in the software itself, if
  dnland wherever such third-party acknowlegements normally appear.
  dnl
  dnl 4. The names  The  Jakarta  Project,  WebApp,  and  Apache  Software
  dnlFoundation  must not be used  to endorse or promote  products derived
  dnlfrom this  software without  prior  written  permission.  For  written
  dnlpermission, please contact [EMAIL PROTECTED].
  dnl
  dnl 5. Products derived from this software may not be called Apache nor may
  dnlApache appear in their names without prior written permission of the
  dnlApache Software Foundation.
  dnl
  dnl THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WARRANTIES
  dnl INCLUDING, BUT NOT LIMITED TO,  THE IMPLIED WARRANTIES OF MERCHANTABILITY
  dnl AND FITNESS FOR  A PARTICULAR PURPOSE  ARE DISCLAIMED.  IN NO EVENT SHALL
  dnl THE APACHE  SOFTWARE  FOUNDATION OR  ITS CONTRIBUTORS  BE LIABLE  FOR ANY
  dnl DIRECT,  INDIRECT,   INCIDENTAL,  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL
  dnl DAMAGES (INCLUDING,  BUT NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE GOODS
  dnl OR SERVICES;  LOSS OF USE,  DATA,  OR PROFITS;  OR BUSINESS INTERRUPTION)
  dnl HOWEVER CAUSED AND  ON ANY  THEORY  OF  LIABILITY,  WHETHER IN  CONTRACT,
  dnl STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  dnl ANY  WAY  OUT OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF  ADVISED  OF THE
  dnl POSSIBILITY OF SUCH DAMAGE.
  dnl
  dnl =
  dnl
  dnl This software  consists of voluntary  contributions made  by many indivi-
  dnl duals on behalf of the  Apache Software Foundation.  For more information
  dnl on the Apache Software Foundation, please see http://www.apache.org/.
  dnl
  dnl =
  
  dnl -
  dnl Author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  dnl Version $Id: apjava.m4,v 1.1 2001/06/26 01:33:08 pier Exp $
  dnl -
  
  AC_DEFUN([AP_PROG_JAVAC_WORKS],[
AC_CACHE_CHECK([wether the Java compiler ($JAVAC) works],ap_cv_prog_javac_works,[
  echo public class Test {}  Test.java
  $JAVAC $JAVACFLAGS Test.java  /dev/null 21
  if test $? -eq 0
  then
rm -f Test.java Test.class
ap_cv_prog_javac_works=yes
  else
rm -f Test.java Test.class
AC_MSG_RESULT(no)
AC_MSG_ERROR([installation or configuration problem: javac cannot compile])
  fi
])
  ])
  
  AC_DEFUN([AP_PROG_JAVAC],[
AC_PATH_PROG(JAVAC,javac,AC_MSG_ERROR([javac not found]),$JAVA_HOME/bin:$PATH)
AP_PROG_JAVAC_WORKS()
AC_PROVIDE([$0])
AC_SUBST(JAVAC)
AC_SUBST(JAVACFLAGS)
  ])
  
  AC_DEFUN([AP_PROG_JAR],[
AC_PATH_PROG(JAR,jar,AC_MSG_ERROR([jar not found]),$JAVA_HOME/bin:$PATH)
AC_PROVIDE([$0])
AC_SUBST(JAR)
  ])
  
  AC_DEFUN([AP_JAVA],[
AC_ARG_WITH(java,[  --with-java=DIR Specify the location of your JDK 
installation],[
  AC_MSG_CHECKING([JAVA_HOME])
  if test -d $withval
  then
JAVA_HOME=$withval
AC_MSG_RESULT([$JAVA_HOME])
  else
AC_MSG_RESULT([failed])
AC_MSG_ERROR([$withval is not a directory])
  fi
  AC_SUBST(JAVA_HOME)
])
if test x$JAVA_HOME = x
then
   

cvs commit: jakarta-tomcat-4.0/service/support apsupport.m4

2001-06-25 Thread pier

pier01/06/25 18:33:17

  Added:   service/support apsupport.m4
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/support/apsupport.m4
  
  Index: apsupport.m4
  ===
  dnl =
  dnl
  dnl The Apache Software License,  Version 1.1
  dnl
  dnl  Copyright (c) 1999-2001 The Apache Software Foundation.
  dnl   All rights reserved.
  dnl
  dnl =
  dnl
  dnl Redistribution and use in source and binary forms,  with or without modi-
  dnl fication, are permitted provided that the following conditions are met:
  dnl
  dnl 1. Redistributions of source code  must retain the above copyright notice
  dnlnotice, this list of conditions and the following disclaimer.
  dnl
  dnl 2. Redistributions  in binary  form  must  reproduce the  above copyright
  dnlnotice,  this list of conditions  and the following  disclaimer in the
  dnldocumentation and/or other materials provided with the distribution.
  dnl
  dnl 3. The end-user documentation  included with the redistribution,  if any,
  dnlmust include the following acknowlegement:
  dnl
  dnl   This product includes  software developed  by the Apache  Software
  dnlFoundation http://www.apache.org/.
  dnl
  dnlAlternately, this acknowlegement may appear in the software itself, if
  dnland wherever such third-party acknowlegements normally appear.
  dnl
  dnl 4. The names  The  Jakarta  Project,  WebApp,  and  Apache  Software
  dnlFoundation  must not be used  to endorse or promote  products derived
  dnlfrom this  software without  prior  written  permission.  For  written
  dnlpermission, please contact [EMAIL PROTECTED].
  dnl
  dnl 5. Products derived from this software may not be called Apache nor may
  dnlApache appear in their names without prior written permission of the
  dnlApache Software Foundation.
  dnl
  dnl THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WARRANTIES
  dnl INCLUDING, BUT NOT LIMITED TO,  THE IMPLIED WARRANTIES OF MERCHANTABILITY
  dnl AND FITNESS FOR  A PARTICULAR PURPOSE  ARE DISCLAIMED.  IN NO EVENT SHALL
  dnl THE APACHE  SOFTWARE  FOUNDATION OR  ITS CONTRIBUTORS  BE LIABLE  FOR ANY
  dnl DIRECT,  INDIRECT,   INCIDENTAL,  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL
  dnl DAMAGES (INCLUDING,  BUT NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE GOODS
  dnl OR SERVICES;  LOSS OF USE,  DATA,  OR PROFITS;  OR BUSINESS INTERRUPTION)
  dnl HOWEVER CAUSED AND  ON ANY  THEORY  OF  LIABILITY,  WHETHER IN  CONTRACT,
  dnl STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  dnl ANY  WAY  OUT OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF  ADVISED  OF THE
  dnl POSSIBILITY OF SUCH DAMAGE.
  dnl
  dnl =
  dnl
  dnl This software  consists of voluntary  contributions made  by many indivi-
  dnl duals on behalf of the  Apache Software Foundation.  For more information
  dnl on the Apache Software Foundation, please see http://www.apache.org/.
  dnl
  dnl =
  
  dnl -
  dnl Author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  dnl Version $Id: apsupport.m4,v 1.1 2001/06/26 01:33:16 pier Exp $
  dnl -
  
  AC_DEFUN(AP_SUPPORTED_HOST,[
AC_MSG_CHECKING([C flags dependant on host system type])
case $host_cpu in
powerpc)
  CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
sparc)
  CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
i?86)
  CFLAGS=$CFLAGS -DCPU=\\\i386\\\ ;;
*)
  AC_MSG_RESULT([failed])
  AC_MSG_ERROR([Unsupported CPU architecture $host_cpu]);;
esac
  
case $host_os in
darwin*)
  CFLAGS=$CFLAGS -DOS_DARWIN -DDSO_DYLD
  supported_os=darwin
  ;;
solaris*)
  CFLAGS=$CFLAGS -DOS_SOLARIS -DDSO_DLFCN
  supported_os=solaris
  ;;
linux*)
  CFLAGS=$CFLAGS -DOS_LINUX -DDSO_DLFCN
  supported_os=linux
  ;;
*)
  AC_MSG_RESULT([failed])
  AC_MSG_ERROR([Unsupported operating system $host_os])
  ;;
esac
AC_MSG_RESULT([ok])
AC_SUBST(CFLAGS)
  ])
  
  
  



cvs commit: jakarta-tomcat-4.0/service/support buildconf.sh

2001-06-25 Thread pier

pier01/06/25 18:33:25

  Added:   service/support buildconf.sh
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/support/buildconf.sh
  
  Index: buildconf.sh
  ===
  #!/bin/sh
  # = #
  #   #
  # 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:   #
  #   #
  # 1. Redistributions of source code  must retain the above copyright notice #
  #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,  WebApp,  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 Software Foundation.#
  #   #
  # 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 indivi- #
  # duals on behalf of the  Apache Software Foundation.  For more information #
  # on the Apache Software Foundation, please see http://www.apache.org/.   #
  #   #
  # = #
  
  # @author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  # @version $Id: buildconf.sh,v 1.1 2001/06/26 01:33:24 pier Exp $
  
  if test -f configure.in ; then
autoconf
if test $? -ne 0 ; then
   

cvs commit: jakarta-tomcat-4.0/service/support config.guess

2001-06-25 Thread pier

pier01/06/25 18:33:33

  Added:   service/support config.guess
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/support/config.guess
  
  Index: config.guess
  ===
  #! /bin/sh
  # Attempt to guess a canonical system name.
  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  #   Free Software Foundation, Inc.
  
  timestamp='2001-04-20'
  
  # This file is free software; you can redistribute it and/or modify it
  # under the terms of the GNU General Public License as published by
  # the Free Software Foundation; either version 2 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful, but
  # WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  # General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program; if not, write to the Free Software
  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  #
  # As a special exception to the GNU General Public License, if you
  # distribute this file as part of a program that contains a
  # configuration script generated by Autoconf, you may include it under
  # the same distribution terms that you use for the rest of that program.
  
  # Written by Per Bothner [EMAIL PROTECTED].
  # Please send patches to [EMAIL PROTECTED].
  #
  # This script attempts to guess a canonical system name similar to
  # config.sub.  If it succeeds, it prints the system name on stdout, and
  # exits with 0.  Otherwise, it exits with 1.
  #
  # The plan is that this can be called by configure scripts if you
  # don't specify an explicit build system type.
  
  me=`echo $0 | sed -e 's,.*/,,'`
  
  usage=\
  Usage: $0 [OPTION]
  
  Output the configuration name of the system \`$me' is run on.
  
  Operation modes:
-h, --help print this help, then exit
-t, --time-stamp   print date of last modification, then exit
-v, --version  print version number, then exit
  
  Report bugs and patches to [EMAIL PROTECTED].
  
  version=\
  GNU config.guess ($timestamp)
  
  Originally written by Per Bothner.
  Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
  Free Software Foundation, Inc.
  
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  
  help=
  Try \`$me --help' for more information.
  
  # Parse command line
  while test $# -gt 0 ; do
case $1 in
  --time-stamp | --time* | -t )
 echo $timestamp ; exit 0 ;;
  --version | -v )
 echo $version ; exit 0 ;;
  --help | --h* | -h )
 echo $usage; exit 0 ;;
  -- ) # Stop option processing
 shift; break ;;
  - )   # Use stdin as input.
 break ;;
  -* )
 echo $me: invalid option $1$help 2
 exit 1 ;;
  * )
 break ;;
esac
  done
  
  if test $# != 0; then
echo $me: too many arguments$help 2
exit 1
  fi
  
  
  dummy=dummy-$$
  trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
  
  # CC_FOR_BUILD -- compiler used by this script.
  # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  # use `HOST_CC' if defined, but it is deprecated.
  
  case $CC_FOR_BUILD,$HOST_CC,$CC in
   ,,)echo int dummy(){}  $dummy.c
for c in cc gcc c89 ; do
  ($c $dummy.c -c -o $dummy.o) /dev/null 21
  if test $? = 0 ; then
 CC_FOR_BUILD=$c; break
  fi
done
rm -f $dummy.c $dummy.o $dummy.rel
if test x$CC_FOR_BUILD = x ; then
  CC_FOR_BUILD=no_compiler_found
fi
;;
   ,,*)   CC_FOR_BUILD=$CC ;;
   ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
  esac
  
  # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  # ([EMAIL PROTECTED] 8/24/94.)
  if (test -f /.attbin/uname) /dev/null 21 ; then
PATH=$PATH:/.attbin ; export PATH
  fi
  
  UNAME_MACHINE=`(uname -m) 2/dev/null` || UNAME_MACHINE=unknown
  UNAME_RELEASE=`(uname -r) 2/dev/null` || UNAME_RELEASE=unknown
  UNAME_SYSTEM=`(uname -s) 2/dev/null`  || UNAME_SYSTEM=unknown
  UNAME_VERSION=`(uname -v) 2/dev/null` || UNAME_VERSION=unknown
  
  # Note: order is significant - the case branches are not exclusive.
  
  case ${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION} in
  *:NetBSD:*:*)
# Netbsd (nbsd) targets should (where applicable) match one or
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format.  This provides 

cvs commit: jakarta-tomcat-4.0/service/support config.sub

2001-06-25 Thread pier

pier01/06/25 18:33:41

  Added:   service/support config.sub
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/support/config.sub
  
  Index: config.sub
  ===
  #! /bin/sh
  # Configuration validation subroutine script.
  #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  #   Free Software Foundation, Inc.
  
  timestamp='2001-05-11'
  
  # This file is (in principle) common to ALL GNU software.
  # The presence of a machine in this file suggests that SOME GNU software
  # can handle that machine.  It does not imply ALL GNU software can.
  #
  # This file is free software; you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation; either version 2 of the License, or
  # (at your option) any later version.
  #
  # This program is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with this program; if not, write to the Free Software
  # Foundation, Inc., 59 Temple Place - Suite 330,
  # Boston, MA 02111-1307, USA.
  
  # As a special exception to the GNU General Public License, if you
  # distribute this file as part of a program that contains a
  # configuration script generated by Autoconf, you may include it under
  # the same distribution terms that you use for the rest of that program.
  
  # Please send patches to [EMAIL PROTECTED].
  #
  # Configuration subroutine to validate and canonicalize a configuration type.
  # Supply the specified configuration type as an argument.
  # If it is invalid, we print an error message on stderr and exit with code 1.
  # Otherwise, we print the canonical config type on stdout and succeed.
  
  # This file is supposed to be the same for all GNU packages
  # and recognize all the CPU types, system types and aliases
  # that are meaningful with *any* GNU software.
  # Each package is responsible for reporting which valid configurations
  # it does not support.  The user should be able to distinguish
  # a failure to support a valid configuration from a meaningless
  # configuration.
  
  # The goal of this file is to map all the various variations of a given
  # machine specification into a single specification in the form:
  # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
  # or in some cases, the newer four-part form:
  # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  # It is wrong to echo any other type of specification.
  
  me=`echo $0 | sed -e 's,.*/,,'`
  
  usage=\
  Usage: $0 [OPTION] CPU-MFR-OPSYS
 $0 [OPTION] ALIAS
  
  Canonicalize a configuration name.
  
  Operation modes:
-h, --help print this help, then exit
-t, --time-stamp   print date of last modification, then exit
-v, --version  print version number, then exit
  
  Report bugs and patches to [EMAIL PROTECTED].
  
  version=\
  GNU config.sub ($timestamp)
  
  Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  Free Software Foundation, Inc.
  
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  
  help=
  Try \`$me --help' for more information.
  
  # Parse command line
  while test $# -gt 0 ; do
case $1 in
  --time-stamp | --time* | -t )
 echo $timestamp ; exit 0 ;;
  --version | -v )
 echo $version ; exit 0 ;;
  --help | --h* | -h )
 echo $usage; exit 0 ;;
  -- ) # Stop option processing
 shift; break ;;
  - )   # Use stdin as input.
 break ;;
  -* )
 echo $me: invalid option $1$help
 exit 1 ;;
  
  *local*)
 # First pass through any local machine types.
 echo $1
 exit 0;;
  
  * )
 break ;;
esac
  done
  
  case $# in
   0) echo $me: missing argument$help 2
  exit 1;;
   1) ;;
   *) echo $me: too many arguments$help 2
  exit 1;;
  esac
  
  # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  # Here we must recognize all the valid KERNEL-OS combinations.
  maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  case $maybe_os in
nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
  os=-$maybe_os
  basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  ;;
*)
  basic_machine=`echo $1 | sed 's/-[^-]*$//'`
  if [ $basic_machine != $1 ]
  then os=`echo $1 | sed 's/.*-/-/'`
  else os=; fi
  ;;
  esac
  
  ### Let's recognize common machines as not being operating systems so
  ### that things like 

cvs commit: jakarta-tomcat-4.0/service/support install.sh

2001-06-25 Thread pier

pier01/06/25 18:33:53

  Added:   service/support install.sh
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/support/install.sh
  
  Index: install.sh
  ===
  #!/bin/sh
  #
  # install - install a program, script, or datafile
  # This comes from X11R5 (mit/util/scripts/install.sh).
  #
  # Copyright 1991 by the Massachusetts Institute of Technology
  #
  # Permission to use, copy, modify, distribute, and sell this software and its
  # documentation for any purpose is hereby granted without fee, provided that
  # the above copyright notice appear in all copies and that both that
  # copyright notice and this permission notice appear in supporting
  # documentation, and that the name of M.I.T. not be used in advertising or
  # publicity pertaining to distribution of the software without specific,
  # written prior permission.  M.I.T. makes no representations about the
  # suitability of this software for any purpose.  It is provided as is
  # without express or implied warranty.
  #
  # Calling this script install-sh is preferred over install.sh, to prevent
  # `make' implicit rules from creating a file called install from it
  # when there is no Makefile.
  #
  # This script is compatible with the BSD install script, but was written
  # from scratch.  It can only install one file at a time, a restriction
  # shared with many OS's install programs.
  
  
  # set DOITPROG to echo to test this script
  
  # Don't use :- since 4.3BSD and earlier shells don't like it.
  doit=${DOITPROG-}
  
  
  # put in absolute paths if you don't have them in your path; or use env. vars.
  
  mvprog=${MVPROG-mv}
  cpprog=${CPPROG-cp}
  chmodprog=${CHMODPROG-chmod}
  chownprog=${CHOWNPROG-chown}
  chgrpprog=${CHGRPPROG-chgrp}
  stripprog=${STRIPPROG-strip}
  rmprog=${RMPROG-rm}
  mkdirprog=${MKDIRPROG-mkdir}
  
  transformbasename=
  transform_arg=
  instcmd=$mvprog
  chmodcmd=$chmodprog 0755
  chowncmd=
  chgrpcmd=
  stripcmd=
  rmcmd=$rmprog -f
  mvcmd=$mvprog
  src=
  dst=
  dir_arg=
  
  while [ x$1 != x ]; do
  case $1 in
-c) instcmd=$cpprog
shift
continue;;
  
-d) dir_arg=true
shift
continue;;
  
-m) chmodcmd=$chmodprog $2
shift
shift
continue;;
  
-o) chowncmd=$chownprog $2
shift
shift
continue;;
  
-g) chgrpcmd=$chgrpprog $2
shift
shift
continue;;
  
-s) stripcmd=$stripprog
shift
continue;;
  
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
  
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
  
*)  if [ x$src = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
  esac
  done
  
  if [ x$src = x ]
  then
echo install:  no input file specified
exit 1
  else
:
  fi
  
  if [ x$dir_arg != x ]; then
dst=$src
src=

if [ -d $dst ]; then
instcmd=:
chmodcmd=
else
instcmd=$mkdirprog
fi
  else
  
  # Waiting for this to be detected by the $instcmd $src $dsttmp command
  # might cause directories to be created, which would be especially bad 
  # if $src (and thus $dsttmp) contains '*'.
  
if [ -f $src -o -d $src ]
then
:
else
echo install:  $src does not exist
exit 1
fi

if [ x$dst = x ]
then
echo install:  no destination specified
exit 1
else
:
fi
  
  # If destination is a directory, append the input filename; if your system
  # does not like double slashes in filenames, you may need to add some logic
  
if [ -d $dst ]
then
dst=$dst/`basename $src`
else
:
fi
  fi
  
  ## this sed command emulates the dirname command
  dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  
  # Make sure that the destination directory exists.
  #  this part is taken from Noah Friedman's mkinstalldirs script
  
  # Skip lots of stat calls in the usual case.
  if [ ! -d $dstdir ]; then
  defaultIFS='
'
  IFS=${IFS-${defaultIFS}}
  
  oIFS=${IFS}
  # Some sh's can't handle IFS=/ for some reason.
  IFS='%'
  set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  IFS=${oIFS}
  
  pathcomp=''
  
  while [ $# -ne 0 ] ; do
pathcomp=${pathcomp}${1}
shift
  
if [ ! -d ${pathcomp} ] ;
  then
   

cvs commit: jakarta-tomcat-4.0/service/native Makefile.in

2001-06-25 Thread pier

pier01/06/25 18:35:30

  Added:   service/native Makefile.in
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/Makefile.in
  
  Index: Makefile.in
  ===
  # = #
  #   #
  # 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:   #
  #   #
  # 1. Redistributions of source code  must retain the above copyright notice #
  #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,  WebApp,  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 Software Foundation.#
  #   #
  # 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 indivi- #
  # duals on behalf of the  Apache Software Foundation.  For more information #
  # on the Apache Software Foundation, please see http://www.apache.org/.   #
  #   #
  # = #
  
  # @author  Pier Fumagalli mailto:[EMAIL PROTECTED]
  # @version $Id: Makefile.in,v 1.1 2001/06/26 01:35:30 pier Exp $
  
  include ../Makedefs
  
  OBJS =  arguments.o \
debug.o \
dso-dlfcn.o \
  

cvs commit: jakarta-tomcat-4.0/service/native arguments.c

2001-06-25 Thread pier

pier01/06/25 18:35:39

  Added:   service/native arguments.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/arguments.c
  
  Index: arguments.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: arguments.c,v 1.1 2001/06/26 01:35:38 pier Exp $ */
  #include jsvc.h
  
  /* Return the argument of a command line option */
  static char 

cvs commit: jakarta-tomcat-4.0/service/native arguments.h

2001-06-25 Thread pier

pier01/06/25 18:35:47

  Added:   service/native arguments.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/arguments.h
  
  Index: arguments.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: arguments.h,v 1.1 2001/06/26 01:35:46 pier Exp $ */
  #ifndef __JSVC_ARGUMENTS_H__
  #define __JSVC_ARGUMENTS_H__
  
  /**
   * The structure 

cvs commit: jakarta-tomcat-4.0/service/native debug.c

2001-06-25 Thread pier

pier01/06/25 18:35:55

  Added:   service/native debug.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/debug.c
  
  Index: debug.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: debug.c,v 1.1 2001/06/26 01:35:54 pier Exp $ */
  #include jsvc.h
  
  /* Wether debug is enabled or not */
  bool log_debug_flag = false;
  
  /* The 

cvs commit: jakarta-tomcat-4.0/service/native debug.h

2001-06-25 Thread pier

pier01/06/25 18:36:03

  Added:   service/native debug.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/debug.h
  
  Index: debug.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: debug.h,v 1.1 2001/06/26 01:36:02 pier Exp $ */
  #ifndef __JSVC_DEBUG_H__
  #define __JSVC_DEBUG_H__
  
  /**
   * Wether debugging is enabled or not.
  

cvs commit: jakarta-tomcat-4.0/service/native dso-dlfcn.c

2001-06-25 Thread pier

pier01/06/25 18:36:11

  Added:   service/native dso-dlfcn.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/dso-dlfcn.c
  
  Index: dso-dlfcn.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: dso-dlfcn.c,v 1.1 2001/06/26 01:36:10 pier Exp $ */
  #include jsvc.h
  
  #ifdef DSO_DLFCN
  
  #include dlfcn.h
  
  #ifdef OS_LINUX
  bool 

cvs commit: jakarta-tomcat-4.0/service/native dso-dyld.c

2001-06-25 Thread pier

pier01/06/25 18:36:19

  Added:   service/native dso-dyld.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/dso-dyld.c
  
  Index: dso-dyld.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: dso-dyld.c,v 1.1 2001/06/26 01:36:18 pier Exp $ */
  #include jsvc.h
  
  #ifdef DSO_DYLD
  
  #include mach-o/dyld.h
  
  /* Print an error 

cvs commit: jakarta-tomcat-4.0/service/native dso.h

2001-06-25 Thread pier

pier01/06/25 18:36:26

  Added:   service/native dso.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/dso.h
  
  Index: dso.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: dso.h,v 1.1 2001/06/26 01:36:26 pier Exp $ */
  #include jsvc.h
  
  /**
   * A library handle represents a unique pointer to its location in memory.
   */
  

cvs commit: jakarta-tomcat-4.0/service/native help.c

2001-06-25 Thread pier

pier01/06/25 18:36:35

  Added:   service/native help.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/help.c
  
  Index: help.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: help.c,v 1.1 2001/06/26 01:36:34 pier Exp $ */
  #include jsvc.h
  
  void help(home_data *data) {
  int x;
  
  printf(Usage: %s [-options] class 

cvs commit: jakarta-tomcat-4.0/service/native help.h

2001-06-25 Thread pier

pier01/06/25 18:36:42

  Added:   service/native help.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/help.h
  
  Index: help.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: help.h,v 1.1 2001/06/26 01:36:42 pier Exp $ */
  void help(home_data *data);
  
  
  



cvs commit: jakarta-tomcat-4.0/service/native home.c

2001-06-25 Thread pier

pier01/06/25 18:36:50

  Added:   service/native home.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/home.c
  
  Index: home.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: home.c,v 1.1 2001/06/26 01:36:49 pier Exp $ */
  #include jsvc.h
  
  /* Check if a path is a directory */
  static bool checkdir(char *path) {
  struct 

cvs commit: jakarta-tomcat-4.0/service/native home.h

2001-06-25 Thread pier

pier01/06/25 18:36:58

  Added:   service/native home.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/home.h
  
  Index: home.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: home.h,v 1.1 2001/06/26 01:36:57 pier Exp $ */
  #ifndef __JSVC_HOME_H__
  #define __JSVC_HOME_H__
  
  typedef struct home_jvm home_jvm;
  typedef struct 

cvs commit: jakarta-tomcat-4.0/service/native java.h

2001-06-25 Thread pier

pier01/06/25 18:37:18

  Added:   service/native java.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/java.h
  
  Index: java.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: java.h,v 1.1 2001/06/26 01:37:16 pier Exp $ */
  
  #define LOADER org/apache/service/support/ServiceLoader
  
  char *java_library(arg_data *args, 

cvs commit: jakarta-tomcat-4.0/service/native jsvc-unix.c

2001-06-25 Thread pier

pier01/06/25 18:37:26

  Added:   service/native jsvc-unix.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/jsvc-unix.c
  
  Index: jsvc-unix.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: jsvc-unix.c,v 1.1 2001/06/26 01:37:25 pier Exp $ */
  #include jsvc.h
  
  #include signal.h
  #include unistd.h
  #include sys/types.h
  

cvs commit: jakarta-tomcat-4.0/service/native jsvc.h

2001-06-25 Thread pier

pier01/06/25 18:37:34

  Added:   service/native jsvc.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/jsvc.h
  
  Index: jsvc.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: jsvc.h,v 1.1 2001/06/26 01:37:34 pier Exp $ */
  #ifndef __JSVC_H__
  #define __JSVC_H__
  
  #include stdio.h
  #include stdlib.h
  #include stdarg.h
  

cvs commit: jakarta-tomcat-4.0/service/native location.c

2001-06-25 Thread pier

pier01/06/25 18:37:42

  Added:   service/native location.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/location.c
  
  Index: location.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: location.c,v 1.1 2001/06/26 01:37:41 pier Exp $ */
  #include jsvc.h
  
  /* Locations of various JVM files. We have to deal with all this 

cvs commit: jakarta-tomcat-4.0/service/native location.h

2001-06-25 Thread pier

pier01/06/25 18:37:50

  Added:   service/native location.h
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/location.h
  
  Index: location.h
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: location.h,v 1.1 2001/06/26 01:37:49 pier Exp $ */
  #include jsvc.h
  
  extern char *location_home[];
  extern char *location_jvm_cfg[];
  

cvs commit: jakarta-tomcat-4.0/service/native replace.c

2001-06-25 Thread pier

pier01/06/25 18:37:57

  Added:   service/native replace.c
  Log:
  Full UNIX service implementation checkin
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/native/replace.c
  
  Index: replace.c
  ===
  /* = *
   *   *
   * 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:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *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,  WebApp,  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 Software Foundation.*
   *   *
   * 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 indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  /* @version $Id: replace.c,v 1.1 2001/06/26 01:37:56 pier Exp $ */
  #include jsvc.h
  
  /* Replace all occurrences of a string in another */
  int replace(char 

Re: cvs commit: jakarta-tomcat-4.0/service/support config.guess

2001-06-25 Thread Pier P. Fumagalli

[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:
 
 Log:
 Full UNIX service implementation checkin

DARN... The script failed... It should have done it per directory (mistyping
a find -d with a find -f)...

Sorry...

Pier




RE: Connectors in Nightly builds?

2001-06-25 Thread Thom Park

my Apologies,

I'm referring to the Tomcat 4 nightly builds.

Recent downloads of the source archives for tomcat 4 lacks the connector
sub-directory and corresponding
source files.

I'm particularly interested in the mod_webapp stuff but, of course, wouldn't
mind a version of mod_jk
that worked with tomcat 4 ;-)

-Thom


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 3:17 PM
To: [EMAIL PROTECTED]
Subject: Re: Connectors in Nightly builds?


On Mon, 25 Jun 2001, Thom Park wrote:

 Hi

 Does anyone have an E.T.A. on when the connectors will return to the
nightly
 builds
 and/or when they will return to being included in the nighty source drops?

Which connectors :-) ?

If you are talking about the native mod_jk/mod_webapp - I didn't know they
were ever built nightly.

If you are talking about tomcat3.3 - the nightly build is (almost) back,
probably tonight I'll fix the last problem.

The old connectors are still there, the new connector ( ajp14 and the
improved mod_jk ) is in j-t-c.


Costin






cvs commit: jakarta-tomcat-4.0/service/native .cvsignore

2001-06-25 Thread pier

pier01/06/25 18:53:45

  Added:   service  .cvsignore
   service/java .cvsignore
   service/native .cvsignore
  Log:
  Added .cvsignore files
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-4.0/service/.cvsignore
  
  Index: .cvsignore
  ===
  config.cache
  config.log
  config.status
  configure
  Makedefs
  Makefile
  
  
  
  1.1  jakarta-tomcat-4.0/service/java/.cvsignore
  
  Index: .cvsignore
  ===
  Makefile
  org
  service.jar
  
  
  
  1.1  jakarta-tomcat-4.0/service/native/.cvsignore
  
  Index: .cvsignore
  ===
  jsvc
  Makefile
  
  
  



Service...

2001-06-25 Thread Pier P. Fumagalli

(and I was supposed to hit the bed early tonight!)

It's the old (and now revamped) service proposal... Allows a service to
get signals (HUP/TERM) and to shutdown/restart correctly, and binding on
port  1024 while running as non-root...

It is currently tested on Linux (RH71/i386), Solaris (8/Sparc) and MacOS/X
(10.0.4/PPC), with JDK 1.3.1 on all three, but should work fine from JDK 1.2
up to 1.4... And its feature complete (the port for Win32 is undergoing, but
somehow slow as I need to get to the Westminster University lab to access a
copy of MSVC - and don't ask me about CygWin, since it simply crashes on my
PC)

Try it out :)

Pier




Re: Connectors in Nightly builds?

2001-06-25 Thread kevin seguin

 
 my Apologies,
 
 I'm referring to the Tomcat 4 nightly builds.
 
 Recent downloads of the source archives for tomcat 4 lacks the connector
 sub-directory and corresponding
 source files.
 
 I'm particularly interested in the mod_webapp stuff but, of course, wouldn't
 mind a version of mod_jk
 that worked with tomcat 4 ;-)
 

mod_webapp stuff has been moved to jakarta-tomcat-connectors.  there is
also a working version of ajp13 for tomcat 4 there as well.

 -Thom
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 25, 2001 3:17 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Connectors in Nightly builds?
 
 On Mon, 25 Jun 2001, Thom Park wrote:
 
  Hi
 
  Does anyone have an E.T.A. on when the connectors will return to the
 nightly
  builds
  and/or when they will return to being included in the nighty source drops?
 
 Which connectors :-) ?
 
 If you are talking about the native mod_jk/mod_webapp - I didn't know they
 were ever built nightly.
 
 If you are talking about tomcat3.3 - the nightly build is (almost) back,
 probably tonight I'll fix the last problem.
 
 The old connectors are still there, the new connector ( ajp14 and the
 improved mod_jk ) is in j-t-c.
 
 Costin



Re: Connectors in Nightly builds?

2001-06-25 Thread Pier P. Fumagalli

Thom Park at [EMAIL PROTECTED] wrote:
 
 my Apologies,
 
 I'm referring to the Tomcat 4 nightly builds.
 
 Recent downloads of the source archives for tomcat 4 lacks the connector
 sub-directory and corresponding source files.
 
 I'm particularly interested in the mod_webapp stuff but, of course, wouldn't
 mind a version of mod_jk that worked with tomcat 4 ;-)

Regarding mod_webapp, now that the service invocation stuff is more or less
in good state (and I have to switch my mind away from it), I'm going to fix
a reasonable amount of bugs I received in the last few weeks.

The plan is to have watchdog and tomcat tests running all just fine before
Craig gets back from vacation (at least that's what I promised him :)

Regarding nightly builds, it's hard, as it's all native code. I have a few
boxes over here that one day will become a tinderbox-like environment
(that's all betaversion.org is) but I don't envision a full build of
WebApp on all platforms done automatically before the end of the summer (if
_ever_).

One thing I can produce right now are binaries for Linux RH71 on i386,
MacOS/X on PPC, HPUX 10.20 on PA-RISC and Solaris 8 on both i386 and Sparc,
but apart from that, I can't do that much...

Pier




cvs commit: jakarta-tomcat-4.0/service/native java.c java.h jsvc-unix.c

2001-06-25 Thread pier

pier01/06/25 20:24:54

  Modified:service/native java.c java.h jsvc-unix.c
  Log:
  Fixed bug preventing LINUX to executing a clean shutdown/reload.
  
  Revision  ChangesPath
  1.2   +23 -2 jakarta-tomcat-4.0/service/native/java.c
  
  Index: java.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/service/native/java.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- java.c2001/06/26 01:37:06 1.1
  +++ java.c2001/06/26 03:24:52 1.2
  @@ -55,7 +55,7 @@
*   *
* = */
   
  -/* @version $Id: java.c,v 1.1 2001/06/26 01:37:06 pier Exp $ */
  +/* @version $Id: java.c,v 1.2 2001/06/26 03:24:52 pier Exp $ */
   #include jsvc.h
   
   #include jni.h
  @@ -227,8 +227,29 @@
   }
   
   /* Destroy the Java VM */
  -bool java_destroy(void) {
  +bool java_destroy(int exit) {
  +jclass system=NULL;
  +jmethodID method;
  +
  +system=(*env)-FindClass(env,java/lang/System);
  +if (system==NULL) {
  +log_error(Cannot find class java/lang/System);
  +return(false);
  +}
  +
  +method=(*env)-GetStaticMethodID(env,system,exit,(I)V);
  +if (method==NULL) {
  +log_error(Cannot found \System.exit(int)\ entry point);
  +return(false);
  +}
  +
  +log_debug(Calling System.exit(%d),exit);
  +(*env)-CallStaticVoidMethod(env,cls,method,(jint)exit);
  +
  +/* We shouldn't get here, but just in case... */
  +log_debug(Destroying the Java VM);
   if ((*jvm)-DestroyJavaVM(jvm)!=0) return(false);
  +log_debug(Java VM destroyed);
   return(true);
   }
   
  
  
  
  1.2   +2 -2  jakarta-tomcat-4.0/service/native/java.h
  
  Index: java.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/service/native/java.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- java.h2001/06/26 01:37:16 1.1
  +++ java.h2001/06/26 03:24:53 1.2
  @@ -55,13 +55,13 @@
*   *
* = */
   
  -/* @version $Id: java.h,v 1.1 2001/06/26 01:37:16 pier Exp $ */
  +/* @version $Id: java.h,v 1.2 2001/06/26 03:24:53 pier Exp $ */
   
   #define LOADER org/apache/service/support/ServiceLoader
   
   char *java_library(arg_data *args, home_data *data);
   bool java_init(arg_data *args, home_data *data);
  -bool java_destroy(void);
  +bool java_destroy(int exit);
   bool java_load(arg_data *args);
   bool java_start(void);
   bool java_stop(void);
  
  
  
  1.2   +8 -8  jakarta-tomcat-4.0/service/native/jsvc-unix.c
  
  Index: jsvc-unix.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/service/native/jsvc-unix.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jsvc-unix.c   2001/06/26 01:37:25 1.1
  +++ jsvc-unix.c   2001/06/26 03:24:53 1.2
  @@ -55,7 +55,7 @@
*   *
* = */
   
  -/* @version $Id: jsvc-unix.c,v 1.1 2001/06/26 01:37:25 pier Exp $ */
  +/* @version $Id: jsvc-unix.c,v 1.2 2001/06/26 03:24:53 pier Exp $ */
   #include jsvc.h
   
   #include signal.h
  @@ -189,6 +189,7 @@
   static int child(arg_data *args, home_data *data, uid_t uid, gid_t gid) {
   FILE *pidf=fopen(args-pidf,w);
   pid_t pidn=getpid();
  +int ret=0;
   
   if (pidf!=NULL) {
   fprintf(pidf,%d\n,(int)pidn);
  @@ -243,14 +244,13 @@
   /* Start the service */
   if (java_stop()!=true) return(6);
   
  -/* Destroy the Java VM */
  -if (java_destroy()!=true) return(7);
  +if (doreload==true) ret=123;
  +else ret=0;
   
  -/* Remove PID file */
  -unlink(args-pidf);
  +/* Destroy the Java VM */
  +if (java_destroy(ret)!=true) return(7);
   
  -if (doreload==true) return(123);
  -else return(0);
  +return(ret);
   }
   
   int main(int argc, char *argv[]) {
  @@ -330,7 +330,7 @@
  will be the child */
   while ((pid=fork())!=-1) {
   /* We forked (again), if this is the child, we go on normally */
  -if (pid==0) return(child(args,data,uid,gid));
  +if (pid==0) exit(child(args,data,uid,gid));
   
   /* We are in the controller, we have to forward all interesting signals
  to the child, and wait for it to die */
  
  
  



cvs commit: jakarta-tomcat-4.0/service/java SimpleService.java

2001-06-25 Thread pier

pier01/06/25 20:27:34

  Modified:service/java SimpleService.java
  Log:
  Force shutdown of SimpleService after 5 seconds (Linux doesn't throw an
  IOException when the ServerSocket is closed, but rather waits until the
  first connection gets thru - DARN!)
  
  Revision  ChangesPath
  1.2   +2 -2  jakarta-tomcat-4.0/service/java/SimpleService.java
  
  Index: SimpleService.java
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/service/java/SimpleService.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleService.java2001/06/26 01:32:23 1.1
  +++ SimpleService.java2001/06/26 03:27:33 1.2
  @@ -55,7 +55,7 @@
*   *
* = */
   
  -/* @version $Id: SimpleService.java,v 1.1 2001/06/26 01:32:23 pier Exp $ */
  +/* @version $Id: SimpleService.java,v 1.2 2001/06/26 03:27:33 pier Exp $ */
   package org.apache.service.support;
   
   import java.io.*;
  @@ -153,7 +153,7 @@
   this.server.close();
   
   /* Wait for the main thread to exit and dump a message */
  -this.thread.join();
  +this.thread.join(5000);
   System.err.println(SimpleService: stopped);
   }
   
  
  
  



Re: cvs commit: jakarta-tomcat-4.0/service/java SimpleService.java

2001-06-25 Thread Pier P. Fumagalli

[EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:
 
 Log:
 Force shutdown of SimpleService after 5 seconds (Linux doesn't throw an
 IOException when the ServerSocket is closed, but rather waits until the
 first connection gets thru - DARN!)

And they call it OS... The dynamic linker/loader is screwed badly, sockets
do not generate events when they're closed, threading support is
_ridiculous_... Bah...

Pier (now _really_ going to get some sleep)




cvs commit: jakarta-tomcat/src/etc server.dtd

2001-06-25 Thread costin

costin  01/06/25 21:07:58

  Removed: src/etc  server.dtd
  Log:
  Obsolete file, it's out of date. I'll try to create a new one for those
  using xml editors ( like emacs ), but better for now to not have it then to
  have the wrong one.



Re: TC4 Beta5

2001-06-25 Thread Srinu Kavi



Craig R. McClanahan wrote:

 On Mon, 25 Jun 2001, Srinu Kavi wrote:

  I'm trying to run TC 4.0 beta 5's Catalina on HP's core services
  framework.
 
  (For my convenience, I made temporary/minor changes to
  bootstrap/Startup src such that TC can start w/o startup script,
  and as a service on CSF.)
 
  Any ideas what's wrong and what I need to do?
 
  I'll be happy to provide any additional info that might be useful.
  Thanks.
 
  Kavi
  HP Middleware

 It looks like there might be issues with how you are setting up the class
 loader hierarchy -- which, of course, depends on exactly what changes you
 are making to the startup scripts.

 In general, the intent is that no changes to these scripts should be
 necessary -- any additional classes that need to be exposed are simply
 JAR'd up and placed into an appropriate directory.  What did you find
 necessary to change?

Thanks.

Basically I wanted to start Catalina w/o any startup script; and
read (some values from) config file from a different location;

For standalone TC, I can do something  like
java -classpath catalina.jar org.apache.catalina.startup.Bootstrap

(This is only temporary;  The goal is not to change TC4 distribution
structure.)

I wrote a simple wrapper service that runs on our CSF which invokes
Bootstrap.main. That's when I'm getting the errors.

I included all other TC4 jars (like lib/*, server/lib/*, and common/lib/*)
in the CLASSPATH when CSF starts.
(I also tried putting these ahead of all other CPs.)



 Craig

Kavi
HP Middleware




RE: Service...

2001-06-25 Thread GOMEZ Henri

A really usefull feature, for ALL Tomcat release.

I'll take a look at it and see how it could be 
suite in TC 3.2/3.3 :!

What about ?

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



-Original Message-
From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 4:05 AM
To: [EMAIL PROTECTED]
Subject: Service...


(and I was supposed to hit the bed early tonight!)

It's the old (and now revamped) service proposal... Allows a 
service to
get signals (HUP/TERM) and to shutdown/restart correctly, and 
binding on
port  1024 while running as non-root...

It is currently tested on Linux (RH71/i386), Solaris (8/Sparc) 
and MacOS/X
(10.0.4/PPC), with JDK 1.3.1 on all three, but should work 
fine from JDK 1.2
up to 1.4... And its feature complete (the port for Win32 is 
undergoing, but
somehow slow as I need to get to the Westminster University 
lab to access a
copy of MSVC - and don't ask me about CygWin, since it simply 
crashes on my
PC)

Try it out :)

Pier