DO NOT REPLY [Bug 27327] - tie content length of form fields posted with struts-validator maxlength attribute or alike

2007-03-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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





--- Additional Comments From [EMAIL PROTECTED]  2007-03-14 06:11 ---
see also Bug 36351 and https://issues.apache.org/struts/browse/STR-1705

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



Configure Multiple Web Services

2007-03-14 Thread FAT-BOY

I'm using TomCat as a web server. My question iswhat is the best way to
setup mutiple web services on Tomcat. My application hits DB1 and I would
like to set up another web service, same java code (war) but hitting a
different database. Could I simple create another .war file for the second
database and put another Resource entry in in the server.xml and context.xml
to locate database 2? I'm using JNDI, so I gether I would have to add
another ResourceLink in context.xml. Any advice regarding this is
appreciated.
-- 
View this message in context: 
http://www.nabble.com/Configure-Multiple-Web-Services-tf3403150.html#a9477888
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


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



svn commit: r518208 - /tomcat/build/tags/tc5.5.x/TOMCAT_5_5_23/sign.bat

2007-03-14 Thread fhanik
Author: fhanik
Date: Wed Mar 14 09:29:59 2007
New Revision: 518208

URL: http://svn.apache.org/viewvc?view=rev&rev=518208
Log:
Signing is for .zip and .tar.gz only

Modified:
tomcat/build/tags/tc5.5.x/TOMCAT_5_5_23/sign.bat

Modified: tomcat/build/tags/tc5.5.x/TOMCAT_5_5_23/sign.bat
URL: 
http://svn.apache.org/viewvc/tomcat/build/tags/tc5.5.x/TOMCAT_5_5_23/sign.bat?view=diff&rev=518208&r1=518207&r2=518208
==
--- tomcat/build/tags/tc5.5.x/TOMCAT_5_5_23/sign.bat (original)
+++ tomcat/build/tags/tc5.5.x/TOMCAT_5_5_23/sign.bat Wed Mar 14 09:29:59 2007
@@ -6,7 +6,12 @@
 rem todo - make one for unix as well, and avoid signing the .md5 files
 
 @echo off
-FOR /R %cd%\release\v5.5.19 %%i in (*.*) do (
+FOR /R %cd%\release\v5.5.23 %%i in (*.zip) do (
+  echo Signing %%i
+  echo %1|gpg --passphrase-fd 0 -a -b %%i 
+)
+
+FOR /R %cd%\release\v5.5.23 %%i in (*.gz) do (
   echo Signing %%i
   echo %1|gpg --passphrase-fd 0 -a -b %%i 
 )



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



svn commit: r518210 - /tomcat/container/tags/tc5.5.x/TOMCAT_5_5_23/catalina/build.xml

2007-03-14 Thread fhanik
Author: fhanik
Date: Wed Mar 14 09:30:34 2007
New Revision: 518210

URL: http://svn.apache.org/viewvc?view=rev&rev=518210
Log:
mail.jar and activation.jar are required for a full release. Not optional like 
before.
This is a fix for http://issues.apache.org/bugzilla/show_bug.cgi?id=40668

Modified:
tomcat/container/tags/tc5.5.x/TOMCAT_5_5_23/catalina/build.xml

Modified: tomcat/container/tags/tc5.5.x/TOMCAT_5_5_23/catalina/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/container/tags/tc5.5.x/TOMCAT_5_5_23/catalina/build.xml?view=diff&rev=518210&r1=518209&r2=518210
==
--- tomcat/container/tags/tc5.5.x/TOMCAT_5_5_23/catalina/build.xml (original)
+++ tomcat/container/tags/tc5.5.x/TOMCAT_5_5_23/catalina/build.xml Wed Mar 14 
09:30:34 2007
@@ -59,7 +59,6 @@
 
 
 
-
 
 
 
@@ -636,10 +635,18 @@
 
   
 
-   
+  
+
+
+
+
+  
 

-  
+  
+
 
 

DO NOT REPLY [Bug 40668] - MailSessionFactory is missing in Tomcat 5.5.23

2007-03-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-03-14 09:33 ---
This has been fixed in the build script. You are now unable to complete a
release package without these two jars in your classpath.
The libraries were optional in the distribution, so if they were not present
they wouldn't be included. Next major release will include this, in the
meantime, the recommend work around is already mentioned here
http://issues.apache.org/bugzilla/show_bug.cgi?id=40668#c2

Please note, it is safe to patch these two files, they have not changed since 
5.5.17

Sorry for the inconvenience


-- 
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 41843] New: - weak accesses blocking behaviour

2007-03-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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

   Summary: weak  accesses blocking behaviour
   Product: Tomcat 5
   Version: 5.5.20
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Webapps:Administration
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


using Tomcat 5.5.20, in my web.xml I added



private
/private/*


  No Access



but if in the webapp docBase a directory with "private" name exists,
it doesn't block access to it.

Otherwise, if no directory with "private" name exists in the docBase, it works 
fine.

In Tomcat 5.5.9 it works always fine, since it blocks accesses either if
"private" directory exists or not.

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



svn commit: r518378 - in /tomcat/tc6.0.x/trunk/java/org/apache/catalina/core: AprLifecycleListener.java LocalStrings.properties

2007-03-14 Thread remm
Author: remm
Date: Wed Mar 14 16:12:56 2007
New Revision: 518378

URL: http://svn.apache.org/viewvc?view=rev&rev=518378
Log:
- Add logging to display APR capabilities on the platform.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java?view=diff&rev=518378&r1=518377&r2=518378
==
--- 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java 
(original)
+++ 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/AprLifecycleListener.java 
Wed Mar 14 16:12:56 2007
@@ -25,6 +25,8 @@
 import org.apache.catalina.util.StringManager;
 import org.apache.juli.logging.Log;
 import org.apache.juli.logging.LogFactory;
+import org.apache.tomcat.jni.Library;
+
 import java.lang.reflect.InvocationTargetException;
 
 
@@ -184,6 +186,9 @@
log.debug(sm.getString("aprListener.tcnValid", major + "."
  + minor + "." + patch));
 }
+// Log APR flags
+log.info(sm.getString("aprListener.flags", Library.APR_HAVE_IPV6, 
Library.APR_HAS_SENDFILE, 
+Library.APR_HAS_SO_ACCEPTFILTER, Library.APR_HAS_RANDOM));
 return true;
 }
 

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties?view=diff&rev=518378&r1=518377&r2=518378
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/LocalStrings.properties 
Wed Mar 14 16:12:56 2007
@@ -22,6 +22,7 @@
 aprListener.aprDestroy=Failed shutdown of Apache Portable Runtime
 aprListener.sslInit=Failed to initialize the SSLEngine.
 aprListener.tcnValid=Loaded Apache Tomcat Native library {0}.
+aprListener.flags=APR capabilities: IPv6 [{0}], sendfile [{1}], accept filters 
[{2}], random [{3}].
 containerBase.addDefaultMapper=Exception configuring default mapper of class 
{0}
 containerBase.alreadyStarted=Container {0} has already been started
 containerBase.notConfigured=No basic Valve has been configured



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



DO NOT REPLY [Bug 41843] - weak accesses blocking behaviour

2007-03-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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





--- Additional Comments From [EMAIL PROTECTED]  2007-03-14 16:15 ---
I think your report is invalid (most likely, you have a "private" webapp
deployed). Please provide a ready to test war which demonstrates the issue.

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



svn commit: r518430 - /tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java

2007-03-14 Thread remm
Author: remm
Date: Wed Mar 14 18:31:26 2007
New Revision: 518430

URL: http://svn.apache.org/viewvc?view=rev&rev=518430
Log:
- When the platform does not support deferred accept, put accepted sockets in 
the poller (there's a performance penalty,
  of course, but mostly visible for non keep alive connections).

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?view=diff&rev=518430&r1=518429&r2=518430
==
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Wed 
Mar 14 18:31:26 2007
@@ -155,6 +155,12 @@
  */
 protected long sslContext = 0;
 
+
+/**
+ * Defer accept.
+ */
+protected boolean deferAccept = true;
+
 
 // - Properties
 
@@ -619,7 +625,6 @@
 
 // Sendfile usage on systems which don't support it cause major 
problems
 if (useSendfile && !Library.APR_HAS_SENDFILE) {
-log.warn(sm.getString("endpoint.sendfile.nosupport"));
 useSendfile = false;
 }
 
@@ -655,7 +660,9 @@
 // Delay accepting of new connections until data is available
 // Only Linux kernels 2.4 + have that implemented
 // on other platforms this call is noop and will return APR_ENOTIMPL.
-Socket.optSet(serverSock, Socket.APR_TCP_DEFER_ACCEPT, 1);
+if (Socket.optSet(serverSock, Socket.APR_TCP_DEFER_ACCEPT, 1) == 
Status.APR_ENOTIMPL) {
+deferAccept = false;
+}
 
 // Initialize SSL if needed
 if (SSLEnabled) {
@@ -1490,16 +1497,27 @@
 if (socket == 0)
 continue;
 
-// Process the request from this socket
-if ((status != null) && (handler.event(socket, status) == 
Handler.SocketState.CLOSED)) {
-// Close socket and pool
-Socket.destroy(socket);
-socket = 0;
-} else if ((status == null) && ((options && 
!setSocketOptions(socket)) 
-|| handler.process(socket) == 
Handler.SocketState.CLOSED)) {
-// Close socket and pool
-Socket.destroy(socket);
-socket = 0;
+if (!deferAccept && options) {
+if (setSocketOptions(socket)) {
+getPoller().add(socket);
+} else {
+// Close socket and pool
+Socket.destroy(socket);
+socket = 0;
+}
+} else {
+
+// Process the request from this socket
+if ((status != null) && (handler.event(socket, status) == 
Handler.SocketState.CLOSED)) {
+// Close socket and pool
+Socket.destroy(socket);
+socket = 0;
+} else if ((status == null) && ((options && 
!setSocketOptions(socket)) 
+|| handler.process(socket) == 
Handler.SocketState.CLOSED)) {
+// Close socket and pool
+Socket.destroy(socket);
+socket = 0;
+}
 }
 
 // Finish up this request
@@ -1904,12 +1922,22 @@
 
 public void run() {
 
-// Process the request from this socket
-if (!setSocketOptions(socket) 
-|| handler.process(socket) == Handler.SocketState.CLOSED) {
-// Close socket and pool
-Socket.destroy(socket);
-socket = 0;
+if (!deferAccept) {
+if (setSocketOptions(socket)) {
+getPoller().add(socket);
+} else {
+// Close socket and pool
+Socket.destroy(socket);
+socket = 0;
+}
+} else {
+// Process the request from this socket
+if (!setSocketOptions(socket) 
+|| handler.process(socket) == 
Handler.SocketState.CLOSED) {
+// Close socket and pool
+Socket.destroy(socket);
+socket = 0;
+}
 }
 
 }



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



DO NOT REPLY [Bug 40668] - MailSessionFactory is missing in Tomcat 5.5.23

2007-03-14 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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





--- Additional Comments From [EMAIL PROTECTED]  2007-03-14 23:37 ---
Thanks for fixing this.

Note that JavaMail 1.4 and JAF 1.1 have moved to a free license, so you could
make those classes as permanent in the build process as everything else.

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