[JBoss JIRA] (WFLY-10260) NullPointerException when read deployment with jpa
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-10260?page=com.atlassian.jira.plugin... ]
Scott Marlow commented on WFLY-10260:
-------------------------------------
Gail, I assigned to you for resolution (e.g. after failure is resolved in Hibernate ORM 5.1.x).
> NullPointerException when read deployment with jpa
> --------------------------------------------------
>
> Key: WFLY-10260
> URL: https://issues.jboss.org/browse/WFLY-10260
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Reporter: Claudio Miranda
> Assignee: Gail Badner
> Fix For: 13.0.0.Beta1
>
> Attachments: wildfly-kitchensink.war
>
>
> There is a bug when reading deployment information with runtime and recursive.
> Looks like this is a regression from an older bug WFLY-1753
> {code}
> /host=master/server=server-three/deployment=kitchensink.war/subsystem=jpa:read-resource(include-runtime,recursive)
> {code}
> {code}
> [Server:server-three] 12:16:11,551 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 75) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
> [Server:server-three] ("deployment" => "kitchensink.war"),
> [Server:server-three] ("subsystem" => "jpa"),
> [Server:server-three] ("hibernate-persistence-unit" => "kitchensink.war#primary"),
> [Server:server-three] ("entity-cache" => "org.jboss.as.quickstarts.kitchensink.model.Member")
> [Server:server-three] ]): java.lang.NullPointerException
> [Server:server-three] at org.hibernate.internal.CacheImpl.getSecondLevelCacheRegion(CacheImpl.java:376)
> [Server:server-three] at org.hibernate.internal.SessionFactoryImpl.getSecondLevelCacheRegion(SessionFactoryImpl.java:1171)
> [Server:server-three] at org.hibernate.stat.internal.ConcurrentStatisticsImpl.getSecondLevelCacheStatistics(ConcurrentStatisticsImpl.java:334)
> [Server:server-three] at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics.getStatistics(HibernateEntityCacheStatistics.java:94)
> [Server:server-three] at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics$4.invoke(HibernateEntityCacheStatistics.java:126)
> [Server:server-three] at org.jboss.as.jpa.hibernate5.management.HibernateAbstractStatistics.getValue(HibernateAbstractStatistics.java:99)
> [Server:server-three] at org.jboss.as.jpa.management.ManagementResourceDefinition$1.handle(ManagementResourceDefinition.java:130)
> [Server:server-three] at org.jboss.as.jpa.management.ManagementResourceDefinition$AbstractMetricsHandler.executeRuntimeStep(ManagementResourceDefinition.java:268)
> [Server:server-three] at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:59)
> [Server:server-three] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
> [Server:server-three] at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
> [Server:server-three] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
> [Server:server-three] at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
> [Server:server-three] at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
> [Server:server-three] at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
> [Server:server-three] at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler.internalExecute(TransactionalProtocolOperationHandler.java:249)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler.doExecute(TransactionalProtocolOperationHandler.java:190)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:143)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:139)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
> [Server:server-three] at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:162)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:158)
> [Server:server-three] at java.security.AccessController.doPrivileged(Native Method)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2.execute(TransactionalProtocolOperationHandler.java:158)
> [Server:server-three] at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
> [Server:server-three] at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
> [Server:server-three] at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> [Server:server-three] at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> [Server:server-three] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> [Server:server-three] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> [Server:server-three] at java.lang.Thread.run(Thread.java:748)
> [Server:server-three] at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months
[JBoss JIRA] (WFLY-10260) NullPointerException when read deployment with jpa
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-10260?page=com.atlassian.jira.plugin... ]
Scott Marlow reassigned WFLY-10260:
-----------------------------------
Assignee: Gail Badner (was: Scott Marlow)
> NullPointerException when read deployment with jpa
> --------------------------------------------------
>
> Key: WFLY-10260
> URL: https://issues.jboss.org/browse/WFLY-10260
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Reporter: Claudio Miranda
> Assignee: Gail Badner
> Fix For: 13.0.0.Beta1
>
> Attachments: wildfly-kitchensink.war
>
>
> There is a bug when reading deployment information with runtime and recursive.
> Looks like this is a regression from an older bug WFLY-1753
> {code}
> /host=master/server=server-three/deployment=kitchensink.war/subsystem=jpa:read-resource(include-runtime,recursive)
> {code}
> {code}
> [Server:server-three] 12:16:11,551 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 75) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
> [Server:server-three] ("deployment" => "kitchensink.war"),
> [Server:server-three] ("subsystem" => "jpa"),
> [Server:server-three] ("hibernate-persistence-unit" => "kitchensink.war#primary"),
> [Server:server-three] ("entity-cache" => "org.jboss.as.quickstarts.kitchensink.model.Member")
> [Server:server-three] ]): java.lang.NullPointerException
> [Server:server-three] at org.hibernate.internal.CacheImpl.getSecondLevelCacheRegion(CacheImpl.java:376)
> [Server:server-three] at org.hibernate.internal.SessionFactoryImpl.getSecondLevelCacheRegion(SessionFactoryImpl.java:1171)
> [Server:server-three] at org.hibernate.stat.internal.ConcurrentStatisticsImpl.getSecondLevelCacheStatistics(ConcurrentStatisticsImpl.java:334)
> [Server:server-three] at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics.getStatistics(HibernateEntityCacheStatistics.java:94)
> [Server:server-three] at org.jboss.as.jpa.hibernate5.management.HibernateEntityCacheStatistics$4.invoke(HibernateEntityCacheStatistics.java:126)
> [Server:server-three] at org.jboss.as.jpa.hibernate5.management.HibernateAbstractStatistics.getValue(HibernateAbstractStatistics.java:99)
> [Server:server-three] at org.jboss.as.jpa.management.ManagementResourceDefinition$1.handle(ManagementResourceDefinition.java:130)
> [Server:server-three] at org.jboss.as.jpa.management.ManagementResourceDefinition$AbstractMetricsHandler.executeRuntimeStep(ManagementResourceDefinition.java:268)
> [Server:server-three] at org.jboss.as.controller.AbstractRuntimeOnlyHandler$1.execute(AbstractRuntimeOnlyHandler.java:59)
> [Server:server-three] at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:982)
> [Server:server-three] at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:726)
> [Server:server-three] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
> [Server:server-three] at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
> [Server:server-three] at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
> [Server:server-three] at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
> [Server:server-three] at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler.internalExecute(TransactionalProtocolOperationHandler.java:249)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler.doExecute(TransactionalProtocolOperationHandler.java:190)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:143)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:139)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:263)
> [Server:server-three] at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:229)
> [Server:server-three] at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:162)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:158)
> [Server:server-three] at java.security.AccessController.doPrivileged(Native Method)
> [Server:server-three] at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2.execute(TransactionalProtocolOperationHandler.java:158)
> [Server:server-three] at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
> [Server:server-three] at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
> [Server:server-three] at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> [Server:server-three] at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> [Server:server-three] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> [Server:server-three] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> [Server:server-three] at java.lang.Thread.run(Thread.java:748)
> [Server:server-three] at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months
[JBoss JIRA] (DROOLS-2502) Declare role event erase exists class
by Alexander Revkov (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2502?page=com.atlassian.jira.plugi... ]
Alexander Revkov commented on DROOLS-2502:
------------------------------------------
[~mfusco] Hello, i change description. Was be incorrect + add example from workbench. I try all kie execution server from 6.5.0.Final bug in all. But in local drools this is work fine with or not declare role(event). Magic. [^RN.TEST.zip]
> Declare role event erase exists class
> -------------------------------------
>
> Key: DROOLS-2502
> URL: https://issues.jboss.org/browse/DROOLS-2502
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 6.5.0.Final, 7.0.0.Final, 7.1.0.Final, 7.2.0.Final, 7.3.0.Final, 7.4.1.Final, 7.5.0.Final, 7.6.0.Final, 7.7.0.Final
> Environment: Kie workbench + one kie execution server. Java 8. Statefull session. Stream mode.
> Reporter: Alexander Revkov
> Assignee: Mario Fusco
> Attachments: RN.TEST.zip
>
>
> Declare @role(event) rewrite exists class in drools workbench and kie execution server.
> All methods are losts.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months
[JBoss JIRA] (DROOLS-2502) Declare role event erase exists class
by Alexander Revkov (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2502?page=com.atlassian.jira.plugi... ]
Alexander Revkov updated DROOLS-2502:
-------------------------------------
Steps to Reproduce:
I created a fact POJO in drools workbench.
Example:
{code:java}
public class MyFact1 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
public class MyFact2 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
{code}
then i define drl
{code:java}
packadge com.my.rules
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
This is work fine.
But when i declare my classes as events:
{code:java}
packadge com.my.rules
declare MyFact1
@role(event)
@expires(1d)
end
declare MyFact2
@role(event)
@expires(1d)
end
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
I get a UnhandledException: java.lang.NoSuchMethodError: com.my.rules.MyFact2.setName(Ljava/lang/String;) in kie server logs.
Please fix it.
was:
I created a fact POJO in drools workbench.
Example:
{code:java}
public class MyFact1 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
public class MyFact2 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
{code}
then i define drl
{code:java}
packadge com.my.rules
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
This is work fine.
But when i declare my classes as events:
{code:java}
packadge com.my.rules
declare MyFact1
@role(event)
@expires(1d)
end
declare MyFact2
@role(event)
@expires(1d)
end
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
I get a UnhandledException: java.lang.NoSuchMethodError: com.my.rules.Fact2.setName(Ljava/lang/String;) in kie server logs.
Please fix it.
> Declare role event erase exists class
> -------------------------------------
>
> Key: DROOLS-2502
> URL: https://issues.jboss.org/browse/DROOLS-2502
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 6.5.0.Final, 7.0.0.Final, 7.1.0.Final, 7.2.0.Final, 7.3.0.Final, 7.4.1.Final, 7.5.0.Final, 7.6.0.Final, 7.7.0.Final
> Environment: Kie workbench + one kie execution server. Java 8. Statefull session. Stream mode.
> Reporter: Alexander Revkov
> Assignee: Mario Fusco
> Attachments: RN.TEST.zip
>
>
> Declare @role(event) rewrite exists class in drools workbench and kie execution server.
> All methods are losts.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months
[JBoss JIRA] (DROOLS-2502) Declare role event erase exists class
by Alexander Revkov (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2502?page=com.atlassian.jira.plugi... ]
Alexander Revkov updated DROOLS-2502:
-------------------------------------
Attachment: RN.TEST.zip
> Declare role event erase exists class
> -------------------------------------
>
> Key: DROOLS-2502
> URL: https://issues.jboss.org/browse/DROOLS-2502
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 6.5.0.Final, 7.0.0.Final, 7.1.0.Final, 7.2.0.Final, 7.3.0.Final, 7.4.1.Final, 7.5.0.Final, 7.6.0.Final, 7.7.0.Final
> Environment: Kie workbench + one kie execution server. Java 8. Statefull session. Stream mode.
> Reporter: Alexander Revkov
> Assignee: Mario Fusco
> Attachments: RN.TEST.zip
>
>
> Declare @role(event) rewrite exists class in drools workbench and kie execution server.
> All methods are losts.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months
[JBoss JIRA] (DROOLS-2502) Declare role event erase exists class
by Alexander Revkov (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2502?page=com.atlassian.jira.plugi... ]
Alexander Revkov updated DROOLS-2502:
-------------------------------------
Steps to Reproduce:
I created a fact POJO in drools workbench.
Example:
{code:java}
public class MyFact1 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
public class MyFact2 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
{code}
then i define drl
{code:java}
packadge com.my.rules
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
This is work fine.
But when i declare my classes as events:
{code:java}
packadge com.my.rules
declare MyFact1
@role(event)
@expires(1d)
end
declare MyFact2
@role(event)
@expires(1d)
end
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
I get a UnhandledException: java.lang.NoSuchMethodError: com.my.rules.Fact2.setName(Ljava/lang/String;) in kie server logs.
Please fix it.
was:
I created a fact POJO in drools workbench.
Example:
{code:java}
public class MyFact1 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
public class MyFact2 {
private java.lang.String name;
public java.lang.String getName() {
return name;
}
public void setName(java.lang.String name) {
this.name=name;
}
}
{code}
then i define drl
{code:java}
packadge com.my.rules
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
This is work fine.
But when i declare my classes as events:
{code:java}
packadge com.my.rules
declare Fact1
@role(event)
@expires(1d)
end
declare Fact2
@role(event)
@expires(1d)
end
rule "MyRule"
when
MyFact( )
then
MyFact2 fact2 = new MyFact2();
fact2.setName("blabla");
insert(fact2);
end
{code}
I get a UnhandledException: java.lang.NoSuchMethodError: com.my.rules.Fact2.setName(Ljava/lang/String;) in kie server logs.
Please fix it.
> Declare role event erase exists class
> -------------------------------------
>
> Key: DROOLS-2502
> URL: https://issues.jboss.org/browse/DROOLS-2502
> Project: Drools
> Issue Type: Bug
> Components: kie server
> Affects Versions: 6.5.0.Final, 7.0.0.Final, 7.1.0.Final, 7.2.0.Final, 7.3.0.Final, 7.4.1.Final, 7.5.0.Final, 7.6.0.Final, 7.7.0.Final
> Environment: Kie workbench + one kie execution server. Java 8. Statefull session. Stream mode.
> Reporter: Alexander Revkov
> Assignee: Mario Fusco
>
> Declare @role(event) rewrite exists class in drools workbench and kie execution server.
> All methods are losts.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months
[JBoss JIRA] (WFLY-10278) Bean discovery in deployment dependencies (modules) fails to inject from static module-alias's exported dependency
by Bartosz Spyrko-Śmietanko (JIRA)
[ https://issues.jboss.org/browse/WFLY-10278?page=com.atlassian.jira.plugin... ]
Bartosz Spyrko-Śmietanko reassigned WFLY-10278:
-----------------------------------------------
Assignee: (was: Bartosz Spyrko-Śmietanko)
> Bean discovery in deployment dependencies (modules) fails to inject from static module-alias's exported dependency
> ------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-10278
> URL: https://issues.jboss.org/browse/WFLY-10278
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Reporter: Lin Gao
> Priority: Critical
> Labels: downstream_dependency
>
> WAR CDI bean is failing to inject a CDI bean from a module-alias exported dependency. war -module-alias -> static module X -> static module Y (containing CDI Beans)
> A WAR uses a module-alias with the slot attribute. This module-alias is referenced in jboss-deployment-structure.xml:
> {code:java}
> <jboss-deployment-structure>
> <deployment>
> <dependencies>
> <module name="mycompany.test.CDIJarMaven" slot="moduloAliasError" meta-inf="export" annotations="true" />
> </dependencies>
> </deployment>
> </jboss-deployment-structure>
> {code}
> moduleAliasError which the app has the target moduloNivel2:
> {code}
> <module-alias xmlns="urn:jboss:module:1.1" name="mycompany.test.CDIJarMaven" slot="moduloAliasError" target-name="mycompany.test.CDIJarMaven" target-slot="moduloNivel2"/>
> {code}
> moduloNivel2 which the modulo-alias references depends on main module and is including/exporting META-INF where the beans.xml is located:
> {code:java}
> <module xmlns="urn:jboss:module:1.5" name="mycompany.test.CDIJarMaven">
> <resources>
> <resource-root path="CDIJarMaven.jar"/>
> </resources>
> <dependencies>
> <module name="javax.faces.api" export="true"/>
>
> <!-- Timer de ejbs para el log de acceso-->
> <module name="javax.ejb.api"/>
> <module name="javax.enterprise.api" />
> </dependencies>
> </module>
> {code:java}
> modulo main contains the jar with the CDI beans and has a META-INF/beans.xml in it:
> {code:java}
> <module xmlns="urn:jboss:module:1.1" name="mycompany.test.CDIJarMaven" slot="moduloNivel2">
> <dependencies>
> <module name="mycompany.test.CDIJarMaven" slot="main" export="true">
> <imports>
> <include path="META-INF**" />
> </imports>
> <exports>
> <include path="META-INF**" />
> </exports>
> </module>
> </dependencies>
> </module>
> {code}
> The error we get is:
> {code:java}
> WELD-001408: Unsatisfied dependencies for type PruebaDTO with qualifiers @Default
> at injection point [BackedAnnotatedField] @Inject private backingbeans.Page1.paginacion
> at backingbeans.Page1.paginacion(Page1.java:0)
> {code}
> Checking the code one can see how the beans.xml is seen :
> {code:java}
> EXTERNAL BeanDeploymentArchive (awar-mock02.war.external.jar:file:/jboss-eap-7.1/modules/mycompany/test/CDIJarMaven/main/CDIJarMaven.jar!/META-INF/beans.xml)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months
[JBoss JIRA] (WFLY-10278) Bean discovery in deployment dependencies (modules) fails to inject from static module-alias's exported dependency
by Bartosz Spyrko-Śmietanko (JIRA)
[ https://issues.jboss.org/browse/WFLY-10278?page=com.atlassian.jira.plugin... ]
Bartosz Spyrko-Śmietanko reassigned WFLY-10278:
-----------------------------------------------
Assignee: Bartosz Spyrko-Śmietanko
> Bean discovery in deployment dependencies (modules) fails to inject from static module-alias's exported dependency
> ------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-10278
> URL: https://issues.jboss.org/browse/WFLY-10278
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Reporter: Lin Gao
> Assignee: Bartosz Spyrko-Śmietanko
> Priority: Critical
> Labels: downstream_dependency
>
> WAR CDI bean is failing to inject a CDI bean from a module-alias exported dependency. war -module-alias -> static module X -> static module Y (containing CDI Beans)
> A WAR uses a module-alias with the slot attribute. This module-alias is referenced in jboss-deployment-structure.xml:
> {code:java}
> <jboss-deployment-structure>
> <deployment>
> <dependencies>
> <module name="mycompany.test.CDIJarMaven" slot="moduloAliasError" meta-inf="export" annotations="true" />
> </dependencies>
> </deployment>
> </jboss-deployment-structure>
> {code}
> moduleAliasError which the app has the target moduloNivel2:
> {code}
> <module-alias xmlns="urn:jboss:module:1.1" name="mycompany.test.CDIJarMaven" slot="moduloAliasError" target-name="mycompany.test.CDIJarMaven" target-slot="moduloNivel2"/>
> {code}
> moduloNivel2 which the modulo-alias references depends on main module and is including/exporting META-INF where the beans.xml is located:
> {code:java}
> <module xmlns="urn:jboss:module:1.5" name="mycompany.test.CDIJarMaven">
> <resources>
> <resource-root path="CDIJarMaven.jar"/>
> </resources>
> <dependencies>
> <module name="javax.faces.api" export="true"/>
>
> <!-- Timer de ejbs para el log de acceso-->
> <module name="javax.ejb.api"/>
> <module name="javax.enterprise.api" />
> </dependencies>
> </module>
> {code:java}
> modulo main contains the jar with the CDI beans and has a META-INF/beans.xml in it:
> {code:java}
> <module xmlns="urn:jboss:module:1.1" name="mycompany.test.CDIJarMaven" slot="moduloNivel2">
> <dependencies>
> <module name="mycompany.test.CDIJarMaven" slot="main" export="true">
> <imports>
> <include path="META-INF**" />
> </imports>
> <exports>
> <include path="META-INF**" />
> </exports>
> </module>
> </dependencies>
> </module>
> {code}
> The error we get is:
> {code:java}
> WELD-001408: Unsatisfied dependencies for type PruebaDTO with qualifiers @Default
> at injection point [BackedAnnotatedField] @Inject private backingbeans.Page1.paginacion
> at backingbeans.Page1.paginacion(Page1.java:0)
> {code}
> Checking the code one can see how the beans.xml is seen :
> {code:java}
> EXTERNAL BeanDeploymentArchive (awar-mock02.war.external.jar:file:/jboss-eap-7.1/modules/mycompany/test/CDIJarMaven/main/CDIJarMaven.jar!/META-INF/beans.xml)
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7 years, 5 months