DO NOT REPLY [Bug 40751] New: - the precompilation of Jsp fails

2006-10-13 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=40751

   Summary: the precompilation of Jsp fails
   Product: Tomcat 5
   Version: 5.5.20
  Platform: All
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P1
 Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


installed 5.5.20 and run web application (JSF-Spring-Hibernate-Mysql), the 
application has a drammatically reduced preformance as expected. After 
deliberating on this issue, i installed the same application on the 5.5.17 and 
found that it warks is expected. Test it please! Actually any JSP page that is 
loaded in 5.5.20 is compiled over and over again, and considerably takes the 
processor's resources every time.

-- 
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 40751] - the precompilation of Jsp fails

2006-10-13 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=40751





--- Additional Comments From [EMAIL PROTECTED]  2006-10-13 01:31 ---
Sorry for mistakes, i have properly edited the bug's description as follows:

installed 5.5.20 and run web application (JSF-Spring-Hibernate-Mysql), the 
application has a dramatically reduced performance unexpectedly. After 
deliberating on this issue, i installed the same application on the 5.5.17 and 
found that it works as expected. Test it please! Actually any JSP page that is 
loaded in 5.5.20 is compiled over and over again, and considerably takes the 
processor’s resources every time.




-- 
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: r463648 - /tomcat/connectors/trunk/jni/native/src/network.c

2006-10-13 Thread mturk
Author: mturk
Date: Fri Oct 13 04:18:57 2006
New Revision: 463648

URL: http://svn.apache.org/viewvc?view=rev&rev=463648
Log:
Fix compile time warning

Modified:
tomcat/connectors/trunk/jni/native/src/network.c

Modified: tomcat/connectors/trunk/jni/native/src/network.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/network.c?view=diff&rev=463648&r1=463647&r2=463648
==
--- tomcat/connectors/trunk/jni/native/src/network.c (original)
+++ tomcat/connectors/trunk/jni/native/src/network.c Fri Oct 13 04:18:57 2006
@@ -1198,7 +1198,7 @@
 {
 tcn_socket_t *s = J2P(socket, tcn_socket_t *);
 TCN_ALLOC_CSTRING(key);
-jobject rv = NULL;
+void *rv = NULL;
 
 UNREFERENCED(o);
 TCN_ASSERT(sock != 0);



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



svn commit: r463650 - /tomcat/connectors/trunk/jni/native/config.layout

2006-10-13 Thread mturk
Author: mturk
Date: Fri Oct 13 04:19:24 2006
New Revision: 463650

URL: http://svn.apache.org/viewvc?view=rev&rev=463650
Log:
Added generic config layout.

Modified:
tomcat/connectors/trunk/jni/native/config.layout

Modified: tomcat/connectors/trunk/jni/native/config.layout
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/config.layout?view=diff&rev=463650&r1=463649&r2=463650
==
--- tomcat/connectors/trunk/jni/native/config.layout (original)
+++ tomcat/connectors/trunk/jni/native/config.layout Fri Oct 13 04:19:24 2006
@@ -9,6 +9,22 @@
 ##(This may become a configurable parameter at some point.)
 ##
 
+#   Generic path layout that needs --prefix=/some/path
+
+exec_prefix:   ${prefix}
+bindir:${exec_prefix}/bin
+sbindir:   ${exec_prefix}/bin
+libdir:${exec_prefix}/lib
+libexecdir:${exec_prefix}/modules
+mandir:${prefix}/man
+sysconfdir:${prefix}/conf
+datadir:   ${prefix}
+installbuilddir: ${datadir}/build
+includedir:${prefix}/include/apr-${TCNATIVE_MAJOR_VERSION}
+localstatedir: ${prefix}
+libsuffix: -${TCNATIVE_MAJOR_VERSION}
+
+
 #   Classical Tomcat Native path layout designed for parallel installs.
 
 prefix:/usr/local/apr



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



svn commit: r463652 - in /tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp: AjpMessage.java AjpProcessor.java

2006-10-13 Thread remm
Author: remm
Date: Fri Oct 13 04:39:30 2006
New Revision: 463652

URL: http://svn.apache.org/viewvc?view=rev&rev=463652
Log:
- Packet must be ended before sending.
- Fix off by one check bug in AjpMessage.
- Fix recycling bug (setting streams to null when doing keepalive is not a good 
idea).

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpMessage.java
tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProcessor.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpMessage.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpMessage.java?view=diff&rev=463652&r1=463651&r2=463652
==
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpMessage.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpMessage.java Fri Oct 13 
04:39:30 2006
@@ -275,7 +275,7 @@
  * @param numBytes The number of bytes to copy.  
  */
 public void appendBytes(byte[] b, int off, int numBytes) {
-if (pos + numBytes + 3 >= buf.length) {
+if (pos + numBytes + 3 > buf.length) {
 log.error(sm.getString("ajpmessage.overflow", "" + numBytes, "" + 
pos),
 new ArrayIndexOutOfBoundsException());
 if (log.isDebugEnabled()) {
@@ -381,6 +381,11 @@
 return 4;
 }
 
+
+public int getPacketSize() {
+return buf.length;
+}
+
 
 public int processHeader() {
 pos = 0;

Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProcessor.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProcessor.java?view=diff&rev=463652&r1=463651&r2=463652
==
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProcessor.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/AjpProcessor.java Fri Oct 
13 04:39:30 2006
@@ -428,7 +428,9 @@
 
 rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);
 recycle();
-
+input = null;
+output = null;
+
 return true;
 
 }
@@ -1062,9 +1064,6 @@
 response.recycle();
 certificates.recycle();
 
-input = null;
-output = null;
-
 }
 
 
@@ -1157,7 +1156,9 @@
 responseHeaderMessage.reset();
 
responseHeaderMessage.appendByte(Constants.JK_AJP13_SEND_BODY_CHUNK);
 responseHeaderMessage.appendBytes(chunk.getBytes(), 
chunk.getOffset() + off, thisTime);
+responseHeaderMessage.end();
 output.write(responseHeaderMessage.getBuffer(), 0, 
responseHeaderMessage.getLen());
+
 off += thisTime;
 }
 



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



Iso Demirkaya/CH/BALOISE ist außer Haus. Ferien!

2006-10-13 Thread iso . demirkaya

Ich werde ab  13.10.2006 nicht im Büro sein. Ich kehre zurück am
14.10.2006.

Bin im Militär 16.10.06-3.11.06, Freude herrscht!! In dringenden Fällen
wenden Sie sich bitte an Rainer König 032 626 08 35 oder Roland Käser 032
626 08 24.

Disclaimer: The contents of this email and any attachment thereto are
intended exclusively for the attention of the addressee(s).
The email and any such attachment(s) may contain information that is
confidential and protected on the strength of professional,
official or business secrecy laws and regulations or contractual
obligations. Should you have received this email by mistake,
you may neither make use of nor divulge the contents of the email or of any
attachment thereto. In such a case,
please inform the email's sender and delete the message and all attachments
without delay from your systems.
You can find our e-mail disclaimer statement in other languages under
http://www.baloise.ch/disclaimer


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



DO NOT REPLY [Bug 40751] - the precompilation of Jsp fails

2006-10-13 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=40751





--- Additional Comments From [EMAIL PROTECTED]  2006-10-13 05:44 ---
the performance impact becomes prominently visible on the Petium III machine 
(should be slow or old PC, with RedHat 9.0).

-- 
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: r463702 - in /tomcat/tc6.0.x/trunk: build.properties.default extras.xml webapps/docs/building.xml webapps/docs/extras.xml webapps/docs/logging.xml webapps/docs/project.xml

2006-10-13 Thread remm
Author: remm
Date: Fri Oct 13 08:13:57 2006
New Revision: 463702

URL: http://svn.apache.org/viewvc?view=rev&rev=463702
Log:
- Add a build script to build extras.
- Update the logging documentation.

Added:
tomcat/tc6.0.x/trunk/extras.xml   (with props)
tomcat/tc6.0.x/trunk/webapps/docs/extras.xml   (with props)
Modified:
tomcat/tc6.0.x/trunk/build.properties.default
tomcat/tc6.0.x/trunk/webapps/docs/building.xml
tomcat/tc6.0.x/trunk/webapps/docs/logging.xml
tomcat/tc6.0.x/trunk/webapps/docs/project.xml

Modified: tomcat/tc6.0.x/trunk/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/build.properties.default?view=diff&rev=463702&r1=463701&r2=463702
==
--- tomcat/tc6.0.x/trunk/build.properties.default (original)
+++ tomcat/tc6.0.x/trunk/build.properties.default Fri Oct 13 08:13:57 2006
@@ -24,12 +24,8 @@
 base-jakarta.loc=http://archive.apache.org/dist/jakarta
 base-tomcat.loc=http://archive.apache.org/dist/tomcat
 
-# - Commons Logging, version 1.0.1 or later -
-commons-logging.home=${base.path}/commons-logging-1.0.4
-commons-logging.lib=${commons-logging.home}
-commons-logging-api.jar=${commons-logging.lib}/commons-logging-api.jar
-commons-logging.jar=${commons-logging.lib}/commons-logging.jar
-commons-logging.loc=${base-jakarta.loc}/commons/logging/binaries/commons-logging-1.0.4.tar.gz
+# - Commons Logging, version 1.1 or later -
+commons-logging-src.loc=${base-jakarta.loc}/commons/logging/source/commons-logging-1.1-src.tar.gz
 
 # - Eclipse JDT, version 3.2 or later -
 jdt.home=${base.path}/eclipse/plugins

Added: tomcat/tc6.0.x/trunk/extras.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/extras.xml?view=auto&rev=463702
==
--- tomcat/tc6.0.x/trunk/extras.xml (added)
+++ tomcat/tc6.0.x/trunk/extras.xml Fri Oct 13 08:13:57 2006
@@ -0,0 +1,175 @@
+
+
+
+  
+
+  
+  
+  
+  
+
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+
+  
+  
+
+  
+  
+  
+  
+  
+  
+  
+  
+
+  
+  
+
+  
+  
+  
+  
+
+  
+  
+   
+  
+  
+
+  
+
+  
+
+  
+
+  
+   
+  
+
+  
+
+
+  
+  
+  
+
+
+
+   
+
+  
+
+
+
+  
+
+
+
+  
+
+
+
+
+   
+
+  
+
+   
+  
+
+  
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+ 
+
+
+
+  
+  
+
+
+
+
+  
+
+
+
+  
+ 
+ 
+ 
+ 
+ 
+
+
+
+  
+
+
+  
+
+  
+  
+
+  
+  
+
+
+
+  
+
+  
+
+
+  
+
+  
+
+
+
+  
+
+

Propchange: tomcat/tc6.0.x/trunk/extras.xml
--
svn:eol-style = native

Modified: tomcat/tc6.0.x/trunk/webapps/docs/building.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/building.xml?view=diff&rev=463702&r1=463701&r2=463702
==
--- tomcat/tc6.0.x/trunk/webapps/docs/building.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/building.xml Fri Oct 13 08:13:57 2006
@@ -16,20 +16,13 @@
 
 
 
-Building Tomcat from SVN is very easy, and is the first step to contributing to
+Building Apache Tomcat from SVN is very easy, and is the first step to 
contributing to
 Tomcat. The following is a step by step TODO list.
 
 
 
 
-
-
-
-The default distribution of Tomcat 5.5.x requires a 5.0 or later JDK. Tomcat
-can be built using a 1.4.x JDK but you will need to copy the contents of the
-compat directory (created by the build process) to your build directory before
-Tomcat will start.
-
+
 
 
 The Sun JDK can be downloaded http://java.sun.com/j2se/";>here.
@@ -42,10 +35,10 @@
 
 
 
-
+
 
 
-Download a binary distribution of Ant 1.6.2 or later from 
+Download a binary distribution of Ant 1.6.5 or later from 
 http://ant.apache.org/bindownload.cgi";>here.
 
 
@@ -66,22 +59,35 @@
 
 
 
-
+
 
-
-Download the main build.xml script from here.
-
+  
+  Tomcat SVN repository URL:
+  http://svn.apache.org/repos/asf/tomcat/tc6.0.x/
+  
+  
+  
+  Download a source package from:
+  http://tomcat.apache.org/download-60.cgi
+  
+  
+  
+  Checkout the source using SVN, selecting the desired version or
+  branch (current development source is at 
+  http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/), or 
+  unpack the source package. The location where the source has been
+  placed will be referred as ${tomcat.source}.
+  
 
-
-Create a new directory, and copy the newly download build.xml to it. This
-  directory will be referred to as the ${tomcat.source} directory in the rest
-  of this docu

svn commit: r463703 - in /tomcat/connectors/trunk/jni/native: include/tcn_version.h os/win32/libtcnative.rc

2006-10-13 Thread mturk
Author: mturk
Date: Fri Oct 13 08:17:53 2006
New Revision: 463703

URL: http://svn.apache.org/viewvc?view=rev&rev=463703
Log:
Increment the current version

Modified:
tomcat/connectors/trunk/jni/native/include/tcn_version.h
tomcat/connectors/trunk/jni/native/os/win32/libtcnative.rc

Modified: tomcat/connectors/trunk/jni/native/include/tcn_version.h
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/include/tcn_version.h?view=diff&rev=463703&r1=463702&r2=463703
==
--- tomcat/connectors/trunk/jni/native/include/tcn_version.h (original)
+++ tomcat/connectors/trunk/jni/native/include/tcn_version.h Fri Oct 13 
08:17:53 2006
@@ -68,7 +68,7 @@
 #define TCN_MINOR_VERSION   1
 
 /** patch level */
-#define TCN_PATCH_VERSION   5
+#define TCN_PATCH_VERSION   6
 
 /**
  *  This symbol is defined for internal, "development" copies of TCN. This

Modified: tomcat/connectors/trunk/jni/native/os/win32/libtcnative.rc
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/os/win32/libtcnative.rc?view=diff&rev=463703&r1=463702&r2=463703
==
--- tomcat/connectors/trunk/jni/native/os/win32/libtcnative.rc (original)
+++ tomcat/connectors/trunk/jni/native/os/win32/libtcnative.rc Fri Oct 13 
08:17:53 2006
@@ -19,7 +19,7 @@
 "specific language governing permissions and " \
 "limitations under the License."
 
-#define TCN_VERISON "1.1.5"
+#define TCN_VERISON "1.1.6"
 1000 ICON "apache.ico"
 
 1001 DIALOGEX 0, 0, 252, 51
@@ -35,8 +35,8 @@
 END
 
 1 VERSIONINFO
- FILEVERSION 1,1,5,0
- PRODUCTVERSION 1,1,5,0
+ FILEVERSION 1,1,6,0
+ PRODUCTVERSION 1,1,6,0
  FILEFLAGSMASK 0x3fL
 #ifdef _DEBUG
  FILEFLAGS 0x1L



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



Re: svn commit: r463702 - in /tomcat/tc6.0.x/trunk: build.properties.default extras.xml webapps/docs/building.xml webapps/docs/extras.xml webapps/docs/logging.xml webapps/docs/project.xml

2006-10-13 Thread Remy Maucherat

[EMAIL PROTECTED] wrote:

Author: remm
Date: Fri Oct 13 08:13:57 2006
New Revision: 463702

URL: http://svn.apache.org/viewvc?view=rev&rev=463702
Log:
- Add a build script to build extras.
- Update the logging documentation.


More funky optional package renamed stuff ;)

I wanted to add the possibility to have the same feature level as on TC 
5.5 (ex: use log4j for the whole Tomcat, which I tested).


Rémy

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



Re: svn commit: r463702 - in /tomcat/tc6.0.x/trunk: build.properties.default extras.xml webapps/docs/building.xml webapps/docs/extras.xml webapps/docs/logging.xml webapps/docs/project.xml

2006-10-13 Thread Filip Hanik - Dev Lists

Remy Maucherat wrote:

[EMAIL PROTECTED] wrote:

Author: remm
Date: Fri Oct 13 08:13:57 2006
New Revision: 463702

URL: http://svn.apache.org/viewvc?view=rev&rev=463702
Log:
- Add a build script to build extras.
- Update the logging documentation.


More funky optional package renamed stuff ;)

I wanted to add the possibility to have the same feature level as on 
TC 5.5 (ex: use log4j for the whole Tomcat, which I tested).


   yes, this is a very popular feature where we run Tomcat, cause the
   operations teams are in control of the logging for all apps



Rémy

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



svn commit: r463732 - /tomcat/build/tc5.5.x/build.properties.default

2006-10-13 Thread remm
Author: remm
Date: Fri Oct 13 09:37:14 2006
New Revision: 463732

URL: http://svn.apache.org/viewvc?view=rev&rev=463732
Log:
- Update download location.

Modified:
tomcat/build/tc5.5.x/build.properties.default

Modified: tomcat/build/tc5.5.x/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/build/tc5.5.x/build.properties.default?view=diff&rev=463732&r1=463731&r2=463732
==
--- tomcat/build/tc5.5.x/build.properties.default (original)
+++ tomcat/build/tc5.5.x/build.properties.default Fri Oct 13 09:37:14 2006
@@ -138,7 +138,7 @@
 jdt.home=${base.path}/eclipse/plugins
 jdt.lib=${jdt.home}
 jdt.jar=${jdt.lib}/org.eclipse.jdt.core_3.1.2.jar
-jdt.loc=http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip
+jdt.loc=http://archive.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip
 
 
 # - Tomcat native library -



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



DO NOT REPLY [Bug 40751] - the precompilation of Jsp fails

2006-10-13 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=40751





--- Additional Comments From [EMAIL PROTECTED]  2006-10-13 10:51 ---
You have something else at work there.  I just ran a quick sanity-check with a
simple 'hello, world' JSP in new webapp within a fresh install of 5.5.20, and
the JSP compiles exactly once for every change to the index.jsp source (as
expected).

If you can't provide a test case that reproduces the issue you need to do some
further analysis to isolate the component mixture that produces what you are 
seeing.

-- 
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 40751] - the precompilation of Jsp fails

2006-10-13 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=40751





--- Additional Comments From [EMAIL PROTECTED]  2006-10-13 11:02 ---
the precompilation issue is only an insignificant suggestion on the existing
problem, our company indeed moved our production web-application on the 5.5.17,
because of dramatically reduced  performance on the 5.5.20. I have checked the
application on the Pentium IV and the performance is slightly reduces, but so
far the slow machine is concerned, then there is the significant down of the
performance (100% of CPU usage on every load of the same jsp page) 

-- 
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 40751] - the jsps pages consume a 100% of CPU usage on Pentium III (but on the 5.5.17 work fine)

2006-10-13 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=40751


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|the precompilation of Jsp   |the jsps pages consume a
   |fails   |100% of CPU usage on Pentium
   ||III (but on the 5.5.17 work
   ||fine)




--- Additional Comments From [EMAIL PROTECTED]  2006-10-13 11:07 ---
thus i've changed the summary title

-- 
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 40751] - the jsp pages consume a 100% of CPU usage on Pentium III (but on the 5.5.17 work fine)

2006-10-13 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=40751


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|the jsps pages consume a|the jsp pages consume a 100%
   |100% of CPU usage on Pentium|of CPU usage on Pentium III
   |III (but on the 5.5.17 work |(but on the 5.5.17 work
   |fine)   |fine)




-- 
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: r463768 - in /tomcat/tc6.0.x/trunk: java/org/apache/catalina/ha/ClusterValve.java java/org/apache/catalina/ha/tcp/ReplicationValve.java webapps/docs/config/cluster-valve.xml webapps/docs/c

2006-10-13 Thread fhanik
Author: fhanik
Date: Fri Oct 13 11:21:47 2006
New Revision: 463768

URL: http://svn.apache.org/viewvc?view=rev&rev=463768
Log:
slow progress, but moving forward with documentation

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterValve.java
tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java
tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml
tomcat/tc6.0.x/trunk/webapps/docs/config/cluster.xml

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterValve.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterValve.java?view=diff&rev=463768&r1=463767&r2=463768
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterValve.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterValve.java Fri Oct 
13 11:21:47 2006
@@ -15,13 +15,16 @@
  */
 package org.apache.catalina.ha;
 
+import org.apache.catalina.Valve;
+
 /**
- * Cluster Valve Interface to mark all Cluster Valves 
- * Only those Valve can'be configured as Cluster Valves
+ * Cluster valves are a simple extension to the Tomcat valve architecture
+ * with a small addition of being able to reference the cluster component in 
the container it sits in.
+ * @author Filip Hanik
  * @author Peter Rossbach
  * @version $Revision: 303842 $, $Date: 2005-04-10 11:20:46 -0500 (Sun, 10 Apr 
2005) $
  */
-public interface ClusterValve {
+public interface ClusterValve extends Valve{
 /**
  * Returns the cluster the cluster deployer is associated with
  * @return CatalinaCluster

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java?view=diff&rev=463768&r1=463767&r2=463768
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java 
Fri Oct 13 11:21:47 2006
@@ -212,7 +212,7 @@
 /**
  * Calc processing stats
  */
-public boolean isDoProcessingStats() {
+public boolean doStatistics() {
 return doProcessingStats;
 }
 
@@ -220,7 +220,7 @@
  * Set Calc processing stats
  * @see #resetStatistics()
  */
-public void setDoProcessingStats(boolean doProcessingStats) {
+public void setStatistics(boolean doProcessingStats) {
 this.doProcessingStats = doProcessingStats;
 }
 
@@ -326,7 +326,7 @@
 long totalstart = 0;
 
 //this happens before the request
-if(isDoProcessingStats()) {
+if(doStatistics()) {
 totalstart = System.currentTimeMillis();
 }
 if (primaryIndicator) {
@@ -415,7 +415,7 @@
 protected void sendReplicationMessage(Request request, long totalstart, 
boolean isCrossContext, ClusterManager clusterManager, CatalinaCluster 
containerCluster) {
 //this happens after the request
 long start = 0;
-if(isDoProcessingStats()) {
+if(doStatistics()) {
 start = System.currentTimeMillis();
 }
 try {
@@ -432,7 +432,7 @@
 log.error(sm.getString("ReplicationValve.send.failure"), x);
 } finally {
 // FIXME this stats update are not cheap!!
-if(isDoProcessingStats()) {
+if(doStatistics()) {
 updateStats(totalstart,start);
 }
 }
@@ -452,7 +452,7 @@
 
log.debug(sm.getString("ReplicationValve.crossContext.sendDelta",  
 session.getManager().getContainer().getName() ));
 
sendMessage(session,(ClusterManager)session.getManager(),containerCluster);
-if(isDoProcessingStats()) {
+if(doStatistics()) {
 nrOfCrossContextSendRequests++;
 }
 }
@@ -515,7 +515,7 @@
 log.debug(sm.getString("ReplicationValve.invoke.uri", 
uri));
 sendMessage(session,manager,cluster);
 } else
-if(isDoProcessingStats())
+if(doStatistics())
 nrOfFilterRequests++;
 }
 
@@ -551,7 +551,7 @@
 } else {
 cluster.send(msg);
 }
-if(isDoProcessingStats())
+if(doStatistics())
 nrOfSendRequests++;
 }
 }

Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml?view=diff&rev=463768&r1=463767&r2=463768
==
--- tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml (original)
+++ tomcat/tc6.0.x

svn commit: r463780 - in /tomcat/tc6.0.x/trunk: java/org/apache/catalina/ha/tcp/ReplicationValve.java webapps/docs/config/cluster-valve.xml

2006-10-13 Thread fhanik
Author: fhanik
Date: Fri Oct 13 12:07:44 2006
New Revision: 463780

URL: http://svn.apache.org/viewvc?view=rev&rev=463780
Log:
complete valve documentation

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java
tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java?view=diff&rev=463780&r1=463779&r2=463780
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java 
Fri Oct 13 12:07:44 2006
@@ -634,12 +634,11 @@
 if (session instanceof ClusterSession) {
 ClusterSession cses = (ClusterSession) session;
 if (cses != null) {
-Boolean isPrimary = new Boolean(cses.isPrimarySession());
 if (log.isDebugEnabled())
 log.debug(sm.getString(
 "ReplicationValve.session.indicator", 
request.getContext().getName(),id,
-primaryIndicatorName, isPrimary));
-request.setAttribute(primaryIndicatorName, isPrimary);
+primaryIndicatorName, 
cses.isPrimarySession()));
+request.setAttribute(primaryIndicatorName, 
cses.isPrimarySession()?Boolean.TRUE:Boolean.FALSE);
 }
 } else {
 if (log.isDebugEnabled()) {

Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml?view=diff&rev=463780&r1=463779&r2=463780
==
--- tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml Fri Oct 13 
12:07:44 2006
@@ -43,9 +43,16 @@
 The filter uses regular expressions and each filter is delimited by a 
semi colon.
 Pattern#compile(java.lang.String)
   
-  
+  
+Boolean value, so to true, and the replication valve will insert a 
request attribute with the name
+defined by the primaryIndicatorName attribute.
+The value inserted into the request attribute is either 
Boolean.TRUE or 
+Boolean.FALSE
   
-  
+  
+Default value is 
org.apache.catalina.ha.tcp.isPrimarySession
+The value defined here is the name of the request attribute that 
contains the boolean value
+if the session is primary on this server or not.
   
   
 Boolean value. Set to true if you want the valve to 
collect request statistics.
@@ -63,7 +70,13 @@
   
 
   
+org.apache.catalina.ha.session.JvmRouteBinderValve
   
+  
+Default value is true
+Runtime attribute to turn on and off turn over of the session's 
jvmRoute value.
+  
+  
 
   
 



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



svn commit: r463790 - in /tomcat/tc6.0.x/trunk: java/org/apache/catalina/ha/ClusterListener.java java/org/apache/catalina/ha/session/JvmRouteSessionIDBinderLifecycleListener.java webapps/docs/config/c

2006-10-13 Thread fhanik
Author: fhanik
Date: Fri Oct 13 12:23:54 2006
New Revision: 463790

URL: http://svn.apache.org/viewvc?view=rev&rev=463790
Log:
Listener documentation

Removed:

tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/session/JvmRouteSessionIDBinderLifecycleListener.java
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterListener.java
tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-listener.xml

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterListener.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterListener.java?view=diff&rev=463790&r1=463789&r2=463790
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterListener.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/ClusterListener.java Fri 
Oct 13 12:23:54 2006
@@ -19,11 +19,11 @@
 
 
 
-import org.apache.catalina.tribes.ChannelListener;
-import org.apache.catalina.tribes.ChannelMessage;
-import org.apache.catalina.util.StringManager;
 import java.io.Serializable;
+
+import org.apache.catalina.tribes.ChannelListener;
 import org.apache.catalina.tribes.Member;
+import org.apache.catalina.util.StringManager;
 
 
 /**

Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-listener.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-listener.xml?view=diff&rev=463790&r1=463789&r2=463790
==
--- tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-listener.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-listener.xml Fri Oct 13 
12:23:54 2006
@@ -15,11 +15,26 @@
 
 
 
-
-  
+  
+The org.apache.catalina.ha.ClusterListener base class 
+lets you listen in on messages that are received by the 
Cluster component.
+
 
 
-
+
+  
+   When using the DeltaManager, the messages are received by the Cluster 
object and are propagated to the 
+   to the manager through this listener.
+   
+
+
+  
+   Listens for session Id changes. This listener is only used if you are using 
mod_jk
+   along with the jvmRoute attribute where the session Id can 
change.
+   In the event of a change, the JvmRouteBinderValve will 
broadcast the
+   session change and it will get picked up by this listener.
+   
+
 
 
 



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



svn commit: r463861 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java

2006-10-13 Thread remm
Author: remm
Date: Fri Oct 13 15:52:19 2006
New Revision: 463861

URL: http://svn.apache.org/viewvc?view=rev&rev=463861
Log:
- Port patch.

Modified:
tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java?view=diff&rev=463861&r1=463860&r2=463861
==
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/servlets/DefaultServlet.java 
Fri Oct 13 15:52:19 2006
@@ -749,7 +749,8 @@
 // If it fails, we try to get a Writer instead if we're
 // trying to serve a text file
 if ( (contentType == null)
- || (contentType.startsWith("text")) ) {
+|| (contentType.startsWith("text"))
+|| (contentType.endsWith("xml")) ) {
 writer = response.getWriter();
 } else {
 throw e;



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