Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 28285 invoked from network); 11 Jan 2001 22:53:37 -0000 Received: from leopard.ardec.com.au (root@203.11.83.9) by h31.sny.collab.net with SMTP; 11 Jan 2001 22:53:37 -0000 Received: from cougar.adl.ardec.com.au (cougar.adl.ardec.com.au [192.168.83.8]) by leopard.ardec.com.au (8.10.1/8.10.1/NC19991210) with ESMTP id f0BMrXs16318 for ; Fri, 12 Jan 2001 09:23:33 +1030 (CST) Received: from lisa.com.au (brutus.adl.ardec.com.au [192.168.83.45]) by cougar.adl.ardec.com.au (8.9.3+Sun/8.9.3/NC20000131) with ESMTP id JAA07504 for ; Fri, 12 Jan 2001 09:23:33 +1030 (CST) Received: from localhost (dbullock@localhost) by lisa.com.au (8.9.3/8.9.3) with ESMTP id JAA28368 for ; Fri, 12 Jan 2001 09:23:32 +1030 Date: Fri, 12 Jan 2001 09:23:32 +1030 (CST) From: David Bullock X-Sender: dbullock@brutus.adl.ardec.com.au To: ant-dev@jakarta.apache.org Subject: Jini tool for class dependencies at compile time. (was Re: stale services) (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi guys, I haven't looked at this at all, but I thought you might want to be aware of its existence, if only for the sake of comparison in the way it approaches the issue of class dependencies. regards, David. ---------- Forwarded message ---------- Date: Thu, 11 Jan 2001 14:34:49 -0500 From: Bob Scheifler - SMI Software Development To: JINI-USERS@JAVA.SUN.COM Subject: Re: stale services > The service i created was > running but it appeared at Lus Browser as a stale service. I thought > the jar file could be missing some class; and, after adding the right > files it worked. It was a little messy to find out what the files i should > add. > > Do you suggest some program to do so? We include such a tool, ClassDep, in our release. Unfortunately, the only documentation for it we include is the javadoc in the source: jini1_1/source/vob/tools/src/com/sun/jini/tool/ClassDep.java and the uses of it in the various GNUmakefile.jars files in the jini1_1/source/vob/jive/src/ tree. There's also a short bit I wrote about it: http://archives.java.sun.com/cgi-bin/wa?A2=ind9912&L=jini-users&P=R10867 > Very often i have a running service that appear on Lus Browser as stale > service or Unknown service - I know i did something wrong but it is very > hard to debug. In general, i suppose these messages means a file not found > problem, but i cannot trace what file is when the codebase is a jar file > (http://somehost:port/file.jar) rather than a directory > (http://somehost:port/). In JDK 1.2.x, the ClassNotFoundException unfortunately only showed the highest level class, not the actual class that failed to be found. However, if you switch to JDK 1.3, the ClassNotFoundException should tell you exactly which class was missing. You can get the exception to print out by setting -Dcom.sun.jini.reggie.proxy.debug=1 in the browser. - Bob -------------------------------------------------------------------------- Getting Started: http://jini.org/resources Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to listserv@java.sun.com David Bullock Project Lead email: dbullock@lisasoft.com mobile: +61 4 0290 1228 "The key ingredients of success are a crystal-clear goal, a realistic attack plan to achieve that goal, and consistent, daily action to reach that goal." Steve Maguire, "Debugging the Development Process". LISAsoft http://www.lisasoft.com/ Adelaide Sydney -------------------- ------------------------ 38 Greenhill Rd Level 3, 228 Pitt Street Wayville S.A. 5034 Sydney NSW 2000 Australia Australia PH +61 8 8272 1555 PH +61 2 9283 0877 FAX +61 8 8271 1199 FAX +61 2 9283 0866