[jira] [Commented] (OWB-1202) Don't require user to spin up a thread for long running SeContainer

2017-07-16 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16089072#comment-16089072
 ] 

Romain Manni-Bucau commented on OWB-1202:
-

Hmm, this is interesting cause I read the spec the opposite way. Kind of "you 
manage the container then manage the container" API style. Assume we start 
ourself a thread then we need

1. define an OWB SPI to do it in the way the user wants (I see at least 3 
different potential expectations: sync, async and managed, async and unamanaged)
2. ensure this API can start a thread (which is not required by spec AFAIK)
3. handle somehow (probably 1 but what about the default then) the case where 
you use it in a single threaded program :s

[~johndament] anything you see in the spec making that request needed or wanted?

> Don't require user to spin up a thread for long running SeContainer
> ---
>
> Key: OWB-1202
> URL: https://issues.apache.org/jira/browse/OWB-1202
> Project: OpenWebBeans
>  Issue Type: Improvement
>Reporter: John D. Ament
>
> Suppose I have a main method that just does this
> {code}
> SeContainerInitializer.newInstance().initialize();
> {code}
> I shouldn't be required to create a thread that will keep the container 
> alive.  It would be better if OWB kept it alive for me.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (OWB-1200) OWB 2 skips producer methods defined in annotated bean archives in SE

2017-07-16 Thread John D. Ament (JIRA)

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

John D. Ament resolved OWB-1200.

Resolution: Invalid

Non issue, see OWB-1201 for more details.

> OWB 2 skips producer methods defined in annotated bean archives in SE
> -
>
> Key: OWB-1200
> URL: https://issues.apache.org/jira/browse/OWB-1200
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Here's a code sample that fails for me
> https://github.com/astefanutti/metrics-cdi/blob/29e7bac497513de420543497612180331cc5d1b3/impl/src/main/java/io/astefanutti/metrics/cdi/MetricNameFactory.java#L24
> Basically, from what I can tell OWB 2 misses this producer method, I believe 
> because it doesn't have a scope but the outer bean class does have a scope.
> AFAIK, per the spec, this is implicitly a `@Dependent` producer and should 
> have been picked up because the outer bean is defined as a dependent scoped 
> bean.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OWB-1199) CDISeScannerService.autoScanning should be true by default

2017-07-16 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16088926#comment-16088926
 ] 

John D. Ament commented on OWB-1199:


LGTM thanks.  Just want to make sure we don't end up with regressions :-)

> CDISeScannerService.autoScanning should be true by default
> --
>
> Key: OWB-1199
> URL: https://issues.apache.org/jira/browse/OWB-1199
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Core
>Reporter: John D. Ament
> Fix For: 2.0.1
>
> Attachments: OWB_1199.patch
>
>
> The value of CDISeScannerService.autoScanning should be true by default.  
> There's no setter for this property, and the default value is false in java 
> so... this means this never does scanning.
> Here's a very simple patch to fix
> {code}
> Index: 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java
> ===
> --- 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java 
> (revision 1801946)
> +++ 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java 
> (working copy)
> @@ -44,7 +44,7 @@
>  
>  public class CDISeScannerService extends AbstractMetaDataDiscovery
>  {
> -private boolean autoScanning;
> +private boolean autoScanning = true;
>  private final Collection classes = new ArrayList<>();
>  
>  public OwbAnnotationFinder getFinder()
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (OWB-1201) OWB Not discovering JARs in a Capsule packaged JAR

2017-07-16 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16088925#comment-16088925
 ] 

John D. Ament edited comment on OWB-1201 at 7/16/17 1:09 PM:
-

I did just give it a shot, if I use the old style bootstrap, e.g.

{code}
lifecycle = 
WebBeansContext.currentInstance().getService(ContainerLifecycle.class);
lifecycle.startApplication(null);
{code}

It works exactly as in 1.7.x, so the issue has something to do with 
SeContainerInitializer's behavior.  I'll continue to dig into it.

*And* the issues in OWB-1200 don't replicate.


was (Author: johndament):
I did just give it a shot, if I use the old style bootstrap, e.g.

{code}
lifecycle = 
WebBeansContext.currentInstance().getService(ContainerLifecycle.class);
lifecycle.startApplication(null);
{code}

It works exactly as in 1.7.x, so the issue has something to do with 
SeContainerInitializer's behavior.  I'll continue to dig into it.

> OWB Not discovering JARs in a Capsule packaged JAR
> --
>
> Key: OWB-1201
> URL: https://issues.apache.org/jira/browse/OWB-1201
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Note: this may be the root of OWB-1200
> OWB doesn't seem to discover JARs within a capsule JAR.  I package my app 
> using a bunch of dependencies, and wrap it in a capsule JAR to simplify 
> deployment (rather than having all of the JARs dumped out onto the file 
> system).
> I noticed when using OWB 1.7.3 I get this output when starting:
> {code}
> Jul 15, 2017 10:41:55 PM org.apache.webbeans.lifecycle.AbstractLifeCycle 
> bootstrapApplication
> INFO: OpenWebBeans Container is starting...
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-microprofile-1.0-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-api-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-impl-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-brave-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-spi-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-core-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/rest-cxf-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-tomcat-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-metrics-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/cxf-integration-cdi-3.1.12.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/metrics-cdi-1.3.6.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 

[jira] [Commented] (OWB-1201) OWB Not discovering JARs in a Capsule packaged JAR

2017-07-16 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16088925#comment-16088925
 ] 

John D. Ament commented on OWB-1201:


I did just give it a shot, if I use the old style bootstrap, e.g.

{code}
lifecycle = 
WebBeansContext.currentInstance().getService(ContainerLifecycle.class);
lifecycle.startApplication(null);
{code}

It works exactly as in 1.7.x, so the issue has something to do with 
SeContainerInitializer's behavior.  I'll continue to dig into it.

> OWB Not discovering JARs in a Capsule packaged JAR
> --
>
> Key: OWB-1201
> URL: https://issues.apache.org/jira/browse/OWB-1201
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Note: this may be the root of OWB-1200
> OWB doesn't seem to discover JARs within a capsule JAR.  I package my app 
> using a bunch of dependencies, and wrap it in a capsule JAR to simplify 
> deployment (rather than having all of the JARs dumped out onto the file 
> system).
> I noticed when using OWB 1.7.3 I get this output when starting:
> {code}
> Jul 15, 2017 10:41:55 PM org.apache.webbeans.lifecycle.AbstractLifeCycle 
> bootstrapApplication
> INFO: OpenWebBeans Container is starting...
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-microprofile-1.0-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-api-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-impl-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-brave-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-spi-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-core-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/rest-cxf-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-tomcat-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-metrics-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/cxf-integration-cdi-3.1.12.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/metrics-cdi-1.3.6.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/joda-time-2.9.1.jar
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> 

[jira] [Commented] (OWB-1200) OWB 2 skips producer methods defined in annotated bean archives in SE

2017-07-16 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1607#comment-1607
 ] 

Romain Manni-Bucau commented on OWB-1200:
-

Hmm, need to check but it is possible we use the same impl for both 
(https://github.com/apache/openwebbeans/blob/d59ed0bdacb23c18e7b22cc9496fc38ec9aec10a/webbeans-spi/src/main/java/org/apache/webbeans/spi/BeanArchiveService.java#L40)
 but it doesn't look against the spec for me. Is there a paragraph making this 
assumption wrong?

> OWB 2 skips producer methods defined in annotated bean archives in SE
> -
>
> Key: OWB-1200
> URL: https://issues.apache.org/jira/browse/OWB-1200
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Here's a code sample that fails for me
> https://github.com/astefanutti/metrics-cdi/blob/29e7bac497513de420543497612180331cc5d1b3/impl/src/main/java/io/astefanutti/metrics/cdi/MetricNameFactory.java#L24
> Basically, from what I can tell OWB 2 misses this producer method, I believe 
> because it doesn't have a scope but the outer bean class does have a scope.
> AFAIK, per the spec, this is implicitly a `@Dependent` producer and should 
> have been picked up because the outer bean is defined as a dependent scoped 
> bean.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OWB-1200) OWB 2 skips producer methods defined in annotated bean archives in SE

2017-07-16 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1603#comment-1603
 ] 

John D. Ament commented on OWB-1200:


Agreed, this wouldn't work in an implicit bean archive.  However, this JAR is 
an explicit bean archive.  It has a beans.xml just with 
bean-discovery-mode=annotated.

> OWB 2 skips producer methods defined in annotated bean archives in SE
> -
>
> Key: OWB-1200
> URL: https://issues.apache.org/jira/browse/OWB-1200
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Here's a code sample that fails for me
> https://github.com/astefanutti/metrics-cdi/blob/29e7bac497513de420543497612180331cc5d1b3/impl/src/main/java/io/astefanutti/metrics/cdi/MetricNameFactory.java#L24
> Basically, from what I can tell OWB 2 misses this producer method, I believe 
> because it doesn't have a scope but the outer bean class does have a scope.
> AFAIK, per the spec, this is implicitly a `@Dependent` producer and should 
> have been picked up because the outer bean is defined as a dependent scoped 
> bean.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OWB-1201) OWB Not discovering JARs in a Capsule packaged JAR

2017-07-16 Thread John D. Ament (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1602#comment-1602
 ] 

John D. Ament commented on OWB-1201:


Hi,

The exact same sample works correctly w/ OWB 1.7.3.  I was planning to retry w/ 
1.7.4

There's not an easy sample to debug through, but something..

1. Checkout https://github.com/hammock-project/hammock/
2. Change dist-microprofile-cochise to include owb2 instead of owb bootstrap 
module
3. Build the project
4. Then run this example: 
https://github.com/hammock-project/hammock-examples/tree/master/hammock-microprofile
 using mvn clean install -Powb and running the output capsule JAR.

> OWB Not discovering JARs in a Capsule packaged JAR
> --
>
> Key: OWB-1201
> URL: https://issues.apache.org/jira/browse/OWB-1201
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Note: this may be the root of OWB-1200
> OWB doesn't seem to discover JARs within a capsule JAR.  I package my app 
> using a bunch of dependencies, and wrap it in a capsule JAR to simplify 
> deployment (rather than having all of the JARs dumped out onto the file 
> system).
> I noticed when using OWB 1.7.3 I get this output when starting:
> {code}
> Jul 15, 2017 10:41:55 PM org.apache.webbeans.lifecycle.AbstractLifeCycle 
> bootstrapApplication
> INFO: OpenWebBeans Container is starting...
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-microprofile-1.0-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-api-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-impl-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-brave-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-spi-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-core-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/rest-cxf-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-tomcat-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-metrics-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/cxf-integration-cdi-3.1.12.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/metrics-cdi-1.3.6.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/joda-time-2.9.1.jar
> Jul 15, 2017 10:41:55 PM 
> 

[jira] [Commented] (OWB-1199) CDISeScannerService.autoScanning should be true by default

2017-07-16 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16088872#comment-16088872
 ] 

Romain Manni-Bucau commented on OWB-1199:
-

pushed a test based on yours but didn't add the beans.xml to not have too much 
side effects if we enrich test set of default behavior (should already be done 
in other modules though for now). Please have a look and shout if it doesn't 
fit your expectations

> CDISeScannerService.autoScanning should be true by default
> --
>
> Key: OWB-1199
> URL: https://issues.apache.org/jira/browse/OWB-1199
> Project: OpenWebBeans
>  Issue Type: Bug
>  Components: Core
>Reporter: John D. Ament
> Fix For: 2.0.1
>
> Attachments: OWB_1199.patch
>
>
> The value of CDISeScannerService.autoScanning should be true by default.  
> There's no setter for this property, and the default value is false in java 
> so... this means this never does scanning.
> Here's a very simple patch to fix
> {code}
> Index: 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java
> ===
> --- 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java 
> (revision 1801946)
> +++ 
> webbeans-se/src/main/java/org/apache/openwebbeans/se/CDISeScannerService.java 
> (working copy)
> @@ -44,7 +44,7 @@
>  
>  public class CDISeScannerService extends AbstractMetaDataDiscovery
>  {
> -private boolean autoScanning;
> +private boolean autoScanning = true;
>  private final Collection classes = new ArrayList<>();
>  
>  public OwbAnnotationFinder getFinder()
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (OWB-1201) OWB Not discovering JARs in a Capsule packaged JAR

2017-07-16 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16088870#comment-16088870
 ] 

Romain Manni-Bucau commented on OWB-1201:
-

Hi

OWB default scanner scans jars (like in an exploded war). If capsule doesn't 
fit that then you need a custom scanner. This works for fatjars and standard 
classpaths.

> OWB Not discovering JARs in a Capsule packaged JAR
> --
>
> Key: OWB-1201
> URL: https://issues.apache.org/jira/browse/OWB-1201
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Note: this may be the root of OWB-1200
> OWB doesn't seem to discover JARs within a capsule JAR.  I package my app 
> using a bunch of dependencies, and wrap it in a capsule JAR to simplify 
> deployment (rather than having all of the JARs dumped out onto the file 
> system).
> I noticed when using OWB 1.7.3 I get this output when starting:
> {code}
> Jul 15, 2017 10:41:55 PM org.apache.webbeans.lifecycle.AbstractLifeCycle 
> bootstrapApplication
> INFO: OpenWebBeans Container is starting...
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-microprofile-1.0-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-api-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/deltaspike-core-impl-1.8.0.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-brave-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-spi-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/hammock-core-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/rest-cxf-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/web-tomcat-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/util-metrics-1.5-SNAPSHOT.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/cxf-integration-cdi-3.1.12.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> jar:file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/metrics-cdi-1.3.6.jar!/META-INF/beans.xml
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/joda-time-2.9.1.jar
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> INFO: added beans archive URL: 
> file:/Users/johnament/.capsule/apps/hammock-microprofile-1.0-SNAPSHOT-capsule/swagger-annotations-1.5.12.jar
> Jul 15, 2017 10:41:55 PM 
> org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery 
> addWebBeansXmlLocation
> 

[jira] [Commented] (OWB-1200) OWB 2 skips producer methods defined in annotated bean archives in SE

2017-07-16 Thread Romain Manni-Bucau (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16088859#comment-16088859
 ] 

Romain Manni-Bucau commented on OWB-1200:
-

>From what i recal spec excludes implicit producers in implicit archives even 
>if the outer bean is detected. At least that is what we did.

> OWB 2 skips producer methods defined in annotated bean archives in SE
> -
>
> Key: OWB-1200
> URL: https://issues.apache.org/jira/browse/OWB-1200
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: John D. Ament
>
> Here's a code sample that fails for me
> https://github.com/astefanutti/metrics-cdi/blob/29e7bac497513de420543497612180331cc5d1b3/impl/src/main/java/io/astefanutti/metrics/cdi/MetricNameFactory.java#L24
> Basically, from what I can tell OWB 2 misses this producer method, I believe 
> because it doesn't have a scope but the outer bean class does have a scope.
> AFAIK, per the spec, this is implicitly a `@Dependent` producer and should 
> have been picked up because the outer bean is defined as a dependent scoped 
> bean.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)