2 Replies Latest reply on Nov 5, 2018 6:27 AM by mylos78

    Invalid URL scheme name "remote+http" when running remote EJB clients

    mylos78

      Hi !

      I have updated my remote EJB client libraries to use wildfly 14.0.1. Unfortunately now the EJB client fails with: WFNAM00007: Invalid URL scheme name "remote+http"

      I took a look at how the wildfly quickstart's libraries are configured and come up with:

       

        <dependencyManagement>

            <dependencies>

               <dependency>

                  <groupId>org.wildfly</groupId>

                  <artifactId>wildfly-ejb-client-bom</artifactId>

                  <version>14.0.1.Final</version>

                  <type>pom</type>

               </dependency>

            </dependencies>

         </dependencyManagement>

         <dependencies>

       

              <dependency>

                  <groupId>${project.groupId}</groupId>

                  <artifactId>ejb-remote-server-side</artifactId>

                  <version>${project.version}</version>

                  <type>ejb-client</type>

              </dependency>

       

               <dependency>

                <groupId>org.wildfly</groupId>

                <artifactId>wildfly-naming</artifactId>

                <version>14.0.1.Final</version>

          </dependency>

         

         </dependencies>

       

      But still getting the same error:

       

      Exception in thread "main" javax.naming.InvalidNameException: WFNAM00007: Invalid URL scheme name "remote+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(InitialContext.java:417)
          at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.lookupRemoteStatelessCalculator(RemoteEJBClient.java:141)
          at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.invokeStatelessBean(RemoteEJBClient.java:53)
          at org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient.main(RemoteEJBClient.java:40)

       

      am I missing any dependency to be able to run the remote client?

      Thanks!