Is there a powerbuilder detail debug log that contains java call exceptions with stack trace info?
The jboss-client.jar is on the classpath but org.wildfly.naming.client.WildFlyInitialContextFactory class from the jar can not be instantiated. Why can't PowerBuilder instantiate the class?
For example, when trying to execute i_ejbconn.connecttoserver (properties), we get the following error:
Failed to connect to the EJB server.Cannot instantiate class: org.wildfly.naming.client.WildFlyInitialContextFactory
Source code:
properties[1] = "java.naming.factory.initial=" + is_jndi_initial_context_factory //is_jndi_initial_context_factory
properties[2] = "java.naming.provider.url=" + is_jndi_provider_url // is_jndi_provider_ur
properties[3] = "java.naming.factory.url.pkgs=org.jboss.ejb.client.naming"
properties[4] = "jboss.naming.client.ejb.context=true"
i_ejbconn = CREATE ejbconnection
TRY
i_ejbconn.connecttoserver( properties ) //FAILS
ib_ejbconn_init = TRUE
CATCH ( exception e)
string info
info = "URL=" + properties [2] + " factory=" + properties[1]
f_handle_exception (info, e)
END TRY