[Bug 55824] New: HandshakeRequest.getHttpSocket() may return null at ServerEndpointConfig.Configurator.modifyHandshake time

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55824

Bug ID: 55824
   Summary: HandshakeRequest.getHttpSocket() may return null at
ServerEndpointConfig.Configurator.modifyHandshake time
   Product: Tomcat 8
   Version: 8.0.0-RC5
  Hardware: PC
OS: OpenBSD
Status: NEW
  Severity: normal
  Priority: P2
 Component: WebSocket
  Assignee: dev@tomcat.apache.org
  Reporter: niklas+apa...@appli.se

Created attachment 31081
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31081&action=edit
A test websocket endpoint implementation, a JS client to test it, and a
context.xml for container deployment.

In a webapp with just a websocket implementation, an HttpSession does not seem
to be created in time for the modifyHandshake call.  Attached is a test to show
this.  I have no idea if there are any downsides to it but I have a proposed
fix that does solve my test case, call the
HttpServletRequest.getSession(boolean create) method with a true parameter
instead of false from the WsHandshakeRequest constructor:

Index:
/d/sd0h/h/niklas/java/workspace-1/Tomcat8/java/org/apache/tomcat/websocket/server/WsHandshakeRequest.java
===
---
/d/sd0h/h/niklas/java/workspace-1/Tomcat8/java/org/apache/tomcat/websocket/server/WsHandshakeRequest.java
   (revision 1546042)
+++
/d/sd0h/h/niklas/java/workspace-1/Tomcat8/java/org/apache/tomcat/websocket/server/WsHandshakeRequest.java
   (working copy)
@@ -51,7 +51,7 @@

 queryString = request.getQueryString();
 userPrincipal = request.getUserPrincipal();
-httpSession = request.getSession(false);
+httpSession = request.getSession(true);

 // URI
 StringBuilder sb = new StringBuilder(request.getRequestURI());

-- 
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 55824] HandshakeRequest.getHttpSession() may return null at ServerEndpointConfig.Configurator.modifyHandshake time

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55824

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |INVALID
Summary|HandshakeRequest.getHttpSoc |HandshakeRequest.getHttpSes
   |ket() may return null at|sion() may return null at
   |ServerEndpointConfig.Config |ServerEndpointConfig.Config
   |urator.modifyHandshake time |urator.modifyHandshake time

--- Comment #1 from Mark Thomas  ---
Fixed the title.

The WebSocket specification and Javadoc refer to the HTTP Session that already
exists when the WebSocket handshake is received. There is no requirement for an
Http ses

-- 
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 55824] HandshakeRequest.getHttpSession() may return null at ServerEndpointConfig.Configurator.modifyHandshake time

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55824

--- Comment #2 from Mark Thomas  ---
...session to be created if one does not already exist.

-- 
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 55824] HandshakeRequest.getHttpSession() may return null at ServerEndpointConfig.Configurator.modifyHandshake time

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55824

--- Comment #3 from Niklas Hallqvist  ---
Granted, this may not be a bug, I am not a native english speaker and did not
interpret the standards text quite as rigidly as you.  For me, there is an HTTP
session, although not an HttpSession, at the time. I consider that lazy
creation to be just an optimization.  Anyway, it's quite inconvenient to have
to create something else, a dummy, that creates the HttpSession, just to get at
the container's context, and thus, parameters needed to configure the
websocket.  Perhaps this is better seen as a feature request, and as such, much
too late in the release process.  Sad :-(

-- 
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 55824] HandshakeRequest.getHttpSession() may return null at ServerEndpointConfig.Configurator.modifyHandshake time

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55824

--- Comment #4 from Niklas Hallqvist  ---
"Because websocket connections are initiated with an
http request, there is an association between the HttpSession under which a
client is operating and any
websockets that are established within that HttpSession. The API allows access
in the opening handshake
to the unique HttpSession corresponding to that same client. [WSC-7.2-1]"

To me this seems to imply there should be an HttpSession.

-- 
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 55824] HandshakeRequest.getHttpSession() may return null at ServerEndpointConfig.Configurator.modifyHandshake time

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55824

--- Comment #5 from Mark Thomas  ---
That isn't how I read it.

If there is no "HTTP session under which a client is operating" then there is
no requirement to create one.

If you want an HTTP session to be available then you'll have to create one
first (e.g. with a filter). Note that the lifecycle of the HTTP session is
separate from that of the WebSocket session and the HTTP session can timeout
irrespective of whether or not the WebSocket session is still active.

"Anyway, it's quite inconvenient to have to create something else, a dummy,
that creates the HttpSession, just to get at the container's context, and thus,
parameters needed to configure the websocket." suggests you aren't configuring
your WebSocket connections correctly. There should be no need for access to the
HTTP session to do this. The users list is the place to follow up 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 55813] in 8.0.0-RCx Maven artifacts, tomcat-util artifact does not contain org/apache/tomcat/util/digester/RuleSet

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55813

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Mark Thomas  ---
Thanks for the report.

This has been fixed in trunk for 8.0.0-RC6 onwards. I also reviewed all the
other dependencies and fixed a handful of similar issues.

-- 
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: r1546365 - in /tomcat/trunk: ./ res/maven/

2013-11-28 Thread markt
Author: markt
Date: Thu Nov 28 14:01:20 2013
New Revision: 1546365

URL: http://svn.apache.org/r1546365
Log:
Create a new tomcat-util-scan.jar that contains the classes for JAR scanning 
and XML descriptor processing.
Update the .pom files with the new dependencies.
Review the .pom file dependencies and update to take account of Tomcat 8 
refactoring.

Added:
tomcat/trunk/res/maven/tomcat-util-scan.pom   (with props)
Modified:
tomcat/trunk/build.xml
tomcat/trunk/res/maven/tomcat-catalina-ant.pom
tomcat/trunk/res/maven/tomcat-catalina-ha.pom
tomcat/trunk/res/maven/tomcat-catalina-jmx-remote.pom
tomcat/trunk/res/maven/tomcat-catalina.pom
tomcat/trunk/res/maven/tomcat-jasper.pom
tomcat/trunk/res/maven/tomcat-spdy.pom
tomcat/trunk/res/maven/tomcat-util.pom
tomcat/trunk/res/maven/tomcat-websocket.pom

Modified: tomcat/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1546365&r1=1546364&r2=1546365&view=diff
==
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Thu Nov 28 14:01:20 2013
@@ -101,6 +101,7 @@
   
   
   
+  
 
   
   
@@ -128,6 +129,7 @@
   
   
   
+  
 
   
   
@@ -331,9 +333,16 @@
   
 
 
-
 
 
+
+
+  
+
+  
+
+
+
 
   
 
@@ -360,7 +369,6 @@
   
 
 
-
   
 
   
@@ -373,16 +381,15 @@
 
   
 
-
-
-
-
-
-
-
-
+   
 
+   
+
+
+
+
+
+
   
 
   
@@ -416,6 +423,7 @@
 
 
 
@@ -749,6 +757,11 @@
   filesDir="${tomcat.classes}"
   filesId="files.tomcat-util" />
 
+
+
+
 
 
 
 
+
   
   
 
@@ -2466,6 +2480,11 @@ Apache Tomcat ${version} native binaries
   filesDir="java"
   filesId="files.tomcat-util" />
 
+
+
+
 
 http://svn.apache.org/viewvc/tomcat/trunk/res/maven/tomcat-catalina-ant.pom?rev=1546365&r1=1546364&r2=1546365&view=diff
==
--- tomcat/trunk/res/maven/tomcat-catalina-ant.pom (original)
+++ tomcat/trunk/res/maven/tomcat-catalina-ant.pom Thu Nov 28 14:01:20 2013
@@ -32,13 +32,13 @@
   
 
   org.apache.tomcat
-  tomcat-coyote
+  tomcat-util
   @MAVEN.DEPLOY.VERSION@
   compile
 
 
   org.apache.tomcat
-  tomcat-catalina
+  tomcat-util-scan
   @MAVEN.DEPLOY.VERSION@
   compile
 

Modified: tomcat/trunk/res/maven/tomcat-catalina-ha.pom
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/res/maven/tomcat-catalina-ha.pom?rev=1546365&r1=1546364&r2=1546365&view=diff
==
--- tomcat/trunk/res/maven/tomcat-catalina-ha.pom (original)
+++ tomcat/trunk/res/maven/tomcat-catalina-ha.pom Thu Nov 28 14:01:20 2013
@@ -66,5 +66,11 @@
   @MAVEN.DEPLOY.VERSION@
   compile
 
+
+  org.apache.tomcat
+  tomcat-util-scan
+  @MAVEN.DEPLOY.VERSION@
+  compile
+
   
 

Modified: tomcat/trunk/res/maven/tomcat-catalina-jmx-remote.pom
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/res/maven/tomcat-catalina-jmx-remote.pom?rev=1546365&r1=1546364&r2=1546365&view=diff
==
--- tomcat/trunk/res/maven/tomcat-catalina-jmx-remote.pom (original)
+++ tomcat/trunk/res/maven/tomcat-catalina-jmx-remote.pom Thu Nov 28 14:01:20 
2013
@@ -32,7 +32,7 @@
   
 
   org.apache.tomcat
-  tomcat-coyote
+  tomcat-util
   @MAVEN.DEPLOY.VERSION@
   compile
 

Modified: tomcat/trunk/res/maven/tomcat-catalina.pom
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/res/maven/tomcat-catalina.pom?rev=1546365&r1=1546364&r2=1546365&view=diff
==
--- tomcat/trunk/res/maven/tomcat-catalina.pom (original)
+++ tomcat/trunk/res/maven/tomcat-catalina.pom Thu Nov 28 14:01:20 2013
@@ -38,6 +38,12 @@
 
 
   org.apache.tomcat
+  tomcat-jsp-api
+  @MAVEN.DEPLOY.VERSION@
+  compile
+
+
+  org.apache.tomcat
   tomcat-juli
   @MAVEN.DEPLOY.VERSION@
   compile
@@ -62,9 +68,21 @@
 
 
   org.apache.tomcat
+  tomcat-coyote
+  @MAVEN.DEPLOY.VERSION@
+  compile
+
+
+  org.apache.tomcat
   tomcat-util
   @MAVEN.DEPLOY.VERSION@
   compile
 
+
+  org.apache.tomcat
+  tomcat-util-scan
+  @MAVEN.DEPLOY.VERSION@
+  compile
+
   
 

Modified: tomcat/trunk/res/maven/tomcat-jasper.pom
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/res/maven/tomcat-jasper.pom?rev=1546365&r1=1546364&r2=1546365&view=diff
==
--- tomcat/trunk/res/maven/tomcat-jasper.pom (original)
+++ tomcat/trunk/res/maven/tomcat-jasper.pom Thu Nov 

svn commit: r1546372 - /tomcat/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java

2013-11-28 Thread markt
Author: markt
Date: Thu Nov 28 14:27:42 2013
New Revision: 1546372

URL: http://svn.apache.org/r1546372
Log:
Fix NPE reported on users list when HTTP session ends

Modified:
tomcat/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java

Modified: 
tomcat/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java?rev=1546372&r1=1546371&r2=1546372&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java 
(original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java 
Thu Nov 28 14:27:42 2013
@@ -403,7 +403,10 @@ public class WsServerContainer extends W
 private void unregisterAuthenticatedSession(WsSession wsSession,
 String httpSessionId) {
 Set wsSessions = authenticatedSessions.get(httpSessionId);
-wsSessions.remove(wsSession);
+// wsSessions will be null if the HTTP session has ended
+if (wsSessions != null) {
+wsSessions.remove(wsSession);
+}
 }
 
 



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



svn commit: r1546373 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/tomcat/websocket/server/WsServerContainer.java webapps/docs/changelog.xml

2013-11-28 Thread markt
Author: markt
Date: Thu Nov 28 14:29:31 2013
New Revision: 1546373

URL: http://svn.apache.org/r1546373
Log:
Fix NPE reported on users list when HTTP session ends

Modified:
tomcat/tc7.0.x/trunk/   (props changed)

tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml

Propchange: tomcat/tc7.0.x/trunk/
--
  Merged /tomcat/trunk:r1546372

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java?rev=1546373&r1=1546372&r2=1546373&view=diff
==
--- 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java
 (original)
+++ 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsServerContainer.java
 Thu Nov 28 14:29:31 2013
@@ -406,7 +406,10 @@ public class WsServerContainer extends W
 private void unregisterAuthenticatedSession(WsSession wsSession,
 String httpSessionId) {
 Set wsSessions = authenticatedSessions.get(httpSessionId);
-wsSessions.remove(wsSession);
+// wsSessions will be null if the HTTP session has ended
+if (wsSessions != null) {
+wsSessions.remove(wsSession);
+}
 }
 
 

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=1546373&r1=1546372&r2=1546373&view=diff
==
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Thu Nov 28 14:29:31 2013
@@ -185,6 +185,10 @@
 descriptor may contain configuration necessary for secure operation
 such as a RemoteAddrValve. (markt)
   
+  
+Prevent an NPE in the WebSocket ServerContainer when
+processing an HTTP session end event. (markt)
+  
 
   
   



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



svn commit: r1546381 - /tomcat/trunk/build.xml

2013-11-28 Thread markt
Author: markt
Date: Thu Nov 28 14:51:58 2013
New Revision: 1546381

URL: http://svn.apache.org/r1546381
Log:
Tab police

Modified:
tomcat/trunk/build.xml

Modified: tomcat/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1546381&r1=1546380&r2=1546381&view=diff
==
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Thu Nov 28 14:51:58 2013
@@ -381,9 +381,9 @@
 
   
 
-   
+
 
-   
+
 
 
 



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



svn commit: r1546382 - /tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java

2013-11-28 Thread markt
Author: markt
Date: Thu Nov 28 14:55:03 2013
New Revision: 1546382

URL: http://svn.apache.org/r1546382
Log:
Additional fix required for bug 55799

Modified:
tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java

Modified: 
tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java?rev=1546382&r1=1546381&r2=1546382&view=diff
==
--- tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java 
(original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java 
Thu Nov 28 14:55:03 2013
@@ -758,7 +758,7 @@ public abstract class WsRemoteEndpointIm
 }
 }
 
-private static class WsOutputStream extends OutputStream {
+private class WsOutputStream extends OutputStream {
 
 private final WsRemoteEndpointImplBase endpoint;
 private final ByteBuffer buffer = 
ByteBuffer.allocate(Constants.DEFAULT_BUFFER_SIZE);
@@ -836,6 +836,7 @@ public abstract class WsRemoteEndpointIm
 private void doWrite(boolean last) throws IOException {
 buffer.flip();
 endpoint.startMessageBlock(Constants.OPCODE_BINARY, buffer, last);
+stateMachine.complete(last);
 buffer.clear();
 }
 }



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



svn commit: r1546383 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java

2013-11-28 Thread markt
Author: markt
Date: Thu Nov 28 14:55:50 2013
New Revision: 1546383

URL: http://svn.apache.org/r1546383
Log:
Additional fix required for bug 55799

Modified:
tomcat/tc7.0.x/trunk/   (props changed)

tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java

Propchange: tomcat/tc7.0.x/trunk/
--
  Merged /tomcat/trunk:r1546382

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java?rev=1546383&r1=1546382&r2=1546383&view=diff
==
--- 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java
 (original)
+++ 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpointImplBase.java
 Thu Nov 28 14:55:50 2013
@@ -793,7 +793,7 @@ public abstract class WsRemoteEndpointIm
 }
 }
 
-private static class WsOutputStream extends OutputStream {
+private class WsOutputStream extends OutputStream {
 
 private final WsRemoteEndpointImplBase endpoint;
 private final ByteBuffer buffer = ByteBuffer.allocate(8192);
@@ -871,6 +871,7 @@ public abstract class WsRemoteEndpointIm
 private void doWrite(boolean last) throws IOException {
 buffer.flip();
 endpoint.startMessageBlock(Constants.OPCODE_BINARY, buffer, last);
+stateMachine.complete(last);
 buffer.clear();
 }
 }



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



[Bug 55799] [websocket] Stability issues when concurrently sending large messages

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55799

Mark Thomas  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #18 from Mark Thomas  ---
Should be fixed now. Test case appears to work. (No errors reported)

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



[jira] [Commented] (MTOMCAT-211) The .war file is not extracted from executable war

2013-11-28 Thread Tim Astle (JIRA)

[ 
https://issues.apache.org/jira/browse/MTOMCAT-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834917#comment-13834917
 ] 

Tim Astle commented on MTOMCAT-211:
---

Should the fix version of this issue be updated to 2.3?  Or is this issue 
separate of the one [~kkolinko] had mentioned above?  (Just seeking 
clarification on the thread.)

> The .war file is not extracted from executable war
> --
>
> Key: MTOMCAT-211
> URL: https://issues.apache.org/jira/browse/MTOMCAT-211
> Project: Apache Tomcat Maven Plugin
>  Issue Type: Bug
>  Components: tomcat7
>Affects Versions: 2.2
> Environment: Windows 7 64bit, Oracle JDK-1.7.0.11, Maven-2.2
>Reporter: Petr Novak
>Assignee: Olivier Lamy (*$^¨%`£)
> Fix For: 2.2
>
> Attachments: maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar, 
> maven-tomcat-test.zip
>
>
> I create simple web-app project, build it by mvn clean package.
> Than I try to execute the created JAR, but the following exception was thrown:
> java -jar maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar
> Exception in thread "main" java.io.FileNotFoundException: 
> .extract\webapps\ctx\test.war (The system cannot find the path specified)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.(FileOutputStream.java:212)
> at java.io.FileOutputStream.(FileOutputStream.java:165)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.expand(Tomcat7Runner.java:680)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:555)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:200)
> at 
> org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:204)
> When I look at ".extract\webapps\ctx\" , the folder is empty.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

-
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-11-28 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/1600

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] 1546373
Blamelist: markt

Build succeeded!

sincerely,
 -The Buildbot





[Bug 55824] HandshakeRequest.getHttpSession() may return null at ServerEndpointConfig.Configurator.modifyHandshake time

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55824

--- Comment #6 from Niklas Hallqvist  ---
OK, I accept the ruling, no problems.

I made the Configurator a @WebListener to get at the context instead.  It's
actually a better design.  Thanks for bearing with me.  I post this final
comment here since it may be useful resolution for others having the same
issue.

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



[jira] [Commented] (MTOMCAT-211) The .war file is not extracted from executable war

2013-11-28 Thread Alexander Pechersky (JIRA)

[ 
https://issues.apache.org/jira/browse/MTOMCAT-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834994#comment-13834994
 ] 

Alexander Pechersky commented on MTOMCAT-211:
-

It certainly appears to be the same issue. When do you guys plan to release 2.3 
? At the moment, "exec-war" goal in 2.2 is completely unusable because of this 
problem.

> The .war file is not extracted from executable war
> --
>
> Key: MTOMCAT-211
> URL: https://issues.apache.org/jira/browse/MTOMCAT-211
> Project: Apache Tomcat Maven Plugin
>  Issue Type: Bug
>  Components: tomcat7
>Affects Versions: 2.2
> Environment: Windows 7 64bit, Oracle JDK-1.7.0.11, Maven-2.2
>Reporter: Petr Novak
>Assignee: Olivier Lamy (*$^¨%`£)
> Fix For: 2.2
>
> Attachments: maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar, 
> maven-tomcat-test.zip
>
>
> I create simple web-app project, build it by mvn clean package.
> Than I try to execute the created JAR, but the following exception was thrown:
> java -jar maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar
> Exception in thread "main" java.io.FileNotFoundException: 
> .extract\webapps\ctx\test.war (The system cannot find the path specified)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.(FileOutputStream.java:212)
> at java.io.FileOutputStream.(FileOutputStream.java:165)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.expand(Tomcat7Runner.java:680)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:555)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:200)
> at 
> org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:204)
> When I look at ".extract\webapps\ctx\" , the folder is empty.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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



[jira] [Updated] (MTOMCAT-211) The .war file is not extracted from executable war

2013-11-28 Thread *$^¨%`£

 [ 
https://issues.apache.org/jira/browse/MTOMCAT-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy (*$^¨%`£) updated MTOMCAT-211:
---

Fix Version/s: (was: 2.2)
   3.0

> The .war file is not extracted from executable war
> --
>
> Key: MTOMCAT-211
> URL: https://issues.apache.org/jira/browse/MTOMCAT-211
> Project: Apache Tomcat Maven Plugin
>  Issue Type: Bug
>  Components: tomcat7
>Affects Versions: 2.2
> Environment: Windows 7 64bit, Oracle JDK-1.7.0.11, Maven-2.2
>Reporter: Petr Novak
>Assignee: Olivier Lamy (*$^¨%`£)
> Fix For: 3.0
>
> Attachments: maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar, 
> maven-tomcat-test.zip
>
>
> I create simple web-app project, build it by mvn clean package.
> Than I try to execute the created JAR, but the following exception was thrown:
> java -jar maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar
> Exception in thread "main" java.io.FileNotFoundException: 
> .extract\webapps\ctx\test.war (The system cannot find the path specified)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.(FileOutputStream.java:212)
> at java.io.FileOutputStream.(FileOutputStream.java:165)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.expand(Tomcat7Runner.java:680)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:555)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:200)
> at 
> org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:204)
> When I look at ".extract\webapps\ctx\" , the folder is empty.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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



[jira] [Reopened] (MTOMCAT-211) The .war file is not extracted from executable war

2013-11-28 Thread *$^¨%`£

 [ 
https://issues.apache.org/jira/browse/MTOMCAT-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy (*$^¨%`£) reopened MTOMCAT-211:



> The .war file is not extracted from executable war
> --
>
> Key: MTOMCAT-211
> URL: https://issues.apache.org/jira/browse/MTOMCAT-211
> Project: Apache Tomcat Maven Plugin
>  Issue Type: Bug
>  Components: tomcat7
>Affects Versions: 2.2
> Environment: Windows 7 64bit, Oracle JDK-1.7.0.11, Maven-2.2
>Reporter: Petr Novak
>Assignee: Olivier Lamy (*$^¨%`£)
> Fix For: 3.0
>
> Attachments: maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar, 
> maven-tomcat-test.zip
>
>
> I create simple web-app project, build it by mvn clean package.
> Than I try to execute the created JAR, but the following exception was thrown:
> java -jar maven-tomcat-test-0.0.1-SNAPSHOT-war-exec.jar
> Exception in thread "main" java.io.FileNotFoundException: 
> .extract\webapps\ctx\test.war (The system cannot find the path specified)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.(FileOutputStream.java:212)
> at java.io.FileOutputStream.(FileOutputStream.java:165)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.expand(Tomcat7Runner.java:680)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.extract(Tomcat7Runner.java:555)
> at 
> org.apache.tomcat.maven.runner.Tomcat7Runner.run(Tomcat7Runner.java:200)
> at 
> org.apache.tomcat.maven.runner.Tomcat7RunnerCli.main(Tomcat7RunnerCli.java:204)
> When I look at ".extract\webapps\ctx\" , the folder is empty.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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



[GUMP@vmgump]: Project tomcat-trunk-test (in module tomcat-trunk) failed

2013-11-28 Thread Bill Barker
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project tomcat-trunk-test has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- tomcat-trunk-test :  Tomcat 8.x, a web server implementing the Java 
Servlet 3.1,
...


Full details are available at:

http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Dependency on junit exists, no need to add for property hamcrest.jar.
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
commons-daemon.native.src.tgz.
 -DEBUG- Dependency on commons-daemon exists, no need to add for property 
tomcat-native.tar.gz.
 -DEBUG- Dependency on tomcat-trunk exists, no need to add for property 
tomcat-dbcp.home.
 -INFO- Failed with reason build failed
 -INFO- Project Reports in: 
/srv/gump/public/workspace/tomcat-trunk/output/build/logs



The following work was performed:
http://vmgump.apache.org/gump/public/tomcat-trunk/tomcat-trunk-test/gump_work/build_tomcat-trunk_tomcat-trunk-test.html
Work Name: build_tomcat-trunk_tomcat-trunk-test (Type: Build)
Work ended in a state of : Failed
Elapsed: 17 secs
Command Line: /usr/lib/jvm/java-7-oracle/bin/java -Djava.awt.headless=true 
-Dbuild.sysclasspath=only org.apache.tools.ant.Main 
-Dgump.merge=/srv/gump/public/gump/work/merge.xml 
-Djunit.jar=/srv/gump/public/workspace/junit/dist/junit-20131129.jar 
-Dobjenesis.jar=/srv/gump/public/workspace/objenesis/main/target/objenesis-2.2-SNAPSHOT.jar
 
-Dtomcat-native.tar.gz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20131129-native-src.tar.gz
 -Dexamples.sources.skip=true 
-Dtomcat-dbcp.home=/srv/gump/public/workspace/tomcat-trunk/tomcat-deps 
-Djdt.jar=/srv/gump/packages/eclipse/plugins/org.eclipse.jdt.core_3.4.2/jdtcore.jar
 
-Dcommons-daemon.jar=/srv/gump/public/workspace/apache-commons/daemon/dist/commons-daemon-20131129.jar
 
-Dcommons-daemon.native.src.tgz=/srv/gump/public/workspace/apache-commons/daemon/dist/bin/commons-daemon-20131129-native-src.tar.gz
 -Dtest.accesslog=true 
-Dcommons-pool.home=/srv/gump/public/workspace/apache-commons/pool 
-Dcommons-dbcp.home=/
 srv/gump/public/workspace/apache-commons/dbcp 
-Deasymock.jar=/srv/gump/public/workspace/easymock/easymock/target/easymock-3.3-SNAPSHOT.jar
 -Dhamcrest.jar=/srv/gump/public/workspace/junit/dist/junit-20131129.jar 
-Dcglib.jar=/srv/gump/packages/cglib/cglib-nodep-2.2.jar test 
[Working Directory: /srv/gump/public/workspace/tomcat-trunk]
CLASSPATH: 
/usr/lib/jvm/java-7-oracle/lib/tools.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/webapps/examples/WEB-INF/classes:/srv/gump/public/workspace/tomcat-trunk/output/testclasses:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit4.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swing.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/bin/bootstrap.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/bin/tomcat-juli.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/annotations-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/servle
 
t-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jsp-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/el-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/websocket-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-ant.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-storeconfig.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-coyote.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jasper.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/jasper-el.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-tribes.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/catalina-ha.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-api.jar:/srv/gump/public/workspace/tomcat-trunk/output/build/lib/tomcat-jni.jar:/srv/gump/public/workspace/tomcat
 
-trunk/output/build/lib/tomcat-spdy.jar:/srv/gump/public/workspace/tomcat-trunk

[Bug 55799] [websocket] Stability issues when concurrently sending large messages

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55799

--- Comment #19 from Nick Williams  ---
Confirmed. Looks like it is working now. Thanks!

-- 
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 55804] SPNEGOAUTHENTICATOR - GSSCredential does not get renewed after RemainingLifeTime is less than zero

2013-11-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55804

--- Comment #4 from Sachin Kumar  ---
Sure thanks Mark. Can we have this fix soon?

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