svn commit: r410808 - /tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c

2006-06-01 Thread mturk
Author: mturk
Date: Thu Jun  1 02:25:44 2006
New Revision: 410808

URL: http://svn.apache.org/viewvc?rev=410808&view=rev
Log:
Fix compile time warning by using proper value types.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c?rev=410808&r1=410807&r2=410808&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_lb_worker.c Thu Jun  1 02:25:44 
2006
@@ -53,9 +53,9 @@
 
 
 /* Calculate the greatest common divisor of two positive integers */
-static int gcd(int a, int b)
+static jk_uint64_t gcd(jk_uint64_t a, jk_uint64_t b)
 {
-int r;
+jk_uint64_t r;
 if (b > a) {
 r = a;
 a = b;
@@ -72,13 +72,13 @@
 /* Calculate the smallest common multiple of two positive integers */
 static jk_uint64_t scm(jk_uint64_t a, jk_uint64_t b)
 {
-return a*b/gcd(a,b);
+return a * b / gcd(a, b);
 }
 
 /* Update the load multipliers wrt. lb_factor */
 void update_mult(lb_worker_t *p, jk_logger_t *l)
 {
-int i = 0;
+unsigned int i = 0;
 jk_uint64_t s = 1;
 JK_TRACE_ENTER(l);
 for (i = 0; i < p->num_of_workers; i++) {
@@ -100,7 +100,7 @@
  */
 void reset_lb_values(lb_worker_t *p, jk_logger_t *l)
 {
-int i = 0;
+unsigned int i = 0;
 JK_TRACE_ENTER(l);
 if (p->lbmethod != JK_LB_BYBUSYNESS) {
 for (i = 0; i < p->num_of_workers; i++) {
@@ -228,7 +228,7 @@
 jk_uint64_t curmax,
 jk_logger_t *l)
 {
-int i;
+unsigned int i;
 time_t now = time(NULL);
 int elapsed;
 worker_record_t *w = NULL;
@@ -268,7 +268,7 @@
   int exponent,
   jk_logger_t *l)
 {
-int i;
+unsigned int i;
 jk_uint64_t curmax = 0;
 JK_TRACE_ENTER(l);
 if (p->lbmethod != JK_LB_BYBUSYNESS) {
@@ -287,7 +287,7 @@
 {
 unsigned int i = 0;
 jk_uint64_t curmax = 0;
-int delta;
+long delta;
 time_t now = time(NULL);
 JK_TRACE_ENTER(l);
 
@@ -309,7 +309,7 @@
  * Since it's possible that we come here a few milliseconds
  * before the interval has passed, we allow a little tolerance.
  */
-delta = difftime(now, lb->s->last_maintain_time) + 
JK_LB_MAINTAIN_TOLERANCE;
+delta = (long)difftime(now, lb->s->last_maintain_time) + 
JK_LB_MAINTAIN_TOLERANCE;
 if (delta >= lb->maintain_time) {
 lb->s->last_maintain_time = now;
 if (JK_IS_DEBUG_LEVEL(l))
@@ -427,7 +427,6 @@
  const char *name,
  jk_logger_t *l)
 {
-unsigned int i;
 int uses_domain  = 0;
 worker_record_t *candidate = NULL;
 



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



dev@tomcat.apache.org

2006-06-01 Thread models
vielen Dank f



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



svn commit: r410814 - /tomcat/connectors/trunk/jk/native/common/jk_util.c

2006-06-01 Thread mturk
Author: mturk
Date: Thu Jun  1 02:34:07 2006
New Revision: 410814

URL: http://svn.apache.org/viewvc?rev=410814&view=rev
Log:
Fix compile time warning by using proper value types.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_util.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=410814&r1=410813&r2=410814&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_util.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_util.c Thu Jun  1 02:34:07 2006
@@ -137,7 +137,7 @@
 struct tm *tms;
 
 tms = localtime(&t);
-strftime(str, len, jk_log_fmt, tms);
+return strftime(str, len, jk_log_fmt, tms);
 }
 
 /* Write at most n characters to the buffer in str, return the
@@ -281,23 +281,23 @@
const char *fmt, ...)
 {
 int rc = 0;
-/* Need to reserve space for newline and terminating zero byte. */
-static size_t usable_size = HUGE_BUFFER_SIZE-2;
+/* Need to reserve space for newline and terminating zero byte. */
+static int usable_size = HUGE_BUFFER_SIZE-2;
 if (!l || !file || !fmt) {
 return -1;
 }
 
 if ((l->level <= level) || (level == JK_LOG_REQUEST_LEVEL)) {
 #ifdef NETWARE
-/* On NetWare, this can get called on a thread that has a limited stack so */
-/* we will allocate and free the temporary buffer in this function */
+/* On NetWare, this can get called on a thread that has a limited 
stack so */
+/* we will allocate and free the temporary buffer in this function 
*/
 char *buf;
 #else
 char buf[HUGE_BUFFER_SIZE];
 #endif
 char *f = (char *)(file + strlen(file) - 1);
 va_list args;
-size_t used = 0;
+int used = 0;
 
 while (f != file && '\\' != *f && '/' != *f) {
 f--;



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



DO NOT REPLY [Bug 37044] - JAASRealm / RealmBase role checking bug ?

2006-06-01 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=37044


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Additional Comments From [EMAIL PROTECTED]  2006-06-01 09:49 ---
This bug has not been fixed. Source code of class JAASRealm in version 5.5.12 is
identical with source code in current version (5.5.17).

-- 
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 37044] - JAASRealm / RealmBase role checking bug ?

2006-06-01 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=37044


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




-- 
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 38242] - StandardSession.invalidate() Session Already Invalidated; removeAttributeInternal JNDIManager

2006-06-01 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=38242





--- Additional Comments From [EMAIL PROTECTED]  2006-06-01 15:28 ---
This an issue with UPortal not implementing the specification correctly.  Many
of their classes are implementing HttpSessionBindingListener when they should be
implementing HttpSessionListener.  

See.  http://www.ja-sig.org/issues/browse/UP-1524

-- 
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 34107] - session already invalidated before valueUnbound() called

2006-06-01 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=34107





--- Additional Comments From [EMAIL PROTECTED]  2006-06-01 15:30 ---
Duplicate bug:

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

This is implemented properly.  See above bug 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]



DO NOT REPLY [Bug 39699] New: - simple deploy failed in cluster (distributable flag)

2006-06-01 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=39699

   Summary: simple deploy failed in cluster (distributable flag)
   Product: Tomcat 5
   Version: 5.5.17
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: critical
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi,

i encounter a strange problem with my tomcat cluster and webapps deployment.

server.xml



  
  
  
  

  
  




  


  
  








 

  

  

 





















  


  






when i am trying to deploy a 'dsitributable' (and only when this flag is
enabled) i get the following errors :

---
INFO ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Deploying web application archive po
len.war
 INFO ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.loader.WebappClassLoader - Illegal access: this web appli
cation instance has been stopped already.  Could not load java.io.PrintStream. 
The eventual following stack trace is caused by an error t
hrown for debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
 java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at org.apache.log4j.helpers.LogLog.error(LogLog.java:142)
at
org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:447)
at
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
at
org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:234)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.log(Category.java:853)
at 
org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:133)
at
org.apache.catalina.cluster.session.DeltaManager.start(DeltaManager.java:976)
at 
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:431)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4125)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1190)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1305)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
at java.lang.Thread.run(Unknown Source)
INFO ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.loader.WebappClassLoader - Illegal access: this web applic
ation instance has been stopped already.  Could not load java.io.PrintStream. 
The eventual following stack trace is caused by an error th
rown for debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
 Java.lang.IllegalStateException
at
org.apache.catalina.loader.Weba

DO NOT REPLY [Bug 39699] - simple deploy failed in cluster (distributable flag)

2006-06-01 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=39699


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2006-06-01 19:30 ---
same here for me with 5.5.17 on Linux. Same setup on the webapp side used to
work find in 5.5.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 37793] - org.apache.jasper.runtime.BodyContentImpl doesn't reset the 'cb' character array, causes memory leak

2006-06-01 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=37793





--- Additional Comments From [EMAIL PROTECTED]  2006-06-02 00:17 ---
This bug resulted in a about 4 months' intermittent downtime on
http://issues.apache.org/jira until we discovered this report. See:

http://marc.theaimsgroup.com/?t=11467263645&r=1&w=2

-- 
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 37793] - org.apache.jasper.runtime.BodyContentImpl doesn't reset the 'cb' character array, causes memory leak

2006-06-01 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=37793


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




-- 
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 39699] - simple deploy failed in cluster (distributable flag)

2006-06-01 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=39699





--- Additional Comments From [EMAIL PROTECTED]  2006-06-02 05:48 ---
(In reply to comment #1)
> same here for me with 5.5.17 on Linux. Same setup on the webapp side used to
> work find in 5.5.12.

did you tried with 5.5.16 ?

-- 
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 39699] - simple deploy failed in cluster (distributable flag)

2006-06-01 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=39699





--- Additional Comments From [EMAIL PROTECTED]  2006-06-02 06:12 ---
It seems that you have a log4j classloader issuse.

I hope you only have a log4j jar and commons-logging inside you app and not at 
common/lib.

Test it with 5.5.17 again.

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