[Bug 55837] New: ServletContext.getReadPath return null

2013-12-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55837

Bug ID: 55837
   Summary: ServletContext.getReadPath return null
   Product: Tomcat 8
   Version: 8.0.0-RC5
  Hardware: Macintosh
Status: NEW
  Severity: critical
  Priority: P2
 Component: Catalina
  Assignee: dev@tomcat.apache.org
  Reporter: oschina@gmail.com

[code]
String path = servletContext.getRealPath('/test');

if no file or folder named '/test' exist in webroot 
then path return null

but int tomcat 5\6\7, it will return the correct value , ex
/data/oschina/webapp/test

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



JDK 8 build 118 is available on java.net

2013-12-03 Thread Rory O'Donnell Oracle, Dublin Ireland

Hi Mladen,

JDK 8 B118 EA Build is now available for download 
 & test.


We need to hear of any issues asap, ideally we are looking to have 
issues reported by mid-December.


Thanks for your support, Rory

--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland



svn commit: r1547327 - /tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java

2013-12-03 Thread kfujino
Author: kfujino
Date: Tue Dec  3 09:48:36 2013
New Revision: 1547327

URL: http://svn.apache.org/r1547327
Log:
When the ping timeouted, make sure that memberDisappeared method is not called 
by specifying the members that has already been removed.

Modified:

tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java

Modified: 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=1547327&r1=1547326&r2=1547327&view=diff
==
--- 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java 
(original)
+++ 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java 
Tue Dec  3 09:48:36 2013
@@ -273,14 +273,12 @@ public abstract class AbstractReplicated
 }
 //update our map of members, expire some if we didn't receive a ping 
back
 synchronized (mapMembers) {
-Iterator> it = 
mapMembers.entrySet().iterator();
+Member[] members = mapMembers.keySet().toArray(new 
Member[mapMembers.size()]);
 long now = System.currentTimeMillis();
-while ( it.hasNext() ) {
-Map.Entry entry = it.next();
-long access = entry.getValue().longValue();
+for (Member member : members) {
+long access = mapMembers.get(member);
 if ( (now - access) > timeout ) {
-it.remove();
-memberDisappeared(entry.getKey());
+memberDisappeared(member);
 }
 }
 }//synch



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1547329 - /tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java

2013-12-03 Thread kfujino
Author: kfujino
Date: Tue Dec  3 10:01:11 2013
New Revision: 1547329

URL: http://svn.apache.org/r1547329
Log:
Add log message of session relocation when member disappeared.

Modified:

tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java

Modified: 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=1547329&r1=1547328&r2=1547329&view=diff
==
--- 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java 
(original)
+++ 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java 
Tue Dec  3 10:01:11 2013
@@ -767,7 +767,9 @@ public abstract class AbstractReplicated
 return; //the member was not part of our map.
 }
 }
-
+if (log.isInfoEnabled())
+log.info("Member["+member+"] disappeared. Related map entries will 
be relocated to the new node.");
+long start = System.currentTimeMillis();
 Iterator>> i = 
innerMap.entrySet().iterator();
 while (i.hasNext()) {
 Map.Entry> e = i.next();
@@ -815,6 +817,8 @@ public abstract class AbstractReplicated
 }
 
 } //while
+long complete = System.currentTimeMillis() - start;
+if (log.isInfoEnabled()) log.info("Relocation of map entries was 
complete in " + complete + " ms.");
 }
 
 public int getNextBackupIndex() {



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1547333 - in /tomcat/tc7.0.x/trunk: java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java webapps/docs/changelog.xml

2013-12-03 Thread kfujino
Author: kfujino
Date: Tue Dec  3 10:15:54 2013
New Revision: 1547333

URL: http://svn.apache.org/r1547333
Log:
-When the ping timeouted, make sure that memberDisappeared method is not called 
by specifying the members that has already been removed.
-Add log message of session relocation when member disappeared.

Modified:

tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=1547333&r1=1547332&r2=1547333&view=diff
==
--- 
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
 (original)
+++ 
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
 Tue Dec  3 10:15:54 2013
@@ -278,14 +278,12 @@ public abstract class AbstractReplicated
 }
 //update our map of members, expire some if we didn't receive a ping 
back
 synchronized (mapMembers) {
-Iterator> it = 
mapMembers.entrySet().iterator();
+Member[] members = mapMembers.keySet().toArray(new 
Member[mapMembers.size()]);
 long now = System.currentTimeMillis();
-while ( it.hasNext() ) {
-Map.Entry entry = it.next();
-long access = entry.getValue().longValue();
+for (Member member : members) {
+long access = mapMembers.get(member);
 if ( (now - access) > timeout ) {
-it.remove();
-memberDisappeared(entry.getKey());
+memberDisappeared(member);
 }
 }
 }//synch
@@ -778,6 +776,9 @@ public abstract class AbstractReplicated
 }
 }
 
+if (log.isInfoEnabled())
+log.info("Member["+member+"] disappeared. Related map entries will 
be relocated to the new node.");
+long start = System.currentTimeMillis();
 @SuppressWarnings("unchecked")
 Iterator> i = super.entrySet().iterator();
 while (i.hasNext()) {
@@ -826,6 +827,8 @@ public abstract class AbstractReplicated
 }
 
 } //while
+long complete = System.currentTimeMillis() - start;
+if (log.isInfoEnabled()) log.info("Relocation of map entries was 
complete in " + complete + " ms.");
 }
 
 public int getNextBackupIndex() {

Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1547333&r1=1547332&r2=1547333&view=diff
==
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Tue Dec  3 10:15:54 2013
@@ -282,6 +282,14 @@
 org.apache.catalina.ha.session.DeltaManager via JMX.
 (kfujino)
   
+  
+When the ping timeouted, make sure that memberDisappeared
+method is not called by specifying the members that has already been
+removed. (kfujino)
+  
+  
+Add log message of session relocation when member disappeared. 
(kfujino)
+  
 
   
   



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



buildbot failure in ASF Buildbot on tomcat-7-trunk

2013-12-03 Thread buildbot
The Buildbot has detected a new failure on builder tomcat-7-trunk while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/tomcat-7-trunk/builds/1605

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch tomcat/tc7.0.x/trunk] 1547333
Blamelist: kfujino

BUILD FAILED: failed compile_1

sincerely,
 -The Buildbot




-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



buildbot failure in ASF Buildbot on tomcat-trunk

2013-12-03 Thread buildbot
The Buildbot has detected a new failure on builder tomcat-trunk while building 
ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/tomcat-trunk/builds/5295

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch tomcat/trunk] 1547327
Blamelist: kfujino

BUILD FAILED: failed compile_1

sincerely,
 -The Buildbot




-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55837] ServletContext.getRealPath() returns null

2013-12-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55837

Chuck Caldarale  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID
Summary|ServletContext.getReadPath  |ServletContext.getRealPath(
   |return null |) returns null
 OS||All
   Severity|critical|normal

--- Comment #1 from Chuck Caldarale  ---
(In reply to oschina.net from comment #0)
> if no file or folder named '/test' exist in webroot 
> then path return null

The container is under no obligation to return anything other than null for
getRealPath().  Read the doc for the API:

"This method returns null if the servlet container cannot translate the virtual
path to a real path for any reason (such as when the content is being made
available from a .war archive)."

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1547376 - /tomcat/trunk/webapps/docs/rewrite.xml

2013-12-03 Thread violetagg
Author: violetagg
Date: Tue Dec  3 13:14:18 2013
New Revision: 1547376

URL: http://svn.apache.org/r1547376
Log:
Fixed typos. Issue reported via o.a.comments.

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

Modified: tomcat/trunk/webapps/docs/rewrite.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/rewrite.xml?rev=1547376&r1=1547375&r2=1547376&view=diff
==
--- tomcat/trunk/webapps/docs/rewrite.xml (original)
+++ tomcat/trunk/webapps/docs/rewrite.xml Tue Dec  3 13:14:18 2013
@@ -31,7 +31,7 @@
 
 
 
-  The rewrite valve implements URL rewrite functionnality in a way that is
+  The rewrite valve implements URL rewrite functionality in a way that is
   very similar to mod_rewrite from Apache HTTP Server.
 
 
@@ -211,7 +211,7 @@
 
   REQUEST_FILENAME
 
-  The full local filesystem path to the file or
+  The full local file system path to the file or
   script matching the request.
 
   HTTPS
@@ -342,7 +342,7 @@
 expanded TestString and the CondPattern.
 This flag is effective only for comparisons between
 TestString and CondPattern. It has no
-effect on filesystem and subrequest checks.
+effect on file system and subrequest checks.
 
 
   'ornext|OR'
@@ -478,7 +478,7 @@ public interface RewriteMap {
 
 Note: When using the NOT character to negate a pattern, you cannot include
 grouped wildcard parts in that pattern. This is because, when the
-pattern does NOT match (ie, the negation matches), there are no
+pattern does NOT match (i.e., the negation matches), there are no
 contents for the groups. Thus, if negated patterns are used, you
 cannot use $N in the substitution string!
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



buildbot success in ASF Buildbot on tomcat-trunk

2013-12-03 Thread buildbot
The Buildbot has detected a restored build on builder tomcat-trunk while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/tomcat-trunk/builds/5296

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch tomcat/trunk] 1547329
Blamelist: kfujino

Build succeeded!

sincerely,
 -The Buildbot





[Bug 55797] Tomcat 7.0.47 crashes using server jvm.dll and APR at ntdll!ZwGetContextThread+0xa

2013-12-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55797

--- Comment #3 from Keith Mashinter  ---
I'll try to find out how to bind Java and/or Tomcat APR symbol files into
WinDbg.exe ... does anyone have any hints on that?

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55836] Failed to unregister MBean

2013-12-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55836

Ugo Ducharme  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID

--- Comment #2 from Ugo Ducharme  ---
Ok, thank you. I'll go and resolve the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55837] ServletContext.getRealPath() returns null

2013-12-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55837

oschina.net  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |---

--- Comment #2 from oschina.net  ---
(In reply to Chuck Caldarale from comment #1)
> (In reply to oschina.net from comment #0)
> > if no file or folder named '/test' exist in webroot 
> > then path return null
> 
> The container is under no obligation to return anything other than null for
> getRealPath().  Read the doc for the API:
> 
> "This method returns null if the servlet container cannot translate the
> virtual path to a real path for any reason (such as when the content is
> being made available from a .war archive)."

but in same condition,tomcat 7 & 8 return different value (not .war archive)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55839] New: DataSourceRealm doesn't handle prefix on password digest

2013-12-03 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55839

Bug ID: 55839
   Summary: DataSourceRealm doesn't handle prefix on password
digest
   Product: Tomcat 7
   Version: trunk
  Hardware: PC
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
  Assignee: dev@tomcat.apache.org
  Reporter: 897ty8723tgribvjhbvjh847rt3487rt4_dfvkjdbv23lkdm23klm@
megatno.com

Created attachment 31088
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31088&action=edit
Entire class with additional check for prefix.

Similar to bug #37984 which provided a fix for JNDIRealm, DataSourceRealm
should also remove prefixes of the form {SHA}, {MD5}, etc before comparing the
digests.

The attached class(sorry - corporate firewall wouldn't allow me to create a
patch) is suitable for my own needs (where the prefix is provided in lower
case, so is compared case-insensitively), but I acknowledge that a fuller fix
may be more appropriate, e.g. providing a helper method for removing known
prefixes in RealmBase.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1547709 - /tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java

2013-12-03 Thread kfujino
Author: kfujino
Date: Wed Dec  4 04:58:23 2013
New Revision: 1547709

URL: http://svn.apache.org/r1547709
Log:
If ping message fails, prevent the wrong timeout detection of normal member 
that is no failure members.

Modified:

tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java

Modified: 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=1547709&r1=1547708&r2=1547709&view=diff
==
--- 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java 
(original)
+++ 
tomcat/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java 
Wed Dec  4 04:58:23 2013
@@ -269,6 +269,7 @@ public abstract class AbstractReplicated
 for (FaultyMember faultyMember : faultyMembers) {
 memberDisappeared(faultyMember.getMember());
 }
+throw ce;
 }
 }
 //update our map of members, expire some if we didn't receive a ping 
back



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1547711 - in /tomcat/tc7.0.x/trunk: java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java webapps/docs/changelog.xml

2013-12-03 Thread kfujino
Author: kfujino
Date: Wed Dec  4 05:13:26 2013
New Revision: 1547711

URL: http://svn.apache.org/r1547711
Log:
If ping message fails, prevent the wrong timeout detection of normal member 
that is no failure members.

Modified:

tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java?rev=1547711&r1=1547710&r2=1547711&view=diff
==
--- 
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
 (original)
+++ 
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/tipis/AbstractReplicatedMap.java
 Wed Dec  4 05:13:26 2013
@@ -274,6 +274,7 @@ public abstract class AbstractReplicated
 for (FaultyMember faultyMember : faultyMembers) {
 memberDisappeared(faultyMember.getMember());
 }
+throw ce;
 }
 }
 //update our map of members, expire some if we didn't receive a ping 
back

Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1547711&r1=1547710&r2=1547711&view=diff
==
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Wed Dec  4 05:13:26 2013
@@ -290,6 +290,10 @@
   
 Add log message of session relocation when member disappeared. 
(kfujino)
   
+  
+If ping message fails, prevent wrong timeout detection of normal member
+that is no failure members. (kfujino)
+  
 
   
   



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



buildbot success in ASF Buildbot on tomcat-7-trunk

2013-12-03 Thread buildbot
The Buildbot has detected a restored build on builder tomcat-7-trunk while 
building ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/tomcat-7-trunk/builds/1606

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch tomcat/tc7.0.x/trunk] 1547711
Blamelist: kfujino

Build succeeded!

sincerely,
 -The Buildbot





buildbot failure in ASF Buildbot on tomcat-trunk

2013-12-03 Thread buildbot
The Buildbot has detected a new failure on builder tomcat-trunk while building 
ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/tomcat-trunk/builds/5298

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: bb-vm_ubuntu

Build Reason: scheduler
Build Source Stamp: [branch tomcat/trunk] 1547709
Blamelist: kfujino

BUILD FAILED: failed compile_1

sincerely,
 -The Buildbot




-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org