You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by hwaastad <he...@waastad.org> on 2014/06/21 11:53:35 UTC
Deltaspike 1.0.0 issue?
Hi,
I've migrated to DS 1.0.0 and in one of my ear projects I see several:
(I'm also running 1.7.0-SNAPSHOT.)
[2014-06-21 11:42:58|SEVERE][org.apache.openejb.cdi.OpenEJBLifecycle
startApplication]: CDI Beans module deployment failed
org.apache.webbeans.exception.inject.DefinitionException: WebBean component
class : org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver is not
enabled for specialized by the class
org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver class
and
[2014-06-21 11:42:58|SEVERE][org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal]: Error merging Java EE JNDI entries in to war /SmartEAR:
Exception: couldn't start owb context
org.apache.openejb.OpenEJBRuntimeException: couldn't start owb context
at
org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:161)
at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:60)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1347)
at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1073)
at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:128)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.openejb.OpenEJBRuntimeException:
org.apache.webbeans.exception.inject.DefinitionException: WebBean component
class : org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver is not
enabled for specialized by the class
org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver class
at
org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:188)
at
org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:159)
The application seams to be running fine.
I'm running jarstxt in my web modules.
my ejb modules are dependeing on ds-jpa and data modules.
br hw
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Deltaspike 1.0.0 issue?
Posted by Romain Manni-Bucau <rm...@gmail.com>.
put core + data in libs and jsf in war.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-06-25 14:14 GMT+02:00 hwaastad <he...@waastad.org>:
> Great,
> I'll check it out.
>
> Which is the change supposed to fix/help?
>
> 1. possible to put all DS libs in ear/lib
> 2. keep DS JSF libs in war and the rest in ear/lib?
> 3. other?
>
> br hw
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670178.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Re: Deltaspike 1.0.0 issue?
Posted by hwaastad <he...@waastad.org>.
Great,
I'll check it out.
Which is the change supposed to fix/help?
1. possible to put all DS libs in ear/lib
2. keep DS JSF libs in war and the rest in ear/lib?
3. other?
br hw
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670178.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Deltaspike 1.0.0 issue?
Posted by Romain Manni-Bucau <rm...@gmail.com>.
push something about it, should be better now
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-06-22 21:48 GMT+02:00 hwaastad <he...@waastad.org>:
> ...nope,
> I can put all modules in ear/lib except core-impl. This has to be in the
> war.
> All other otions fails....
>
> if you check out feature/filter-all-but-jsf branch I've filtered out so
> that
> only jsf api/impl is in war and the rest is in ear lib.
>
> manifest does not reflect this but I think that should not matter...?
>
> br hw
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670143.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Re: Deltaspike 1.0.0 issue?
Posted by hwaastad <he...@waastad.org>.
...nope,
I can put all modules in ear/lib except core-impl. This has to be in the
war.
All other otions fails....
if you check out feature/filter-all-but-jsf branch I've filtered out so that
only jsf api/impl is in war and the rest is in ear lib.
manifest does not reflect this but I think that should not matter...?
br hw
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670143.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Deltaspike 1.0.0 issue?
Posted by Mark Struberg <st...@yahoo.de>.
+1
Put all except maybe deltaspike-jsf into the ear lib.
LieGrue,
strub
> On Sunday, 22 June 2014, 17:52, Romain Manni-Bucau <rm...@gmail.com> wrote:
> > Weird, i would have expected everything excepted jsf modules in common libs
> only.
>
>
> Le dimanche 22 juin 2014, hwaastad <he...@waastad.org> a écrit :
>> Yeah,
>> I done quite a bit of testing and this is what I've come to:
>>
>> ear:
>> <dependency>
>> <groupId>org.apache.deltaspike.core</groupId>
>> <artifactId>deltaspike-core-api</artifactId>
>> </dependency>
>>
>> ejb:
>>
>> <dependency>
>> <groupId>org.apache.deltaspike.modules</groupId>
>> <artifactId>deltaspike-data-module-api</artifactId>
>> <scope>compile</scope>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.deltaspike.modules</groupId>
>>
> <artifactId>deltaspike-data-module-impl</artifactId>
>> <scope>runtime</scope>
>> <exclusions>
>> <exclusion>
>>
> <groupId>org.apache.deltaspike.core</groupId>
>>
> <artifactId>deltaspike-core-impl</artifactId>
>> </exclusion>
>> <exclusion>
>>
> <groupId>org.apache.deltaspike.core</groupId>
>>
> <artifactId>deltaspike-core-api</artifactId>
>> </exclusion>
>> </exclusions>
>> </dependency>
>>
>> war:
>>
>> <dependency>
>> <groupId>org.apache.deltaspike.core</groupId>
>> <artifactId>deltaspike-core-api</artifactId>
>> <scope>compile</scope>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.deltaspike.core</groupId>
>> <artifactId>deltaspike-core-impl</artifactId>
>> <scope>runtime</scope>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.deltaspike.modules</groupId>
>> <artifactId>deltaspike-jsf-module-api</artifactId>
>> <scope>compile</scope>
>> </dependency>
>> <dependency>
>> <groupId>org.apache.deltaspike.modules</groupId>
>> <artifactId>deltaspike-jsf-module-impl</artifactId>
>> <scope>runtime</scope>
>> </dependency>
>>
>>
>> This wil not add core-impl to ear/lib but only api
>>
>> For those interested:
>> https://github.com/hwaastad/TomeeDeltaEar.git
>>
>> Works now on one web app.
>> I will see if this will work on my real ear project.
>>
>> br hw
>>
>>
>>
>>
>>
>> --
>> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670136.html
>> Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>
> --
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
Re: Deltaspike 1.0.0 issue?
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Weird, i would have expected everything excepted jsf modules in common libs
only.
Le dimanche 22 juin 2014, hwaastad <he...@waastad.org> a écrit :
> Yeah,
> I done quite a bit of testing and this is what I've come to:
>
> ear:
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-api</artifactId>
> </dependency>
>
> ejb:
>
> <dependency>
> <groupId>org.apache.deltaspike.modules</groupId>
> <artifactId>deltaspike-data-module-api</artifactId>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.deltaspike.modules</groupId>
> <artifactId>deltaspike-data-module-impl</artifactId>
> <scope>runtime</scope>
> <exclusions>
> <exclusion>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-impl</artifactId>
> </exclusion>
> <exclusion>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-api</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> war:
>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-api</artifactId>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.deltaspike.core</groupId>
> <artifactId>deltaspike-core-impl</artifactId>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.deltaspike.modules</groupId>
> <artifactId>deltaspike-jsf-module-api</artifactId>
> <scope>compile</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.deltaspike.modules</groupId>
> <artifactId>deltaspike-jsf-module-impl</artifactId>
> <scope>runtime</scope>
> </dependency>
>
>
> This wil not add core-impl to ear/lib but only api
>
> For those interested:
> https://github.com/hwaastad/TomeeDeltaEar.git
>
> Works now on one web app.
> I will see if this will work on my real ear project.
>
> br hw
>
>
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670136.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
--
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
Re: Deltaspike 1.0.0 issue?
Posted by hwaastad <he...@waastad.org>.
Yeah,
I done quite a bit of testing and this is what I've come to:
ear:
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-api</artifactId>
</dependency>
ejb:
<dependency>
<groupId>org.apache.deltaspike.modules</groupId>
<artifactId>deltaspike-data-module-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.modules</groupId>
<artifactId>deltaspike-data-module-impl</artifactId>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-impl</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-api</artifactId>
</exclusion>
</exclusions>
</dependency>
war:
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.core</groupId>
<artifactId>deltaspike-core-impl</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.modules</groupId>
<artifactId>deltaspike-jsf-module-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.deltaspike.modules</groupId>
<artifactId>deltaspike-jsf-module-impl</artifactId>
<scope>runtime</scope>
</dependency>
This wil not add core-impl to ear/lib but only api
For those interested:
https://github.com/hwaastad/TomeeDeltaEar.git
Works now on one web app.
I will see if this will work on my real ear project.
br hw
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670136.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Deltaspike 1.0.0 issue?
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Probably since youneed deltaspike in ear libs and not in the webapp like it
but your provide it twice with jars.txt
Le dimanche 22 juin 2014, hwaastad <he...@waastad.org> a écrit :
> Hi,
> I'm starting to belive that this is due to placement of the libs.
>
> the ear/lib contains core/data/jpa/partial both api and impl
>
> and: webapp/WEB-INF/jars.txt:
> (the webapp has provided scope dependency on the ejb module which uses
> data/jpa)
>
> mvn:org.apache.deltaspike.modules/deltaspike-data-module-api/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-data-module-impl/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-jpa-module-api/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-jpa-module-impl/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-jsf-module-api/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-jsf-module-impl/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-partial-bean-module-api/1.0.0
>
mvn:org.apache.deltaspike.modules/deltaspike-partial-bean-module-impl/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-security-module-api/1.0.0
> mvn:org.apache.deltaspike.modules/deltaspike-security-module-impl/1.0.0
>
>
> br hw
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670134.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
--
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
Re: Deltaspike 1.0.0 issue?
Posted by hwaastad <he...@waastad.org>.
Hi,
I'm starting to belive that this is due to placement of the libs.
the ear/lib contains core/data/jpa/partial both api and impl
and: webapp/WEB-INF/jars.txt:
(the webapp has provided scope dependency on the ejb module which uses
data/jpa)
mvn:org.apache.deltaspike.modules/deltaspike-data-module-api/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-data-module-impl/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-jpa-module-api/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-jpa-module-impl/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-jsf-module-api/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-jsf-module-impl/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-partial-bean-module-api/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-partial-bean-module-impl/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-security-module-api/1.0.0
mvn:org.apache.deltaspike.modules/deltaspike-security-module-impl/1.0.0
br hw
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670134.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Deltaspike 1.0.0 issue?
Posted by Mark Struberg <st...@yahoo.de>.
Can you please check if you do have deltaspike-core-impl.jar in your classpath?
LieGrue,
strub
On Saturday, 21 June 2014, 20:50, hwaastad <he...@waastad.org> wrote:
>
>
>Hi Mark,ve
>No, I do not have any of such.
>
>I have omnifaces in ear/lib.....(a library is using this).
>
>I'll see if I can reproduce the issue in a sample project.
>
>br hw
>
>
>
>--
>View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670132.html
>
>Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
>
Re: Deltaspike 1.0.0 issue?
Posted by hwaastad <he...@waastad.org>.
Hi Mark,ve
No, I do not have any of such.
I have omnifaces in ear/lib.....(a library is using this).
I'll see if I can reproduce the issue in a sample project.
br hw
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670132.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Deltaspike 1.0.0 issue?
Posted by Mark Struberg <st...@yahoo.de>.
Hi!
This Exception should only get thrown if you have a
@Specializes
public class A extends X
where X is not in the classpath or not an enabled bean.
Do you have a sample of this around somewhere?
Oh and we finally need to change the error message to proper english!
LieGrue,
strub
On Saturday, 21 June 2014, 18:56, hwaastad <he...@waastad.org> wrote:
>
>
>Yepp,
>that one I've been painfully aware of :-)
>
>No, the libs provided in ear lib is core/data/jpa/partial
>
>br hw
>
>
>
>--
>View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670128.html
>
>Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
>
Re: Deltaspike 1.0.0 issue?
Posted by hwaastad <he...@waastad.org>.
Yepp,
that one I've been painfully aware of :-)
No, the libs provided in ear lib is core/data/jpa/partial
br hw
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123p4670128.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Deltaspike 1.0.0 issue?
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
Jsf (webapp actually) extensions need to be activated (provided) from
webapp and not ear libs. Seems jsf part is provided as shared lib no?
Le samedi 21 juin 2014, hwaastad <he...@waastad.org> a écrit :
> Hi,
> I've migrated to DS 1.0.0 and in one of my ear projects I see several:
> (I'm also running 1.7.0-SNAPSHOT.)
>
>
> [2014-06-21 11:42:58|SEVERE][org.apache.openejb.cdi.OpenEJBLifecycle
> startApplication]: CDI Beans module deployment failed
> org.apache.webbeans.exception.inject.DefinitionException: WebBean
component
> class : org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver is
not
> enabled for specialized by the class
> org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver class
>
>
> and
> [2014-06-21 11:42:58|SEVERE][org.apache.tomee.catalina.TomcatWebAppBuilder
> startInternal]: Error merging Java EE JNDI entries in to war /SmartEAR:
> Exception: couldn't start owb context
> org.apache.openejb.OpenEJBRuntimeException: couldn't start owb context
> at
>
org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:161)
> at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:60)
> at
>
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1347)
> at
>
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1073)
> at
>
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:128)
> at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at
>
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
>
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
> at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
>
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
>
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
>
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
>
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: org.apache.openejb.OpenEJBRuntimeException:
> org.apache.webbeans.exception.inject.DefinitionException: WebBean
component
> class : org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver is
not
> enabled for specialized by the class
> org.apache.deltaspike.jsf.impl.message.JsfAwareLocaleResolver class
> at
>
org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:188)
> at
>
org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:159)
>
>
> The application seams to be running fine.
> I'm running jarstxt in my web modules.
> my ejb modules are dependeing on ds-jpa and data modules.
>
> br hw
>
>
>
> --
> View this message in context:
http://tomee-openejb.979440.n4.nabble.com/Deltaspike-1-0-0-issue-tp4670123.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
--
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau