[weld-issues] [JBoss JIRA] (WELD-2260) Mixed Servlet & SE CDIProvider

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament edited a comment on  WELD-2260  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mixed Servlet & SE CDIProvider   
 

  
 
 
 
 

 
 This is the change that broke this functionality https://github.com/weld/core/commit/8f88f99e1be35061109d6904d4fe33565d49e975And hence the workaround - manually set the container ID.I suspect that the fix is to use the container ID from the passed in bean manager.Its worth clarifying - the only way the work around works is to use the string constant {{STATIC_INSTANCE}} any other value causes it to fail.   In addition, the work around does not work if you're using {{StartMain}}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2260) Mixed Servlet & SE CDIProvider

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament edited a comment on  WELD-2260  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mixed Servlet & SE CDIProvider   
 

  
 
 
 
 

 
 This is the change that broke this functionality https://github.com/weld/core/commit/8f88f99e1be35061109d6904d4fe33565d49e975And hence the workaround - manually set the container ID.I suspect that the fix is to use the container ID from the passed in bean manager. Its worth clarifying - the only way the work around works is to use the string constant {{STATIC_INSTANCE}} any other value causes it to fail.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2260) Mixed Servlet & SE CDIProvider

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament commented on  WELD-2260  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mixed Servlet & SE CDIProvider   
 

  
 
 
 
 

 
 This is the change that broke this functionality https://github.com/weld/core/commit/8f88f99e1be35061109d6904d4fe33565d49e975 And hence the workaround - manually set the container ID. I suspect that the fix is to use the container ID from the passed in bean manager.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2260) Mixed Servlet & SE CDIProvider

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament commented on  WELD-2260  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Mixed Servlet & SE CDIProvider   
 

  
 
 
 
 

 
 Martin, after debugging through this, I don't think that's the problem. From what I understand, WeldServletLifecycle.BEAN_MANAGER_ATTRIBUTE_NAME was explicitly added to handle this case, where the bean manager is already booted (or in process of being booted). Weld Servlet should be looking at that bean manager alone. I suspect this is what Listener.using(BeanManager) is meant for. However it seems like this attribute isn't being used currently.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails when container bootstrapped outside

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2223  
 
 
  Registering servlet listener on tomcat embedded fails when container bootstrapped outside   
 

  
 
 
 
 

 
Change By: 
 John Ament  
 
 
Summary: 
 Registering servlet listener on tomcat embedded fails  when container bootstrapped outside  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails when container bootstrapped outside

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament edited a comment on  WELD-2223  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Registering servlet listener on tomcat embedded fails when container bootstrapped outside   
 

  
 
 
 
 

 
 i was able to dig into this a bit deeper w/ some tomcat guysWhat I'm seeing is that during the execution of tomcat bootstrap during  `  {{ AfterDeploymentValidation ` }}  this synchronized block causes a deadlock on the calling threadhttps://github.com/weld/core/blob/2.4/impl/src/main/java/org/jboss/weld/servlet/HttpContextLifecycle.java#L140I'm going to try to dig in further to take a thread dump.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament commented on  WELD-2223  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Registering servlet listener on tomcat embedded fails   
 

  
 
 
 
 

 
 Here's output from main thread:  
 
 
 
 
 Name: main  
 
 
 State: WAITING on java.util.concurrent.FutureTask@70a09034  
 
 
 Total blocked: 0  Total waited: 45  
 
 
    
 
 
 Stack trace:   
 
 
 sun.misc.Unsafe.park(Native Method)  
 
 
 java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)  
 
 
 java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429)  
 
 
 java.util.concurrent.FutureTask.get(FutureTask.java:191)  
 
 
 org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:939)  
 
 
- locked org.apache.catalina.core.StandardEngine@120b1811  
 
 
 org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)  
 
 
- locked org.apache.catalina.core.StandardEngine@120b1811  

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2223  
 
 
  Registering servlet listener on tomcat embedded fails   
 

  
 
 
 
 

 
Change By: 
 John Ament  
 
 
Affects Version/s: 
 2.4.0.Final  
 
 
Affects Version/s: 
 2.3.5.Final  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2223  
 
 
  Registering servlet listener on tomcat embedded fails   
 

  
 
 
 
 

 
Change By: 
 John Ament  
 
 
Priority: 
 Major Minor  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2223  
 
 
  Registering servlet listener on tomcat embedded fails   
 

  
 
 
 
 

 
Change By: 
 John Ament  
 
 
Component/s: 
 Servlet Container Support  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2223) Registering servlet listener on tomcat embedded fails

2016-12-03 Thread John Ament (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 John Ament reopened an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 i was able to dig into this a bit deeper w/ some tomcat guys What I'm seeing is that during the execution of tomcat bootstrap during `AfterDeploymentValidation` this synchronized block causes a deadlock on the calling thread https://github.com/weld/core/blob/2.4/impl/src/main/java/org/jboss/weld/servlet/HttpContextLifecycle.java#L140 I'm going to try to dig in further to take a thread dump.  
 

  
 
 
 
 

 
 Weld /  WELD-2223  
 
 
  Registering servlet listener on tomcat embedded fails   
 

  
 
 
 
 

 
Change By: 
 John Ament  
 
 
Resolution: 
 Rejected  
 
 
Status: 
 Resolved Reopened  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)