cvs commit: jakarta-tomcat-5 build.xml

2005-09-29 Thread costin
costin  2005/09/28 23:07:24

  Modified:.build.xml
  Log:
  Add a target to build the standalone jar - in case anyone wants to play with 
it.
  
  Revision  ChangesPath
  1.239 +87 -1 jakarta-tomcat-5/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v
  retrieving revision 1.238
  retrieving revision 1.239
  diff -u -r1.238 -r1.239
  --- build.xml 22 Sep 2005 10:39:37 -  1.238
  +++ build.xml 29 Sep 2005 06:07:24 -  1.239
  @@ -192,6 +192,7 @@
  property name=tomcat-util.build value=${tomcat.build} /
  property name=tomcat-util.lib value=${tomcat.build}/server/lib /
   /ant
  +
 /target
   
 target name=build-tomcatjk unless=tomcatjk.build.notrequired 
  @@ -658,7 +659,7 @@
   !-- antcall target=build-commons-modeler / --
   !-- antcall target=build-commons-daemon  / --
   
  - antcall target=downloadgz
  +antcall target=downloadgz
 param name=sourcefile value=${commons-collections-src.loc}/
 param name=destfile value=${tomcat-dbcp.jar} /
   /antcall
  @@ -1167,6 +1168,90 @@
   /ant
 /target
   
  +  !-- === Single-jar tomcat === --
  +   target name=prepare-runtime-once 
  + description=Do once before single jar tomcat
  +mkdir dir=runtime/deps /
  +mkdir dir=runtime/classes /
  +unjar dest=runtime/deps 
src=${base.path}/servlet-api-2.4/lib/servlet-api.jar /
  +!-- unjar dest=runtime/deps 
src=${base.path}/commons-logging-1.0.4/commons-logging.jar/ --
  +unjar dest=runtime/deps 
src=${base.path}/commons-modeler-1.1/commons-modeler.jar/
  +unjar dest=runtime/deps 
src=${base.path}/jsp-api-2.0/lib/jsp-api.jar/
  +   /target
  +
  +
  +   target name=compile-runtime 
  +   description=Build single jar tomcat
  +  
  +  javac destdir=runtime/classes deprecation=false debug=false  
  +!-- classpath 
path=${base.path}/commons-beanutils-1.6.1/commons-beanutils.jar/ --
  +!-- classpath 
path=${base.path}/commons-logging-1.0.4/commons-logging.jar/ --
  +classpath 
path=${base.path}/commons-modeler-1.1/commons-modeler.jar/
  +classpath path=${base.path}/jsp-api-2.0/lib/jsp-api.jar/
  +classpath 
path=${base.path}/servlet-api-2.4/lib/servlet-api.jar/
  +classpath path=${base.path}/jmxri-1.2.1.jar/
  +
  +src
  +pathelement path=${jtc.home}/util/java/  
  +pathelement path=${jtc.home}/mini/java /
  +!-- pathelement path=${jtc.home}/naming/src/ --
  +pathelement path=${jtc.home}/coyote/src/java/
  +pathelement path=${jtc.home}/http11/src/java/
  +pathelement path=${catalina.home}/catalina/src/share/
  +/src
  +exclude name=org/apache/naming/*.java/
  +exclude name=org/apache/naming/ant/**/
  +exclude name=org/apache/tomcat/util/net/puretls/**/
  +exclude 
name=org/apache/tomcat/util/net/jsse/JSSE15SocketFactory.java/
  +exclude 
name=org/apache/tomcat/util/net/jsse/JSSE15Factory.java/
  +exclude name=org/apache/tomcat/util/net/AprEndpoint.java/
  +exclude name=org/apache/coyote/tomcat3/**/
  +exclude name=org/apache/coyote/tomcat4/**/
  +exclude name=org/apache/coyote/memory/**/
  +exclude name=org/apache/coyote/standalone/**/
  +exclude 
name=org/apache/coyote/http11/Http11AprProcessor.java/
  +exclude name=org/apache/coyote/http11/Http11AprProtocol.java/
  +exclude 
name=org/apache/coyote/http11/InternalAprInputBuffer.java/
  +exclude 
name=org/apache/coyote/http11/InternalAprOutputBuffer.java/
  +exclude name=**/CatalinaLaunchFilter.java/
  +exclude name=**/MailSessionFactory.java/
  +exclude name=**/SendMailFactory.java/
  +exclude name=**/SemaphoreValve.java/
  +exclude name=org/apache/catalina/ant/**/
  +exclude name=org/apache/catalina/ssi/**/
  +exclude 
name=org/apache/catalina/loader/CatalinaModuleListener.java/
  +/javac
  +
  +copy todir=runtime/classes 
  +fileset dir=${jtc.home}/util/java includes=**/*.properties 
**/*.xml/
  +fileset dir=${jtc.home}/naming/src includes=**/*.properties 
**/*.xml/
  +fileset dir=${jtc.home}/coyote/src/java 
includes=**/*.properties **/*.xml 
  +  exclude name=org/apache/coyote/tomcat4/**/
  +/fileset
  +fileset dir=${jtc.home}/http11/src/java 
includes=**/*.properties **/*.xml/
  +fileset dir=${catalina.home}/catalina/src/share 
includes=**/*.properties **/*.xml/
  +/copy
  +
  +jar jarfile=runtime/tomcat-runtime.jar 

Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader WebappClassLoader.java

2005-09-29 Thread Costin Manolache

Remy Maucherat wrote:

Jan Luehe wrote:

As a reminder, CVS shound't be used anymore.


I commited a bunch of small changes, don't know how easy it'll be to get 
them in after the switch to svn. Let me know if there's a problem, I can 
roll them back.


BTW - I had some of the changes in IntrospectionUtils in my workspace as 
well, so I don't have to commit that :-)


Costin


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



Re: cvs commit: jakarta-tomcat-5 build.xml

2005-09-29 Thread Costin Manolache
BTW - there are still few files missing, but the end result is a 1.2M 
jar containing all deps, that can be run with java -jar and only 
requires a webapps/ dir in the current dir.


Costin

[EMAIL PROTECTED] wrote:

costin  2005/09/28 23:07:24

  Modified:.build.xml
  Log:
  Add a target to build the standalone jar - in case anyone wants to play with 
it.
  
  Revision  ChangesPath

  1.239 +87 -1 jakarta-tomcat-5/build.xml
  
  Index: build.xml

  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v
  retrieving revision 1.238
  retrieving revision 1.239
  diff -u -r1.238 -r1.239
  --- build.xml 22 Sep 2005 10:39:37 -  1.238
  +++ build.xml 29 Sep 2005 06:07:24 -  1.239
  @@ -192,6 +192,7 @@
  property name=tomcat-util.build value=${tomcat.build} /
  property name=tomcat-util.lib value=${tomcat.build}/server/lib /
   /ant
  +
 /target
   
 target name=build-tomcatjk unless=tomcatjk.build.notrequired 
  @@ -658,7 +659,7 @@

   !-- antcall target=build-commons-modeler / --
   !-- antcall target=build-commons-daemon  / --
   
  -  	antcall target=downloadgz

  +antcall target=downloadgz
 param name=sourcefile value=${commons-collections-src.loc}/
 param name=destfile value=${tomcat-dbcp.jar} /
   /antcall
  @@ -1167,6 +1168,90 @@
   /ant
 /target
   
  +  !-- === Single-jar tomcat === --
  +   target name=prepare-runtime-once 
  + description=Do once before single jar tomcat

  +mkdir dir=runtime/deps /
  +mkdir dir=runtime/classes /
  +unjar dest=runtime/deps 
src=${base.path}/servlet-api-2.4/lib/servlet-api.jar /
  +!-- unjar dest=runtime/deps 
src=${base.path}/commons-logging-1.0.4/commons-logging.jar/ --
  +unjar dest=runtime/deps 
src=${base.path}/commons-modeler-1.1/commons-modeler.jar/
  +unjar dest=runtime/deps 
src=${base.path}/jsp-api-2.0/lib/jsp-api.jar/
  +   /target
  +
  +
  +   target name=compile-runtime 
  +   description=Build single jar tomcat
  +  
  +  javac destdir=runtime/classes deprecation=false debug=false  

  +!-- classpath 
path=${base.path}/commons-beanutils-1.6.1/commons-beanutils.jar/ --
  +!-- classpath 
path=${base.path}/commons-logging-1.0.4/commons-logging.jar/ --
  +classpath 
path=${base.path}/commons-modeler-1.1/commons-modeler.jar/
  +classpath path=${base.path}/jsp-api-2.0/lib/jsp-api.jar/
  +classpath 
path=${base.path}/servlet-api-2.4/lib/servlet-api.jar/
  +classpath path=${base.path}/jmxri-1.2.1.jar/
  +
  +src
  +pathelement path=${jtc.home}/util/java/  
  +pathelement path=${jtc.home}/mini/java /

  +!-- pathelement path=${jtc.home}/naming/src/ --
  +pathelement path=${jtc.home}/coyote/src/java/
  +pathelement path=${jtc.home}/http11/src/java/
  +pathelement path=${catalina.home}/catalina/src/share/
  +/src
  +exclude name=org/apache/naming/*.java/
  +exclude name=org/apache/naming/ant/**/
  +exclude name=org/apache/tomcat/util/net/puretls/**/
  +exclude 
name=org/apache/tomcat/util/net/jsse/JSSE15SocketFactory.java/
  +exclude 
name=org/apache/tomcat/util/net/jsse/JSSE15Factory.java/
  +exclude name=org/apache/tomcat/util/net/AprEndpoint.java/
  +exclude name=org/apache/coyote/tomcat3/**/
  +exclude name=org/apache/coyote/tomcat4/**/
  +exclude name=org/apache/coyote/memory/**/
  +exclude name=org/apache/coyote/standalone/**/
  +exclude 
name=org/apache/coyote/http11/Http11AprProcessor.java/
  +exclude name=org/apache/coyote/http11/Http11AprProtocol.java/
  +exclude 
name=org/apache/coyote/http11/InternalAprInputBuffer.java/
  +exclude 
name=org/apache/coyote/http11/InternalAprOutputBuffer.java/
  +exclude name=**/CatalinaLaunchFilter.java/
  +exclude name=**/MailSessionFactory.java/
  +exclude name=**/SendMailFactory.java/
  +exclude name=**/SemaphoreValve.java/
  +exclude name=org/apache/catalina/ant/**/
  +exclude name=org/apache/catalina/ssi/**/
  +exclude 
name=org/apache/catalina/loader/CatalinaModuleListener.java/
  +/javac
  +
  +copy todir=runtime/classes 
  +fileset dir=${jtc.home}/util/java includes=**/*.properties 
**/*.xml/
  +fileset dir=${jtc.home}/naming/src includes=**/*.properties 
**/*.xml/
  +fileset dir=${jtc.home}/coyote/src/java includes=**/*.properties 
**/*.xml 
  +  exclude name=org/apache/coyote/tomcat4/**/
  +/fileset
  +fileset 

cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote ActionHook.java ActionCode.java Adapter.java InputBuffer.java OutputBuffer.java Processor.java ProtocolHandler.java Request.java

2005-09-29 Thread costin
costin  2005/09/28 23:27:50

  Modified:coyote/src/java/org/apache/coyote ActionHook.java
ActionCode.java Adapter.java InputBuffer.java
OutputBuffer.java Processor.java
ProtocolHandler.java Request.java
  Log:
  Just a bunch of comments.
  
  Revision  ChangesPath
  1.3   +11 -1 
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/ActionHook.java
  
  Index: ActionHook.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/ActionHook.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ActionHook.java   24 Feb 2004 08:54:29 -  1.2
  +++ ActionHook.java   29 Sep 2005 06:27:50 -  1.3
  @@ -18,7 +18,17 @@
   
   
   /**
  - * Action hook.
  + * Action hook. Actions represent the callback mechanism used by
  + * coyote servlet containers to request operations on the coyote connectors.
  + * Some standard actions are defined in ActionCode, however custom
  + * actions are permitted.
  + *
  + * The param object can be used to pass and return informations related with 
the
  + * action.
  + * 
  + *
  + * This interface is typically implemented by ProtocolHandlers, and the param
  + * is usually a Request or Response object.
*
* @author Remy Maucherat
*/
  
  
  
  1.18  +8 -0  
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/ActionCode.java
  
  Index: ActionCode.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/ActionCode.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ActionCode.java   16 May 2005 04:58:00 -  1.17
  +++ ActionCode.java   29 Sep 2005 06:27:50 -  1.18
  @@ -19,7 +19,13 @@
   
   /**
* Enumerated class containing the adapter event codes.
  + * Actions represent callbacks from the servlet container to the coyote
  + * connector.
*
  + * Actions are implemented by ProtocolHandler, using the ActionHook 
interface.
  + *
  + * @see ProtocolHandler
  + * @see ActionHook
* @author Remy Maucherat
*/
   public final class ActionCode {
  @@ -40,6 +46,8 @@
   /**
* A flush() operation originated by the client ( i.e. a flush() on
* the servlet output stream or writer, called by a servlet ).
  + * 
  + * Argument is the Response.
*/
   public static final ActionCode ACTION_CLIENT_FLUSH = new ActionCode(4);
   
  
  
  
  1.3   +3 -1  
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Adapter.java
  
  Index: Adapter.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Adapter.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Adapter.java  24 Feb 2004 08:54:29 -  1.2
  +++ Adapter.java  29 Sep 2005 06:27:50 -  1.3
  @@ -18,9 +18,11 @@
   
   
   /**
  - * Adapter.
  + * Adapter. This represents the entry point in a coyote-based servlet 
container.
  + *
*
* @author Remy Maucherat
  + * @see ProtocolHandler
*/
   public interface Adapter {
   
  
  
  
  1.8   +4 -0  
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java
  
  Index: InputBuffer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/InputBuffer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- InputBuffer.java  24 Feb 2004 08:54:29 -  1.7
  +++ InputBuffer.java  29 Sep 2005 06:27:50 -  1.8
  @@ -23,6 +23,10 @@
   
   /**
* Input buffer.
  + *
  + * This class is used only in the protocol implementation. All reading from 
tomcat ( or adapter ) should be done
  + * using Request.doRead().
  + *
* 
* @author Remy Maucherat
*/
  
  
  
  1.8   +11 -1 
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java
  
  Index: OutputBuffer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/OutputBuffer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- OutputBuffer.java 24 Feb 2004 08:54:29 -  1.7
  +++ OutputBuffer.java 29 Sep 2005 06:27:50 -  1.8
  @@ -23,13 +23,23 @@
   
   /**
* Output buffer.
  + *
  + * This class is used internally by the protocol implementation. All writes 
from higher level code should happen
  + * via Resonse.doWrite().
* 
* @author Remy Maucherat
*/
   public interface OutputBuffer {
   
   
  -public int doWrite(ByteChunk chunk, 

cvs commit: jakarta-tomcat-connectors/util/loader/org/apache/tomcat/util/loader Loader.java Module.java ModuleClassLoader.java ModuleListener.java Repository.java package.html LoaderProperties.java

2005-09-29 Thread costin
costin  2005/09/28 23:35:48

  Modified:util/loader/org/apache/tomcat/util/loader Loader.java
Module.java ModuleClassLoader.java
ModuleListener.java Repository.java package.html
  Removed: util/loader/org/apache/tomcat/util/loader
LoaderProperties.java
  Log:
  AFAIK this is not currently used, it's just an experimental refactoring of 
the loading I started long time ago. Besides beeing
  useable standalone and more generic, it supports few extra features, like 
reloading of .jar files and using a 'flat' loader, similar with jboss and jmx.
  
  - refactoring to clean up the interfaces ( code is based on catalina loader )
  - add support for delegating to a parent classloader, needed for the case 
this is embeded in another app
  - fix various things.
  
  Revision  ChangesPath
  1.3   +396 -36   
jakarta-tomcat-connectors/util/loader/org/apache/tomcat/util/loader/Loader.java
  
  Index: Loader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/loader/org/apache/tomcat/util/loader/Loader.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Loader.java   6 Oct 2004 15:41:44 -   1.2
  +++ Loader.java   29 Sep 2005 06:35:47 -  1.3
  @@ -19,18 +19,24 @@
   
   
   import java.io.File;
  +import java.io.FileInputStream;
  +import java.io.InputStream;
  +import java.lang.reflect.InvocationTargetException;
   import java.lang.reflect.Method;
   import java.net.MalformedURLException;
   import java.net.URL;
   import java.util.ArrayList;
   import java.util.Enumeration;
   import java.util.Hashtable;
  +import java.util.Properties;
   import java.util.StringTokenizer;
   import java.util.Vector;
   
   
   /**
  - * Boostrap loader for Catalina.  This application constructs a class loader
  + * Boostrap loader for Catalina or other java apps. 
  + * 
  + * This application constructs a class loader
* for use in loading the Catalina internal classes (by accumulating all of 
the
* JAR files found in the server directory under catalina.home), and
* starts the regular execution of the container.  The purpose of this
  @@ -38,20 +44,44 @@
* other classes they depend on, such as an XML parser) out of the system
* class path and therefore not visible to application level classes.
*
  + *
  + * Merged with CatalinaProperties:
  + * Load a properties file describing the modules and startup sequence.
  + * This is responsible for configuration of the loader. 
  + * TODO: support jmx-style configuration, including persistence.
  + * TODO: better separate legacy config and the new style
  + * 
  + * The properties file will be named loader.properties or 
  + * catalina.properties ( for backwad compatibility ) and
  + * will be searched in:
  + *  - TODO 
  + * 
  + * Properties used:
  + *  - TODO
  + *
  + * loader.* and *.loader properties are used internally by the loader ( 
  + *  *.loader is for backward compat with catalina ).
  + * All other properties in the config file are set as System properties.
  + * 
  + * Based on o.a.catalina.bootstrap.CatalinaProperties - utility class to 
read 
  + * the bootstrap Catalina configuration.
  +
  + *
* @author Craig R. McClanahan
* @author Remy Maucherat
* @author Costin Manolache
*/ 
   public final class Loader  {
   
  -private static final boolean DEBUG=true; 
//LoaderProperties.getProperty(loader.Loader.debug) != null;
  +private static final boolean DEBUG=true; 
//LoaderProperties.getProperty(loader.debug.Loader) != null;
  +// If flat, only one loader is created. If false - one loader per jar/dir
   private static final boolean 
FLAT=false;//LoaderProperties.getProperty(loader.Loader.flat) != null;
   
   // -- 
Constants
   
   
  -protected static final String CATALINA_HOME_TOKEN = ${catalina.home};
  -protected static final String CATALINA_BASE_TOKEN = ${catalina.base};
  +private static final String CATALINA_HOME_TOKEN = ${catalina.home};
  +private static final String CATALINA_BASE_TOKEN = ${catalina.base};
   
   
   // --- Static 
Variables
  @@ -75,24 +105,53 @@
   protected ClassLoader catalinaLoader = null;
   private String[] args;
   private Hashtable repositories=new Hashtable();
  +private ClassLoader parentClassLoader;
   
  +private static Properties properties = null;
  +
   
  +private static String propFile;
   
   //  Private 
Methods
  +
  +/** Set the parent class loader - can be used instead of setParent, 
  + * in case this is the top loader and needs to delagate to embedding app.
  + * The common loader will delegate to this 

DO NOT REPLY [Bug 36840] - NullPointerException processing Realm in Context

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36840.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36840


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 08:44 ---
Please go and try the GlassFish project, instead of of wasting real developers 
time with really stupid reports like this.  Believe me, you won't be 
missed  :).

XML parsing is, was, and always will be case-sensitive.  Now actually read the 
FM, and specify your Realm as className=

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup Catalina.java CatalinaProperties.java ContextConfig.java Embedded.java

2005-09-29 Thread Bill Barker


- Original Message - 
From: [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 10:52 PM
Subject: cvs commit: 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup 
Catalina.java CatalinaProperties.java ContextConfig.java Embedded.java




costin  2005/09/28 22:52:49

snip/

 + // That's fine - we have reasonable defaults.
 + properties=new Properties();
  }

  // Register the properties as system properties
 -Enumeration enumeration = properties.propertyNames();
 + Enumeration enumeration = properties.propertyNames();
  while (enumeration.hasMoreElements()) {
  String name = (String) enumeration.nextElement();
  String value = properties.getProperty(name);


The dreaded Tab-Police are actually pretty strict in the 5.5.x branch :-).



This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication 
in error, please notify us immediately by e-mail and then delete all copies of 
this message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through 
the Internet is not secure. Do not send confidential or sensitive information, 
such as social security numbers, account numbers, personal identification 
numbers and passwords, to us via ordinary (unencrypted) e-mail.


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



DO NOT REPLY [Bug 36853] - https

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36853.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36853


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 09:21 ---
Can you test your config with the following connector parameter:

Connector port=449 
   maxHttpHeaderSize=8192
   maxThreads=150
   minSpareThreads=25
   maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS 
   xpoweredBy=true
   keystoreFile=e:\jkparm\yonmoon.keystore
   keystorePass=837876ab
   keystoreType=JKS
   algorithm=SunX509
   ciphers=RSA
/

What your Log (console or catalina.log) say about the connector startup?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36840] - NullPointerException processing Realm in Context

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36840.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36840


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |




--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 10:23 ---
OK, so there was a simple mistake on my part which mis-encoded an attribute, 
that is fine and obviously my fault. 
 
BUT, this should NOT have lead to a NullPointerException, and the error 
messages are totally misleading as they state that the problem is in the 
default web.xml when actually it was is the application specific context 
file. 
 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36853] - https

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36853.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36853





--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 10:46 ---
Now, I return to tomcat 5.5.9,it workers fine in tomcat5.5.9 with the same 
config file.
Do the same thing with tomcat5.5.11 and tomcat 5.5.12,the log files report no 
error about https connector,except show a dns not find error in my explorer 
window.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36853] - https

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36853.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36853





--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 11:30 ---
The default configuration works very well (if the keystore has changeit as the
password):

Connector port=8443 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /

The APR/OpenSSL version also works. This looks invalid to me.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36853] - https

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36853.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36853





--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 13:33 ---
hi

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36853] - https

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36853.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36853





--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 13:38 ---
12

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 35835] - Submitting changes through admin app corrupts the HTTPS connector definition in server.xml

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35835.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35835





--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 13:42 ---
This is a bug(perhaps) for EXE installed verion of tomcat5.5.12,the ZIP 
version is correct.
with EXE installed version,if i you edit config file(server.xml) in admin app
the http 8080 connector changes to:
connector type=HTTPS sheme=http...



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



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

2005-09-29 Thread costin
costin  2005/09/29 07:36:25

  Modified:catalina/src/share/org/apache/catalina/startup
CatalinaProperties.java
  Log:
  Busted by the tab police, fixed the settings.
  
  Revision  ChangesPath
  1.10  +4 -4  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/CatalinaProperties.java
  
  Index: CatalinaProperties.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/CatalinaProperties.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CatalinaProperties.java   29 Sep 2005 05:52:47 -  1.9
  +++ CatalinaProperties.java   29 Sep 2005 14:36:25 -  1.10
  @@ -126,12 +126,12 @@
   if ((is == null) || (error != null)) {
   // Do something
   log.warn(Failed to load catalina.properties, error);
  - // That's fine - we have reasonable defaults.
  - properties=new Properties();
  +// That's fine - we have reasonable defaults.
  +properties=new Properties();
   }
   
   // Register the properties as system properties
  - Enumeration enumeration = properties.propertyNames();
  +Enumeration enumeration = properties.propertyNames();
   while (enumeration.hasMoreElements()) {
   String name = (String) enumeration.nextElement();
   String value = properties.getProperty(name);
  
  
  

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



DO NOT REPLY [Bug 36863] New: - Space seperated cookie value text returned in quotes

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36863.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36863

   Summary: Space seperated cookie value text returned in quotes
   Product: Tomcat 5
   Version: 5.5.7
  Platform: PC
OS/Version: Windows 2000
Status: NEW
  Severity: normal
  Priority: P2
 Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Multiple word phrases (like Online Query) saved in a cookie are quoted when
retrieved. See example below ...

Enter:
  Online Query

Click Submit. Submit saves the value in a cookie to be later used in search.

Return to search page which will fetch cookie value and place in appropriate
input box. The value is now displayed as:

Online Query 

Granted that this is the integrated version of Tomcat in Netbeans but I wanted
to report this here as well as with Netbeans.

Using JSDK 1.4.2_08

Thanks

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



cvs commit: jakarta-tomcat-5 build.xml

2005-09-29 Thread costin
costin  2005/09/29 08:28:20

  Modified:.build.xml
  Log:
  Added the target to build coyote standalone. ( there are missing files - the 
j-t-c/mini directory in particular - don't try to build until
  after svn transition, or whenever the rest of the files land )
  
  This is 200K, coyote-http11 only, compared with tomcat runtime which is 1.2M
  
  Revision  ChangesPath
  1.240 +45 -0 jakarta-tomcat-5/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v
  retrieving revision 1.239
  retrieving revision 1.240
  diff -u -r1.239 -r1.240
  --- build.xml 29 Sep 2005 06:07:24 -  1.239
  +++ build.xml 29 Sep 2005 15:28:20 -  1.240
  @@ -1252,6 +1252,51 @@
 
   target name=runtime depends=prepare-runtime-once,compile-runtime/
   
  +!-- === Coyote standalone === --
  +!--
  +This is only the http connector, for testing/experimental purposes. 
  +  --
  +
  +target name=tomcat-http11 
  +mkdir dir=runtime/http11/
  +javac destdir=runtime/http11 debug=false 
  +src
  +pathelement path=${jtc.home}/util/java/
  +pathelement path=${jtc.home}/util/loader/
  +pathelement path=${jtc.home}/mini/java/
  +pathelement path=${jtc.home}/coyote/src/java/
  +pathelement path=${jtc.home}/http11/src/java/
  +/src
  +exclude name=org/apache/coyote/http11/Http11Protocol.java/
  +exclude 
name=org/apache/coyote/http11/Http11AprProcessor.java/
  +exclude name=org/apache/coyote/http11/Http11AprProtocol.java/
  +exclude 
name=org/apache/coyote/http11/InternalAprInputBuffer.java/
  +exclude 
name=org/apache/coyote/http11/InternalAprOutputBuffer.java/
  +exclude name=org/apache/tomcat/util/net/puretls/**/
  +exclude 
name=org/apache/tomcat/util/net/jsse/JSSE15SocketFactory.java/
  +exclude 
name=org/apache/tomcat/util/net/jsse/JSSE15Factory.java/
  +exclude name=org/apache/tomcat/util/net/AprEndpoint.java/
  +exclude name=org/apache/tomcat/util/digester/**/
  +exclude name=org/apache/tomcat/util/compat/**/
  +exclude name=org/apache/tomcat/util/jmx/**/
  +exclude name=org/apache/tomcat/util/log/**/
  +exclude name=org/apache/tomcat/util/IntrospectionUtils.java/
  +exclude name=org/apache/coyote/tomcat3/**/
  +exclude name=org/apache/coyote/tomcat4/**/
  +exclude name=org/apache/coyote/memory/**/
  +/javac
  +copy todir=runtime/http11 
  +fileset dir=${jtc.home}/http11/src/java 
includes=**/*.properties **/*.xml/
  +fileset dir=${jtc.home}/util/java includes=**/*.properties 
**/*.xml/
  +/copy
  +
  +jar jarfile=runtime/tomcat-http11.jar 
manifest=resources/coyote-http11.MF 
  + basedir=runtime/http11 
  + includes=** /
  +
  +/target
  +
  +
 !-- === TESTER: Run Catalina Tester Tests=== 
--
 
  target name=dist-tester 
  
  
  

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



[VOTE] JK 1.2.15

2005-09-29 Thread Mladen Turk

Hi,

JK 1.2.15 has been tagged last week.
Please see the:
http://jakarta.apache.org/tomcat/connectors-doc/changelog.html
for a full list of changes.


Sources can be found at:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-1.2.15/


Please vote:

[ ] Stable -- good build
[ ] Alpha -- something serious is wrong: what is it?

Regards,
Mladen


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



DO NOT REPLY [Bug 36852] - Custom Webapp loaders don't correctly honor context's privileged=true attribute

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36852.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36852





--- Additional Comments From [EMAIL PROTECTED]  2005-09-29 19:05 ---
Here is a suggested fix, which appears to fix the problem in my environment. It
is in the method CreateLoaderRule.begin() ... my changes are flanked with the
comment //NEW:mdb:

public void begin(String namespace, String name, Attributes attributes)
throws Exception {

// Look up the required parent class loader
ClassLoader parentClassLoader = null;
Object ojb = digester.peek();
if (ojb instanceof Container) {
parentClassLoader = ((Container)ojb).getParentClassLoader();
}

//NEW:mdb: if the context is priviledged, set the classloader to
// the context's classloader...
if( ojb instanceof org.apache.catalina.Context 
((org.apache.catalina.Context)ojb).getPrivileged() )
{
parentClassLoader = ojb.getClass().getClassLoader();
}
//NEW:mdb:end change to test for privileged flag...


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36866] New: - Cluster name attr. should actually be clusterName

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36866.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36866

   Summary: Cluster name attr. should actually be clusterName
   Product: Tomcat 5
   Version: 5.5.9
  Platform: All
OS/Version: All
Status: NEW
  Severity: trivial
  Priority: P2
 Component: Native:Packaging
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


This is an issue with the default server.xml file. I hope I chose the correct
Component

The org.apache.catalina.Cluster interface defines methods named setClusterName
and getClusterName, implying a property named clusterName.  However, the
server.xml for every version of Tomcat that I've looked at (5.0.18, 5.0.29,
5.5.9, 5.5.12-alpha) indicates a Cluster attribute called name. The earlier
5.0 releases even include 'name=FilipsCluster' in the commented-out sample
Cluster config.

The problem is that the server.xml should not indicate an attribute called
name for the Cluster element, rather the same attribute should be called
clusterName.  Indeed, setting the Cluster attribute name (and not
clusterName) causes getClusterName to return null - but setting a Cluster
attribute called clusterName returns the specified value in  a call to
getClusterName.

The fix is trivial - replace the name of the Cluster attribute name with
clusterName throughout the server.xml file (2 places in early 5.0 server.xml
files, only 1 place in later builds).  This is an easy thing for users to do,
but finding the problem in the first place is the tricky part.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 36867] New: - Parser unable to identify commented lines ie: !-- xxxx --

2005-09-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36867.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36867

   Summary: Parser unable to identify commented lines ie: !--  
--
   Product: Tomcat 5
   Version: 5.5.7
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


Parser unable to identify commented lines ie: !--     -- when there a 
jsp tag inside the comment it.

For ie this (see below) html line:

!-- wb:set  /wb:set --   

will produce this error (see below):

Caused by: 
org.apache.jasper.JasperException: /modules/retailSchedule/location/driverSetup
.jsp(71,15) The end tag lt;/wb:set is unbalanced
at org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:405)
at org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:130)
at org.apache.jasper.compiler.Parser.checkUnbalancedEndTag
(Parser.java:1706)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1561)
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1789)
at org.apache.jasper.compiler.Parser.parseOptionalBody
(Parser.java:1060)
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1367)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: [VOTE] JK 1.2.15

2005-09-29 Thread Tim Whittington

Built and tested on Win XP.


Please vote:

[x ] Stable -- good build
[ ] Alpha -- something serious is wrong: what is it?

Regards,




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