From nobody@FreeBSD.org  Sat May  1 22:05:15 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 07E741065680
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 May 2010 22:05:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id EB6218FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  1 May 2010 22:05:14 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o41M5EFP035222
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 1 May 2010 22:05:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o41M5EWL035221;
	Sat, 1 May 2010 22:05:14 GMT
	(envelope-from nobody)
Message-Id: <201005012205.o41M5EWL035221@www.freebsd.org>
Date: Sat, 1 May 2010 22:05:14 GMT
From: Serg <mail_of_sergey@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port textproc/fop: NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReader
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: jjuanino@gmail.com

>Number:         146223
>Category:       ports
>Synopsis:       port textproc/fop: NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReader
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 01 22:10:06 UTC 2010
>Closed-Date:    Thu May 20 09:01:28 UTC 2010
>Last-Modified:  Thu May 20 09:01:28 UTC 2010
>Originator:     Serg
>Release:        8.0-RELEASE-p2
>Organization:
>Environment:
FreeBSD acc.acc.tula.ru 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2
>Description:
Unable to make TrueType Font Metrics as described http://xmlgraphics.apache.org/fop/0.95/fonts.html#truetype-metrics by running ttfmetric.sh.

I get an error "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReader".

I get the same problem with org.apache.fop.fonts.apps.PFMReader
>How-To-Repeat:
1. run ttfmetric.sh some_TTF_font any_name
2. get error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReader

>Fix:


Patch attached with submission follows:

#!/bin/sh
java -cp build/fop.jar:/usr/local/share/java/classes/avalon-framework.jar:/usr/local/share/java/classes/commons-logging.jar:/usr/local/share/java/classes/commons-io.jar \
org.apache.fop.fonts.apps.TTFReader $1 $2.xml

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sat May 1 22:11:10 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146223 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: jjuanino@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/146223: port textproc/fop: NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReader
Date: Sat, 1 May 2010 22:10:59 UT

 Maintainer of textproc/fop,
 
 Please note that PR ports/146223 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/146223
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Jose Garcia Juanino <jjuanino@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/146223: port textproc/fop: NoClassDefFoundError:
	org/apache/fop/fonts/apps/TTFReader
Date: Thu, 6 May 2010 22:57:20 +0200

 El domingo 02 de mayo a las 00:10:59 CEST, Edwin Groothuis escribi:
 > Maintainer of textproc/fop,
 > 
 > Please note that PR ports/146223 has just been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/146223
 
 It works as expected, that example is wrong.
 
 
 
 Please, try the following:
 
 
 FOP_BASE="/usr/local/share/java/fop"
 CLASSPATH="$FOP_BASE/build/fop.jar"
 CLASSPATH="$CLASSPATH:$FOP_BASE/lib/avalon-framework-4.2.0.jar"
 CLASSPATH="$CLASSPATH:$FOP_BASE/lib/commons-logging-1.0.4.jar"
 CLASSPATH="$CLASSPATH:$FOP_BASE/lib/commons-io-1.3.1.jar"
 CLASSPATH="$CLASSPATH:$FOP_BASE/lib/xmlgraphics-commons-1.3.1.jar"
 export CLASSPATH
 
 
 java org.apache.fop.fonts.apps.TTFReader \
 /usr/local/lib/X11/fonts/bitstream-vera/VeraMono.ttf output
 
 and you will get:
 
 
 Parsing font...
 Reading /usr/local/lib/X11/fonts/bitstream-vera/VeraMono.ttf...
 Font Family: [Bitstream Vera Sans Mono]
 Creating xml font file...
 Creating CID encoded metrics...
 Writing xml font file output.xml.xml...
 This font contains no embedding license restrictions.
 
 XML font metrics file successfully created.
 
 
 Please, could anyone close this PR?
 
 Best regards
State-Changed-From-To: feedback->closed 
State-Changed-By: stefan 
State-Changed-When: Thu May 20 09:00:19 UTC 2010 
State-Changed-Why:  
Submitter timeout, and maintainer reports that the software has just not been 
used correctly by the submitter. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146223 
>Unformatted:
