-
Bug
-
Resolution: Done
-
Blocker
-
7.1.0.DR19
-
None
-
Blocks Testing
-
-
-
-
-
-
When trying to configure EJB Client 4.x as described on JBEAP-9355#comment-13415683, I am using this configuration in wildfly-config.xml:
wildfly-config.xml
<configuration> <authentication-client xmlns="urn:elytron:1.0"> <authentication-rules> <rule use-configuration="default"/> </authentication-rules> <authentication-configurations> <configuration name="default"> <allow-all-sasl-mechanisms/> </configuration> </authentication-configurations> </authentication-client> <discovery xmlns="urn:wildfly-discovery:1.0"> <discovery-provider> <static> <!-- abstract node --> <service uri="node:node01" abstract-type="ejb" abstract-type-authority="jboss"> <attribute name="cluster" value="ejb"/> </service> <!-- concrete node --> <service uri="remote+http://localhost:8080" abstract-type="ejb" abstract-type-authority="jboss"> <attribute name="node" value="node01"/> </service> </static> </discovery-provider> </discovery> </configuration>
When running the client, I get the following error:
Jun 05, 2017 10:21:20 AM org.jboss.ejb.client.EJBClient <clinit> INFO: JBoss EJB Client version 4.0.0.Beta30-redhat-1 Exception in thread "main" java.lang.ExceptionInInitializerError at org.wildfly.discovery.Discovery.lambda$static$0(Discovery.java:52) at org.wildfly.common.context.ContextManager.getPrivileged(ContextManager.java:282) at org.jboss.ejb.client.EJBClientContext.getDiscovery(EJBClientContext.java:446) at org.jboss.ejb.client.EJBClientContext.discover(EJBClientContext.java:442) at org.jboss.ejb.client.EJBClientContext.discoverAffinityNone(EJBClientContext.java:714) at org.jboss.ejb.client.EJBClientContext.performLocatedAction(EJBClientContext.java:701) at org.jboss.ejb.client.EJBClientContext.createSession(EJBClientContext.java:681) at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:293) at org.jboss.ejb.client.EJBRootContext.lookupNative(EJBRootContext.java:154) at org.wildfly.naming.client.AbstractContext.lookup(AbstractContext.java:88) at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:153) at javax.naming.InitialContext.lookup(InitialContext.java:417) at org.jboss.as.standaloneejbclient.Main.doLookup(Main.java:746) at org.jboss.as.standaloneejbclient.Main.doSingleLookupWildflyConfig(Main.java:82) at org.jboss.as.standaloneejbclient.Main.main(Main.java:48) Caused by: org.wildfly.discovery.InvalidDiscoveryConfigurationException: org.wildfly.client.config.ConfigXMLParseException: CONF0005: Unexpected element "service" in namespace "urn:wildfly-discovery:1.0" encountered at file:/home/mvinkler/work/my_apps/rjanik_clusterbench_client/standalone-ejb-client_mvinkler/target/classes/wildfly-config.xml:20:113 at org.wildfly.discovery.DiscoveryXmlParser.getConfiguredProvider(DiscoveryXmlParser.java:66) at org.wildfly.discovery.ConfiguredProvider.<clinit>(ConfiguredProvider.java:48) ... 15 more Caused by: org.wildfly.client.config.ConfigXMLParseException: CONF0005: Unexpected element "service" in namespace "urn:wildfly-discovery:1.0" encountered at file:/home/mvinkler/work/my_apps/rjanik_clusterbench_client/standalone-ejb-client_mvinkler/target/classes/wildfly-config.xml:20:113 at org.wildfly.client.config.ConfigurationXMLStreamReader.unexpectedElement(ConfigurationXMLStreamReader.java:245) at org.wildfly.discovery.DiscoveryXmlParser.expectEnd(DiscoveryXmlParser.java:499) at org.wildfly.discovery.DiscoveryXmlParser.parseDiscoveryProvider(DiscoveryXmlParser.java:224) at org.wildfly.discovery.DiscoveryXmlParser.parseDiscoveryElement(DiscoveryXmlParser.java:138) at org.wildfly.discovery.DiscoveryXmlParser.parseConfiguration(DiscoveryXmlParser.java:108) at org.wildfly.discovery.DiscoveryXmlParser.getConfiguredProvider(DiscoveryXmlParser.java:64) ... 16 more
This parsing error blocks JBEAP-9355 verification.
- blocks
-
JBEAP-9355 EJB cluster proxies are not failing over
- Closed