LDAPException.errorCodeToString does not load bundle

[email protected]
Newsgroups gmane.comp.mozilla.devel.directory
Organization http://groups.google.com
Message-ID <2a60c09f-c120-4dd7-9745-6b1fecf3fe1b@f36g2000hsa.googlegroups.com>
Hello,

When using ldapjdk under JBoss, the method
LDAPException.errorCodeToString() always returns an empty text. After
investigation, it appears that the implementation tries to find the
bundle with the static call ClassLoader.getSystemResourceAsStream,
which under an application server like JBoss does not return the
expected ClassLoader.
Returned ClassLoader :
C:/jboss/bin/run.jar
C:/jboss/client/getopt.jar
C:/Java/jdk1.6.0_02/lib/tools.jar
The child of the returned ClassLoader :
C:/jboss/lib/namespace.jar
C:/jboss/lib/jboss-system.jar
C:/jboss/lib/concurrent.jar
C:/jboss/lib/jboss-common.jar
C:/jboss/lib/endorsed/xalan.jar
C:/jboss/lib/log4j-boot.jar
C:/jboss/lib/endorsed/serializer.jar
C:/jboss/lib/endorsed/resolver.jar
C:/jboss/lib/endorsed/xml-apis.jar
C:/jboss/lib/jboss-xml-binding.jar
C:/jboss/lib/endorsed/xercesImpl.jar
C:/jboss/lib/jboss-jmx.jar
The child of the child of the returned ClassLoader :
C:/jboss/server/Server1/lib/jboss-jaxrpc.jar
C:/jboss/server/Server1/lib/jboss-hibernate.jar
C:/jboss/server/Server1/lib/jboss-srp.jar
C:/jboss/server/Server1/lib/jboss.jar
C:/jboss/server/Server1/lib/jboss-common-jdbc-wrapper.jar
C:/jboss/server/Server1/lib/jboss-backport-concurrent.jar
C:/jboss/server/Server1/lib/jboss-serialization.jar
C:/jboss/server/Server1/lib/jbosssx.jar
... (the whole server class path)
C:/jboss/server/Server1/lib/ldapjdk.jar ---> HERE IT IS

I do not know whether this problem has been reported before but my
workaround was to change JBoss startup script to include ldapjdk in
the JBOSS_CLASSPATH.
Are they any plans to change this in the implementation of ldapjdk ?

Regards,

metatech
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.