[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)
6 years
[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)
6 years
[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)
6 years
[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)
6 years
[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)
6 years
[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)
6 years
[JBoss JIRA] (WFLY-10278) Bean discovery in deployment dependencies (modules) fails to inject from static module-alias's exported dependency
by Lin Gao (JIRA)
[ https://issues.jboss.org/browse/WFLY-10278?page=com.atlassian.jira.plugin... ]
Lin Gao updated WFLY-10278:
---------------------------
Priority: Critical (was: Major)
> 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)
6 years