[Jruby-extras-devel] [ jruby-extras-Bugs-27115 ] NativeException thrown by jruby-ldap when run in a servlet container
noreply at rubyforge.org
noreply at rubyforge.org
Wed Sep 16 12:53:38 EDT 2009
Bugs item #27115, was opened at 2009-09-16 12:53
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=27115&group_id=2014
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jesse Rankin (jvr)
Assigned to: Nobody (None)
Summary: NativeException thrown by jruby-ldap when run in a servlet container
Initial Comment:
There is a bug in jruby-ldap that causes a NativeException when connecting if your app is running in a servlet container (tomcat and glassfish at least). I ran into this problem and eventually found a patch here that resolves the problem:
http://archive.codehaus.org/lists/org.codehaus.jruby.user/msg/4921724F.9060104@sep.com
http://pastie.org/316793
Here is the top of my stack trace on glassfish:
NativeException (javax.naming.NotContextException: Not an instance of DirContext):
javax/naming/directory/InitialDirContext.java:92:in `getURLOrDefaultInitDirCtx'
javax/naming/directory/InitialDirContext.java:248:in `search'
sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
sun/reflect/DelegatingMethodAccessorImpl.java:25:in `invoke'
java/lang/reflect/Method.java:585:in `invoke'
org/jruby/javasupport/JavaMethod.java:302:in `invokeWithExceptionHandling'
org/jruby/javasupport/JavaMethod.java:263:in `invoke'
org/jruby/java/invokers/InstanceMethodInvoker.java:72:in `call'
org/jruby/runtime/callsite/CachingCallSite.java:318:in `cacheAndCall'
org/jruby/runtime/callsite/CachingCallSite.java:197:in `call'
org/jruby/ast/CallThreeArgNode.java:61:in `interpret'
org/jruby/ast/CallNoArgBlockNode.java:60:in `interpret'
org/jruby/ast/NewlineNode.java:104:in `interpret'
org/jruby/ast/BlockNode.java:71:in `interpret'
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=27115&group_id=2014
More information about the Jruby-extras-devel
mailing list