[JBoss JIRA] (DROOLS-2411) For loop using filter in iteration context
by Matteo Mortari (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2411?page=com.atlassian.jira.plugi... ]
Matteo Mortari updated DROOLS-2411:
-----------------------------------
Sprint: 2018 Week 11-12
> For loop using filter in iteration context
> ------------------------------------------
>
> Key: DROOLS-2411
> URL: https://issues.jboss.org/browse/DROOLS-2411
> Project: Drools
> Issue Type: Bug
> Components: dmn engine
> Reporter: Matteo Mortari
> Assignee: Matteo Mortari
> Attachments: image-2018-03-21-16-48-52-704.png, image-2018-03-21-16-49-14-236.png, image-2018-03-21-16-49-30-158.png, image-2018-03-21-16-50-08-712.png
>
>
> In the following model:
> !image-2018-03-21-16-48-52-704.png!
> for the following input:
> !image-2018-03-21-16-49-14-236.png!
> with number being:
> !image-2018-03-21-16-49-30-158.png!
> The following expression works:
> {code:java}
> for m in my input.numbers return ceiling(m)
> {code}
> returning:
> !image-2018-03-21-16-50-08-712.png!
> But these other expressions fail:
> {code:java}
> for m in my input[name="asd"].numbers return ceiling(m)
> for m in my input[item.name="asd"].numbers return ceiling(m)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (DROOLS-2411) For loop using filter in iteration context
by Matteo Mortari (JIRA)
Matteo Mortari created DROOLS-2411:
--------------------------------------
Summary: For loop using filter in iteration context
Key: DROOLS-2411
URL: https://issues.jboss.org/browse/DROOLS-2411
Project: Drools
Issue Type: Bug
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Matteo Mortari
Attachments: image-2018-03-21-16-48-52-704.png, image-2018-03-21-16-49-14-236.png, image-2018-03-21-16-49-30-158.png, image-2018-03-21-16-50-08-712.png
In the following model:
!image-2018-03-21-16-48-52-704.png!
for the following input:
!image-2018-03-21-16-49-14-236.png!
with number being:
!image-2018-03-21-16-49-30-158.png!
The following expression works:
{code:java}
for m in my input.numbers return ceiling(m)
{code}
returning:
!image-2018-03-21-16-50-08-712.png!
But these other expressions fail:
{code:java}
for m in my input[name="asd"].numbers return ceiling(m)
for m in my input[item.name="asd"].numbers return ceiling(m)
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10062) Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
by Rich DiCroce (JIRA)
[ https://issues.jboss.org/browse/WFLY-10062?page=com.atlassian.jira.plugin... ]
Rich DiCroce commented on WFLY-10062:
-------------------------------------
[~mkouba] Yes, it contains a simple eager initialization extension that has an observer method with {{@Observes @Initialized(ApplicationScoped.class) Object event}}
> Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> -----------------------------------------------------------------------------------------------------
>
> Key: WFLY-10062
> URL: https://issues.jboss.org/browse/WFLY-10062
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 12.0.0.Final
> Reporter: Rich DiCroce
> Assignee: Martin Kouba
>
> Application fails to deploy with the below stack trace. EE8 preview mode is NOT enabled, which appears to be the cause. cdi-api-2.0.jar contains the class, but cdi-api-1.2.jar does not.
> {quote}
> 10:27:34,790 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1706)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_162]
> Caused by: java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> at org.jboss.weld.util.Observers.isContainerLifecycleObserverMethod(Observers.java:102) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethod(ExtensionBeanDeployer.java:151) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethods(ExtensionBeanDeployer.java:140) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBean(ExtensionBeanDeployer.java:101) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBeans(ExtensionBeanDeployer.java:75) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:377) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)
> ... 6 more
> Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.Any$Literal from [Module "org.jboss.weld.core" from local module loader @2ea6137 (finder: local module finder @41ee392b (roots: D:\wildfly\wildfly-12.0.0.Final-GP\modules,D:\wildfly\wildfly-12.0.0.Final-GP\modules\system\layers\base))]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:199) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) [jboss-modules.jar:1.7.0.Final]
> ... 16 more
> {quote}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10062) Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
by Matej Novotny (JIRA)
[ https://issues.jboss.org/browse/WFLY-10062?page=com.atlassian.jira.plugin... ]
Matej Novotny edited comment on WFLY-10062 at 3/21/18 11:22 AM:
----------------------------------------------------------------
Possible workaround would be to enable EE 8 mode, that should give you CDI API 2.0 jar which contains this.
Also, the fix for this is to upgrade Weld version where we will correct this (3.0.4.Final).
Weld release schedule can be seen [here|https://issues.jboss.org/projects/WELD?selectedItem=com.atlassian.ji...].
was (Author: manovotn):
Possible workaround would be to enable EE 8 mode, that should give you CDI API 2.0 jar which contains this.
> Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> -----------------------------------------------------------------------------------------------------
>
> Key: WFLY-10062
> URL: https://issues.jboss.org/browse/WFLY-10062
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 12.0.0.Final
> Reporter: Rich DiCroce
> Assignee: Martin Kouba
>
> Application fails to deploy with the below stack trace. EE8 preview mode is NOT enabled, which appears to be the cause. cdi-api-2.0.jar contains the class, but cdi-api-1.2.jar does not.
> {quote}
> 10:27:34,790 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1706)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_162]
> Caused by: java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> at org.jboss.weld.util.Observers.isContainerLifecycleObserverMethod(Observers.java:102) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethod(ExtensionBeanDeployer.java:151) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethods(ExtensionBeanDeployer.java:140) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBean(ExtensionBeanDeployer.java:101) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBeans(ExtensionBeanDeployer.java:75) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:377) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)
> ... 6 more
> Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.Any$Literal from [Module "org.jboss.weld.core" from local module loader @2ea6137 (finder: local module finder @41ee392b (roots: D:\wildfly\wildfly-12.0.0.Final-GP\modules,D:\wildfly\wildfly-12.0.0.Final-GP\modules\system\layers\base))]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:199) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) [jboss-modules.jar:1.7.0.Final]
> ... 16 more
> {quote}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10062) Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
by Matej Novotny (JIRA)
[ https://issues.jboss.org/browse/WFLY-10062?page=com.atlassian.jira.plugin... ]
Matej Novotny commented on WFLY-10062:
--------------------------------------
Possible workaround would be to enable EE 8 mode, that should give you CDI API 2.0 jar which contains this.
> Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> -----------------------------------------------------------------------------------------------------
>
> Key: WFLY-10062
> URL: https://issues.jboss.org/browse/WFLY-10062
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 12.0.0.Final
> Reporter: Rich DiCroce
> Assignee: Martin Kouba
>
> Application fails to deploy with the below stack trace. EE8 preview mode is NOT enabled, which appears to be the cause. cdi-api-2.0.jar contains the class, but cdi-api-1.2.jar does not.
> {quote}
> 10:27:34,790 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1706)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_162]
> Caused by: java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> at org.jboss.weld.util.Observers.isContainerLifecycleObserverMethod(Observers.java:102) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethod(ExtensionBeanDeployer.java:151) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethods(ExtensionBeanDeployer.java:140) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBean(ExtensionBeanDeployer.java:101) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBeans(ExtensionBeanDeployer.java:75) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:377) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)
> ... 6 more
> Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.Any$Literal from [Module "org.jboss.weld.core" from local module loader @2ea6137 (finder: local module finder @41ee392b (roots: D:\wildfly\wildfly-12.0.0.Final-GP\modules,D:\wildfly\wildfly-12.0.0.Final-GP\modules\system\layers\base))]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:199) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) [jboss-modules.jar:1.7.0.Final]
> ... 16 more
> {quote}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10063) Move client boms to wildfly/boms repo
by Tomaz Cerar (JIRA)
Tomaz Cerar created WFLY-10063:
----------------------------------
Summary: Move client boms to wildfly/boms repo
Key: WFLY-10063
URL: https://issues.jboss.org/browse/WFLY-10063
Project: WildFly
Issue Type: Task
Components: Build System
Reporter: Tomaz Cerar
Assignee: Tomaz Cerar
Current ejb/jms/ejb-client boms are part of WildFly build which causes issues with QS and few other things.
They need to be at same place as all other boms.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10062) Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
by Martin Kouba (JIRA)
[ https://issues.jboss.org/browse/WFLY-10062?page=com.atlassian.jira.plugin... ]
Martin Kouba commented on WFLY-10062:
-------------------------------------
[~rcd] Thanks for the report. This is a known issue - see also WELD-2474. Just out of curiosity, don't you know if the application contains an extension which declares an {{@Observes Object}} observer?
> Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> -----------------------------------------------------------------------------------------------------
>
> Key: WFLY-10062
> URL: https://issues.jboss.org/browse/WFLY-10062
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 12.0.0.Final
> Reporter: Rich DiCroce
> Assignee: Martin Kouba
>
> Application fails to deploy with the below stack trace. EE8 preview mode is NOT enabled, which appears to be the cause. cdi-api-2.0.jar contains the class, but cdi-api-1.2.jar does not.
> {quote}
> 10:27:34,790 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1706)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_162]
> Caused by: java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
> at org.jboss.weld.util.Observers.isContainerLifecycleObserverMethod(Observers.java:102) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethod(ExtensionBeanDeployer.java:151) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethods(ExtensionBeanDeployer.java:140) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBean(ExtensionBeanDeployer.java:101) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBeans(ExtensionBeanDeployer.java:75) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:377) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
> at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)
> ... 6 more
> Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.Any$Literal from [Module "org.jboss.weld.core" from local module loader @2ea6137 (finder: local module finder @41ee392b (roots: D:\wildfly\wildfly-12.0.0.Final-GP\modules,D:\wildfly\wildfly-12.0.0.Final-GP\modules\system\layers\base))]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:199) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400) [jboss-modules.jar:1.7.0.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) [jboss-modules.jar:1.7.0.Final]
> ... 16 more
> {quote}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10062) Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
by Rich DiCroce (JIRA)
Rich DiCroce created WFLY-10062:
-----------------------------------
Summary: Application deployment fails with java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
Key: WFLY-10062
URL: https://issues.jboss.org/browse/WFLY-10062
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 12.0.0.Final
Reporter: Rich DiCroce
Assignee: Martin Kouba
Application fails to deploy with the below stack trace. EE8 preview mode is NOT enabled, which appears to be the cause. cdi-api-2.0.jar contains the class, but cdi-api-1.2.jar does not.
{quote}
10:27:34,790 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."song-gaming-portal.war".WeldStartService: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1706)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_162]
Caused by: java.lang.NoClassDefFoundError: javax/enterprise/inject/Any$Literal
at org.jboss.weld.util.Observers.isContainerLifecycleObserverMethod(Observers.java:102) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethod(ExtensionBeanDeployer.java:151) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
at org.jboss.weld.bootstrap.ExtensionBeanDeployer.createObserverMethods(ExtensionBeanDeployer.java:140) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBean(ExtensionBeanDeployer.java:101) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBeans(ExtensionBeanDeployer.java:75) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:377) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:76) [weld-core-impl-3.0.3.Final.jar:3.0.3.Final]
at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)
... 6 more
Caused by: java.lang.ClassNotFoundException: javax.enterprise.inject.Any$Literal from [Module "org.jboss.weld.core" from local module loader @2ea6137 (finder: local module finder @41ee392b (roots: D:\wildfly\wildfly-12.0.0.Final-GP\modules,D:\wildfly\wildfly-12.0.0.Final-GP\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:199) [jboss-modules.jar:1.7.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412) [jboss-modules.jar:1.7.0.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400) [jboss-modules.jar:1.7.0.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) [jboss-modules.jar:1.7.0.Final]
... 16 more
{quote}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-9708) Wildfly 11.0.0.Final JSF 1.2 configuration error
by Mari Nein (JIRA)
[ https://issues.jboss.org/browse/WFLY-9708?page=com.atlassian.jira.plugin.... ]
Mari Nein edited comment on WFLY-9708 at 3/21/18 10:20 AM:
-----------------------------------------------------------
> The only other option might be to manually update the injection module after using the multi-jsf installer so it contains the working version of WeldApplication.
How can I do that, please?
Edit: solution that worked for me was to configure jsf 1.2 for an Wildfly 10 instalation and copy the jsf-injection module from there to the Wildfly 11.
was (Author: marianacosta):
> The only other option might be to manually update the injection module after using the multi-jsf installer so it contains the working version of WeldApplication.
How can I do that, please?
> Wildfly 11.0.0.Final JSF 1.2 configuration error
> ------------------------------------------------
>
> Key: WFLY-9708
> URL: https://issues.jboss.org/browse/WFLY-9708
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld, JSF
> Affects Versions: 11.0.0.Final
> Reporter: Luis Canales
> Priority: Optional
> Attachments: log.txt
>
>
> Since WFLY-8815, the class WeldApplication extends ApplicationWrapper. The class "ApplicationWrapper" was created in JSF2.0, so when I try to build JSF1.2 modules (see https://developer.jboss.org/wiki/StepsToAddAnyNewJSFImplementationOrVersi...) and deploy a JSF1.2 application, I get this error:
> _java.lang.NoClassDefFoundError: Failed to link org/jboss/as/jsf/injection/weld/WeldApplication (Module "org.jboss.as.jsf-injection:mojarra-1.2_15" from local module loader @3aa9e816 (finder: local module finder @17d99928 (roots: C:\Java\wildfly-11.0.0.Final.gts\modules,C:\Java\wildfly-11.0.0.Final.gts\modules\system\layers\base))): javax/faces/application/ApplicationWrapper_
> If I change WeldApplication extends to ForwardingApplication and rebuild modules, the application runs OK.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month