Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 80762 invoked from network); 29 Oct 2007 09:35:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2007 09:35:22 -0000 Received: (qmail 71642 invoked by uid 500); 29 Oct 2007 09:35:08 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 71583 invoked by uid 500); 29 Oct 2007 09:35:08 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 71572 invoked by uid 99); 29 Oct 2007 09:35:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 02:35:08 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2007 09:35:16 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ImR1B-0006fS-Q3 for axis-dev@ws.apache.org; Mon, 29 Oct 2007 02:34:45 -0700 Message-ID: <13464010.post@talk.nabble.com> Date: Mon, 29 Oct 2007 02:34:45 -0700 (PDT) From: Maciek Datka To: axis-dev@ws.apache.org Subject: Re: Axis problem in eclipse framework - class loading In-Reply-To: <9efb15600710272003y6bb8b0dakb66bd4b4fe67f75c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: maco@parasoft.com References: <13364378.post@talk.nabble.com> <9efb15600710272003y6bb8b0dakb66bd4b4fe67f75c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org > So as I know there is no problem at all to have more than 2 versions of Axis2 set > of plugins in the same eclipse framework. Thank you very much for the reply. The exact situations in that 2 exclusive plugins (named jtest and mylyn) contain axis.jar. The jar is the same version. (1.3 or 1.4 - both reproduce the same behaviour) Axis plugins WTP from 2.0 are not involved. The jtest and mylyn plugins should not see each other'classes - they don't depend on each other, in fact, they don't know anything about each other. But then what happens 1 - axis from the jtest plugin is used and loads some of axis classes. 2 - axis from the mylyn plugin is used - but some of the classes it's using are cached classes from the jtest plugin! (Cached on classloder / JVM level) This results in class cast exceptions - different class loader. Possible fix would be just to change: Class.forName(...,contextClassLoader) to: contextClassLoader.loadClass() The details why would that help: http://blog.bjhargrave.com/2007/09/classforname-caches-defined-class-in.html -- View this message in context: http://www.nabble.com/Axis-problem-in-eclipse-framework---class-loading-tf4677475.html#a13464010 Sent from the Axis - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org