EAP 7 java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory but it is in rt.jar in the jdk 1.8
swarsa Feb 14, 2017 1:24 PMI have installed a RAR file from webMethods and now just getting an error: "java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory". This is strange. The boot classpath of JBOSS AS contains the jar containing the class that is reported as not found (I found this by using EAP_HOME/bin/jconsole.bat):
C:\Java\jdk1.8.0_112\jre\lib\resources.jar;C:\Java\jdk1.8.0_112\jre\lib\rt.jar;C:\Java\jdk1.8.0_112\jre\lib\sunrsasign.jar;C:\Java\jdk1.8.0_112\jre\lib\jsse.jar;C:\Java\jdk1.8.0_112\jre\lib\jce.jar;C:\Java\jdk1.8.0_112\jre\lib\charsets.jar;C:\Java\jdk1.8.0_112\jre\lib\jfr.jar;C:\Java\jdk1.8.0_112\jre\classes
in the startup log, I see this:
2017-02-14 10:40:06,486 DEBUG [org.jboss.as.server.deployment] (MSC service thread 1-7) Adding dependency ModuleDependency [identifier=sun.jdk:main, moduleLoader=local module loader @66133adc (finder: local module finder @7bfcd12c (roots: C:\jboss-devstudio\runtimes\jboss-eap\modules,C:\jboss-devstudio\runtimes\jboss-eap\modules\system\layers\base)), export=false, optional=false, importServices=true] to module deployment.webm-jmsra.rar:main
And there is a module sun.jdk at EAP_HOME/modules/system/layers/base/sun/jdk/main
<module xmlns="urn:jboss:module:1.3" name="sun.jdk">
<resources>
<!-- currently jboss modules has not way of importing services from
classes.jar so we duplicate them here -->
<resource-root path="service-loader-resources"/>
</resources>
<dependencies>
<module name="sun.scripting" export="true"/>
<system export="true">
<paths>
<path name="com/sun/image/codec/jpeg"/>
<path name="com/sun/imageio/plugins/bmp"/>
<path name="com/sun/imageio/plugins/common"/>
<path name="com/sun/imageio/plugins/gif"/>
<path name="com/sun/imageio/plugins/jpeg"/>
<path name="com/sun/imageio/plugins/png"/>
<path name="com/sun/imageio/plugins/wbmp"/>
<path name="com/sun/imageio/spi"/>
<path name="com/sun/imageio/stream"/>
<path name="com/sun/jndi/dns"/>
<path name="com/sun/jndi/ldap"/>
As you can see, it has the path of the class file. Because of this, I do not see why this class is not visible. What do I need to do to make it visible?
Thanks,
Steve
java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory