CONF0005: Unexpected element "interceptor" in namespace "urn:jboss:wildfly-client-ejb:3.1" in JBoss EAP 7.2
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 7.2
Issue
The global-interceptors / interceptor is failing to parse with this error:
[java] Caused by: org.wildfly.client.config.ConfigXMLParseException: CONF0005: Unexpected element "interceptor" in namespace "urn:jboss:wildfly-client-ejb:3.1" encountered
[java] at file://home/jboss/ejb-client.jar/META-INF/wildfly-config.xml:9:7
[java] at org.wildfly.client.config.ConfigurationXMLStreamReader.unexpectedElement(ConfigurationXMLStreamReader.java:291)
[java] at org.jboss.ejb.client.ConfigurationBasedEJBClientContextSelector.parseInterceptorsType(ConfigurationBasedEJBClientContextSelector.java:183)
[java] at org.jboss.ejb.client.ConfigurationBasedEJBClientContextSelector.parseEJBClientType(ConfigurationBasedEJBClientContextSelector.java:122)
[java] at org.jboss.ejb.client.ConfigurationBasedEJBClientContextSelector.parseEJBClientConfiguration(ConfigurationBasedEJBClientContextSelector.java:92)
[java] at org.jboss.ejb.client.ConfigurationBasedEJBClientContextSelector.loadConfiguration(ConfigurationBasedEJBClientContextSelector.java:72)
[java] ... 9 more
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<jboss-ejb-client xmlns="urn:jboss:wildfly-client-ejb:3.1">
<global-interceptors>
<interceptor class="com.jboss.examples.ejb.ClientSecurityInterceptor"/>
</global-interceptors>
</jboss-ejb-client>
</configuration>
Resolution
Apply the latest update / cumulative patch when available with the fix for JBEAP-17398
Root Cause
SBR
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.