Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5C5389F73 for ; Tue, 1 May 2012 10:23:10 +0000 (UTC) Received: (qmail 2327 invoked by uid 500); 1 May 2012 10:23:10 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 2169 invoked by uid 500); 1 May 2012 10:23:08 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 2119 invoked by uid 99); 1 May 2012 10:23:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 10:23:06 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qc0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 10:23:00 +0000 Received: by qcsp15 with SMTP id p15so2054176qcs.2 for ; Tue, 01 May 2012 03:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=D25WjKxDE1UH4LGWFViLHRfeHuQzOe8l/XqkAvPiO5U=; b=pnAIrxHuPriO2A9PyRDez1u/pf34JDj3EC2dkFz5NCPbk7KcUG49+1KupQ7ZLkwAT/ nAUYpEuVjrvIyDOGEt0gh+w35elLEbYSuMBhZv8l9M4S+qD0pSWxPaa0b6kTj+Ti+bsf J57vepl6QQo6bT8SEeW6lhjUL4dsivDgS+fr5v5l0JfEsLD0Bj/ZUJ7wYwkRg8sP3dWp k2DGbnNLmjRKMpM8xJPyEygx8vIY5aUIAzyaiHRDF0yBpBbfTvCPgy7H+KL8xeq2bFTx kq6oIP9UKiubRBPG+hDoQRiRib7kIgZXeOV8hTuSUMGRnfmcUaZFt8QVRVvICUqsktDj xcMg== MIME-Version: 1.0 Received: by 10.224.179.5 with SMTP id bo5mr20482987qab.37.1335867759293; Tue, 01 May 2012 03:22:39 -0700 (PDT) Received: by 10.229.94.206 with HTTP; Tue, 1 May 2012 03:22:39 -0700 (PDT) In-Reply-To: <1335476209376-4591048.post@n4.nabble.com> References: <1335476209376-4591048.post@n4.nabble.com> Date: Tue, 1 May 2012 11:22:39 +0100 Message-ID: Subject: Re: Problems with including javax.transaction.xa and possibly other JDK packages in activemq-all-5.5.1.jar From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable agree, this is a problem. I think we can remove the dependency on geronimo-jta_1.0.1B_spec from activemq-core altogether, need to do a build to validate. in any event, as it is already an optional dependency, there is no good reason to include it in activemq-all. can you raise a jira to track this. On 26 April 2012 22:36, RJ7bb wrote: > The following classes and interfaces are included in activemq-all-5.5.1.j= ar > despite them being available in the 1.6 JRE (which is now required as a > minimum anyway): > > javax.transaction.xa.XAException > javax.transaction.xa.XAResource > javax.transaction.xa.Xid > > Aside from them being redundant, this has actually caused the following > problem in my eclipse-based application which includes some JBoss jars us= ing > a different class loader and can possibly have other jars with similar > classes/interfaces (JBoss might just be one example): > > java.lang.LinkageError: loader constraint violation in interface itable > initialization: when resolving method > "org.jboss.mq.SpySession.getXAResource()Ljavax/transaction/xa/XAResource;= " > =A0 =A0the class loader (instance of [name a custom class loader we are u= sing]) > of the current class, org/jboss/mq/SpyQueueSession, > and the class loader (instance of > org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for interface > javax/jms/XASession have different Class objects for the type > javax/transaction/xa/XAResource used in the signature > > The only way I was able to solve the problem is to remove the > javax.transaction.xa package from the activemq-all-5.5.1.jar. > > Aside from my specific needs, this poses a question whether > activemq-all-*.jar (and any of the other ActiveMQ jars) should include th= ese > packages in the first place. They are redundant at best, and cause class > loading problems at worst. Thanks. > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Probl= ems-with-including-javax-transaction-xa-and-possibly-other-JDK-packages-in-= activemq-all-5-5-1-jr-tp4591048p4591048.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. --=20 http://fusesource.com http://blog.garytully.com