[JBoss JIRA] (WFCORE-5013) Remove the wildfly-openssl i386 bindings
by Farah Juma (Jira)
Farah Juma created WFCORE-5013:
----------------------------------
Summary: Remove the wildfly-openssl i386 bindings
Key: WFCORE-5013
URL: https://issues.redhat.com/browse/WFCORE-5013
Project: WildFly Core
Issue Type: Task
Components: Security
Reporter: Farah Juma
Assignee: Farah Juma
We should remove the wildfly-openssl-linux-i386 and the wildfly-openssl-windows-i386 bindings for WildFly Core 13.0.0.Final (i.e., WildFly 21 Final).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13601) JACC Not Correctly Activated Without Legacy Security
by Darran Lofthouse (Jira)
Darran Lofthouse created WFLY-13601:
---------------------------------------
Summary: JACC Not Correctly Activated Without Legacy Security
Key: WFLY-13601
URL: https://issues.redhat.com/browse/WFLY-13601
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Fix For: 21.0.0.Beta1
The legacy security subsystem contains a deployment unit processor which establishes the JACC Policy for a deployment as it is deployed, once this subsystem is removed the policy is no longer established.
We need an equivalent within the WildFly Elytron subsystem, at the same time we need to avoid duplication. Ideally if one subsystem can detect the other it can skip installing it's own DUPs but failing that the DUP will need to check if the other is present. As we are looking at the required steps to remove legacy security by default we may want to consider the Elytron approach having a higher priority.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13598) Hard coded dependencies from resource adapters to legacy security sercvies.
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFLY-13598?page=com.atlassian.jira.plugi... ]
Darran Lofthouse reassigned WFLY-13598:
---------------------------------------
Assignee: (was: Darran Lofthouse)
> Hard coded dependencies from resource adapters to legacy security sercvies.
> ---------------------------------------------------------------------------
>
> Key: WFLY-13598
> URL: https://issues.redhat.com/browse/WFLY-13598
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Security
> Affects Versions: 20.0.0.Final
> Reporter: Darran Lofthouse
> Priority: Major
> Labels: legacy_security_removal
>
> A resource adapter defined similar to:
>
> {code:xml}
> <resource-adapters>
> <resource-adapter id="myrar.rar">
> <archive>
> myrar.rar
> </archive>
> <connection-definitions>
> <connection-definition class-name="org.wildfly.test.MyRar" pool-name="connection-definition"/>
> </connection-definitions>
> </resource-adapter>
> </resource-adapters>
> {code}
> Leads to an error:
> {code}
> 13:48:11,932 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "resource-adapters"),
> ("resource-adapter" => "myrar.rar"),
> ("connection-definitions" => "connection-definition")
> ]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => [
> "jboss.security.subject-factory",
> "jboss.security.simple-security-manager"
> ],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.resourceadapters.ra.\"myrar.rar\".connection-definition is missing [jboss.security.simple-security-manager, jboss.security.subject-factory]"]
> }
> {code}
> Resources should not depend on legacy security by default as it may not be there.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13598) Hard coded dependencies from resource adapters to legacy security sercvies.
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFLY-13598?page=com.atlassian.jira.plugi... ]
Darran Lofthouse commented on WFLY-13598:
-----------------------------------------
I have been able to eliminate the error by converting the last CLI operation to:
/subsystem=resource-adapters/resource-adapter=myrar.rar/connection-definitions=connection-definition:add(class-name=org.wildfly.test.MyRar, *elytron-enabled=true, recovery-elytron-enabled=true*)
I am converting to an enhancement for now but maybe this is still borderline bug, I think for a couple of reasons:
# Removal of the legacy security subsystem shouldn't break a resource adapter which has no security configuration of it's own.
# A resource adapter with no security configuration should not require security attributes just to get it to install.
Ideally we would have something that detects if legacy security is installed or not.
The specific dependencies are added at this point:
https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/or...
> Hard coded dependencies from resource adapters to legacy security sercvies.
> ---------------------------------------------------------------------------
>
> Key: WFLY-13598
> URL: https://issues.redhat.com/browse/WFLY-13598
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Security
> Affects Versions: 20.0.0.Final
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Priority: Major
> Labels: legacy_security_removal
> Fix For: 21.0.0.Beta1
>
>
> A resource adapter defined similar to:
>
> {code:xml}
> <resource-adapters>
> <resource-adapter id="myrar.rar">
> <archive>
> myrar.rar
> </archive>
> <connection-definitions>
> <connection-definition class-name="org.wildfly.test.MyRar" pool-name="connection-definition"/>
> </connection-definitions>
> </resource-adapter>
> </resource-adapters>
> {code}
> Leads to an error:
> {code}
> 13:48:11,932 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "resource-adapters"),
> ("resource-adapter" => "myrar.rar"),
> ("connection-definitions" => "connection-definition")
> ]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => [
> "jboss.security.subject-factory",
> "jboss.security.simple-security-manager"
> ],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.resourceadapters.ra.\"myrar.rar\".connection-definition is missing [jboss.security.simple-security-manager, jboss.security.subject-factory]"]
> }
> {code}
> Resources should not depend on legacy security by default as it may not be there.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13598) Hard coded dependencies from resource adapters to legacy security sercvies.
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFLY-13598?page=com.atlassian.jira.plugi... ]
Darran Lofthouse updated WFLY-13598:
------------------------------------
Fix Version/s: (was: 21.0.0.Beta1)
> Hard coded dependencies from resource adapters to legacy security sercvies.
> ---------------------------------------------------------------------------
>
> Key: WFLY-13598
> URL: https://issues.redhat.com/browse/WFLY-13598
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Security
> Affects Versions: 20.0.0.Final
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Priority: Major
> Labels: legacy_security_removal
>
> A resource adapter defined similar to:
>
> {code:xml}
> <resource-adapters>
> <resource-adapter id="myrar.rar">
> <archive>
> myrar.rar
> </archive>
> <connection-definitions>
> <connection-definition class-name="org.wildfly.test.MyRar" pool-name="connection-definition"/>
> </connection-definitions>
> </resource-adapter>
> </resource-adapters>
> {code}
> Leads to an error:
> {code}
> 13:48:11,932 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "resource-adapters"),
> ("resource-adapter" => "myrar.rar"),
> ("connection-definitions" => "connection-definition")
> ]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => [
> "jboss.security.subject-factory",
> "jboss.security.simple-security-manager"
> ],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.resourceadapters.ra.\"myrar.rar\".connection-definition is missing [jboss.security.simple-security-manager, jboss.security.subject-factory]"]
> }
> {code}
> Resources should not depend on legacy security by default as it may not be there.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13598) Hard coded dependencies from resource adapters to legacy security sercvies.
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFLY-13598?page=com.atlassian.jira.plugi... ]
Darran Lofthouse updated WFLY-13598:
------------------------------------
Issue Type: Enhancement (was: Bug)
> Hard coded dependencies from resource adapters to legacy security sercvies.
> ---------------------------------------------------------------------------
>
> Key: WFLY-13598
> URL: https://issues.redhat.com/browse/WFLY-13598
> Project: WildFly
> Issue Type: Enhancement
> Components: JCA, Security
> Affects Versions: 20.0.0.Final
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Priority: Major
> Labels: legacy_security_removal
> Fix For: 21.0.0.Beta1
>
>
> A resource adapter defined similar to:
>
> {code:xml}
> <resource-adapters>
> <resource-adapter id="myrar.rar">
> <archive>
> myrar.rar
> </archive>
> <connection-definitions>
> <connection-definition class-name="org.wildfly.test.MyRar" pool-name="connection-definition"/>
> </connection-definitions>
> </resource-adapter>
> </resource-adapters>
> {code}
> Leads to an error:
> {code}
> 13:48:11,932 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "resource-adapters"),
> ("resource-adapter" => "myrar.rar"),
> ("connection-definitions" => "connection-definition")
> ]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => [
> "jboss.security.subject-factory",
> "jboss.security.simple-security-manager"
> ],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.resourceadapters.ra.\"myrar.rar\".connection-definition is missing [jboss.security.simple-security-manager, jboss.security.subject-factory]"]
> }
> {code}
> Resources should not depend on legacy security by default as it may not be there.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13598) Hard coded dependencies from resource adapters to legacy security sercvies.
by Darran Lofthouse (Jira)
[ https://issues.redhat.com/browse/WFLY-13598?page=com.atlassian.jira.plugi... ]
Darran Lofthouse updated WFLY-13598:
------------------------------------
Labels: legacy_security_removal (was: )
> Hard coded dependencies from resource adapters to legacy security sercvies.
> ---------------------------------------------------------------------------
>
> Key: WFLY-13598
> URL: https://issues.redhat.com/browse/WFLY-13598
> Project: WildFly
> Issue Type: Bug
> Components: JCA, Security
> Affects Versions: 20.0.0.Final
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Priority: Major
> Labels: legacy_security_removal
> Fix For: 21.0.0.Beta1
>
>
> A resource adapter defined similar to:
>
> {code:xml}
> <resource-adapters>
> <resource-adapter id="myrar.rar">
> <archive>
> myrar.rar
> </archive>
> <connection-definitions>
> <connection-definition class-name="org.wildfly.test.MyRar" pool-name="connection-definition"/>
> </connection-definitions>
> </resource-adapter>
> </resource-adapters>
> {code}
> Leads to an error:
> {code}
> 13:48:11,932 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "resource-adapters"),
> ("resource-adapter" => "myrar.rar"),
> ("connection-definitions" => "connection-definition")
> ]) - failure description: {
> "WFLYCTL0412: Required services that are not installed:" => [
> "jboss.security.subject-factory",
> "jboss.security.simple-security-manager"
> ],
> "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.resourceadapters.ra.\"myrar.rar\".connection-definition is missing [jboss.security.simple-security-manager, jboss.security.subject-factory]"]
> }
> {code}
> Resources should not depend on legacy security by default as it may not be there.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13600) EJB client over HTTP Fail on Java SE
by Gergely Molnár (Jira)
[ https://issues.redhat.com/browse/WFLY-13600?page=com.atlassian.jira.plugi... ]
Gergely Molnár updated WFLY-13600:
----------------------------------
Description:
Java SE code:
{code:java}
public class Application {
private static final String REMOTE_CALC = "ejb:/remote-ejb/RemoteCalc!" + RemoteCalc.class.getName();
/**
* Lookup remote \{@link RemoteCalc}.
*
* @return a \{@link RemoteCalc} object
* @throws NamingException Something is wrong
*/
public static RemoteCalc getRemoteCalc() throws NamingException {
Hashtable<String, Object> jndiProps = new Hashtable<>();
jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
// remote+http connection (work fine)
//jndiProps.put(Context.PROVIDER_URL, "remote+http://127.0.0.1:8080/remote-ejb");
// http connection (fail)
jndiProps.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/wildfly-services");
Context context = new InitialContext(jndiProps);
return (RemoteCalc) context.lookup(REMOTE_CALC);
}
/**
* Call to run (main).
*
* @param args parameters (not used)
* @throws NamingException Something is wrong
*/
public static void main(String[] args) throws NamingException {
RemoteCalc remoteCalc = getRemoteCalc();
System.out.println("Remote calc 95 + 76: " + remoteCalc.add(95, 76));
}
}
{code}
Exception:
Exception in thread "main" javax.naming.InvalidNameException: WFNAM00007: Invalid URL scheme name "http"
at org.wildfly.naming.client.WildFlyRootContext.getProviderContext(WildFlyRootContext.java:808)
at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:140)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.bosch.emea.bpart.remoteejbclient.Application.getRemoteCalc(Application.java:34)
at com.bosch.emea.bpart.remoteejbclient.Application.main(Application.java:47)
Lib:
{code:java}
@Remote
public interface RemoteCalc {
/**
* Add two integer.
*
* @param a an integer
* @param b an integer
* @return a + b
*/
public int add(int a, int b);
}
{code}
Config:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<authentication-client xmlns="urn:elytron:1.0">
<authentication-rules>
<rule use-configuration="default" />
</authentication-rules>
<authentication-configurations>
<configuration name="default">
<sasl-mechanism-selector selector="#ALL" />
<set-mechanism-properties>
<property key="wildfly.sasl.local-user.quiet-auth" value="true" />
</set-mechanism-properties>
<providers>
<use-service-loader/>
</providers>
</configuration>
</authentication-configurations>
</authentication-client>
</configuration>
{code}
Maven dependency:
{code:xml}
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-ejb-client-bom</artifactId>
<version>20.0.0.Final</version>
<type>pom</type>
</dependency>
{code}
was:
Java SE code:
{code:java}
public class Application {
private static final String REMOTE_CALC = "ejb:/remote-ejb/RemoteCalc!" + RemoteCalc.class.getName();
/**
* Lookup remote \{@link RemoteCalc}.
*
* @return a \{@link RemoteCalc} object
* @throws NamingException Something is wrong
*/
public static RemoteCalc getRemoteCalc() throws NamingException {
Hashtable<String, Object> jndiProps = new Hashtable<>();
jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
// remote+http connection (work fine)
//jndiProps.put(Context.PROVIDER_URL, "remote+http://127.0.0.1:8080/remote-ejb");
// http connection (fail)
jndiProps.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/wildfly-services");
Context context = new InitialContext(jndiProps);
return (RemoteCalc) context.lookup(REMOTE_CALC);
}
/**
* Call to run (main).
*
* @param args parameters (not used)
* @throws NamingException Something is wrong
*/
public static void main(String[] args) throws NamingException {
RemoteCalc remoteCalc = getRemoteCalc();
System.out.println("Remote calc 95 + 76: " + remoteCalc.add(95, 76));
}
}
{code}
Exception:
Exception in thread "main" javax.naming.InvalidNameException: WFNAM00007: Invalid URL scheme name "http"
at org.wildfly.naming.client.WildFlyRootContext.getProviderContext(WildFlyRootContext.java:808)
at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:140)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.bosch.emea.bpart.remoteejbclient.Application.getRemoteCalc(Application.java:34)
at com.bosch.emea.bpart.remoteejbclient.Application.main(Application.java:47)
Lib:
{code:java}
@Remote
public interface RemoteCalc {
/**
* Add two integer.
*
* @param a an integer
* @param b an integer
* @return a + b
*/
public int add(int a, int b);
}
{code}
Config:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<authentication-client xmlns="urn:elytron:1.0">
<authentication-rules>
<rule use-configuration="default" />
</authentication-rules>
<authentication-configurations>
<configuration name="default">
<sasl-mechanism-selector selector="#ALL" />
<set-mechanism-properties>
<property key="wildfly.sasl.local-user.quiet-auth" value="true" />
</set-mechanism-properties>
<providers>
<use-service-loader/>
</providers>
</configuration>
</authentication-configurations>
</authentication-client>
</configuration>
{code}
Maven dependency:
{code:xml}
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-ejb-client-bom</artifactId>
<version>18.0.1.Final</version>
<type>pom</type>
</dependency>
{code}
> EJB client over HTTP Fail on Java SE
> ------------------------------------
>
> Key: WFLY-13600
> URL: https://issues.redhat.com/browse/WFLY-13600
> Project: WildFly
> Issue Type: Bug
> Components: Application Client
> Affects Versions: 20.0.0.Final
> Reporter: Gergely Molnár
> Assignee: Brian Stansberry
> Priority: Major
>
> Java SE code:
> {code:java}
> public class Application {
> private static final String REMOTE_CALC = "ejb:/remote-ejb/RemoteCalc!" + RemoteCalc.class.getName();
> /**
> * Lookup remote \{@link RemoteCalc}.
> *
> * @return a \{@link RemoteCalc} object
> * @throws NamingException Something is wrong
> */
> public static RemoteCalc getRemoteCalc() throws NamingException {
> Hashtable<String, Object> jndiProps = new Hashtable<>();
> jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
> // remote+http connection (work fine)
> //jndiProps.put(Context.PROVIDER_URL, "remote+http://127.0.0.1:8080/remote-ejb");
> // http connection (fail)
> jndiProps.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/wildfly-services");
> Context context = new InitialContext(jndiProps);
> return (RemoteCalc) context.lookup(REMOTE_CALC);
> }
> /**
> * Call to run (main).
> *
> * @param args parameters (not used)
> * @throws NamingException Something is wrong
> */
> public static void main(String[] args) throws NamingException {
>
> RemoteCalc remoteCalc = getRemoteCalc();
> System.out.println("Remote calc 95 + 76: " + remoteCalc.add(95, 76));
> }
> }
> {code}
> Exception:
> Exception in thread "main" javax.naming.InvalidNameException: WFNAM00007: Invalid URL scheme name "http"
> at org.wildfly.naming.client.WildFlyRootContext.getProviderContext(WildFlyRootContext.java:808)
> at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:140)
> at javax.naming.InitialContext.lookup(Unknown Source)
> at com.bosch.emea.bpart.remoteejbclient.Application.getRemoteCalc(Application.java:34)
> at com.bosch.emea.bpart.remoteejbclient.Application.main(Application.java:47)
> Lib:
> {code:java}
> @Remote
> public interface RemoteCalc {
> /**
> * Add two integer.
> *
> * @param a an integer
> * @param b an integer
> * @return a + b
> */
> public int add(int a, int b);
>
> }
> {code}
> Config:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <authentication-client xmlns="urn:elytron:1.0">
> <authentication-rules>
> <rule use-configuration="default" />
> </authentication-rules>
> <authentication-configurations>
> <configuration name="default">
> <sasl-mechanism-selector selector="#ALL" />
> <set-mechanism-properties>
> <property key="wildfly.sasl.local-user.quiet-auth" value="true" />
> </set-mechanism-properties>
> <providers>
> <use-service-loader/>
> </providers>
> </configuration>
> </authentication-configurations>
> </authentication-client>
> </configuration>
> {code}
> Maven dependency:
> {code:xml}
> <dependency>
> <groupId>org.wildfly</groupId>
> <artifactId>wildfly-ejb-client-bom</artifactId>
> <version>20.0.0.Final</version>
> <type>pom</type>
> </dependency>
> {code}
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13600) EJB client over HTTP Fail on Java SE
by Gergely Molnár (Jira)
Gergely Molnár created WFLY-13600:
-------------------------------------
Summary: EJB client over HTTP Fail on Java SE
Key: WFLY-13600
URL: https://issues.redhat.com/browse/WFLY-13600
Project: WildFly
Issue Type: Bug
Components: Application Client
Affects Versions: 20.0.0.Final
Reporter: Gergely Molnár
Assignee: Brian Stansberry
Java SE code:
{code:java}
public class Application {
private static final String REMOTE_CALC = "ejb:/remote-ejb/RemoteCalc!" + RemoteCalc.class.getName();
/**
* Lookup remote \{@link RemoteCalc}.
*
* @return a \{@link RemoteCalc} object
* @throws NamingException Something is wrong
*/
public static RemoteCalc getRemoteCalc() throws NamingException {
Hashtable<String, Object> jndiProps = new Hashtable<>();
jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, "org.wildfly.naming.client.WildFlyInitialContextFactory");
// remote+http connection (work fine)
//jndiProps.put(Context.PROVIDER_URL, "remote+http://127.0.0.1:8080/remote-ejb");
// http connection (fail)
jndiProps.put(Context.PROVIDER_URL, "http://127.0.0.1:8080/wildfly-services");
Context context = new InitialContext(jndiProps);
return (RemoteCalc) context.lookup(REMOTE_CALC);
}
/**
* Call to run (main).
*
* @param args parameters (not used)
* @throws NamingException Something is wrong
*/
public static void main(String[] args) throws NamingException {
RemoteCalc remoteCalc = getRemoteCalc();
System.out.println("Remote calc 95 + 76: " + remoteCalc.add(95, 76));
}
}
{code}
Exception:
Exception in thread "main" javax.naming.InvalidNameException: WFNAM00007: Invalid URL scheme name "http"
at org.wildfly.naming.client.WildFlyRootContext.getProviderContext(WildFlyRootContext.java:808)
at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:140)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.bosch.emea.bpart.remoteejbclient.Application.getRemoteCalc(Application.java:34)
at com.bosch.emea.bpart.remoteejbclient.Application.main(Application.java:47)
Lib:
{code:java}
@Remote
public interface RemoteCalc {
/**
* Add two integer.
*
* @param a an integer
* @param b an integer
* @return a + b
*/
public int add(int a, int b);
}
{code}
Config:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<authentication-client xmlns="urn:elytron:1.0">
<authentication-rules>
<rule use-configuration="default" />
</authentication-rules>
<authentication-configurations>
<configuration name="default">
<sasl-mechanism-selector selector="#ALL" />
<set-mechanism-properties>
<property key="wildfly.sasl.local-user.quiet-auth" value="true" />
</set-mechanism-properties>
<providers>
<use-service-loader/>
</providers>
</configuration>
</authentication-configurations>
</authentication-client>
</configuration>
{code}
Maven dependency:
{code:xml}
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-ejb-client-bom</artifactId>
<version>18.0.1.Final</version>
<type>pom</type>
</dependency>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months