<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
native libs should only be loaded once in an entire JVM (but you
probably knew this).<br>
<br>
How about creating a module wrapping that lib ? The module could
then have a single class with a static block loading the lib.<br>
<br>
Kind regards<br>
Tom<br>
<br>
<br>
On 05/11/2012 04:47 PM, M. Steven wrote:
<blockquote
cite="mid:1336751247.74149.YahooMailNeo@web43408.mail.sp1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div>Hi, <br>
</div>
<div><br>
</div>
<div>I am working on migrating an App from JBoss 4.2.3 to JBoss
AS 7.1.1. Now I am facing a problem says "Native Library xxx
already loaded in another classloader". <br>
</div>
<div>To be specific: Here are the errors: <br>
</div>
<div>11:22:17,854 ERROR [stderr] (http--127.0.0.1-80-4) Caused
by: java.lang.UnsatisfiedLinkError: Native Library
E:\programs\jdk1.6.0_29\jre\bin\jpeg.dll already loaded in
another classloader<br>
11:22:17,855 ERROR [stderr] (http--127.0.0.1-80-4) at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1772)<br>
11:22:17,856 ERROR [stderr] (http--127.0.0.1-80-4) at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)<br>
11:22:17,856 ERROR [stderr] (http--127.0.0.1-80-4) at
java.lang.Runtime.loadLibrary0(Runtime.java:823)<br>
11:22:17,857 ERROR [stderr] (http--127.0.0.1-80-4) at
java.lang.System.loadLibrary(System.java:1028)<br>
11:22:17,857 ERROR [stderr] (http--127.0.0.1-80-4) at
sun.security.action.LoadLibraryAction.run(Unknown Source)<br>
11:22:17,858 ERROR [stderr] (http--127.0.0.1-80-4) at
java.security.AccessController.doPrivileged(Native Method)<br>
11:22:17,859 ERROR [stderr] (http--127.0.0.1-80-4) at
sun.awt.image.codec.JPEGImageDecoderImpl.<clinit>(Unknown
Source)<br>
11:22:17,859 ERROR [stderr] (http--127.0.0.1-80-4) at
com.sun.image.codec.jpeg.JPEGCodec.createJPEGDecoder(Unknown
Source)<br>
11:22:17,860 ERROR [stderr] (http--127.0.0.1-80-4) at
com.sun.media.jai.codecimpl.JPEGImage.<init>(JPEGImageDecoder.java:106)<br>
11:22:17,861 ERROR [stderr] (http--127.0.0.1-80-4) at
com.sun.media.jai.codecimpl.JPEGImageDecoder.decodeAsRenderedImage(JPEGImageDecoder.java:46)<br>
11:22:17,862 ERROR [stderr] (http--127.0.0.1-80-4) at
com.sun.media.jai.opimage.CodecRIFUtil.create(CodecRIFUtil.java:88)<br>
11:22:17,865 ERROR [stderr] (http--127.0.0.1-80-4) at
com.sun.media.jai.opimage.JPEGRIF.create(JPEGRIF.java:43)<br>
11:22:17,867 ERROR [stderr] (http--127.0.0.1-80-4) ... 114
more<br>
<br>
The same App runs well under JBoss 4.2.3. I am wondering if
the error is caused by the Modularized class loading in JBoss
AS7? <br>
</div>
<div><br>
</div>
<div>Could someone please give me some advices on how to resolve
the problem? <br>
</div>
<div><br>
</div>
<div>Thanks a lot in advance. <br>
</div>
<div><br>
</div>
<div>Regards, <br>
</div>
<div><br>
</div>
<div>Michael<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
jboss-as7-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tom Fonteyne
Red Hat - UK
EMEA GSS-SEG-Middleware</pre>
</body>
</html>