From user-return-12702-apmail-geronimo-user-archive=geronimo.apache.org@geronimo.apache.org Tue Feb 24 17:41:55 2009 Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 51239 invoked from network); 24 Feb 2009 17:41:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 17:41:55 -0000 Received: (qmail 44198 invoked by uid 500); 24 Feb 2009 17:41:53 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 44176 invoked by uid 500); 24 Feb 2009 17:41:53 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 44167 invoked by uid 99); 24 Feb 2009 17:41:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 09:41:52 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.63] (HELO smtp108.prem.mail.sp1.yahoo.com) (98.136.44.63) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Feb 2009 17:41:43 +0000 Received: (qmail 93633 invoked from network); 24 Feb 2009 17:41:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=rjCPMumVnAyv9PXnzYBgm6FZRrDZPcVdH7ozlYzSfR3tGtYbHD4bh0hMzPOudMBtg6eG2NzYaOzjPbNO1xK0xJ5kyp6KdI6nhcGeDTpFCVS1YDCW6Q5rFtolEyOdVJ4YCp9WQ9OiuRAmkeeD/cwDX6alxDPaywJKzNwn9YHDZQ4= ; Received: from unknown (HELO ?10.11.55.10?) (david_jencks@76.76.148.215 with plain) by smtp108.prem.mail.sp1.yahoo.com with SMTP; 24 Feb 2009 17:41:21 -0000 X-YMail-OSG: RCPjJvcVM1lqNQA_ChqxtkN4kMkPCh8ThBu341qoVM.ciAvuiujBB3yvxsg.cJ5H8GqQ0r_pIYEw.Ny7BXQW0Yq2SqGQjdRy_9MFmP66AHN224wxLlBiRNHlmDPpzri9yJgrqtFJjUrJeKvxddpD.n5YEI44L3szVFJY3F2pBFtKb3fGB6DreMK2YvWe6Mbsx8iYXyKENd68_VGIzLONnriP7hQRHGFvCMZ_lJO9Y3JZJH7ROk1OaOxvSCSybzVgR4zwsiigOZ827o2Q7HoOjwjtR.toMFg1mc1skkm1rmN4_0GiAS.vGw-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <9CC9FA34-66FC-4E01-9F68-92E29AB2FC3E@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <22181072.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: java.lang.UnsatisfiedLinkError: Library is already loaded in another ClassLoader (On stopping and starting the application) Date: Tue, 24 Feb 2009 09:41:20 -0800 References: <22179465.post@talk.nabble.com> <22181072.post@talk.nabble.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 24, 2009, at 7:01 AM, Juergen Weber wrote: > > > Hearty wrote: >> >> Hi >> >> I am getting an error as follows >> java.lang.UnsatisfiedLinkError: lic (Library is already loaded in >> another >> ClassLoader) >> This is happening when I stopping the application and start it again. >> [apache geronimo is running, >> I am only stopping/starting application by using the admin console] >> >> The lic.jar is present within the repository folder. The jar file is >> internally referring a dll file. >> >> Please give me a valid solution to resolve this issue? >> >> > > Take the classloader that accesses the native library out of the > application, e.g. create a GBean that does nothing but delegate to the > native library. I think this is similar to Kevan's suggestion. However, all you need is the classloader, not a gbean. Kevan's sharedlib reference idea should work, however I would recommend installing the lic.jar and any other jars that need to be in the same classloader in the geronimo repository and constructing a "classloader" plugin that includes them. There are several examples in geronimo such as the jee-specs plugin: imitating one of these is probably the easiest if you are willing to use maven to build the plugin. thanks david jencks > > > -- > View this message in context: http://www.nabble.com/java.lang.UnsatisfiedLinkError%3A-Library-is-already-loaded-in-another-ClassLoader-%28On-stopping-and-starting-the-application%29-tp22179465s134p22181072.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. >