Re: New TomEE embedded/serverless prototype (was Re: 9 Years of Startup times & Ideas for Improvement)

2020-09-04 Thread David Blevins
> On Sep 4, 2020, at 1:34 PM, David Blevins  wrote:
> 
>> On Sep 4, 2020, at 11:10 AM, Jonathan Gallimore 
>>  wrote:
>> 
>> This is the specific part of the code where the Geronimo OpenAPI service is
>> filtered out:
>> https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/cdi/OptimizedLoaderService.java#L164-L165
>> .
>> 
>> I hope that helps.
> 
> It definitely did.  I found a way to get it to pass.  I don't know if there 
> are other consequences.
> 
> It's effectively these three lines of code (first link) added in this commit 
> (second link)
> 
> - 
> https://github.com/apache/tomee/blob/142f035e454b43192c51db7a66b9395982502d47/container/openejb-core/src/main/java/org/apache/openejb/cdi/OptimizedLoaderService.java#L159-L161
> - 
> https://github.com/apache/tomee/commit/1ebb0ee181622cd101df64a82f8af3bcb27211bf#diff-da64938534b0686bfc3d264149fac1f2R106-R108
> 
> There's no test or javadoc and the commit message says its for jcache.
> 
> I'm going to try to get the build green again and then yank.
> 

Ok, yanked those lines and added in the MicroProfile, Plus and Plume examples.  
Build looks happy!

 - https://ci.apache.org/builders/tomee-trunk-ubuntu-jvm8/builds/1426

These look good to go.  From here I think it's just a matter of starting to use 
this more and more and see what if any issues arise.

Might be nice to have an Arquillian version and potentially deprecate/remove 
the old incomplete embedded adapter.


-David



smime.p7s
Description: S/MIME cryptographic signature


Re: Your project's website

2020-09-04 Thread David Blevins
> On Sep 4, 2020, at 7:09 PM, David Blevins  wrote:
> 
> Amazing work, David -- sorry for not saying so sooner!
> 
> Since we now have our git repo with all the current html and the required 
> yaml file, I'll file a ticket with infra to have us cutover from 
> CMS/subversion to the git publishing.

Ticket filed for those who want to track/participate:

 - https://issues.apache.org/jira/browse/INFRA-20820


-David



smime.p7s
Description: S/MIME cryptographic signature


Re: Your project's website

2020-09-04 Thread David Blevins
Amazing work, David -- sorry for not saying so sooner!

Since we now have our git repo with all the current html and the required yaml 
file, I'll file a ticket with infra to have us cutover from CMS/subversion to 
the git publishing.

All other topics such as Antora, etc. still on the table and probably even 
easier to pursue once we get out from behind the CMS.


-David


> On Aug 29, 2020, at 9:02 AM, David Jencks  wrote:
> 
> The content history is now in tomee-site-pub.  I added an .asf.yaml file:
> 
> ```
> notifications:
>  commits: site-...@tomee.apache.org
>  issues: site-...@tomee.apache.org
>  pullrequests: site-...@tomee.apache.org
>  jira_options: link label link label
> 
> # this staging config will publish any commits to 
> https://tomee-beta.staged.apache.org
> #staging:
> #  profile: beta
> #  whoami: master
> ```
> 
> that directs mail to site-...@tomee.apache.org.
> 
> Mail notifications are turned back on.
> 
> For reference, here’s how far I’ve got with publishing the Aries site:
> 
> ```
> #!/bin/bash
> 
> npm run clean-install
> 
> rm -rf build
> mkdir -p build/site
> # clone the aries-site-pub repo
> (
> cd build/site
> git clone --depth 1 g...@github.com:apache/aries-site-pub.git .
> git rm -r .
> )
> 
> npm run build-noclean
> 
> (
> cd build/site
> git add .
> git commit -m "site build"
> git push origin master
> )
> ```
> 
> This is for an Antora-only site; the site build is actually `npm run 
> build-noclean`.  So far I only know how to run this locally, buildbot and 
> jenkins remain mysteries to me.  I don’t see why this couldn’t be run on 
> GitHub using GitHub actions, but it might be against infra policy.
> 
> David Jencks
> 
>> On Aug 27, 2020, at 9:51 PM, David Jencks  wrote:
>> 
>> Maybe my memory’s just a bit slow.
>> 
>> svn log https://svn.apache.org/repos/infra/websites/production/tomee/content 
>>  shows 
>> that I’ve found the last commit.
>> 
>> David Jencks
>> 
>>> On Aug 27, 2020, at 9:47 PM, David Jencks >> > wrote:
>>> 
>>> I’m afraid I no longer understand how svn works or how to see what’s in it. 
>>>  I can’t find the published site on viewvc.
>>> 
>>> The last imported-to-git revision I got was 
>>> 
>>> commit d971bdc415a5aacedad7a73bfc59a72abe0ddc09 (HEAD -> master, svn/trunk)
>>> Author: Daniel Gruno mailto:humbed...@apache.org>>
>>> Date:   Mon Aug 10 17:53:26 2020 +
>>> 
>>>Publishing svnmucc operation to tomee site by humbedooh
>>> 
>>>git-svn-id: 
>>> https://svn.apache.org/repos/infra/websites/production/tomee/content@1064188
>>>  
>>> 
>>>  90ea9780-b833-de11-8433-001ec94261de
>>> 
>>> 
>>> however there appeared to be a git gc error after that.  I can’t figure out 
>>> how to confirm that this is indeed the last site commit, although running 
>>> the svn2git command again doesn’t find anything more.
>>> 
>>> What I can find in https://svn.apache.org/viewvc/tomee/site/trunk/?view=log 
>>>  is
>>> 
>>> Revision 1880750 
>>>  - Directory 
>>> Listing  
>>> Modified Mon Aug 10 17:17:31 2020 UTC (2 weeks, 3 days ago) by dblevins
>>> force cms to update
>>> so the time frame seems approximately right.
>>> 
>>> Can anyone confirm I’ve got the whole history?
>>> 
>>> Thanks
>>> David Jencks
>>> 
 On Aug 27, 2020, at 7:44 PM, David Jencks >>> > wrote:
 
 tomee-site-pub created
 site-...@tomee.apache.org  requested
 INFRA-20781  (disable 
 commit emails) opened
 svn2git still in process.
 
 If things go really quickly I might be able to push tomorrow.
 
 David Jencks
 
> On Aug 27, 2020, at 4:42 PM, David Blevins  > wrote:
> 
>> On Aug 27, 2020, at 1:58 PM, David Jencks > > wrote:
>> 
>> I’ve been “warming up” with the Aries website and did this recently for 
>> them.  I think I can do this easily.  What do we want the TomEE repo to 
>> be named? I’d suggest tomee-site-pub.
> 
> I was struggling to think of a good name.  `tomee-site-pub` is great!
> 
>> On Aug 27, 2020, at 2:11 PM, David Jencks > > wrote:
>> 
>> I started…. should be done in a few hours.  Next step is to create the 
>> apache git repo using self-serve and ask infra to turn off commit emails 
>> for the push (which may take a day or so).
>> 
>> Where should commit emails for this repo go?  For aries I created a 
>> site-...@aries.apache.org  lis

Re: New TomEE embedded/serverless prototype (was Re: 9 Years of Startup times & Ideas for Improvement)

2020-09-04 Thread David Blevins
> On Sep 4, 2020, at 11:10 AM, Jonathan Gallimore 
>  wrote:
> 
> This is the specific part of the code where the Geronimo OpenAPI service is
> filtered out:
> https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/cdi/OptimizedLoaderService.java#L164-L165
> .
> 
> I hope that helps.

It definitely did.  I found a way to get it to pass.  I don't know if there are 
other consequences.

It's effectively these three lines of code (first link) added in this commit 
(second link)

 - 
https://github.com/apache/tomee/blob/142f035e454b43192c51db7a66b9395982502d47/container/openejb-core/src/main/java/org/apache/openejb/cdi/OptimizedLoaderService.java#L159-L161
 - 
https://github.com/apache/tomee/commit/1ebb0ee181622cd101df64a82f8af3bcb27211bf#diff-da64938534b0686bfc3d264149fac1f2R106-R108

There's no test or javadoc and the commit message says its for jcache.

I'm going to try to get the build green again and then yank.


-David

> 
> Jon
> 
> On Fri, 4 Sep 2020, 18:40 David Blevins,  wrote:
> 
>> If the commit did have some means to handle the duplicate classes, it's
>> the exact insight I'm looking for even if it isn't working.
>> 
>> Even knowing that there was something that was supposed to handle it is
>> useful as that means I just need to find what was supposed to work and then
>> figure out why it doesn't.
>> 
>> If you didn't have to do anything at all and things just magically worked,
>> then the starting point is less clear.
>> 
>> 
>> -David
>> 
>>> On Sep 4, 2020, at 10:12 AM, Jonathan Gallimore <
>> jonathan.gallim...@gmail.com> wrote:
>>> 
>>> It definitely sounds like fun :)
>>> 
>>> On Fri, 4 Sep 2020, 18:10 David Blevins,  wrote:
>>> 
 
> On Sep 4, 2020, at 8:48 AM, Jonathan Gallimore <
 jonathan.gallim...@gmail.com> wrote:
> 
> Off the top of my head - I don't know. I'll run your test and dig
>> through
> over the weekend.
 
 No worries, I'll continue digging.  I thought there might be a "I had
>> that
 issue and did the thing with the thing, you probably need to adjust it."
 
 If nothing jumps out, no need to dig unless that sounds fun :)
 
 
 -David
 
 
> 
> On Fri, Sep 4, 2020 at 4:16 AM David Blevins 
> wrote:
> 
>> Ok, so here's the error that keeps the TomEE MicroProfile, Plus and
 Plume
>> examples from booting.
>> 
>> It appears we get an AmbiguousResolutionException from OpenWebBeans
>> because we have these two beans getting picked up and they conflict
>> with
>> each other:
>> 
>> 
>> - TomEEOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
>>   Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
>>  org.apache.tomee.microprofile.config.TomEEOpenAPIExtension,
>> 
>> 
>> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
>> 
>> 
>> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
>>   from
>> 
>> 
 
>> jar:file:/Users/dblevins/.m2/repository/org/apache/tomee/mp-common/8.0.5-SNAPSHOT/mp-common-8.0.5-SNAPSHOT.jar
>> 
 !/org/apache/tomee/microprofile/config/TomEEOpenAPIExtension.class
>> 
>> 
>> - GeronimoOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
>>   Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
>> 
>> 
>> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
>> 
>> 
>> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
>>   from
>> 
>> 
 
>> jar:file:/Users/dblevins/.m2/repository/org/apache/geronimo/geronimo-openapi-impl/1.0.12/geronimo-openapi-impl-1.0.12.jar
>> 
>> 
 
>> !/org/apache/geronimo/microprofile/openapi/cdi/GeronimoOpenAPIExtension.class
>> 
>> 
>> It looks like TomEEOpenAPIExtension was added in this commit:
>> 
>> -
>> 
 
>> https://github.com/apache/tomee/commit/10265708029ab2d0576f03aa1d5bb0a8a20bfffd
>> 
>> Jon, looks like you added TomEEOpenAPIExtension.  Is there any trick
>> you
>> needed to do to avoid the above conflict in our standalone servers?
>> 
>> If anyone has any insight, it's very appreciated.  This can be
 reproduced
>> with this example:
>> 
>> -
>> 
 
>> https://github.com/apache/tomee/tree/master/examples/serverless-tomee-microprofile
>> 
>> 
>> 
>> -David
>> 
>> 
 
 
>> 
>> 



smime.p7s
Description: S/MIME cryptographic signature


Re: New TomEE embedded/serverless prototype (was Re: 9 Years of Startup times & Ideas for Improvement)

2020-09-04 Thread Jonathan Gallimore
This is the specific part of the code where the Geronimo OpenAPI service is
filtered out:
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/java/org/apache/openejb/cdi/OptimizedLoaderService.java#L164-L165
.

I hope that helps. I'm happy to look at your test over the weekend.

Jon

On Fri, 4 Sep 2020, 18:40 David Blevins,  wrote:

> If the commit did have some means to handle the duplicate classes, it's
> the exact insight I'm looking for even if it isn't working.
>
> Even knowing that there was something that was supposed to handle it is
> useful as that means I just need to find what was supposed to work and then
> figure out why it doesn't.
>
> If you didn't have to do anything at all and things just magically worked,
> then the starting point is less clear.
>
>
> -David
>
> > On Sep 4, 2020, at 10:12 AM, Jonathan Gallimore <
> jonathan.gallim...@gmail.com> wrote:
> >
> > It definitely sounds like fun :)
> >
> > On Fri, 4 Sep 2020, 18:10 David Blevins,  wrote:
> >
> >>
> >>> On Sep 4, 2020, at 8:48 AM, Jonathan Gallimore <
> >> jonathan.gallim...@gmail.com> wrote:
> >>>
> >>> Off the top of my head - I don't know. I'll run your test and dig
> through
> >>> over the weekend.
> >>
> >> No worries, I'll continue digging.  I thought there might be a "I had
> that
> >> issue and did the thing with the thing, you probably need to adjust it."
> >>
> >> If nothing jumps out, no need to dig unless that sounds fun :)
> >>
> >>
> >> -David
> >>
> >>
> >>>
> >>> On Fri, Sep 4, 2020 at 4:16 AM David Blevins 
> >>> wrote:
> >>>
>  Ok, so here's the error that keeps the TomEE MicroProfile, Plus and
> >> Plume
>  examples from booting.
> 
>  It appears we get an AmbiguousResolutionException from OpenWebBeans
>  because we have these two beans getting picked up and they conflict
> with
>  each other:
> 
> 
>   - TomEEOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
> Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
>    org.apache.tomee.microprofile.config.TomEEOpenAPIExtension,
> 
> 
> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
> 
> 
> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
> from
> 
> 
> >>
> jar:file:/Users/dblevins/.m2/repository/org/apache/tomee/mp-common/8.0.5-SNAPSHOT/mp-common-8.0.5-SNAPSHOT.jar
> 
> >> !/org/apache/tomee/microprofile/config/TomEEOpenAPIExtension.class
> 
> 
>   - GeronimoOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
> Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
> 
> 
> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
> 
> 
> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
> from
> 
> 
> >>
> jar:file:/Users/dblevins/.m2/repository/org/apache/geronimo/geronimo-openapi-impl/1.0.12/geronimo-openapi-impl-1.0.12.jar
> 
> 
> >>
> !/org/apache/geronimo/microprofile/openapi/cdi/GeronimoOpenAPIExtension.class
> 
> 
>  It looks like TomEEOpenAPIExtension was added in this commit:
> 
>  -
> 
> >>
> https://github.com/apache/tomee/commit/10265708029ab2d0576f03aa1d5bb0a8a20bfffd
> 
>  Jon, looks like you added TomEEOpenAPIExtension.  Is there any trick
> you
>  needed to do to avoid the above conflict in our standalone servers?
> 
>  If anyone has any insight, it's very appreciated.  This can be
> >> reproduced
>  with this example:
> 
>  -
> 
> >>
> https://github.com/apache/tomee/tree/master/examples/serverless-tomee-microprofile
> 
> 
> 
>  -David
> 
> 
> >>
> >>
>
>


Re: New TomEE embedded/serverless prototype (was Re: 9 Years of Startup times & Ideas for Improvement)

2020-09-04 Thread David Blevins
If the commit did have some means to handle the duplicate classes, it's the 
exact insight I'm looking for even if it isn't working.

Even knowing that there was something that was supposed to handle it is useful 
as that means I just need to find what was supposed to work and then figure out 
why it doesn't.

If you didn't have to do anything at all and things just magically worked, then 
the starting point is less clear.


-David

> On Sep 4, 2020, at 10:12 AM, Jonathan Gallimore 
>  wrote:
> 
> It definitely sounds like fun :)
> 
> On Fri, 4 Sep 2020, 18:10 David Blevins,  wrote:
> 
>> 
>>> On Sep 4, 2020, at 8:48 AM, Jonathan Gallimore <
>> jonathan.gallim...@gmail.com> wrote:
>>> 
>>> Off the top of my head - I don't know. I'll run your test and dig through
>>> over the weekend.
>> 
>> No worries, I'll continue digging.  I thought there might be a "I had that
>> issue and did the thing with the thing, you probably need to adjust it."
>> 
>> If nothing jumps out, no need to dig unless that sounds fun :)
>> 
>> 
>> -David
>> 
>> 
>>> 
>>> On Fri, Sep 4, 2020 at 4:16 AM David Blevins 
>>> wrote:
>>> 
 Ok, so here's the error that keeps the TomEE MicroProfile, Plus and
>> Plume
 examples from booting.
 
 It appears we get an AmbiguousResolutionException from OpenWebBeans
 because we have these two beans getting picked up and they conflict with
 each other:
 
 
  - TomEEOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
   org.apache.tomee.microprofile.config.TomEEOpenAPIExtension,
 
 org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
 
 Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
from
 
 
>> jar:file:/Users/dblevins/.m2/repository/org/apache/tomee/mp-common/8.0.5-SNAPSHOT/mp-common-8.0.5-SNAPSHOT.jar
 
>> !/org/apache/tomee/microprofile/config/TomEEOpenAPIExtension.class
 
 
  - GeronimoOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
 
 org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
 
 Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
from
 
 
>> jar:file:/Users/dblevins/.m2/repository/org/apache/geronimo/geronimo-openapi-impl/1.0.12/geronimo-openapi-impl-1.0.12.jar
 
 
>> !/org/apache/geronimo/microprofile/openapi/cdi/GeronimoOpenAPIExtension.class
 
 
 It looks like TomEEOpenAPIExtension was added in this commit:
 
 -
 
>> https://github.com/apache/tomee/commit/10265708029ab2d0576f03aa1d5bb0a8a20bfffd
 
 Jon, looks like you added TomEEOpenAPIExtension.  Is there any trick you
 needed to do to avoid the above conflict in our standalone servers?
 
 If anyone has any insight, it's very appreciated.  This can be
>> reproduced
 with this example:
 
 -
 
>> https://github.com/apache/tomee/tree/master/examples/serverless-tomee-microprofile
 
 
 
 -David
 
 
>> 
>> 



Re: New TomEE embedded/serverless prototype (was Re: 9 Years of Startup times & Ideas for Improvement)

2020-09-04 Thread Jonathan Gallimore
It definitely sounds like fun :)

On Fri, 4 Sep 2020, 18:10 David Blevins,  wrote:

>
> > On Sep 4, 2020, at 8:48 AM, Jonathan Gallimore <
> jonathan.gallim...@gmail.com> wrote:
> >
> > Off the top of my head - I don't know. I'll run your test and dig through
> > over the weekend.
>
> No worries, I'll continue digging.  I thought there might be a "I had that
> issue and did the thing with the thing, you probably need to adjust it."
>
> If nothing jumps out, no need to dig unless that sounds fun :)
>
>
> -David
>
>
> >
> > On Fri, Sep 4, 2020 at 4:16 AM David Blevins 
> > wrote:
> >
> >> Ok, so here's the error that keeps the TomEE MicroProfile, Plus and
> Plume
> >> examples from booting.
> >>
> >> It appears we get an AmbiguousResolutionException from OpenWebBeans
> >> because we have these two beans getting picked up and they conflict with
> >> each other:
> >>
> >>
> >>   - TomEEOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
> >> Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
> >>org.apache.tomee.microprofile.config.TomEEOpenAPIExtension,
> >>
> >> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
> >>
> >> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
> >> from
> >>
> >>
> jar:file:/Users/dblevins/.m2/repository/org/apache/tomee/mp-common/8.0.5-SNAPSHOT/mp-common-8.0.5-SNAPSHOT.jar
> >>
>  !/org/apache/tomee/microprofile/config/TomEEOpenAPIExtension.class
> >>
> >>
> >>   - GeronimoOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
> >> Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
> >>
> >> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
> >>
> >> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
> >> from
> >>
> >>
> jar:file:/Users/dblevins/.m2/repository/org/apache/geronimo/geronimo-openapi-impl/1.0.12/geronimo-openapi-impl-1.0.12.jar
> >>
> >>
> !/org/apache/geronimo/microprofile/openapi/cdi/GeronimoOpenAPIExtension.class
> >>
> >>
> >> It looks like TomEEOpenAPIExtension was added in this commit:
> >>
> >> -
> >>
> https://github.com/apache/tomee/commit/10265708029ab2d0576f03aa1d5bb0a8a20bfffd
> >>
> >> Jon, looks like you added TomEEOpenAPIExtension.  Is there any trick you
> >> needed to do to avoid the above conflict in our standalone servers?
> >>
> >> If anyone has any insight, it's very appreciated.  This can be
> reproduced
> >> with this example:
> >>
> >> -
> >>
> https://github.com/apache/tomee/tree/master/examples/serverless-tomee-microprofile
> >>
> >>
> >>
> >> -David
> >>
> >>
>
>


Re: New TomEE embedded/serverless prototype (was Re: 9 Years of Startup times & Ideas for Improvement)

2020-09-04 Thread David Blevins


> On Sep 4, 2020, at 8:48 AM, Jonathan Gallimore  
> wrote:
> 
> Off the top of my head - I don't know. I'll run your test and dig through
> over the weekend.

No worries, I'll continue digging.  I thought there might be a "I had that 
issue and did the thing with the thing, you probably need to adjust it."

If nothing jumps out, no need to dig unless that sounds fun :)


-David


> 
> On Fri, Sep 4, 2020 at 4:16 AM David Blevins 
> wrote:
> 
>> Ok, so here's the error that keeps the TomEE MicroProfile, Plus and Plume
>> examples from booting.
>> 
>> It appears we get an AmbiguousResolutionException from OpenWebBeans
>> because we have these two beans getting picked up and they conflict with
>> each other:
>> 
>> 
>>   - TomEEOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
>> Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
>>org.apache.tomee.microprofile.config.TomEEOpenAPIExtension,
>> 
>> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
>> 
>> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
>> from
>> 
>> jar:file:/Users/dblevins/.m2/repository/org/apache/tomee/mp-common/8.0.5-SNAPSHOT/mp-common-8.0.5-SNAPSHOT.jar
>> !/org/apache/tomee/microprofile/config/TomEEOpenAPIExtension.class
>> 
>> 
>>   - GeronimoOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
>> Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
>> 
>> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
>> 
>> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
>> from
>> 
>> jar:file:/Users/dblevins/.m2/repository/org/apache/geronimo/geronimo-openapi-impl/1.0.12/geronimo-openapi-impl-1.0.12.jar
>> 
>> !/org/apache/geronimo/microprofile/openapi/cdi/GeronimoOpenAPIExtension.class
>> 
>> 
>> It looks like TomEEOpenAPIExtension was added in this commit:
>> 
>> -
>> https://github.com/apache/tomee/commit/10265708029ab2d0576f03aa1d5bb0a8a20bfffd
>> 
>> Jon, looks like you added TomEEOpenAPIExtension.  Is there any trick you
>> needed to do to avoid the above conflict in our standalone servers?
>> 
>> If anyone has any insight, it's very appreciated.  This can be reproduced
>> with this example:
>> 
>> -
>> https://github.com/apache/tomee/tree/master/examples/serverless-tomee-microprofile
>> 
>> 
>> 
>> -David
>> 
>> 



Re: New TomEE embedded/serverless prototype (was Re: 9 Years of Startup times & Ideas for Improvement)

2020-09-04 Thread Jonathan Gallimore
Off the top of my head - I don't know. I'll run your test and dig through
over the weekend.

Jon

On Fri, Sep 4, 2020 at 4:16 AM David Blevins 
wrote:

> Ok, so here's the error that keeps the TomEE MicroProfile, Plus and Plume
> examples from booting.
>
> It appears we get an AmbiguousResolutionException from OpenWebBeans
> because we have these two beans getting picked up and they conflict with
> each other:
>
>
>- TomEEOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
>  Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
> org.apache.tomee.microprofile.config.TomEEOpenAPIExtension,
>
> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
>
>  Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
>  from
>
>  
> jar:file:/Users/dblevins/.m2/repository/org/apache/tomee/mp-common/8.0.5-SNAPSHOT/mp-common-8.0.5-SNAPSHOT.jar
>  !/org/apache/tomee/microprofile/config/TomEEOpenAPIExtension.class
>
>
>- GeronimoOpenAPIExtension, WebBeansType:EXTENSION, Name:null, API
>  Types:[java.lang.Object,javax.enterprise.inject.spi.Extension,
>
> org.apache.geronimo.microprofile.openapi.cdi.GeronimoOpenAPIExtension],
>
>  Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]
>  from
>
>  
> jar:file:/Users/dblevins/.m2/repository/org/apache/geronimo/geronimo-openapi-impl/1.0.12/geronimo-openapi-impl-1.0.12.jar
>
>  !/org/apache/geronimo/microprofile/openapi/cdi/GeronimoOpenAPIExtension.class
>
>
> It looks like TomEEOpenAPIExtension was added in this commit:
>
>  -
> https://github.com/apache/tomee/commit/10265708029ab2d0576f03aa1d5bb0a8a20bfffd
>
> Jon, looks like you added TomEEOpenAPIExtension.  Is there any trick you
> needed to do to avoid the above conflict in our standalone servers?
>
> If anyone has any insight, it's very appreciated.  This can be reproduced
> with this example:
>
>  -
> https://github.com/apache/tomee/tree/master/examples/serverless-tomee-microprofile
>
>
>
> -David
>
>