4 Replies Latest reply on Sep 11, 2017 3:28 PM by Wolfgang Knauf

    WildFly 11.0.CR1 quickstart "ejb-security-jaas" fails

    Wolfgang Knauf Master

      Hi,

       

      I try to run the quickstart "ejb-security-jaas", and the "mvn exec" stage fails with this exception:

       

      Exception in thread "main" javax.naming.NoInitialContextException: Cannot instan

      tiate class: org.wildfly.naming.client.WildFlyInitialContextFactory [Root except

      ion is java.lang.ClassNotFoundException: org.wildfly.naming.client.WildFlyInitia

      lContextFactory]

              at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

              at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

              at javax.naming.InitialContext.init(Unknown Source)

              at javax.naming.InitialContext.<init>(Unknown Source)

              at org.jboss.as.quickstarts.ejb_security_jaas.RemoteClient.main(RemoteCl

      ient.java:38)

      Caused by: java.lang.ClassNotFoundException: org.wildfly.naming.client.WildFlyIn

      itialContextFactory

              at java.net.URLClassLoader.findClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at java.lang.Class.forName0(Native Method)

              at java.lang.Class.forName(Unknown Source)

              at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)

              at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)

              ... 5 more

       

      Attached are the outputs of "mvn install" and "mvn exec".

       

      This class should probably be found in "wildfly-naming-client-1.0.1.Final.jar", but I don't find this file in my local maven repository.

       

      Am I doing something wrong? Is my local repository "broken"? Or some problem in the quickstart?

       

      Best regards

       

      Wolfgang