You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by "Shultz, Dmitry" <Dm...@kaltire.com> on 2020/04/15 18:24:24 UTC

Quarkus + Deltaspike

Hi All,

I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project and getting this exception:

java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
                [error]: Build step io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an exception: java.lang.IllegalStateException: Bean defined via class org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy is declared as an @Alternative, but has no @Priority. Either declare a @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
                at io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
                at io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:743)
                at io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment.java:206)
                at io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.java:122)
                at io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.java:262)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.base/java.lang.reflect.Method.invoke(Method.java:564)
                at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:938)
                at io.quarkus.builder.BuildContext.run(BuildContext.java:273)
                at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
                at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2027)
                at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1551)
                at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1442)
                at java.base/java.lang.Thread.run(Thread.java:832)
                at org.jboss.threads.JBossThread.run(JBossThread.java:479)


How to fix?

In general, is Deltaspike supposed to be used with Quarkus?

Cheers,
Dmitry

Re: Quarkus + Deltaspike

Posted by Jason Porter <li...@gmail.com>.
On Wed, Apr 15, 2020 at 4:07 PM Shultz, Dmitry <Dm...@kaltire.com>
wrote:

> Yes, porting it to Panashe right now,  going pretty smooth so far...
>
> Also, using Deltaspike Project Stage related annotations -
> @Exclude(exceptIfProjectStage = {ProjectStage.Production.class}) - is there
> anything similar in Quarkus?
>

Closest thing is https://quarkus.io/guides/config#configuration-profiles,
but that only solves the config portion.

You may find more information for what you're trying to do at
https://quarkus.io/guides/cdi-reference, particularly the
https://quarkus.io/guides/cdi-reference#observer-transformation could help
you do what you're looking to do here.

As for the groovy config, take a look at
https://quarkus.io/guides/config#custom-configuration and see if you can
implement something there that would be helpful. I doubt it would fully
work in native mode (the groovy stuff), but I could be wrong.


>
> Would be awesome to have some migration guide, I can help with this (If I
> can figure it all out:)
>
>
> -----Original Message-----
> From: Jason Porter [mailto:lightguard.jp@gmail.com]
> Sent: Wednesday, April 15, 2020 2:15 PM
> To: users@deltaspike.apache.org
> Subject: Re: Quarkus + Deltaspike
>
> Have you taken a look at Panache?
>
> On Wed, Apr 15, 2020 at 2:29 PM Shultz, Dmitry <Dm...@kaltire.com>
> wrote:
>
> > Thanks Jason & Thomas, it makes sense.
> >
> > I have repositories extending the FullEntityRepository, is there is
> > anything like this in Quarkus (or is it better to port it  to use just
> > bare EntityManager)?.
> >
> > Also, I developed the GroovyConfigSorce that extends the ConfigSource
> > because I really like to use .groovy files as configuration sources
> > (groovy code blocks totally rock  for defining complex (and/or
> > related) config structures). Hopefully, MP Config has everyrhing I
> > need to port this to Quarkus.
> >
> > Cheers,
> > Dmitry
> >
> >
> > -----Original Message-----
> > From: Jason Porter [mailto:lightguard.jp@gmail.com]
> > Sent: Wednesday, April 15, 2020 12:35 PM
> > To: users@deltaspike.apache.org
> > Subject: Re: Quarkus + Deltaspike
> >
> > Thomas is correct. This would be a pretty big effort to get DeltaSpike
> > Quarkus compatible. Is there something you're looking for out of
> > DeltaSpike in your Quarkus project?
> >
> > On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko <
> > andraschko.thomas@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > that wont work!
> > > Quarkus isn't a CDI implementation (it just uses many API parts), so
> > > i general we would need to re-development party of DS in a Quarkus
> > extension.
> > > E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS
> > > takes a heavy use of it.
> > >
> > > If you would like to create a such a extensions, i can give you some
> > hints.
> > > But i think the effort isn't low to port all modules.
> > >
> > > Best regards,
> > > Thomas
> > >
> > > <
> > > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
> > > um
> > > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
> > > sO
> > > mf9UqWGoPb$
> > > >
> > > Virenfrei.
> > > https://urldefense.com/v3/__http://www.avast.com__;!!LdWlNaMnLCM!PB3
> > > YS Ob2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9UZj-30P$
> > > <
> > > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
> > > um
> > > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
> > > sO
> > > mf9UqWGoPb$
> > > >
> > > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > >
> > > Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
> > > Dmitry_Shultz@kaltire.com>:
> > >
> > > > Hi All,
> > > >
> > > > I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project
> > > > and getting this exception:
> > > >
> > > > java.lang.RuntimeException: io.quarkus.builder.BuildException:
> > > > Build
> > > > failure: Build failed due to errors
> > > >                 [error]: Build step
> > > > io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an
> > exception:
> > > > java.lang.IllegalStateException: Bean defined via class
> > > >
> > > org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransacti
> > > on
> > > Strategy
> > > > is declared as an @Alternative, but has no @Priority. Either
> > > > declare a @Priority or leverage @io.quarkus.arc.AlernativePriority
> annotation.
> > > >                 at
> > > > io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
> > > >                 at
> > > >
> > > io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:
> > > 743)
> > > >                 at
> > > >
> > > io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment
> > > .j
> > > ava:206)
> > > >                 at
> > > >
> > > io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.j
> > > av
> > > a:122)
> > > >                 at
> > > >
> > > io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.ja
> > > va
> > > :262)
> > > >                 at
> > > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Na
> > > > ti
> > > > ve
> > > > Method)
> > > >                 at
> > > >
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Nativ
> > > eM
> > > ethodAccessorImpl.java:62)
> > > >                 at
> > > >
> > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(D
> > > el
> > > egatingMethodAccessorImpl.java:43)
> > > >                 at
> > > > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> > > >                 at
> > > >
> > io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:9
> > 38)
> > > >                 at
> > > > io.quarkus.builder.BuildContext.run(BuildContext.java:273)
> > > >                 at
> > > >
> > > org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassL
> > > oa
> > > derSavingRunnable.java:35)
> > > >                 at
> > > >
> > > org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.
> > > java:2027)
> > > >                 at
> > > >
> > > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(Enhance
> > > dQ
> > > ueueExecutor.java:1551)
> > > >                 at
> > > >
> > > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueue
> > > Ex
> > > ecutor.java:1442)
> > > >                 at java.base/java.lang.Thread.run(Thread.java:832)
> > > >                 at
> > > org.jboss.threads.JBossThread.run(JBossThread.java:479)
> > > >
> > > >
> > > > How to fix?
> > > >
> > > > In general, is Deltaspike supposed to be used with Quarkus?
> > > >
> > > > Cheers,
> > > > Dmitry
> > > >
> > >
> >
> >
> > --
> > Jason Porter
> >
> > https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!Ld
> > WlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf
> > 9cLFpJT6$
> >
>
>
> --
> Jason Porter
>
> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!LdWlNaMnLCM!K0Y_iy-FkpDB19AehWYpUtYwiDLB5B68NeMrLKFzZMKV8e3B3ZMQ7K9r3XIlFgBM3nMn$
>


-- 
Jason Porter
http://en.gravatar.com/lightguardjp

Re: Quarkus + Deltaspike

Posted by "Shultz, Dmitry" <Dm...@kaltire.com>.
Thanks Guys, it looks very promising!

If Groovy config can't be loaded by the Quarkus process in native mode - it still works. There will be one OpenJDK process parsing .groovy files, converting it into json's and then creating/updating K8 config maps/secrets using Kuber API.


________________________________
From: Martin Kouba <mk...@redhat.com>
Sent: 15 April 2020 23:23
To: users@deltaspike.apache.org <us...@deltaspike.apache.org>; Shultz, Dmitry <Dm...@kaltire.com>
Subject: Re: Quarkus + Deltaspike

Dne 16. 04. 20 v 0:06 Shultz, Dmitry napsal(a):
> Yes, porting it to Panashe right now,  going pretty smooth so far...
>
> Also, using Deltaspike Project Stage related annotations - @Exclude(exceptIfProjectStage = {ProjectStage.Production.class}) - is there anything similar in Quarkus?

Since 1.4.0.CR1 you can use @IfBuildProfile/@UnlessBuildProfile as
described here:
https://urldefense.com/v3/__https://github.com/quarkusio/quarkus/blob/master/docs/src/main/asciidoc/cdi-reference.adoc*user-content-enabling-beans-for-quarkus-build-profile__;Iw!!LdWlNaMnLCM!JIc6fH7-UEROwXA5fbdl5cYymFc5vNMkY7pyPIi6uv24ZYGSceb79czfNPzkduORhpR9$

That should be pretty close.

>
> Would be awesome to have some migration guide, I can help with this (If I can figure it all out:)
>
>
> -----Original Message-----
> From: Jason Porter [mailto:lightguard.jp@gmail.com]
> Sent: Wednesday, April 15, 2020 2:15 PM
> To: users@deltaspike.apache.org
> Subject: Re: Quarkus + Deltaspike
>
> Have you taken a look at Panache?
>
> On Wed, Apr 15, 2020 at 2:29 PM Shultz, Dmitry <Dm...@kaltire.com>
> wrote:
>
>> Thanks Jason & Thomas, it makes sense.
>>
>> I have repositories extending the FullEntityRepository, is there is
>> anything like this in Quarkus (or is it better to port it  to use just
>> bare EntityManager)?.
>>
>> Also, I developed the GroovyConfigSorce that extends the ConfigSource
>> because I really like to use .groovy files as configuration sources
>> (groovy code blocks totally rock  for defining complex (and/or
>> related) config structures). Hopefully, MP Config has everyrhing I
>> need to port this to Quarkus.
>>
>> Cheers,
>> Dmitry
>>
>>
>> -----Original Message-----
>> From: Jason Porter [mailto:lightguard.jp@gmail.com]
>> Sent: Wednesday, April 15, 2020 12:35 PM
>> To: users@deltaspike.apache.org
>> Subject: Re: Quarkus + Deltaspike
>>
>> Thomas is correct. This would be a pretty big effort to get DeltaSpike
>> Quarkus compatible. Is there something you're looking for out of
>> DeltaSpike in your Quarkus project?
>>
>> On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko <
>> andraschko.thomas@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> that wont work!
>>> Quarkus isn't a CDI implementation (it just uses many API parts), so
>>> i general we would need to re-development party of DS in a Quarkus
>> extension.
>>> E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS
>>> takes a heavy use of it.
>>>
>>> If you would like to create a such a extensions, i can give you some
>> hints.
>>> But i think the effort isn't low to port all modules.
>>>
>>> Best regards,
>>> Thomas
>>>
>>> <
>>> https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
>>> um
>>> =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
>>> LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
>>> sO
>>> mf9UqWGoPb$
>>>>
>>> Virenfrei.
>>> https://urldefense.com/v3/__http://www.avast.com__;!!LdWlNaMnLCM!PB3
>>> YS Ob2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9UZj-30P$
>>> <
>>> https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
>>> um
>>> =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
>>> LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
>>> sO
>>> mf9UqWGoPb$
>>>>
>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
>>> Dmitry_Shultz@kaltire.com>:
>>>
>>>> Hi All,
>>>>
>>>> I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project
>>>> and getting this exception:
>>>>
>>>> java.lang.RuntimeException: io.quarkus.builder.BuildException:
>>>> Build
>>>> failure: Build failed due to errors
>>>>                  [error]: Build step
>>>> io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an
>> exception:
>>>> java.lang.IllegalStateException: Bean defined via class
>>>>
>>> org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransacti
>>> on
>>> Strategy
>>>> is declared as an @Alternative, but has no @Priority. Either
>>>> declare a @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
>>>>                  at
>>>> io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
>>>>                  at
>>>>
>>> io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:
>>> 743)
>>>>                  at
>>>>
>>> io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment
>>> .j
>>> ava:206)
>>>>                  at
>>>>
>>> io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.j
>>> av
>>> a:122)
>>>>                  at
>>>>
>>> io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.ja
>>> va
>>> :262)
>>>>                  at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Na
>>>> ti
>>>> ve
>>>> Method)
>>>>                  at
>>>>
>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Nativ
>>> eM
>>> ethodAccessorImpl.java:62)
>>>>                  at
>>>>
>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(D
>>> el
>>> egatingMethodAccessorImpl.java:43)
>>>>                  at
>>>> java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>                  at
>>>>
>> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:9
>> 38)
>>>>                  at
>>>> io.quarkus.builder.BuildContext.run(BuildContext.java:273)
>>>>                  at
>>>>
>>> org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassL
>>> oa
>>> derSavingRunnable.java:35)
>>>>                  at
>>>>
>>> org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.
>>> java:2027)
>>>>                  at
>>>>
>>> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(Enhance
>>> dQ
>>> ueueExecutor.java:1551)
>>>>                  at
>>>>
>>> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueue
>>> Ex
>>> ecutor.java:1442)
>>>>                  at java.base/java.lang.Thread.run(Thread.java:832)
>>>>                  at
>>> org.jboss.threads.JBossThread.run(JBossThread.java:479)
>>>>
>>>>
>>>> How to fix?
>>>>
>>>> In general, is Deltaspike supposed to be used with Quarkus?
>>>>
>>>> Cheers,
>>>> Dmitry
>>>>
>>>
>>
>>
>> --
>> Jason Porter
>>
>> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!Ld
>> WlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf
>> 9cLFpJT6$
>>
>
>
> --
> Jason Porter
> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!LdWlNaMnLCM!K0Y_iy-FkpDB19AehWYpUtYwiDLB5B68NeMrLKFzZMKV8e3B3ZMQ7K9r3XIlFgBM3nMn$
>

--
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic


Re: Quarkus + Deltaspike

Posted by Martin Kouba <mk...@redhat.com>.
Dne 16. 04. 20 v 0:06 Shultz, Dmitry napsal(a):
> Yes, porting it to Panashe right now,  going pretty smooth so far...
> 
> Also, using Deltaspike Project Stage related annotations - @Exclude(exceptIfProjectStage = {ProjectStage.Production.class}) - is there anything similar in Quarkus?

Since 1.4.0.CR1 you can use @IfBuildProfile/@UnlessBuildProfile as 
described here: 
https://github.com/quarkusio/quarkus/blob/master/docs/src/main/asciidoc/cdi-reference.adoc#user-content-enabling-beans-for-quarkus-build-profile

That should be pretty close.

> 
> Would be awesome to have some migration guide, I can help with this (If I can figure it all out:)
> 
> 
> -----Original Message-----
> From: Jason Porter [mailto:lightguard.jp@gmail.com]
> Sent: Wednesday, April 15, 2020 2:15 PM
> To: users@deltaspike.apache.org
> Subject: Re: Quarkus + Deltaspike
> 
> Have you taken a look at Panache?
> 
> On Wed, Apr 15, 2020 at 2:29 PM Shultz, Dmitry <Dm...@kaltire.com>
> wrote:
> 
>> Thanks Jason & Thomas, it makes sense.
>>
>> I have repositories extending the FullEntityRepository, is there is
>> anything like this in Quarkus (or is it better to port it  to use just
>> bare EntityManager)?.
>>
>> Also, I developed the GroovyConfigSorce that extends the ConfigSource
>> because I really like to use .groovy files as configuration sources
>> (groovy code blocks totally rock  for defining complex (and/or
>> related) config structures). Hopefully, MP Config has everyrhing I
>> need to port this to Quarkus.
>>
>> Cheers,
>> Dmitry
>>
>>
>> -----Original Message-----
>> From: Jason Porter [mailto:lightguard.jp@gmail.com]
>> Sent: Wednesday, April 15, 2020 12:35 PM
>> To: users@deltaspike.apache.org
>> Subject: Re: Quarkus + Deltaspike
>>
>> Thomas is correct. This would be a pretty big effort to get DeltaSpike
>> Quarkus compatible. Is there something you're looking for out of
>> DeltaSpike in your Quarkus project?
>>
>> On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko <
>> andraschko.thomas@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> that wont work!
>>> Quarkus isn't a CDI implementation (it just uses many API parts), so
>>> i general we would need to re-development party of DS in a Quarkus
>> extension.
>>> E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS
>>> takes a heavy use of it.
>>>
>>> If you would like to create a such a extensions, i can give you some
>> hints.
>>> But i think the effort isn't low to port all modules.
>>>
>>> Best regards,
>>> Thomas
>>>
>>> <
>>> https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
>>> um
>>> =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
>>> LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
>>> sO
>>> mf9UqWGoPb$
>>>>
>>> Virenfrei.
>>> https://urldefense.com/v3/__http://www.avast.com__;!!LdWlNaMnLCM!PB3
>>> YS Ob2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9UZj-30P$
>>> <
>>> https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
>>> um
>>> =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
>>> LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
>>> sO
>>> mf9UqWGoPb$
>>>>
>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
>>> Dmitry_Shultz@kaltire.com>:
>>>
>>>> Hi All,
>>>>
>>>> I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project
>>>> and getting this exception:
>>>>
>>>> java.lang.RuntimeException: io.quarkus.builder.BuildException:
>>>> Build
>>>> failure: Build failed due to errors
>>>>                  [error]: Build step
>>>> io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an
>> exception:
>>>> java.lang.IllegalStateException: Bean defined via class
>>>>
>>> org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransacti
>>> on
>>> Strategy
>>>> is declared as an @Alternative, but has no @Priority. Either
>>>> declare a @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
>>>>                  at
>>>> io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
>>>>                  at
>>>>
>>> io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:
>>> 743)
>>>>                  at
>>>>
>>> io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment
>>> .j
>>> ava:206)
>>>>                  at
>>>>
>>> io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.j
>>> av
>>> a:122)
>>>>                  at
>>>>
>>> io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.ja
>>> va
>>> :262)
>>>>                  at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Na
>>>> ti
>>>> ve
>>>> Method)
>>>>                  at
>>>>
>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Nativ
>>> eM
>>> ethodAccessorImpl.java:62)
>>>>                  at
>>>>
>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(D
>>> el
>>> egatingMethodAccessorImpl.java:43)
>>>>                  at
>>>> java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>                  at
>>>>
>> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:9
>> 38)
>>>>                  at
>>>> io.quarkus.builder.BuildContext.run(BuildContext.java:273)
>>>>                  at
>>>>
>>> org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassL
>>> oa
>>> derSavingRunnable.java:35)
>>>>                  at
>>>>
>>> org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.
>>> java:2027)
>>>>                  at
>>>>
>>> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(Enhance
>>> dQ
>>> ueueExecutor.java:1551)
>>>>                  at
>>>>
>>> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueue
>>> Ex
>>> ecutor.java:1442)
>>>>                  at java.base/java.lang.Thread.run(Thread.java:832)
>>>>                  at
>>> org.jboss.threads.JBossThread.run(JBossThread.java:479)
>>>>
>>>>
>>>> How to fix?
>>>>
>>>> In general, is Deltaspike supposed to be used with Quarkus?
>>>>
>>>> Cheers,
>>>> Dmitry
>>>>
>>>
>>
>>
>> --
>> Jason Porter
>>
>> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!Ld
>> WlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf
>> 9cLFpJT6$
>>
> 
> 
> --
> Jason Porter
> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!LdWlNaMnLCM!K0Y_iy-FkpDB19AehWYpUtYwiDLB5B68NeMrLKFzZMKV8e3B3ZMQ7K9r3XIlFgBM3nMn$
> 

-- 
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic


RE: Quarkus + Deltaspike

Posted by "Shultz, Dmitry" <Dm...@kaltire.com>.
Yes, porting it to Panashe right now,  going pretty smooth so far...

Also, using Deltaspike Project Stage related annotations - @Exclude(exceptIfProjectStage = {ProjectStage.Production.class}) - is there anything similar in Quarkus?

Would be awesome to have some migration guide, I can help with this (If I can figure it all out:) 


-----Original Message-----
From: Jason Porter [mailto:lightguard.jp@gmail.com] 
Sent: Wednesday, April 15, 2020 2:15 PM
To: users@deltaspike.apache.org
Subject: Re: Quarkus + Deltaspike

Have you taken a look at Panache?

On Wed, Apr 15, 2020 at 2:29 PM Shultz, Dmitry <Dm...@kaltire.com>
wrote:

> Thanks Jason & Thomas, it makes sense.
>
> I have repositories extending the FullEntityRepository, is there is 
> anything like this in Quarkus (or is it better to port it  to use just 
> bare EntityManager)?.
>
> Also, I developed the GroovyConfigSorce that extends the ConfigSource 
> because I really like to use .groovy files as configuration sources 
> (groovy code blocks totally rock  for defining complex (and/or 
> related) config structures). Hopefully, MP Config has everyrhing I 
> need to port this to Quarkus.
>
> Cheers,
> Dmitry
>
>
> -----Original Message-----
> From: Jason Porter [mailto:lightguard.jp@gmail.com]
> Sent: Wednesday, April 15, 2020 12:35 PM
> To: users@deltaspike.apache.org
> Subject: Re: Quarkus + Deltaspike
>
> Thomas is correct. This would be a pretty big effort to get DeltaSpike 
> Quarkus compatible. Is there something you're looking for out of 
> DeltaSpike in your Quarkus project?
>
> On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko < 
> andraschko.thomas@gmail.com> wrote:
>
> > Hi,
> >
> > that wont work!
> > Quarkus isn't a CDI implementation (it just uses many API parts), so 
> > i general we would need to re-development party of DS in a Quarkus
> extension.
> > E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS 
> > takes a heavy use of it.
> >
> > If you would like to create a such a extensions, i can give you some
> hints.
> > But i think the effort isn't low to port all modules.
> >
> > Best regards,
> > Thomas
> >
> > <
> > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
> > um 
> > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
> > sO
> > mf9UqWGoPb$
> > >
> > Virenfrei.
> > https://urldefense.com/v3/__http://www.avast.com__;!!LdWlNaMnLCM!PB3
> > YS Ob2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9UZj-30P$
> > <
> > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medi
> > um 
> > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObj
> > sO
> > mf9UqWGoPb$
> > >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
> > Dmitry_Shultz@kaltire.com>:
> >
> > > Hi All,
> > >
> > > I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project 
> > > and getting this exception:
> > >
> > > java.lang.RuntimeException: io.quarkus.builder.BuildException: 
> > > Build
> > > failure: Build failed due to errors
> > >                 [error]: Build step 
> > > io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an
> exception:
> > > java.lang.IllegalStateException: Bean defined via class
> > >
> > org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransacti
> > on
> > Strategy
> > > is declared as an @Alternative, but has no @Priority. Either 
> > > declare a @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
> > >                 at
> > > io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:
> > 743)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment
> > .j
> > ava:206)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.j
> > av
> > a:122)
> > >                 at
> > >
> > io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.ja
> > va
> > :262)
> > >                 at
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Na
> > > ti
> > > ve
> > > Method)
> > >                 at
> > >
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Nativ
> > eM
> > ethodAccessorImpl.java:62)
> > >                 at
> > >
> > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(D
> > el
> > egatingMethodAccessorImpl.java:43)
> > >                 at
> > > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> > >                 at
> > >
> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:9
> 38)
> > >                 at
> > > io.quarkus.builder.BuildContext.run(BuildContext.java:273)
> > >                 at
> > >
> > org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassL
> > oa
> > derSavingRunnable.java:35)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.
> > java:2027)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(Enhance
> > dQ
> > ueueExecutor.java:1551)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueue
> > Ex
> > ecutor.java:1442)
> > >                 at java.base/java.lang.Thread.run(Thread.java:832)
> > >                 at
> > org.jboss.threads.JBossThread.run(JBossThread.java:479)
> > >
> > >
> > > How to fix?
> > >
> > > In general, is Deltaspike supposed to be used with Quarkus?
> > >
> > > Cheers,
> > > Dmitry
> > >
> >
>
>
> --
> Jason Porter
>
> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!Ld
> WlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf
> 9cLFpJT6$
>


--
Jason Porter
https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!LdWlNaMnLCM!K0Y_iy-FkpDB19AehWYpUtYwiDLB5B68NeMrLKFzZMKV8e3B3ZMQ7K9r3XIlFgBM3nMn$ 

Re: Quarkus + Deltaspike

Posted by Jason Porter <li...@gmail.com>.
Have you taken a look at Panache?

On Wed, Apr 15, 2020 at 2:29 PM Shultz, Dmitry <Dm...@kaltire.com>
wrote:

> Thanks Jason & Thomas, it makes sense.
>
> I have repositories extending the FullEntityRepository, is there is
> anything like this in Quarkus (or is it better to port it  to use just bare
> EntityManager)?.
>
> Also, I developed the GroovyConfigSorce that extends the ConfigSource
> because I really like to use .groovy files as configuration sources (groovy
> code blocks totally rock  for defining complex (and/or related) config
> structures). Hopefully, MP Config has everyrhing I need to port this to
> Quarkus.
>
> Cheers,
> Dmitry
>
>
> -----Original Message-----
> From: Jason Porter [mailto:lightguard.jp@gmail.com]
> Sent: Wednesday, April 15, 2020 12:35 PM
> To: users@deltaspike.apache.org
> Subject: Re: Quarkus + Deltaspike
>
> Thomas is correct. This would be a pretty big effort to get DeltaSpike
> Quarkus compatible. Is there something you're looking for out of DeltaSpike
> in your Quarkus project?
>
> On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko <
> andraschko.thomas@gmail.com> wrote:
>
> > Hi,
> >
> > that wont work!
> > Quarkus isn't a CDI implementation (it just uses many API parts), so i
> > general we would need to re-development party of DS in a Quarkus
> extension.
> > E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS
> > takes a heavy use of it.
> >
> > If you would like to create a such a extensions, i can give you some
> hints.
> > But i think the effort isn't low to port all modules.
> >
> > Best regards,
> > Thomas
> >
> > <
> > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medium
> > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsO
> > mf9UqWGoPb$
> > >
> > Virenfrei.
> > https://urldefense.com/v3/__http://www.avast.com__;!!LdWlNaMnLCM!PB3YS
> > Ob2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9UZj-30P$
> > <
> > https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medium
> > =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> > LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsO
> > mf9UqWGoPb$
> > >
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
> > Dmitry_Shultz@kaltire.com>:
> >
> > > Hi All,
> > >
> > > I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project
> > > and getting this exception:
> > >
> > > java.lang.RuntimeException: io.quarkus.builder.BuildException: Build
> > > failure: Build failed due to errors
> > >                 [error]: Build step
> > > io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an
> exception:
> > > java.lang.IllegalStateException: Bean defined via class
> > >
> > org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransaction
> > Strategy
> > > is declared as an @Alternative, but has no @Priority. Either declare
> > > a @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
> > >                 at
> > > io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:
> > 743)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment.j
> > ava:206)
> > >                 at
> > >
> > io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.jav
> > a:122)
> > >                 at
> > >
> > io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.java
> > :262)
> > >                 at
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nati
> > > ve
> > > Method)
> > >                 at
> > >
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM
> > ethodAccessorImpl.java:62)
> > >                 at
> > >
> > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del
> > egatingMethodAccessorImpl.java:43)
> > >                 at
> > > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> > >                 at
> > >
> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:938)
> > >                 at
> > > io.quarkus.builder.BuildContext.run(BuildContext.java:273)
> > >                 at
> > >
> > org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoa
> > derSavingRunnable.java:35)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.
> > java:2027)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQ
> > ueueExecutor.java:1551)
> > >                 at
> > >
> > org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueEx
> > ecutor.java:1442)
> > >                 at java.base/java.lang.Thread.run(Thread.java:832)
> > >                 at
> > org.jboss.threads.JBossThread.run(JBossThread.java:479)
> > >
> > >
> > > How to fix?
> > >
> > > In general, is Deltaspike supposed to be used with Quarkus?
> > >
> > > Cheers,
> > > Dmitry
> > >
> >
>
>
> --
> Jason Porter
>
> https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9cLFpJT6$
>


-- 
Jason Porter
http://en.gravatar.com/lightguardjp

RE: Quarkus + Deltaspike

Posted by "Shultz, Dmitry" <Dm...@kaltire.com>.
Thanks Jason & Thomas, it makes sense.

I have repositories extending the FullEntityRepository, is there is anything like this in Quarkus (or is it better to port it  to use just bare EntityManager)?.

Also, I developed the GroovyConfigSorce that extends the ConfigSource because I really like to use .groovy files as configuration sources (groovy code blocks totally rock  for defining complex (and/or related) config structures). Hopefully, MP Config has everyrhing I need to port this to Quarkus.

Cheers,
Dmitry


-----Original Message-----
From: Jason Porter [mailto:lightguard.jp@gmail.com] 
Sent: Wednesday, April 15, 2020 12:35 PM
To: users@deltaspike.apache.org
Subject: Re: Quarkus + Deltaspike

Thomas is correct. This would be a pretty big effort to get DeltaSpike Quarkus compatible. Is there something you're looking for out of DeltaSpike in your Quarkus project?

On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko < andraschko.thomas@gmail.com> wrote:

> Hi,
>
> that wont work!
> Quarkus isn't a CDI implementation (it just uses many API parts), so i 
> general we would need to re-development party of DS in a Quarkus extension.
> E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS 
> takes a heavy use of it.
>
> If you would like to create a such a extensions, i can give you some hints.
> But i think the effort isn't low to port all modules.
>
> Best regards,
> Thomas
>
> <
> https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medium
> =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsO
> mf9UqWGoPb$
> >
> Virenfrei.
> https://urldefense.com/v3/__http://www.avast.com__;!!LdWlNaMnLCM!PB3YS
> Ob2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9UZj-30P$
> <
> https://urldefense.com/v3/__https://www.avast.com/sig-email?utm_medium
> =email&utm_source=link&utm_campaign=sig-email&utm_content=webmail__;!!
> LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsO
> mf9UqWGoPb$
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
> Dmitry_Shultz@kaltire.com>:
>
> > Hi All,
> >
> > I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project 
> > and getting this exception:
> >
> > java.lang.RuntimeException: io.quarkus.builder.BuildException: Build
> > failure: Build failed due to errors
> >                 [error]: Build step
> > io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an exception:
> > java.lang.IllegalStateException: Bean defined via class
> >
> org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransaction
> Strategy
> > is declared as an @Alternative, but has no @Priority. Either declare 
> > a @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
> >                 at
> > io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
> >                 at
> >
> io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:
> 743)
> >                 at
> >
> io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment.j
> ava:206)
> >                 at
> >
> io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.jav
> a:122)
> >                 at
> >
> io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.java
> :262)
> >                 at
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nati
> > ve
> > Method)
> >                 at
> >
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeM
> ethodAccessorImpl.java:62)
> >                 at
> >
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Del
> egatingMethodAccessorImpl.java:43)
> >                 at
> > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> >                 at
> > io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:938)
> >                 at
> > io.quarkus.builder.BuildContext.run(BuildContext.java:273)
> >                 at
> >
> org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoa
> derSavingRunnable.java:35)
> >                 at
> >
> org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.
> java:2027)
> >                 at
> >
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQ
> ueueExecutor.java:1551)
> >                 at
> >
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueEx
> ecutor.java:1442)
> >                 at java.base/java.lang.Thread.run(Thread.java:832)
> >                 at
> org.jboss.threads.JBossThread.run(JBossThread.java:479)
> >
> >
> > How to fix?
> >
> > In general, is Deltaspike supposed to be used with Quarkus?
> >
> > Cheers,
> > Dmitry
> >
>


--
Jason Porter
https://urldefense.com/v3/__http://en.gravatar.com/lightguardjp__;!!LdWlNaMnLCM!PB3YSOb2VKcuJrUc9ubG63owvxPKM-gi7t3IEaVB5BlcJkytlRc8SObjsOmf9cLFpJT6$ 

Re: Quarkus + Deltaspike

Posted by Jason Porter <li...@gmail.com>.
Thomas is correct. This would be a pretty big effort to get DeltaSpike
Quarkus compatible. Is there something you're looking for out of DeltaSpike
in your Quarkus project?

On Wed, Apr 15, 2020 at 12:57 PM Thomas Andraschko <
andraschko.thomas@gmail.com> wrote:

> Hi,
>
> that wont work!
> Quarkus isn't a CDI implementation (it just uses many API parts), so i
> general we would need to re-development party of DS in a Quarkus extension.
> E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS takes a
> heavy use of it.
>
> If you would like to create a such a extensions, i can give you some hints.
> But i think the effort isn't low to port all modules.
>
> Best regards,
> Thomas
>
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> Virenfrei.
> www.avast.com
> <
> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
> >
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
> Dmitry_Shultz@kaltire.com>:
>
> > Hi All,
> >
> > I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project and
> > getting this exception:
> >
> > java.lang.RuntimeException: io.quarkus.builder.BuildException: Build
> > failure: Build failed due to errors
> >                 [error]: Build step
> > io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an exception:
> > java.lang.IllegalStateException: Bean defined via class
> >
> org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy
> > is declared as an @Alternative, but has no @Priority. Either declare a
> > @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
> >                 at
> > io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
> >                 at
> >
> io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:743)
> >                 at
> >
> io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment.java:206)
> >                 at
> >
> io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.java:122)
> >                 at
> >
> io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.java:262)
> >                 at
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >                 at
> >
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >                 at
> >
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >                 at
> > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> >                 at
> > io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:938)
> >                 at
> > io.quarkus.builder.BuildContext.run(BuildContext.java:273)
> >                 at
> >
> org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> >                 at
> >
> org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2027)
> >                 at
> >
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1551)
> >                 at
> >
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1442)
> >                 at java.base/java.lang.Thread.run(Thread.java:832)
> >                 at
> org.jboss.threads.JBossThread.run(JBossThread.java:479)
> >
> >
> > How to fix?
> >
> > In general, is Deltaspike supposed to be used with Quarkus?
> >
> > Cheers,
> > Dmitry
> >
>


-- 
Jason Porter
http://en.gravatar.com/lightguardjp

Re: Quarkus + Deltaspike

Posted by Thomas Andraschko <an...@gmail.com>.
Hi,

that wont work!
Quarkus isn't a CDI implementation (it just uses many API parts), so i
general we would need to re-development party of DS in a Quarkus extension.
E.g. Quarkus doesn't support the CDI Extensions mechanism, where DS takes a
heavy use of it.

If you would like to create a such a extensions, i can give you some hints.
But i think the effort isn't low to port all modules.

Best regards,
Thomas

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virenfrei.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Am Mi., 15. Apr. 2020 um 20:34 Uhr schrieb Shultz, Dmitry <
Dmitry_Shultz@kaltire.com>:

> Hi All,
>
> I'm trying to use Deltaspike (1.9.3) in the fresh Quarkus project and
> getting this exception:
>
> java.lang.RuntimeException: io.quarkus.builder.BuildException: Build
> failure: Build failed due to errors
>                 [error]: Build step
> io.quarkus.arc.deployment.ArcProcessor#registerBeans threw an exception:
> java.lang.IllegalStateException: Bean defined via class
> org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy
> is declared as an @Alternative, but has no @Priority. Either declare a
> @Priority or leverage @io.quarkus.arc.AlernativePriority annotation.
>                 at
> io.quarkus.arc.processor.Beans.createClassBean(Beans.java:125)
>                 at
> io.quarkus.arc.processor.BeanDeployment.findBeans(BeanDeployment.java:743)
>                 at
> io.quarkus.arc.processor.BeanDeployment.registerBeans(BeanDeployment.java:206)
>                 at
> io.quarkus.arc.processor.BeanProcessor.registerBeans(BeanProcessor.java:122)
>                 at
> io.quarkus.arc.deployment.ArcProcessor.registerBeans(ArcProcessor.java:262)
>                 at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>                 at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>                 at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                 at
> java.base/java.lang.reflect.Method.invoke(Method.java:564)
>                 at
> io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:938)
>                 at
> io.quarkus.builder.BuildContext.run(BuildContext.java:273)
>                 at
> org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
>                 at
> org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2027)
>                 at
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1551)
>                 at
> org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1442)
>                 at java.base/java.lang.Thread.run(Thread.java:832)
>                 at org.jboss.threads.JBossThread.run(JBossThread.java:479)
>
>
> How to fix?
>
> In general, is Deltaspike supposed to be used with Quarkus?
>
> Cheers,
> Dmitry
>