[jboss-jira] [JBoss JIRA] (WFLY-9506) [GSS](7.1.0) use of WildFlyInitialContext with wildfly-config.xml throws javax.naming.NoInitialContextException

Jiri Ondrusek (JIRA) issues at jboss.org
Tue Oct 31 11:21:00 EDT 2017


Jiri Ondrusek created WFLY-9506:
-----------------------------------

             Summary: [GSS](7.1.0) use of WildFlyInitialContext with wildfly-config.xml throws javax.naming.NoInitialContextException
                 Key: WFLY-9506
                 URL: https://issues.jboss.org/browse/WFLY-9506
             Project: WildFly
          Issue Type: Bug
          Components: EJB, Naming
    Affects Versions: 12.0.0.Alpha1
         Environment: 7.1.0.Beta and 7.1.0.ER2
            Reporter: Jiri Ondrusek
            Assignee: Jiri Ondrusek


If a client use WildFlyInitialContext without properties the following Exception is thrown:
Exception in thread "main" javax.naming.NoInitialContextException
	at org.wildfly.naming.client.WildFlyInitialContext.getDefaultInitCtx(WildFlyInitialContext.java:65)
	at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)
	at javax.naming.InitialContext.lookup(InitialContext.java:417)
	at org.jboss.wfink.eap71.playground.wildfly.client.WildFlyICConfigClient.main(WildFlyICConfigClient.java:33)

It is expected that this works according to  https://github.com/wildfly/wildfly-naming-client#usage.
The reproducer can be found here 
https://github.com/wfink/jboss-eap7.1-playground/blob/master/clients/WildFlyConfig/src/main/java/org/jboss/wfink/eap71/playground/wildfly/client/WildFlyICConfigClient.java



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list