From dev-return-7360-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Tue Feb 05 19:10:32 2008 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 96048 invoked from network); 5 Feb 2008 19:10:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Feb 2008 19:10:32 -0000 Received: (qmail 26732 invoked by uid 500); 5 Feb 2008 19:10:24 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 26570 invoked by uid 500); 5 Feb 2008 19:10:23 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 26561 invoked by uid 99); 5 Feb 2008 19:10:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 11:10:23 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2008 19:10:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A326771406E for ; Tue, 5 Feb 2008 11:10:07 -0800 (PST) Message-ID: <5650241.1202238607658.JavaMail.jira@brutus> Date: Tue, 5 Feb 2008 11:10:07 -0800 (PST) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Closed: (OPENJPA-401) UnsatisfiedLinkError in MappingToolTask when using DB2 JDBC driver In-Reply-To: <8785235.1192203354571.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick closed OPENJPA-401. -------------------------------- Resolution: Fixed The MappingToolTask now includes a flag which can be used to disable the temporary classloader, similarly to the PCEnhancerTask. If the flag is not specified then we'll use the temporary classloader (original behavior). > UnsatisfiedLinkError in MappingToolTask when using DB2 JDBC driver > ------------------------------------------------------------------- > > Key: OPENJPA-401 > URL: https://issues.apache.org/jira/browse/OPENJPA-401 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Michael Dick > Assignee: Michael Dick > Priority: Minor > Fix For: 1.0.2, 1.1.0, 1.0.1 > > Attachments: OPENJPA-401.patch.txt > > > The MappingToolTask's class resolver loads classes from a temporary classloader before loading them in the "normal" classloader. This can cause problems if the JDBC driver requires access to native libraries (which can only be loaded once). > I've seen errors like this when using the DB2 JCC driver and the IBM JDK : > [mapping] 608 persistence-tests INFO [main] openjpa.Tool - Recording mapping and schema changes. > [mapping] java.lang.UnsatisfiedLinkError: com/ibm/jvm/Trace.initTrace([Ljava/lang/String;[Ljava/lang/String;)V > [mapping] at com.ibm.jvm.Trace.initializeTrace(Trace.java:96) > [mapping] at com.ibm.jvm.Trace.(Trace.java:61) > [mapping] at java.lang.J9VMInternals.initializeImpl(Native Method) > [mapping] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192) > [mapping] at java.lang.Class.forNameImpl(Native Method) > [mapping] at java.lang.Class.forName(Class.java:130) > [mapping] at com.ibm.db2.jcc.c.o.q(o.java:550) > [mapping] at com.ibm.db2.jcc.c.o.(o.java:319) > [mapping] at java.lang.J9VMInternals.initializeImpl(Native Method) > [mapping] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192) > [mapping] at java.lang.Class.forNameImpl(Native Method) > [mapping] at java.lang.Class.forName(Class.java:130) > [mapping] at com.ibm.db2.jcc.DB2Driver.class$(DB2Driver.java:48) > [mapping] at com.ibm.db2.jcc.DB2Driver.(DB2Driver.java:51) > [mapping] at java.lang.J9VMInternals.initializeImpl(Native Method) > [mapping] at java.lang.J9VMInternals.initialize(J9VMInternals.java:192) > [mapping] at java.lang.Class.forNameImpl(Native Method) > [mapping] at java.lang.Class.forName(Class.java:163) > [mapping] at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:82) > > Note that this does not occur with the Sun JDK (or at least I haven't hit the problem. > A potential solution is to change the order of the classloaders used in MappingToolTask. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.