WFLYNAM0027 : ClassNotFoundException: org.jboss.naming.remote.client.InitialContextFactory

前端 未结 2 2006
-上瘾入骨i
-上瘾入骨i 2021-01-25 08:24

Enviornment- wildfly-9.0.2.Final, EJB 3.0

Following error occurred while trying to connect Test.java class(deployed as module at wildfly-9.0.2.Final@machine-A) to EJB wh

2条回答
  •  故里飘歌
    2021-01-25 09:22

    You need to make your own module depend on a module that contains not only the jboss-client jar, but also all the dependencies of jboss-client, this might just be other modules or possibly other jars too. The first class it's moaning about being missing is javax/naming/spi/InitialContextFactory so edit the module.xml for the jboss-client module to depend on javax.api

提交回复
热议问题