[JBoss JIRA] (WFLY-13693) Custom Infinispan cache regions fail when using legacy (non-JPA) Hibernate configuration
by Stephen Fikes (Jira)
Stephen Fikes created WFLY-13693:
------------------------------------
Summary: Custom Infinispan cache regions fail when using legacy (non-JPA) Hibernate configuration
Key: WFLY-13693
URL: https://issues.redhat.com/browse/WFLY-13693
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 14.0.0.Final
Reporter: Stephen Fikes
Assignee: Scott Marlow
A custom cache template is defined in the "hibernate" cache container in the {{standalone.xml}}
{code:java}
<local-cache name="entities.custom-cache">
<transaction mode="NONE"/>
<object-memory size="10"/>
</local-cache>
{code}
In the legacy {{hibernate.cfg.xml}} this is associated with a named cache region.
{code:java}
<property name="hibernate.cache.region_prefix">entities</property>
<property name="hibernate.cache.infinispan.entities.custom-cache.cfg">entities.custom-cache</property>
<property name="hibernate.cache.use_second_level_cache">true</property>
{code}
The cache region is then referenced in an entity annotation:
{code:java}
@Entity
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE, region="custom-cache")
public class Employee {
...
}
{code}
At deployment, an exception is logged:
{noformat}
... HHH025007: Custom cache configuration 'entities.custom-cache' was requested for region entities.custom-cache but it was not found - using configuration by type (entity).
{noformat}
This same approach (but using transactional caching) worked in Wildfly 11.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5528) Drools buisness central ldap authentication
by prabhat kumar (Jira)
[ https://issues.redhat.com/browse/DROOLS-5528?page=com.atlassian.jira.plug... ]
prabhat kumar commented on DROOLS-5528:
---------------------------------------
Hi Team,
I have configured the kie buisness central and kie server on the wildfly and its working fine. But we need to implement LDAP security authentication and have configured the same in wildfly standalone-full.xml . I am able to login to workbench and performed the rules related action.
But My issue is that Buisness central workbench is unable to registered with kieserver at time of startup,even I have created users on the LDAP server with below roles:-
User:- prabhatA
password:-password
role:- rest-all,admin
User:- prabhatServer
password:-password
role:- kie-server,admin
And mentioned the credentionl in system properties tag of standalone-full.xml:-
<property name="org.kie.server.controller.user" value="prabhatA"/>
<property name="org.kie.server.controller.password" value="password"/>
<property name="org.kie.server.user" value="prabhatServer"/>
<property name="org.kie.server.pwd" value="password"/>
<property name="org.kie.server.controller" value="[http://localhost:8080/business-central/rest/controller]"/>
<property name="org.kie.server.location" value="[http://localhost:8080/kie-server/services/rest/server]"/>
<property name="[org.kie.server.id|http://org.kie.server.id/]" value="wildfly-kieserver"/>
Also add ldap configuration for the login module as below:-
<security-domain name="ldap" cache-type="default">
<authentication>
<login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required">
<module-option name="java.naming.provider.url" value="ldap://localhost:10389"/>
<module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
<module-option name="java.naming.security.authentication" value="simple"/>
<module-option name="bindDN" value="uid=admin,ou=system"/>
<module-option name="bindCredential" value="secret"/>
<module-option name="baseCtxDN" value="ou=pepoleTest,dc=example,dc=com"/>
<module-option name="baseFilter" value="(uid=\{0})"/>
<module-option name="rolesCtxDN" value="ou=ruleTest,dc=example,dc=com"/>
<module-option name="roleFilter" value="(member=\{1})"/>
<module-option name="roleAttributeID" value="cn"/>
<module-option name="roleAttributeIsDN" value="true"/>
<module-option name="roleNameAttributeID" value="cn"/>
<module-option name="roleRecursion" value="2"/>
<module-option name="searchScope" value="SUBTREE_SCOPE"/>
</login-module>
</authentication>
</security-domain>
I have also updated the security doman value in jboss-web.xml of business central and kie server wars.
<security-domain>ldap</security-domain>
Note:----
If I create user on LDAP server with below details:-
username =kieserver
password = kieserver1!
role= kie-server
Then both business central and kie server are able to register themselves successfully.But this approcah forcing us to create user on LDAP server with above details(kieserver).
Could you please suggest the way so that I don't need to create user with details (userName=kieserver and password=kieserver1!).
> Drools buisness central ldap authentication
> -------------------------------------------
>
> Key: DROOLS-5528
> URL: https://issues.redhat.com/browse/DROOLS-5528
> Project: Drools
> Issue Type: Feature Request
> Reporter: prabhat kumar
> Assignee: Mario Fusco
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13692) Anything in jboss-all.xml after <weld/> element is ignored
by Matěj Novotný (Jira)
[ https://issues.redhat.com/browse/WFLY-13692?page=com.atlassian.jira.plugi... ]
Matěj Novotný commented on WFLY-13692:
--------------------------------------
{quote}They do not parse <weld> element as XML, they just check attributes.
{quote}
Hmm how should we parse it then? Looking at {{JBossAllXMLParser}} which we implement, its javadoc seems to indicate that you only need to parse the given element that you register as root with the processor.
> Anything in jboss-all.xml after <weld/> element is ignored
> ----------------------------------------------------------
>
> Key: WFLY-13692
> URL: https://issues.redhat.com/browse/WFLY-13692
> Project: WildFly
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 20.0.1.Final
> Reporter: L K
> Assignee: Matěj Novotný
> Priority: Major
>
> Classes org.jboss.as.weld.WeldJBossAll10Parser and org.jboss.as.weld.WeldJBossAll11Parser are incorrect. They do not parse <weld> element as XML, they just check attributes.
> As a result, everything that comes after </weld> is ignored.
> This jboss-all.xml fails, as expected:
> {code:java}
> <jboss xmlns="urn:jboss:1.0">
> <some-stupid-element/>
> <weld xmlns="urn:jboss:weld:1.1"/>
> </jboss>
> {code}
> This one is successfully parsed (but must also fail):
> {code:java}
> <jboss xmlns="urn:jboss:1.0">
> <weld xmlns="urn:jboss:weld:1.1"/>
> <some-stupid-element/>
> </jboss>
> {code}
>
> Now imagine that "some-stupid-element" is in fact "jboss-deployment-structure" which gets ignored...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5527) Exec model fails cast when using kie-dmn-validation rules
by Matteo Mortari (Jira)
Matteo Mortari created DROOLS-5527:
--------------------------------------
Summary: Exec model fails cast when using kie-dmn-validation rules
Key: DROOLS-5527
URL: https://issues.redhat.com/browse/DROOLS-5527
Project: Drools
Issue Type: Bug
Components: core engine, dmn engine
Reporter: Matteo Mortari
Assignee: Luca Molteni
Attachments: Screenshot 2020-07-23 at 16.41.17.png
See failure log attached,
Seems `org.kie.dmn.model.v1_3.TKnowledgeRequirement cannot be cast to org.kie.dmn.model.api.Import` is the causing failures of the test errors
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13691) Ajax call causes exception: Target Unreachable, 'null' returned null
by Chao Wang (Jira)
[ https://issues.redhat.com/browse/WFLY-13691?page=com.atlassian.jira.plugi... ]
Chao Wang commented on WFLY-13691:
----------------------------------
Is this a different issue or same issue as before ? What exception happened ? Can you provide a simple reproducer without PrimeFaces ?
> Ajax call causes exception: Target Unreachable, 'null' returned null
> --------------------------------------------------------------------
>
> Key: WFLY-13691
> URL: https://issues.redhat.com/browse/WFLY-13691
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 20.0.1.Final
> Reporter: erick leal
> Priority: Major
>
> I still have a problem with JSF 2.3 related to ViewParam, I tested it with WildFly 20.0.1 and the bug is still there. I tried to reduce the code, but I was only able to simulate the error using PrimeFaces. The code is in the repository [https://github.com/erickdeoliveiraleal/primefaces-test/tree/v...
> Note that Wildfly already incorporated all the fixes recently done by [@soul2zimate|https://github.com/soul2zimate]
> When you click on button the second time a exception happens, this is not the case when using mojarra 2.2, myfaces 2.2 or myfaces 2.3
> XHTML:
>
> {code:java}
> <f:metadata> <f:viewParam id="id" name="id" value="#{testView.testClass.id}" /> </f:metadata> <h:form> <p:commandButton update="@form" /> <p:dataTable var="m" selectionMode="single" selection="#{testView.testClass}" rowKey="#{m.id}" value="#{testView.testClasses}"> </p:dataTable> </h:form>{code}
> beans
> {code:java}
> import java.io.Serializable; import java.util.List; import javax.annotation.PostConstruct; import javax.faces.view.ViewScoped; import javax.inject.Named; @Named @ViewScoped public class TestView implements Serializable { private TestClass testClass; private List<TestClass> testClasses; @PostConstruct public void init() { testClass = new TestClass(); } public TestClass getTestClass() { return testClass; } public void setTestClass(TestClass testClass) { this.testClass = testClass; } public List<TestClass> getTestClasses() { return testClasses; } public void setTestClasses(List<TestClass> testClasses) { this.testClasses = testClasses; } }{code}
> model
> {code:java}
> public class TestClass { Integer id; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }{code}
> You also need to set in web.xml the following param
> {code:java}
> <context-param> <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name> <param-value>true</param-value> </context-param>{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFCORE-5023) A few tests don't work using IBM JDK because of mock-server 5.9.0
by Ricardo Martin Camarero (Jira)
[ https://issues.redhat.com/browse/WFCORE-5023?page=com.atlassian.jira.plug... ]
Ricardo Martin Camarero commented on WFCORE-5023:
-------------------------------------------------
I tested the new 5.11.0 but it generates a lot of conflicts with new dependencies (maven-enforcer-plugin) so I'm keeping the downgrade for the moment.
> A few tests don't work using IBM JDK because of mock-server 5.9.0
> -----------------------------------------------------------------
>
> Key: WFCORE-5023
> URL: https://issues.redhat.com/browse/WFCORE-5023
> Project: WildFly Core
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 13.0.0.Beta1
> Reporter: Ricardo Martin Camarero
> Assignee: Ricardo Martin Camarero
> Priority: Major
>
> After JIRA WFCORE-4850 the mock-server 5.9.0 does not work with IBM JDK which makes a few tests fail with the following error:
> {code:bash}
> cd ./testsuite/standalone/
> export JAVA_HOME=/home/rmartinc/apps/ibm-java-x86_64-80/
> mvn clean test -Dtest=org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase
> ...
> [INFO] -------------------------------------------------------
> [INFO] T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.005 s <<< FAILURE! - in org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase
> [ERROR] org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase Time elapsed: 0.003 s <<< ERROR!
> java.lang.NoClassDefFoundError: sun.security.x509.GeneralNameInterface
> at org.mockserver.socket.tls.jdk.JDKKeyAndCertificateFactory.<init>(JDKKeyAndCertificateFactory.java:36)
> at org.mockserver.socket.tls.NettySslContextFactory.<init>(NettySslContextFactory.java:37)
> at org.mockserver.client.MockServerClient.<init>(MockServerClient.java:57)
> at org.mockserver.integration.ClientAndServer.<init>(ClientAndServer.java:19)
> at org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase.setup(SecurityCommandsTestCase.java:358)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
> at java.lang.reflect.Method.invoke(Method.java:508)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
> at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
> at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
> at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.wildfly.core.testrunner.WildflyTestRunner.run(WildflyTestRunner.java:157)
> at org.junit.runners.Suite.runChild(Suite.java:128)
> at org.junit.runners.Suite.runChild(Suite.java:27)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
> at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
> at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
> at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
> Caused by: java.lang.ClassNotFoundException: sun.security.x509.GeneralNameInterface
> at java.net.URLClassLoader.findClass(URLClassLoader.java:610)
> at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:944)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:889)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:872)
> ... 36 more
> {code}
> The tests that don't work are the following three classes:
> * CertificateAuthoritiesTestCase.java (elytron)
> * KeyStoresTestCase.java (elytron)
> * SecurityCommandsTestCase.java (testsuite/standalone)
> This is explained in the mock-server [issue 750|https://github.com/mock-server/mockserver/issues/750]. For the moment the only solution is doing a downgrade to 5.8.1. Although it is expected to be fixed soon in the mock-server (maybe in the next version 5.10.1 or 5.11.0).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFCORE-5060) AS-TS IBM test cases fails due to update mockserver-netty
by Ricardo Martin Camarero (Jira)
[ https://issues.redhat.com/browse/WFCORE-5060?page=com.atlassian.jira.plug... ]
Ricardo Martin Camarero commented on WFCORE-5060:
-------------------------------------------------
I think this is a duplicate of WFCORE-5023. I sent a patch a few days ago, downgrading the version to 5.8.1 is OK. We can also upgrade to 5.11.0 but that generated a lot of dependency issues and I decided to send the downgrade for the moment. Do we close this one?
> AS-TS IBM test cases fails due to update mockserver-netty
> ---------------------------------------------------------
>
> Key: WFCORE-5060
> URL: https://issues.redhat.com/browse/WFCORE-5060
> Project: WildFly Core
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 11.0.0.Final, 12.0.3.Final, 13.0.0.Beta2
> Reporter: Vratislav Marek
> Priority: Major
>
> Affected test Cases
> * org.wildfly.extension.elytron.CertificateAuthoritiesTestCase
> * org.wildfly.extension.elytron.KeyStoresTestCase
> * org.jboss.as.test.integration.management.cli.SecurityCommandsTestCase
> It failed after:
> * [wildfly/wildfly-core: Pull Request 4085|https://github.com/wildfly/wildfly-core/pull/4085]
> * update mockserver-client-java/core/netty from 5.4.1 to 5.9.0
> Root cause:
> * java.lang.NoClassDefFoundError: sun.security.x509.GeneralNameInterface
> Environments:
> * IBM jdk 1.8
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13691) Ajax call causes exception: Target Unreachable, 'null' returned null
by Farah Juma (Jira)
[ https://issues.redhat.com/browse/WFLY-13691?page=com.atlassian.jira.plugi... ]
Farah Juma reassigned WFLY-13691:
---------------------------------
Assignee: (was: Farah Juma)
> Ajax call causes exception: Target Unreachable, 'null' returned null
> --------------------------------------------------------------------
>
> Key: WFLY-13691
> URL: https://issues.redhat.com/browse/WFLY-13691
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 20.0.1.Final
> Reporter: erick leal
> Priority: Major
>
> I still have a problem with JSF 2.3 related to ViewParam, I tested it with WildFly 20.0.1 and the bug is still there. I tried to reduce the code, but I was only able to simulate the error using PrimeFaces. The code is in the repository [https://github.com/erickdeoliveiraleal/primefaces-test/tree/v...
> Note that Wildfly already incorporated all the fixes recently done by [@soul2zimate|https://github.com/soul2zimate]
> When you click on button the second time a exception happens, this is not the case when using mojarra 2.2, myfaces 2.2 or myfaces 2.3
> XHTML:
>
> {code:java}
> <f:metadata> <f:viewParam id="id" name="id" value="#{testView.testClass.id}" /> </f:metadata> <h:form> <p:commandButton update="@form" /> <p:dataTable var="m" selectionMode="single" selection="#{testView.testClass}" rowKey="#{m.id}" value="#{testView.testClasses}"> </p:dataTable> </h:form>{code}
> beans
> {code:java}
> import java.io.Serializable; import java.util.List; import javax.annotation.PostConstruct; import javax.faces.view.ViewScoped; import javax.inject.Named; @Named @ViewScoped public class TestView implements Serializable { private TestClass testClass; private List<TestClass> testClasses; @PostConstruct public void init() { testClass = new TestClass(); } public TestClass getTestClass() { return testClass; } public void setTestClass(TestClass testClass) { this.testClass = testClass; } public List<TestClass> getTestClasses() { return testClasses; } public void setTestClasses(List<TestClass> testClasses) { this.testClasses = testClasses; } }{code}
> model
> {code:java}
> public class TestClass { Integer id; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }{code}
> You also need to set in web.xml the following param
> {code:java}
> <context-param> <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name> <param-value>true</param-value> </context-param>{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months