Re: svn commit: r702160 - /tomcat/connectors/trunk/jk/native/common/jk_shm.c

2008-10-08 Thread Mladen Turk

Rainer Jung wrote:

[EMAIL PROTECTED] schrieb:

Author: mturk
Date: Mon Oct  6 07:28:20 2008
New Revision: 702160

URL: http://svn.apache.org/viewvc?rev=702160&view=rev
Log:
Implement global shared memory lock for IIS. With IIS 6+ we don't have a single 
process any more


I was talking to someone having exactly a shared memory corruption
problem for IIS 6 with application pools (multiple processes) yesterday.
So this is great.

The same holds true for the log file. Could we use the same construction
for the log file locking, or would that be bad? The user involved has
corrupt log lines every now and then, although log level is only info,
so they don't have a huge log volume. So I expect the multiple processes
currupt lines when incidentally logging in parallel.

Is there an easy way to distinguish the application pools (like a name
in the registry or so)? We could then add the application pool name to
the log lines. Of course we already have the pid there, but users can't
easily find out which pid belongs to which application pool.



It's hard (or even impossible without using IIS7 API directy) to
figure out the number of pools and processes.
Think that a simple global mutex for each log file would do the
trick. We are using stream files so there might be delay between
fputs and flush. With mutex this would be done as atomic operation.


Regards
--
^(TM)

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



svn commit: r702805 - in /tomcat/connectors/trunk/jk/xdocs/generic_howto: loadbalancers.xml quick.xml timeouts.xml workers.xml

2008-10-08 Thread mturk
Author: mturk
Date: Wed Oct  8 03:54:34 2008
New Revision: 702805

URL: http://svn.apache.org/viewvc?rev=702805&view=rev
Log:
Run trough spell checker - English (British)

Modified:
tomcat/connectors/trunk/jk/xdocs/generic_howto/loadbalancers.xml
tomcat/connectors/trunk/jk/xdocs/generic_howto/quick.xml
tomcat/connectors/trunk/jk/xdocs/generic_howto/timeouts.xml
tomcat/connectors/trunk/jk/xdocs/generic_howto/workers.xml

Modified: tomcat/connectors/trunk/jk/xdocs/generic_howto/loadbalancers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/generic_howto/loadbalancers.xml?rev=702805&r1=702804&r2=702805&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/generic_howto/loadbalancers.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/generic_howto/loadbalancers.xml Wed Oct  8 
03:54:34 2008
@@ -68,7 +68,7 @@
 The overall result is that workers managed by the same lb worker are 
load-balanced (based on their lbfactor and current user session) and also 
fall-backed so a single Tomcat process death will not "kill" the entire site.
 
 
-If you want to use session stickyness, you must set different jvmRoute 
attributes
+If you want to use session stickiness, you must set different jvmRoute 
attributes
 in the Engine element in Tomcat's server.xml. Furthermore the names of the 
workers
 which are managed by the balancer have to be equal to the jvmRoute of the 
Tomcat
 instance they connect with.
@@ -115,7 +115,7 @@
   worker.worker1.host=node1.domain.org
   worker.worker1.type=ajp13
   worker.worker1.lbfactor=1
-  # Define prefered failover node for worker1
+  # Define preferred failover node for worker1
   worker.worker1.redirect=worker2
 
   # Define another worker using ajp13

Modified: tomcat/connectors/trunk/jk/xdocs/generic_howto/quick.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/generic_howto/quick.xml?rev=702805&r1=702804&r2=702805&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/generic_howto/quick.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/generic_howto/quick.xml Wed Oct  8 
03:54:34 2008
@@ -30,7 +30,7 @@
 
 
   This document describes the configuration files used by JK on the
-  Web Server side for the 'impatients':
+  Web Server side for the 'impatient':
 
 
 workers.properties is a mandatory file used by the webserver and 
which
@@ -68,7 +68,7 @@
 
 
 
-   Here is a minimun informations about Apache configuration, a 
+   Here is a minimum information about Apache configuration, a 
complete documentation is available in Apache 
HowTo.
 
 
@@ -146,7 +146,7 @@
A complete documentation is available in IIS 
HowTo.
 
 
-More informations to be added!
+More information to be added!
 
 
 
@@ -154,7 +154,7 @@
 
A complete documentation is available in Netscape/iPlanet HowTo.
 
-More informations to be added?
+More information to be added?
 
 
 

Modified: tomcat/connectors/trunk/jk/xdocs/generic_howto/timeouts.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/generic_howto/timeouts.xml?rev=702805&r1=702804&r2=702805&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/generic_howto/timeouts.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/generic_howto/timeouts.xml Wed Oct  8 
03:54:34 2008
@@ -30,7 +30,7 @@
  
 
 Setting communication timeouts is very important to improve the
-communication process. They help to detect problems and stabilize
+communication process. They help to detect problems and stabilise
 a distributed system. JK can use several different timeout types, which
 can be individually configured. For historical reasons, all of them are
 disabled by default. This HowTo explains their use and gives
@@ -48,7 +48,7 @@
 
 
 Long Garbage Collection pauses on the backend do not make a good
-fit with some timeouts. Try to optimize your Java memory and GC settings.
+fit with some timeouts. Try to optimise your Java memory and GC settings.
 
 
 
@@ -66,7 +66,7 @@
 needed processing resources. A positive answer tells us, that the backend can 
be reached
 and is actively processing requests. It does not detect, if some context is 
deployed
 and working. The benefit of CPing/CPong is a fast detection of a communication
-problem with the backend. The downside is a slightly increased laterncy.
+problem with the backend. The downside is a slightly increased latency.
 
 
 The worker attribute connect_timeout sets the wait timeout for CPong 
during
@@ -90,7 +90,7 @@
 
 
 Some platforms allow to set timeouts for all operations on TCP sockets.
-This is available for Linux and Windows, other patforms do not support this,
+This is available for Linux and Windows, other platforms do not support this,
 e.g. Solaris. If your platform supports TCP send and receive timeouts

svn commit: r702803 - in /tomcat/connectors/trunk/jk/xdocs/reference: apache.xml iis.xml status.xml uriworkermap.xml workers.xml

2008-10-08 Thread mturk
Author: mturk
Date: Wed Oct  8 03:47:16 2008
New Revision: 702803

URL: http://svn.apache.org/viewvc?rev=702803&view=rev
Log:
Run trough spell checker - English (British)

Modified:
tomcat/connectors/trunk/jk/xdocs/reference/apache.xml
tomcat/connectors/trunk/jk/xdocs/reference/iis.xml
tomcat/connectors/trunk/jk/xdocs/reference/status.xml
tomcat/connectors/trunk/jk/xdocs/reference/uriworkermap.xml
tomcat/connectors/trunk/jk/xdocs/reference/workers.xml

Modified: tomcat/connectors/trunk/jk/xdocs/reference/apache.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/reference/apache.xml?rev=702803&r1=702802&r2=702803&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/reference/apache.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/reference/apache.xml Wed Oct  8 03:47:16 
2008
@@ -33,12 +33,12 @@
 
 Most of the directives are allowed once in the global part of the Apache httpd
 configuration and once in every  elements. Exceptions from 
this rule are
-explicitely listed in the table below.
+explicitly listed in the table below.
 
 
 Most values are inherited from the main server to the virtual hosts.
 Since version 1.2.20 they can be overwritten in the virtual hosts.
-Exceptions from this rule are again explicitely listed in the table below.
+Exceptions from this rule are again explicitly listed in the table below.
 See especially JkMountCopy.
 
 Waring: If Apache httpd and Tomcat are configured to serve content from
@@ -307,7 +307,7 @@
 
 Adds a name and an optional default value of environment variable
 that should be sent to servlet-engine as a request attribute.
-If the default value is not given explicitely, the variable
+If the default value is not given explicitly, the variable
 will only be send, if it is set during runtime.
 
 The default is empty, so no additional variables will be sent.
@@ -335,7 +335,7 @@
 
 This directive has been introduced in version 1.2.21.
 With version 1.2.27 and later this directive can have optional
-seddion ID identifier. If not specified it defaults to
+session ID identifier. If not specified it defaults to
 ;jsessionid.
 
 
@@ -614,7 +614,7 @@
 is not set.
 
 
-You can also realize such a check with mod_rewrite, which is more powerful
+You can also realise such a check with mod_rewrite, which is more powerful
 but also slightly more complicated.
 
   
@@ -764,7 +764,7 @@
 The directive JkEnvVar allows you to forward environment variables
 from Apache server to Tomcat engine.
 You can add a default value as a second parameter to the directive.
-If the default value is not given explicitely, the variable
+If the default value is not given explicitly, the variable
 will only be send, if it is set during runtime.
 
 The variables can be retrieved on the Tomcat side as request attributes
@@ -824,7 +824,7 @@
 
 
 JkUnMount takes precedence over JkMount directives, meaning that the JK
-will first try to mount and then checks, if there is an exclusiond defined by a
+will first try to mount and then checks, if there is an exclusion defined by a
 JkUnMount. A JkUnMount overrides a JkMount only, if the worker names in the
 JkMount and in the JkUnMount are the same.
 
@@ -919,7 +919,7 @@
 If the mount point uri starts with minus sign '-'
 the mount point will only be disabled. A disabled mount can be reenabled
 by deleting the minus sign and waiting for the JkMountFile to reload.
-An exclusion can be disabled by prefixing it with a mninus sign.
+An exclusion can be disabled by prefixing it with a minus sign.
 
 
   # Sample uriworkermap.properties file

Modified: tomcat/connectors/trunk/jk/xdocs/reference/iis.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/reference/iis.xml?rev=702803&r1=702802&r2=702803&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/reference/iis.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/reference/iis.xml Wed Oct  8 03:47:16 2008
@@ -133,7 +133,7 @@
 This directive has been added in version 1.2.21
 
 
-A string value which influences, how URIs are decoded and reencoded
+A string value which influences, how URIs are decoded and re-encoded
 between IIS and Tomcat. You should leave this at it's default value,
 unless you have a very good reason to change it.
 
@@ -151,15 +151,15 @@
 
 
 If the value is "escaped", the forwarded URI
-will be the reencoded form of the URI used by "parsed".
+will be the re-encoded form of the URI used by "parsed".
 Explicit path components like ".." will already be resolved.
 This will not work in combination with URL encoded session IDs.
 
 
 If the value is "proxy", the forwarded URI
-will be a partially reencoded form of the URI used by "parsed".
+will be a partially re-encoded form of the URI used by "parsed".
 Explicit path components like ".." will already be resolved.
-and problematic are re

svn commit: r702807 - in /tomcat/connectors/trunk/jk/xdocs/webserver_howto: apache.xml iis.xml

2008-10-08 Thread mturk
Author: mturk
Date: Wed Oct  8 04:05:32 2008
New Revision: 702807

URL: http://svn.apache.org/viewvc?rev=702807&view=rev
Log:
Spell checking ...

Modified:
tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml
tomcat/connectors/trunk/jk/xdocs/webserver_howto/iis.xml

Modified: tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml?rev=702807&r1=702806&r2=702807&view=diff
==
--- tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml (original)
+++ tomcat/connectors/trunk/jk/xdocs/webserver_howto/apache.xml Wed Oct  8 
04:05:32 2008
@@ -55,7 +55,7 @@
 
 
 This document was originally part of Tomcat: A Minimalistic User's 
Guide written by Gal Shachor,
-but has been split off for organizational reasons.
+but has been split off for organisational reasons.
 
 
 
@@ -141,22 +141,22 @@
 
 
 
-Adding a servlet container may somewhat change this behavior.
+Adding a servlet container may somewhat change this behaviour.
 Now the web server needs also to perform the following:
 
 
 
 
-Load the servlet container adapter library and initialize it (prior to serving 
requests).
+Load the servlet container adaptor library and initialise it (prior to serving 
requests).
 
 
 When a request arrives, it needs to check and see if a certain request belongs 
to a servlet,
-if so it needs to let the adapter take the request and handle it.
+if so it needs to let the adaptor take the request and handle it.
 
 
 
 
-The adapter on the other hand needs to know what requests it is going to serve,
+The adaptor on the other hand needs to know what requests it is going to serve,
 usually based on some pattern in the request URL, and to where to direct these 
requests.
 
 
@@ -300,7 +300,7 @@
 ie when you have an Apache in front of a Tomcat Farm.
 
 
-Another case for custom configuration is when your Apache is in front of many 
differents Tomcat engines,
+Another case for custom configuration is when your Apache is in front of many 
different Tomcat engines,
 each one having it's own configuration, a general case in ISP hosting
 
 
@@ -389,7 +389,7 @@
 error log will contains also error reports.
 
 
-debug log will contains all informations on mod_jk activity
+debug log will contains all information on mod_jk activity
 
 
 
@@ -421,7 +421,7 @@
 JkRequestLogFormat will configure the format of mod_jk individual 
request logging.
 Request logging is configured and enabled on a per virtual host basis.
 To enable request logging for a virtual host just add a JkRequestLogFormat 
config.
-The syntax of the format string is similiar to the Apache LogFormat command,
+The syntax of the format string is similar to the Apache LogFormat command,
 here is a list of the available request log format options:
 
 
@@ -557,7 +557,7 @@
 is not set.
 
 
-You can also realize such a check with mod_rewrite, which is more powerful
+You can also realise such a check with mod_rewrite, which is more powerful
 but also slightly more complicated.
 
 
@@ -707,7 +707,7 @@
 The directive JkEnvVar allows you to forward environment variables
 from Apache server to Tomcat engine.
 You can add a default value as a second parameter to the directive.
-If the default value is not given explicitely, the variable
+If the default value is not given explicitly, the variable
 will only be send, if it is set during runtime.
 
 The variables can be retrieved on the Tomcat side as request attributes
@@ -931,7 +931,7 @@
   
   --with-apxs[=FILE]
   FILE is the location of the apxs tool. Default is finding apxs in PATH.
-It builds a shared Apache module. It detects automaticly the Apache version.
+It builds a shared Apache module. It detects automatically the Apache version.
 (2.0/2.2 and 1.3)
   
   --with-apache=DIR
@@ -948,11 +948,11 @@
   --enable-prefork
   
 In case you build mod_jk for a multi-threaded Apache httpd 2.0/2.2 MPM 
(Multi-Processing Module),
-some areas of mod_jk code need to be synchronized to make it thread-safe.
+some areas of mod_jk code need to be synchronised to make it thread-safe.
 Because configure can not easily detect, whether your are using a 
multi-threaded MPM,
 mod_jk by default is always build thread-safe for Apache httpd 2.0/2.2.
 If you are sure, that your MPM is not multi-threaded, you can use 
"--enable-prefork"
-to force the removal of the synchronization code (thus increasing performance 
a bit).
+to force the removal of the synchronisation code (thus increasing performance 
a bit).
 For instance, the prefork MPM is not multi-threaded. For Apache httpd 1.3
 this flag will be set automatically.
 
@@ -988,7 +988,7 @@
   JNI related parameters
   --enable-jni
   Build the JNI worker and so the build process will require
-some informations about your Java Environment
+some information about your Java Environment
   
   --with-java-home=DIR
   DIR is the  p

DO NOT REPLY [Bug 43656] ELSupport.coerceToType modifies BigDecimal Values

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=43656





--- Comment #13 from Mark Thomas <[EMAIL PROTECTED]>  2008-10-08 03:27:33 PST 
---
I only reverted the change to number.doubleValue()


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

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



DO NOT REPLY [Bug 42722] Potential NullPointerException in org.apache.catalina.servlets.CGIServlet

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=42722


Mark Thomas <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Comment #5 from Mark Thomas <[EMAIL PROTECTED]>  2008-10-08 06:57:38 PST ---
This has been fixed in 6.0.x and is included in 6.0.18 onwards


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

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



DO NOT REPLY [Bug 42530] ManagerBase.backgroundProcess throws NullPointerException.

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=42530


Mark Thomas <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #4 from Mark Thomas <[EMAIL PROTECTED]>  2008-10-08 07:15:05 PST ---
This has been ported to 6.0.x and is included in 6.0.18 onwards.


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

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



DO NOT REPLY [Bug 45968] New: Using log4j in juli cause ClassNotFoundException

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45968

   Summary: Using log4j in juli cause ClassNotFoundException
   Product: Tomcat 6
   Version: 6.0.18
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi guys,
I get strange exception, when trying to switch to log4j logging in tomcat (
I've made that many times on the previous versions without problems until today
) 

i compile from extras.xml the commons-logging ( with some errors .. 
{
on first run of:
 ant -f extras.xml commons-logging
i get: 
see attachment 1

then i try
ant -f build.xml
and i get again build failed :(
see attachment 2

after that i try again commons-logging and this time build was successful ..
see attachment 3
}

how ever, i try with this tomcat-juli* and with other which i know that is
"working", and i do the following steps
1. i remove conf/logging.propeties
2. put tomcat-juli.jar in the bin/
3. put tomcat-juli-adapters.jar in lib/
4. put log4j jar & .properties in lib/

and when a start the server
see attachment 4

i have other servers, which is 6.0.16 i think :) and i upgrade them to .18 and
everything is working fine there ...

this happens on fresh copy of 6.0.18

can somebody help me, somehow

and awesome! tomcat roxx ;)

Thanks in advance!
George


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

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



DO NOT REPLY [Bug 45968] Using log4j in juli cause ClassNotFoundException

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45968





--- Comment #1 from Georgi Yonchev <[EMAIL PROTECTED]>  2008-10-08 14:12:33 PST 
---
Created an attachment (id=22693)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22693)
attachment1


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

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



DO NOT REPLY [Bug 45968] Using log4j in juli cause ClassNotFoundException

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45968





--- Comment #2 from Georgi Yonchev <[EMAIL PROTECTED]>  2008-10-08 14:12:46 PST 
---
Created an attachment (id=22694)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22694)
attachment2


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

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



DO NOT REPLY [Bug 45968] Using log4j in juli cause ClassNotFoundException

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45968





--- Comment #3 from Georgi Yonchev <[EMAIL PROTECTED]>  2008-10-08 14:12:57 PST 
---
Created an attachment (id=22695)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22695)
attachment3


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

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



DO NOT REPLY [Bug 45968] Using log4j in juli cause ClassNotFoundException

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45968





--- Comment #4 from Georgi Yonchev <[EMAIL PROTECTED]>  2008-10-08 14:13:08 PST 
---
Created an attachment (id=22696)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22696)
attachment4


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

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



[Tomcat Wiki] Update of "Tomcat/WebDav" by achow

2008-10-08 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The following page has been changed by achow:
http://wiki.apache.org/tomcat/Tomcat/WebDav

The comment on the change is:
added basic setup information

--
+ == Setup ==
+ 
+ Tomcat comes prebundled with a WebDAV Level 2 servlet.  To enable, add the 
following to web.xml:
+ 
+ {{{
+ 
+   webdav
+   org.apache.catalina.servlets.WebdavServlet
+   
+ debug
+ 0
+   
+   
+ listings
+ true
+   
+ 
+   
+ 
+   
+ readonly
+ false
+   
+ 
+ 
+ 
+   webdav
+   /*
+ 
+ 
+ 
+ 
+ 
+   webdav
+   /webdavedit/*
+ 
+ }}}
+ 
  == Webdav information and solutions ==
  
   * Self:Tomcat/WebDav_MsWebfolders MS webfolder issues and solutions

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



[Tomcat Wiki] Trivial Update of "Tomcat/WebDav" by achow

2008-10-08 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The following page has been changed by achow:
http://wiki.apache.org/tomcat/Tomcat/WebDav

--
webdav
/*
  
+ }}}
  
+ Of course, you can set the url-pattern to make the content editable from a 
different URL.  Also, be sure to secure access appropriately to the editing 
URLs.
- 
- 
- 
-   webdav
-   /webdavedit/*
- 
- }}}
  
  == Webdav information and solutions ==
  

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



DO NOT REPLY [Bug 45968] Using log4j in juli cause ClassNotFoundException

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45968


Mark Thomas <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Comment #5 from Mark Thomas <[EMAIL PROTECTED]>  2008-10-08 15:18:48 PST ---
Attachments 1-3: I You need to build Tomcat before you build the extras
package. I'd be very cautious about anything built from extras if the main
build was failing. The following sequence should work without error:
ant download
ant
ant -f extras.xml

Attachment 4 looks like a duplicate of 45585. See
http://markmail.org/message/xu64wdbonqyjrlf6 for info on a simple fix.

*** This bug has been marked as a duplicate of bug 45585 ***


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

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



DO NOT REPLY [Bug 45585] Tomcat doesn't start when JULI is not used (NoClassDefFoundError)

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45585


Mark Thomas <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Comment #5 from Mark Thomas <[EMAIL PROTECTED]>  2008-10-08 15:18:48 PST ---
*** Bug 45968 has been marked as a duplicate of this bug. ***


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

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



DO NOT REPLY [Bug 45963] WebappClassLoader.loadClass() throws NoClassDefFoundError from system.loadClass()

2008-10-08 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=45963





--- Comment #1 from Mark Thomas <[EMAIL PROTECTED]>  2008-10-08 15:56:24 PST ---
I am not convinced that ignoring NoClassDefFoundError exceptions is a good
idea. It is indicative of dependant classes being split between class loaders
and that strikes me as asking for trouble.

I am tempted to close this as WONTFIX but I'll leave it open for now as others
may have different views.


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

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



tomcat trunk - changelog

2008-10-08 Thread Filip Hanik - Dev Lists
I'd like for us to start using the changelog for trunk, we're losing a 
lot of changes being documented, not everything gets ported to 6.0 etc

do you guys have any thoughts on this?

Filip

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



svn commit: r703017 - in /tomcat/trunk: java/org/apache/coyote/http11/Http11Protocol.java java/org/apache/tomcat/util/net/JIoEndpoint.java webapps/docs/config/http.xml

2008-10-08 Thread fhanik
Author: fhanik
Date: Wed Oct  8 16:28:51 2008
New Revision: 703017

URL: http://svn.apache.org/viewvc?rev=703017&view=rev
Log:
Expose all socket settings available for the JIO connector, buffer size can 
make large differences, but they are hidden
Make settings consistent with those for the NIO connector, so switching between 
Java connectors is seamless

Modified:
tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java
tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java
tomcat/trunk/webapps/docs/config/http.xml

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java?rev=703017&r1=703016&r2=703017&view=diff
==
--- tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11Protocol.java Wed Oct  8 
16:28:51 2008
@@ -123,8 +123,12 @@
 /**
  * Set a property.
  */
-public void setProperty(String name, String value) {
+public boolean setProperty(String name, String value) {
 setAttribute(name, value);
+if (name.startsWith("socket.")) {
+return endpoint.setProperty(name, value);
+}
+return true;
 }
 
 /**

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java?rev=703017&r1=703016&r2=703017&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java Wed Oct  8 
16:28:51 2008
@@ -26,6 +26,7 @@
 
 import org.apache.juli.logging.Log;
 import org.apache.juli.logging.LogFactory;
+import org.apache.tomcat.util.IntrospectionUtils;
 import org.apache.tomcat.util.res.StringManager;
 
 /**
@@ -127,11 +128,32 @@
  * Associated server socket.
  */
 protected ServerSocket serverSocket = null;
+
+/**
+ * Holds all the socket properties
+ */
+protected SocketProperties socketProperties = new SocketProperties();
 
 
 // - Properties
 
-
+/**
+ * Generic properties - currently only socket.XXX properties
+ */
+public boolean setProperty(String name, String value) {
+final String socketName = "socket.";
+try {
+if (name.startsWith(socketName)) {
+return IntrospectionUtils.setProperty(socketProperties, 
name.substring(socketName.length()), value);
+} else {
+return IntrospectionUtils.setProperty(this,name,value);
+}
+}catch ( Exception x ) {
+log.error("Unable to set attribute \""+name+"\" to 
\""+value+"\"",x);
+return false;
+}
+}
+
 /**
  * Acceptor thread count.
  */
@@ -201,25 +223,30 @@
 /**
  * Socket TCP no delay.
  */
-protected boolean tcpNoDelay = false;
-public boolean getTcpNoDelay() { return tcpNoDelay; }
-public void setTcpNoDelay(boolean tcpNoDelay) { this.tcpNoDelay = 
tcpNoDelay; }
+public boolean getTcpNoDelay() { return socketProperties.getTcpNoDelay(); }
+public void setTcpNoDelay(boolean tcpNoDelay) { 
socketProperties.setTcpNoDelay(tcpNoDelay); }
 
 
 /**
  * Socket linger.
  */
-protected int soLinger = 100;
-public int getSoLinger() { return soLinger; }
-public void setSoLinger(int soLinger) { this.soLinger = soLinger; }
+public int getSoLinger() {return socketProperties.getSoLingerTime();}
+public void setSoLinger(int soLinger) { 
+if (soLinger>=0) {
+socketProperties.setSoLingerOn(true);
+socketProperties.setSoLingerTime(soLinger);
+} else {
+socketProperties.setSoLingerOn(false);
+socketProperties.setSoLingerTime(-1);
+}
+}
 
 
 /**
  * Socket timeout.
  */
-protected int soTimeout = -1;
-public int getSoTimeout() { return soTimeout; }
-public void setSoTimeout(int soTimeout) { this.soTimeout = soTimeout; }
+public int getSoTimeout() { return socketProperties.getSoTimeout(); }
+public void setSoTimeout(int soTimeout) { 
socketProperties.setSoTimeout(soTimeout); }
 
 
 /**
@@ -617,16 +644,7 @@
 try {
 
 // 1: Set socket options: timeout, linger, etc
-if (soLinger >= 0) { 
-socket.setSoLinger(true, soLinger);
-}
-if (tcpNoDelay) {
-socket.setTcpNoDelay(tcpNoDelay);
-}
-if (soTimeout > 0) {
-socket.setSoTimeout(soTimeout);
-}
-
+socketProperties.setProperties(socket);
 // 2: SSL handshak

svn commit: r703018 - /tomcat/trunk/webapps/docs/changelog.xml

2008-10-08 Thread fhanik
Author: fhanik
Date: Wed Oct  8 16:31:04 2008
New Revision: 703018

URL: http://svn.apache.org/viewvc?rev=703018&view=rev
Log:
update changelog

Modified:
tomcat/trunk/webapps/docs/changelog.xml

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=703018&r1=703017&r2=703018&view=diff
==
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Wed Oct  8 16:31:04 2008
@@ -59,6 +59,9 @@
   
   
 
+ 703017Make Java socket options consistent between NIO 
and JIO connector.
+   Expose all the socket options available on java.net.Socket
+ 
  45074Add configuration parameters in 
Http11AprProtocol
  644858
Inproper curly brackets cause NIO/SendFile to fail. Workaround prior to 
this version, set



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



Re: tomcat trunk - changelog

2008-10-08 Thread Costin Manolache
I never understood the use of the manual changelog - as opposed to svn log
and good  commit messages.
Could we just use that ?

Costin

On Wed, Oct 8, 2008 at 4:24 PM, Filip Hanik - Dev Lists
<[EMAIL PROTECTED]>wrote:

> I'd like for us to start using the changelog for trunk, we're losing a lot
> of changes being documented, not everything gets ported to 6.0 etc
> do you guys have any thoughts on this?
>
> Filip
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Tomcat lite update

2008-10-08 Thread Costin Manolache
Quick update: I've been working on the async protocol and the proxy,
cleaning up a bit and adding the POST support.
I think it's getting better, but I think I'll leave it in sandbox a bit
more, so the rest of the code gets used with the stable
connectors. IMO it's pretty cool - but not ready, want to have at least SSL
working and more testing on the proxy, like
use it for my browsing for few weeks ( when it gets the missing features )

The main concern expressed on merging tomcat-lite on the main branch was the
use of Filters instead of valves, and
the possible confusions/side effects of this. I thought about it - the real
problem is that for tomcat-lite to be lite ( as in
less complex and maybe smaller/more efficient ), it needs to cut some stuff
from the original tomcat. On the other side,
I want to be able to reuse/share things like auth/session management - and
converting the current Valves into Filters
seemed like a clean way.

I'm changing this to a set of interfaces - with no direct dependency on
tomcat-lite or catalina, and some simple
implementations. Again, the goal is to have auth, session management, etc
that doesn't import any class from o.a.tomcat.lite
package. The modules could be hooked back into catalina - or some other
containers, so if there is interest some
of the more interesting parts of tomcat6 can be ported and made more
shareable.
I'll keep doing it in sandbox until I'm happy.

The rest - changes to coyote/tomcat-util - are ready, will submit them when
I have more time.


Costin


Re: tomcat trunk - changelog

2008-10-08 Thread jean-frederic clere

Filip Hanik - Dev Lists wrote:
I'd like for us to start using the changelog for trunk, we're losing a 
lot of changes being documented, not everything gets ported to 6.0 etc

do you guys have any thoughts on this?


+1.

Cheers

Jean-Frederic




Filip

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





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