UnsatisfiedLinkError: Native Library libjnidispatch.jnilib already loaded in
another classloader
------------------------------------------------------------------------------------------------
Key: JRUBY-1939
URL: http://jira.codehaus.org/browse/JRUBY-1939
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC1
Reporter: Nick Sieger
I get this when trying to load multiple JRuby applications in the same VM
(Rails applications in Glassfish, in this case)
{noformat}
java.lang.UnsatisfiedLinkError: Native Library
com/sun/jna/darwin/libjnidispatch.jnilib already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1716)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:968)
at com.sun.jna.Native.loadNativeLibrary(Native.java:387)
at com.sun.jna.Native.<clinit>(Native.java:62)
at org.jruby.ext.posix.POSIXFactory.loadMacOSLibC(POSIXFactory.java:46)
at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:18)
at org.jruby.Ruby.init(Ruby.java:1189)
at org.jruby.Ruby.newInstance(Ruby.java:342)
at org.jruby.Ruby.newInstance(Ruby.java:331)
at
org.jruby.javasupport.JavaEmbedUtils.initialize(JavaEmbedUtils.java:58)
at
org.jruby.webapp.RailsFactory.createRubyRuntime(RailsFactory.java:170)
at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:91)
at
org.jruby.webapp.util.CustomObjectPool.addObjectInternal(CustomObjectPool.java:111)
at
org.jruby.webapp.util.CustomObjectPool.access$200(CustomObjectPool.java:15)
at
org.jruby.webapp.util.CustomObjectPool$PoolSizeManager.run(CustomObjectPool.java:193)
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email