Re: [potential?] bug in Tomcat 7's websocket UpgradeUtil when handling concurrent connections that use a custom ServerEndpointConfig.Configurator
On 27/10/2013 21:14, Bob DeRemer wrote: First off, this is the 2nd [potential] bug I've reposted from the user list, so my apologies. After reading the mailing list descriptions, it seems potential bugs should be posted to the DEV list. If this is wrong, just let me know. Generally, if you are unsure post to the users list first. If it needs to move to the dev list, someone will say so. There is often merit in discussing it on the users list anyway as it givers other folks a chance to say me too and add their information to the discussion. When a users list discussion reaches the point where folks are fairly sure there is a bug then a Bugzilla entry can be created. Often you'll see a committer ask someone to create one as a result of a discussion. Posts like this to the dev list are fine but there is a risk (unlikely in this case) that the report gets forgotten about if a Bugzilla entry isn't created. I haven't looked into the detail of this problem - that is next on my TODO list - but I wanted to address the Is it OK to do this? aspect first. Mark Potential Bug? I [think] there may be a problem in Tomcat's static UpgradeUtil.doUpgrade logic when handling concurrent connection/upgrade requests that rely on a custom ServerEndpointConfig.Configurator.modifyHandshake to grab [per-upgrade-request] client header values and inject them into the wsSession that is being created. Specifically, the static doUpgrade does not appear to make a copy of the ServerEndpointConfig before calling modifyHandshake. As a result, any per-connection headers the Configurator may grab and put in the ServerEndpointConfig.UserProperties map will be overwritten by the last upgrade request that occurs before the upgrade logic creates the new wsSession in the WsHttpUpgradeHandler.init call. I am able to replicate this very easily by using the following server configurator code. By making concurrent websocket connect requests that place a unique client-id in the upgrade request headers, then grabbing that client-id property using the code below, ALL websocket sessions that get created will have the last client-id header value that came in concurrently. public class Jsr356ServerConfigurator extends ServerEndpointConfig.Configurator { @Override public void modifyHandshake(ServerEndpointConfig config, HandshakeRequest request, HandshakeResponse response) { // get the request headers - looking for security claims and endpoint ID // claims will be checked in the OnOpen call and the connection closed if AUTH check fails MapString, ListString headers = request.getHeaders(); String id = headers.get(client-id).get(0); config.getUserProperties().put(client-id, id); } } @ServerEndpoint(...) Public class MyServer { @OnOpen public void onOpen(Session session) { String id = (String) session.getUserProperties().get(client-id); _logger.warn(client ID: {}, id); } } Based on chapter 3 of the JSR-356 API document, the actual websocket handshake process defined in the websocket spec, and the online description of the process in this stackoverflow link (http://stackoverflow.com/questions/17936440/accessing-httpsession-from-httpservletrequest-in-a-web-socket-socketendpoint/17994303#17994303), it appears that we should be able to pass per-client information in the upgrade headers and we should be able to get them into the endpoint INSTANCE's Session user properties. If this is a bug, please confirm and I will create a bugzilla entry, as it is very important that that we be able to do what I've described above. If this is not a bug, can someone please describe how to obtain per-client instance data during the websocket handshake/onOpen process? Thanks, Bob - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: [potential?] bug in Tomcat 7's websocket UpgradeUtil when handling concurrent connections that use a custom ServerEndpointConfig.Configurator
On 27/10/2013 21:14, Bob DeRemer wrote: Potential Bug? I [think] there may be a problem in Tomcat's static UpgradeUtil.doUpgrade logic when handling concurrent connection/upgrade requests that rely on a custom ServerEndpointConfig.Configurator.modifyHandshake to grab [per-upgrade-request] client header values and inject them into the wsSession that is being created. Specifically, the static doUpgrade does not appear to make a copy of the ServerEndpointConfig before calling modifyHandshake. As a result, any per-connection headers the Configurator may grab and put in the ServerEndpointConfig.UserProperties map will be overwritten by the last upgrade request that occurs before the upgrade logic creates the new wsSession in the WsHttpUpgradeHandler.init call. I've looked through the specification, the Javadoc and the EG archives and I can't find any justification for the copying of ServerEndpointConfig.userProperties to Session.userProperties I am able to replicate this very easily by using the following server configurator code. By making concurrent websocket connect requests that place a unique client-id in the upgrade request headers, then grabbing that client-id property using the code below, ALL websocket sessions that get created will have the last client-id header value that came in concurrently. snip/ Based on chapter 3 of the JSR-356 API document, the actual websocket handshake process defined in the websocket spec, Hmm. I don't see any justification for the current behaviour in these documents and the online description of the process in this stackoverflow link (http://stackoverflow.com/questions/17936440/accessing-httpsession-from-httpservletrequest-in-a-web-socket-socketendpoint/17994303#17994303), it appears that we should be able to pass per-client information in the upgrade headers and we should be able to get them into the endpoint INSTANCE's Session user properties. I don't see any justification for this position either. However, I do think that it is correct. I'll update Tomcat's implementation to align with Jetty's. I also opened https://java.net/jira/browse/WEBSOCKET_SPEC-215 If this is a bug, please confirm and I will create a bugzilla entry, as it is very important that that we be able to do what I've described above. It isn't a bug. It is a bug / grey area / whatever in the spec. If you do create this, please also include the reference to WEBSOCKET_SPEC-215. I'm going to start work on updating Tomcat just as soon as I finish typing this. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: [potential?] bug in Tomcat 7's websocket UpgradeUtil when handling concurrent connections that use a custom ServerEndpointConfig.Configurator
On 28/10/2013 12:18, Mark Thomas wrote: I'm going to start work on updating Tomcat just as soon as I finish typing this. Try now. I've applied to fix to both 8.0.x and 7.0.x for the next release of each. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
RE: [potential?] bug in Tomcat 7's websocket UpgradeUtil when handling concurrent connections that use a custom ServerEndpointConfig.Configurator
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Monday, October 28, 2013 8:53 AM To: Tomcat Developers List Subject: Re: [potential?] bug in Tomcat 7's websocket UpgradeUtil when handling concurrent connections that use a custom ServerEndpointConfig.Configurator On 28/10/2013 12:18, Mark Thomas wrote: I'm going to start work on updating Tomcat just as soon as I finish typing this. Try now. I've applied to fix to both 8.0.x and 7.0.x for the next release of each. Mark Thanks for the quick turnaround -bob - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 53151] Tomcat 7 SimpleTCPCluster.java does not send payload on Start Stop
https://issues.apache.org/bugzilla/show_bug.cgi?id=53151 --- Comment #3 from Nilesh sapl...@yahoo.com 2012-04-27 06:01:48 UTC --- Thanks Keiichi for the detailed reply. Appreciated! Thanks Nilesh -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 53151] Tomcat 7 SimpleTCPCluster.java does not send payload on Start Stop
https://issues.apache.org/bugzilla/show_bug.cgi?id=53151 Nilesh sapl...@yahoo.com changed: What|Removed |Added OS/Version||All --- Comment #1 from Nilesh sapl...@yahoo.com 2012-04-26 06:34:51 UTC --- Similar issue present for stopInternal() Method. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 53151] Tomcat 7 SimpleTCPCluster.java does not send payload on Start Stop
https://issues.apache.org/bugzilla/show_bug.cgi?id=53151 Keiichi Fujino kfuj...@apache.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WONTFIX --- Comment #2 from Keiichi Fujino kfuj...@apache.org 2012-04-27 04:20:25 UTC --- Life-cycle implementation was refactored in Tomcat7 . As the result, SimpleTcpCluster in Tomcat7 has inherited LifecycleBase and LifecycleBase notifies a life cycle event. Therefore, the upper code is unnecessary to the SimpleTcpCluster in Tomcat7. However, as the side effects of this refactoring, In Tomcat7.0, instance of SimpleTcpCluster is no longer set to the data field of LifecycleEvent. In Tomcat6, it was set as the second argument. Therefore, if your LifecycleListener used getData() method in order to get instance of SimpleTcpCluster, you must use getLifecycle() method instead of getData() method. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #6 from Felix Schumacher felix.schumac...@internetallee.de 2011-06-30 08:14:57 UTC --- I think Mali is right and his test case is valid. If you try the servlet in a freshly downloaded tomcat you will get 0 as result. If you spice up his testcase a little bit, you will see, that one instance of the servlet will get initialized and another one will be used for the request. That is what SingleThreadModel is for. I think the logic changed from 6.0 to 7.0 that there is only one (StandardWrapper-wide) instance variable which tells tomcat whether the servlet is initialized or not. This initialization has moved to allocate. That means, that one servlet gets initialized and every other newly created instance for the pool (instancePool) will not be initialized. In tomcat6.0 I believe the newly created servlets were initialized in loadServlet. Marks testcase could be testing the wrong thing by providing an instance for a SingleThreadModel-servlet on its own. Could that be? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #7 from Felix Schumacher felix.schumac...@internetallee.de 2011-06-30 10:39:50 UTC --- Created attachment 27230 -- https://issues.apache.org/bugzilla/attachment.cgi?id=27230 init every servlet if it is a SingleThreadMode servlet -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #8 from Mark Thomas ma...@apache.org 2011-06-30 11:58:40 UTC --- Further investigation shows that o.a.catalina.startup.Tomcat (that is the basis for most of the unit tests) didn't handle SingleThreadModel servlets. I have fixed that and improved the unit tests in that area. Since the handling for SingleThreadModel servlets is slightly different, I need to put together a different unit test for this issue. Working on that now. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 Mark Thomas ma...@apache.org changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||FIXED --- Comment #9 from Mark Thomas ma...@apache.org 2011-06-30 12:17:16 UTC --- Unit test now reproduce this. The bug has been fixed in 7.0.x and the fix will be included in 7.0.17 onwards. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #10 from Mark Thomas ma...@apache.org 2011-06-30 12:17:35 UTC --- As an aside, I used a variation of Felix's patch. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #11 from Mali bhatu.m...@gmail.com 2011-06-30 12:59:43 UTC --- May I know how to fix this bug in tomcat 7.0.16 or I have to wait for tomcat 7.0.17 ! May I know the tentative date for tomcat 7.0.17 release ! -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #12 from Christopher Schultz ch...@christopherschultz.net 2011-06-30 20:07:09 UTC --- (In reply to comment #11) May I know how to fix this bug in tomcat 7.0.16 or I have to wait for tomcat 7.0.17 ! May I know the tentative date for tomcat 7.0.17 release ! If you are comfortable using svn to get diffs for the files involved, patching them, and re-building Tomcat, you can look at Mark's patch here: http://svn.apache.org/viewvc?view=revisionrevision=1141502 If you'd rather not patch but don't mind building and living on the edge, you can get svn trunk and use that. Otherwise, you'll have to wait for 7.0.17. Mark is the release manager for 7.0.x and has tried to keep to a roughly-monthly schedule for releasing patch levels for 7.0.x, so I would expect one in the next 20 days or so (if the release gets enough votes). If you have any further questions about releases, please ask on the users list. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #4 from Christopher Schultz ch...@christopherschultz.net 2011-06-29 14:04:44 UTC --- Please provide a test case that fails on a current version of Tomcat downloaded directly from the Apache site. Mark's analysis is that the test case you provided works in his environment. It's up to you to prove that it doesn't work by reproducing the circumstances. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 Mali bhatu.m...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WORKSFORME | --- Comment #5 from Mali bhatu.m...@gmail.com 2011-06-30 05:50:57 UTC --- What I hava to provide exactly in test case (as I am new here). All I can provide is I have tested same in apache-tomcat-7.0.12, apache-tomcat-7.0.16 with JDK jdk1.6.0_13, jdk1.6.0_26 in PC Linux OS. The servlet I have provided should print 10 rather than 0. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 Mark Thomas ma...@apache.org changed: What|Removed |Added Severity|critical|normal --- Comment #1 from Mark Thomas ma...@apache.org 2011-06-28 16:35:07 UTC --- Reducing severity. SingleThreadModel has been deprecated for as long as I can remember so this is not critical. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 Mark Thomas ma...@apache.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Comment #2 from Mark Thomas ma...@apache.org 2011-06-28 18:01:25 UTC --- This works for me with the latest 7.0.x code. I've added to test case that checks this just to be on the safe side. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 51445] Tomcat 7 SingleThreadModel Problem
https://issues.apache.org/bugzilla/show_bug.cgi?id=51445 --- Comment #3 from bhatu.m...@gmail.com bhatu.m...@gmail.com 2011-06-29 05:18:03 UTC --- (In reply to comment #2) This works for me with the latest 7.0.x code. I've added to test case that checks this just to be on the safe side. (In reply to comment #2) This works for me with the latest 7.0.x code. I've added to test case that checks this just to be on the safe side. I think tomcat 7.0.16 has same problem. SingleThreadModel model is obviously deprecated but we have some old servlets in which it is used, and we can not change that code by some reasons. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
Re: Confirming a bug with Tomcat 7 and Java Mail.
On 14/03/2011 23:11, Peter P. Lupo wrote: Just to be clear: you don't have to try sending an e-mail. Just add the jar and try to get a response or two from an app running on Tomcat 7. I don't see this error. The users list is the place to debug this. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Confirming a bug with Tomcat 7 and Java Mail.
2011/3/15 Peter P. Lupo ppl...@gmail.com: I would open an issue on Bugzilla but first I'd like to check it with you guys. I'm trying to add mail.jar (Java Mail) to my app's lib (the problem also happens with tomcat's lib). It is quite simple. If I do it, I start getting Exception in thread http-bio-8080 error and it keeps printing it like in a loop. The problem starts as soon as I make a request to a servlet or to a jsf page. Everything goes fine on latest Tomcat 6 but it gives me this error on versions 7.0.8 and 7.0.11 (only tried on those). Which version of mail.jar? Where did you get it from? Is it specific to your application, or placing it into examples webapp (that comes with Tomcat) and calling any servlet there will also trigger the issue? What specific error are you observing? Exception in thread does not say much. Though it looks like an uncaught exception in a thread, as printed by ThreadGroup.uncaughtException(...). There should be a stack trace. Please cite it. My environment is Windows 7 64-bit, JDK 7 64-bit 1.7.0-ea-b125. Maybe any of you could give it a try to confirm the possible bug but I am most certain about it. Just to be clear: you don't have to try sending an e-mail. Just add the jar and try to get a response or two from an app running on Tomcat 7. Mark wrote: The users list is the place to debug this. +1 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Confirming a bug with Tomcat 7 and Java Mail.
I would open an issue on Bugzilla but first I'd like to check it with you guys. I'm trying to add mail.jar (Java Mail) to my app's lib (the problem also happens with tomcat's lib). It is quite simple. If I do it, I start getting Exception in thread http-bio-8080 error and it keeps printing it like in a loop. The problem starts as soon as I make a request to a servlet or to a jsf page. Everything goes fine on latest Tomcat 6 but it gives me this error on versions 7.0.8 and 7.0.11 (only tried on those). My environment is Windows 7 64-bit, JDK 7 64-bit 1.7.0-ea-b125. Maybe any of you could give it a try to confirm the possible bug but I am most certain about it. Just to be clear: you don't have to try sending an e-mail. Just add the jar and try to get a response or two from an app running on Tomcat 7. Congratulations on the new version. Regards, Peter P. Lupo http://craftnicely.blogspot.com - http://sites.google.com/site/pplupo http://sites.google.com/site/pplupoMPS.BR Authorized Implementation Practitionerhttp://www.softex.br/mpsbr/_profissionais/MPS.BR_certificados_de_arovacao_prova_P2-MPS.BR.pdf- Certified ScrumMaster http://www.scrumalliance.org/pages/certified_scrummaster http://www.scrumalliance.org/pages/certified_scrummasterOracle Certified Associate, Java SE 5/SE 6http://in.sun.com/training/certification/java/scja.xml - Java Black Belt http://www.blackbeltfactory.com/ui#!User/pplupo http://www.blackbeltfactory.com/ui#!User/pplupo+55 (021) 81742487
DO NOT REPLY [Bug 50571] Tomcat 7 JDBC connection pool exception enhancement
https://issues.apache.org/bugzilla/show_bug.cgi?id=50571 --- Comment #6 from Filip Hanik fha...@apache.org 2011-01-12 11:11:22 EST --- What I propose, is to fix the actual bug, of ConnectionState swallowing the exception on pool startup. And we fix this bug, without introducing new bugs by changing too many signatures. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 50571] Tomcat 7 JDBC connection pool exception enhancement
https://issues.apache.org/bugzilla/show_bug.cgi?id=50571 --- Comment #7 from Jeremy Norris jnorri...@gmail.com 2011-01-12 12:37:33 EST --- Agreed, the actual bug is ConnectionState swallowing the exception on pool startup, however I suspect that fixing it properly will require some of the signatures to change. In my opinion, SQLException's needs to propagate all the way up to ConnectionPool.getConnection(). SQLException is a checked exception so when we propagate it from JdbcInterceptor, it will affect the callers signature unless that caller swallows it (not what we want) or wraps it in a RuntimeException (a bit clumsy). Thanks for your time and discussion, it's very appreciated. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 50571] Tomcat 7 JDBC connection pool exception enhancement
https://issues.apache.org/bugzilla/show_bug.cgi?id=50571 Filip Hanik fha...@apache.org changed: What|Removed |Added Status|NEW |NEEDINFO OS/Version||All --- Comment #1 from Filip Hanik fha...@apache.org 2011-01-11 16:47:08 EST --- hi Jeremy, I'm looking at your patch, and I will take a look at the connection state interceptor. most SQL exceptions, as you say, should percolate through when it makes sense. I wont apply the patch as it is, as I don't understand why most of the methods just change the signature of the method by adding throws SQLException. for example ConnectionPool.abandon doesn't really need to throw a SQLException best Filip -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 50571] Tomcat 7 JDBC connection pool exception enhancement
https://issues.apache.org/bugzilla/show_bug.cgi?id=50571 --- Comment #2 from Jeremy Norris jnorri...@gmail.com 2011-01-11 18:36:33 EST --- Hello, This initial use-case I was needing was for SQLExceptions originating in ConnectionState.reset() to propagate out of ConnectionPool.getConnection(). The rest of the changes cascaded from this: eg: ConnectionPool.abandon() - ConnectionPool.release() - PooledConnection.setHandler() - JdbcInterceptor.reset(). I suspect there will be more and that most APIs will possibly throw SQLException... Thanks. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 --- Comment #8 from Mark Thomas ma...@apache.org 2010-10-19 13:12:05 EDT --- I've done a little digging on this. The best definition of the required behaviour is actually in the Javadoc: quote Interface for receiving notification events about requests coming into and going out of scope of a web application. A ServletRequest is defined as coming into scope of a web application when it is about to enter the first servlet or filter of the web application, and as going out of scope as it exits the last servlet or the first filter in the chain. /quote Looking at Tomcat's current behaviour, it isn't firing the request listener for the request that displays the login page. That looks like a spec breach to me. I'll fix that and then see how the test case performs. If the test case is still broken then I'd lean towards the fixing this in Weld option. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 Mark Thomas ma...@apache.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #9 from Mark Thomas ma...@apache.org 2010-10-19 16:29:46 EDT --- I've fixed Tomcat 7 so it fires the ServletRequestListener events for the login and error page for FORM authentication. The supplied test case now passes. As part of this, I refactored the process of firing ServletRequestListener so any future change to the Servle spec will be simple to handle. The fix will be in the 7.0.5 onwards. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 --- Comment #10 from Flávio Henrique serv...@ig.com.br 2010-10-19 16:57:02 EDT --- Thanks Marks, the fix of this feature will accelerate CDI adoption in TOMCAT. (In reply to comment #9) I've fixed Tomcat 7 so it fires the ServletRequestListener events for the login and error page for FORM authentication. The supplied test case now passes. As part of this, I refactored the process of firing ServletRequestListener so any future change to the Servle spec will be simple to handle. The fix will be in the 7.0.5 onwards. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 --- Comment #7 from Mark Thomas ma...@apache.org 2010-10-12 08:13:04 EDT --- I don't see any reason to add this to Tomcat but it will probably be optional behaviour. If added this to my list of things to keep an eye on when the EG starts the next version of the spec. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 Mark Thomas ma...@apache.org changed: What|Removed |Added Status|NEEDINFO|NEW --- Comment #5 from Mark Thomas ma...@apache.org 2010-10-10 05:52:08 EDT --- Just updating status now info has been provided. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 --- Comment #6 from Pete Muir pm...@bleepbleep.org.uk 2010-10-10 11:47:10 EDT --- (Unfortunately) the Servlet spec provides no guarantees of the behaviour of request listeners if a forward occurs e.g. for FORM auth or to an error page. Tomcat (and derivatives such as Grizzly and JBossWeb) don't call request listeners around forwards, so Weld's listeners do not get fired. This can either be fixed in Tomcat by calling listeners around forwards (when I spoke to the Servlet EG lead about this, they indicated that they would look at specifying that there is some listener called around forwards in the future) or in Weld's Tomcat support by using Tomcat APIs to get a callback when forwards occur. Mark/anyone on the Tomcat team, if you don't want to make Tomcat call the request listeners around forwards, then we can do some custom hooks in the Weld/Tomcat integration code to get the needed callback. In this case, could the OP file an issue in the WELD issue tracker on http://jira.jboss.org. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 Mark Thomas ma...@apache.org changed: What|Removed |Added Status|NEW |NEEDINFO OS/Version||All --- Comment #1 from Mark Thomas ma...@apache.org 2010-10-08 06:50:57 EDT --- This bug report refers to JAAS but the Glassfish fix seems to be more related to FORM authentication. It isn't at all clear to me at this point what the problem is. A test case for Tomcat - with the necessary steps to re-create from a clean 7.0.x install - would help. What also isn't clear is whether there is a Servlet specification compliance issue or if CDI expects things to be a certain way and Tomcat does them differently. The former will certainly get fixed, the latter will probably get fixed. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 --- Comment #2 from Flávio Henrique serv...@ig.com.br 2010-10-08 11:36:21 EDT --- Sorry, the problem is related to FORM authentication, not JAAS. Again: sorry for this mistake. I will prepare the test as soon I reach my Office. Thanks -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 --- Comment #3 from Flávio Henrique serv...@ig.com.br 2010-10-08 22:25:58 EDT --- Created an attachment (id=26144) -- (https://issues.apache.org/bugzilla/attachment.cgi?id=26144) Tomcat FormAuthentication and CDI problem You will need to grab Weld 1.1.0 and put weld-1.1.0.Beta1\artifacts\weld\weld-servlet.jar inside WEB-CONTENT/lib, because I couldn´t updaload the project with the library (file size limit). You can download weld here http://seamframework.org/Weld/Downloads This problem happens with all Weld versions, even with the newest beta. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
DO NOT REPLY [Bug 49991] Tomcat 7 JAAS problem with CDI
https://issues.apache.org/bugzilla/show_bug.cgi?id=49991 --- Comment #4 from Flávio Henrique serv...@ig.com.br 2010-10-08 22:28:11 EDT --- Mark, here is the project for Eclipse Helios 3.6 SR1. You will need to grab Weld 1.1.0 and put weld-1.1.0.Beta1\artifacts\weld\weld-servlet.jar inside WEB-CONTENT/lib, because I couldn´t updaload the project with the library (file size limit). You can download weld here http://seamframework.org/Weld/Downloads This problem happens with all Weld versions, even with the newest beta. The instructions are in the readme.txt, that I will also put here: how to see the bug: 1 - import the project in Helios 3.6 SR1 2 - run on Tomcat 7.0.2 3 - try to access the protected page in restricted/restrictedpage.jsp (right click on the page and execute) 4 - you will get the exception org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped Comment the security constraint that fire the form authentication and you have NO exception. I also discoverd that: a) in eclipse, if you run restricted.jsp with right click (Run On Server) the exception is throw, but if you run the project and after the server start type the complete URL to restricted.jsp, the bug doesn´t happen. b) if you run on server the project and open the URL in another browser (don´t use eclipse build in browser), this problem happens. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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
is this bug in tomcat 7 ?
hello all, mbean-descripator.xml in org.apache.catalina.tribes package is the same as mbean-descripator.xml in org.apache.catalina.ha package Anas _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/
Re: is this bug in tomcat 7 ?
it's work to be done :) Anas Ahmed wrote: hello all, mbean-descripator.xml in org.apache.catalina.tribes package is the same as mbean-descripator.xml in org.apache.catalina.ha package Anas _ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org