Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 63479 invoked from network); 14 Jan 2004 11:59:58 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Jan 2004 11:59:58 -0000 Received: (qmail 76216 invoked by uid 500); 14 Jan 2004 11:59:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76080 invoked by uid 500); 14 Jan 2004 11:59:47 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 66291 invoked from network); 14 Jan 2004 11:52:59 -0000 From: "Andy Redhead" To: "'Ant Users List'" Subject: RE: Classpath issues when calling ejb services (from a custom task) Date: Wed, 14 Jan 2004 11:53:03 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <32EFAEA4102B7041842430B3B3938573A86440@sl-mail2a.spde.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-index: AcPZ+igHRMehaRyWTjaVud5DbjmlAAAcQ10AAApJL0A= Message-Id: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Thanks for replying :) I'm not actually using the xdoclet task - I am trying to make a "custom" task of my own, which needs to call some functions on a remote stateless ejb. I've made some progress by setting a new classloader inside my task, however I've now got a class cast exception when I narrow the remote object back to the ejb interface... which is odd because the same calls made from a junit test run from ant works fine. I'll keep persevering for a bit yet. Cheers Andy > -----Original Message----- > From: Harkness, David [mailto:DHarkness@sonypictures.com] > Sent: 14 January 2004 06:56 > To: Ant Users List > Subject: RE: Classpath issues when calling ejb services > > Andy Redhead wrote: > > I'm trying to build an ant task for ant 1.6 that uses a service > > provided by an ejb. > > > > [...snip...] > > Can you provide a trimmed-down example build.xml? My only experience > with this is making sure the XDoclet JARs are available when defining > the task with . Are you doing something similar? > Here's the ejbdoclet taskdef from my build file. > > > > location="${lib.dir}/xdoclet/commons-collections-2.0.jar"/> > > > location="${lib.dir}/xdoclet/xdoclet-bea-module-1.2b2.jar"/> > location="${lib.dir}/xdoclet/xdoclet-ejb-module-1.2b2.jar"/> > location="${lib.dir}/xdoclet/xdoclet-web-module-1.2b2.jar"/> > location="${lib.dir}/xdoclet/xdoclet-xdoclet-module-1.2b2.jar"/> > location="${lib.dir}/xdoclet/xdoclet-xjavadoc-uc-1.2b2.jar"/> > > > > > classname="xdoclet.modules.ejb.EjbDocletTask" > classpathref="xdoclet.class.path.id" > /> > > I haven't written my own tasks, so I'm not much more help. Post a > snippet and the others will be able to better help you. Good luck! > > David Harkness > Sr. Software Engineer > Sony Pictures Digital Networks > (310) 482-4756 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org