Uploaded image for project: 'WildFly Naming Client'
  1. WildFly Naming Client
  2. WFNC-26

Improve error reporting when protocol is wrong

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • None

      Currently using

      jndiProperties.put(Context.PROVIDER_URL,"remote+http://localhost:8080");
      

      results in error

      Exception in thread "main" javax.naming.OperationNotSupportedException: WFNAM00026: No provider for found for URI: ejb
              at org.wildfly.naming.client.WildFlyRootContext.getProviderContext(WildFlyRootContext.java:500)
              at org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:140)
              at javax.naming.InitialContext.lookup(Unknown Source)
      

      where the problem is actually wrong url portocol

      jndiProperties.put(Context.PROVIDER_URL,"remote+http://localhost:8080");
      

      see the remoting+http vs right remote+http

              ssur@redhat.com Sudeshna Sur (Inactive)
              tomazcerar Tomaž Cerar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: