Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 5270 invoked from network); 9 Oct 2005 08:00:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2005 08:00:21 -0000 Received: (qmail 79397 invoked by uid 500); 9 Oct 2005 08:00:06 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 79379 invoked by uid 500); 9 Oct 2005 08:00:06 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 79368 invoked by uid 99); 9 Oct 2005 08:00:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2005 01:00:05 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.49.156] (HELO web54506.mail.yahoo.com) (206.190.49.156) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 09 Oct 2005 01:00:07 -0700 Received: (qmail 50396 invoked by uid 60001); 9 Oct 2005 07:59:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1a48bZDJiMDKzZp4mv9e5EZc8nNV8fWbz6ScGdB0jbqxKnbzirDM6owSNSy5z2k0pGtCikHCzSmvf2jSLh4pXnKw4sRVGnCHzrZ7xAIPl9ydbCY/U4q/jW38cXaelfx+8njx4AAlPSXIz4UTVf59UcJOtY9U2mbCDIMs5acjpzM= ; Message-ID: <20051009075942.50394.qmail@web54506.mail.yahoo.com> Received: from [67.170.195.101] by web54506.mail.yahoo.com via HTTP; Sun, 09 Oct 2005 00:59:42 PDT Date: Sun, 9 Oct 2005 00:59:42 -0700 (PDT) From: Bob Hall Subject: Re: Getting NoClassDefFound error for Rectangle.class (rt.jar) To: Tomcat Users List In-Reply-To: <20051004023347.54645.qmail@web54503.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Instead of rebuilding FOP, I wrote a simple test class that attempts to instantiate 'Rectangle'. It runs successfully on one system and fails on the other (the one with the NoClassDefFoundError): $ java -Djava.awt.headless=true TestRectangle Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/j2sdk1.4.2_08/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory Sure enough, /usr/X11R6/lib/libXp.so.6 exists on one box, but not the other. Hopefully, it won't be too much of an ordeal to get the missing piece(s) installed. - Bob --- Bob Hall wrote: > No joy with "-Djava.awt.headless=true"; looks a > rebuild of FOP on the target system... though that > *really* does not make sense. > > - Bob > > --- Bob Hall wrote: > > > Thanks, David. I'll try that. > > > > If that doesn't do the trick I plan to build > fop.jar > > from source on the target machine. > > > > - Bob > > > > --- David Delbecq wrote: > > > > > if it's *java.awt.Rectangle* > > > and the computer you are trying to run fop on > does > > > not have > > > graphical environment, maybe you should wonsider > > > using headless java > > > see > > > > > > http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless > > > > > > Bob Hall a �crit : > > > > > > >I'm getting a NoClassDefFoundError in a FOP > > class, > > > >PageViewport. At line 89, the code is > attempting > > > to > > > >do > > > >'new Rectangle()'. > > > > > > > >The same code works fine on 3 other systems (2 > > > >Windows, > > > >and one Linux). It does not work on a Linux > box. > > > >The two linux boxes have the same version of > Java > > > >(1.4.2_08-b03) and the same version of Tomcat > > > 5.0.28). > > > >The versions of RedHat *are* different. I even > > > >compiled > > > >the code on the target Linux system. > > > > > > > >Any ideas? > > > > > > > >- Bob > > > > > > > > > > > > > > > >__________________________________ > > > >Yahoo! Mail - PC Magazine Editors' Choice 2005 > > > >http://mail.yahoo.com > > > > > > > > > > >--------------------------------------------------------------------- > > > >To unsubscribe, e-mail: > > > tomcat-user-unsubscribe@jakarta.apache.org > > > >For additional commands, e-mail: > > > tomcat-user-help@jakarta.apache.org > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > > tomcat-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: > > > tomcat-user-help@jakarta.apache.org > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: > > tomcat-user-help@jakarta.apache.org > > > > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > tomcat-user-help@jakarta.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org