Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 18:15:39 +0200 (CEST)
From:      Palle Girgensohn <girgen@partitur.se>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        ernst@jollem.com
Subject:   ports/26820: devel/jakarta-ant dependence on crimson points to too common file
Message-ID:  <200104241615.f3OGFd703997@elbas.partitur.se>

next in thread | raw e-mail | index | archive | help

>Number:         26820
>Category:       ports
>Synopsis:       devel/jakarta-ant dependence on crimson points to too common file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 24 09:20:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
>Environment:
>Description:
The port depends on JAXP 1.1 (textproc/crimson beeing the default
implemetation), but points out classes/jaxp.jar as the "dependance
file". jaxp.jar might belong to earlier versions of jaxp, manually
installed. JAXP-1.0.1 is not enought for ant, and it will
fail. Depeding on crimson.jar instead is less error prone.

BUILD FAILED

No JAXP compliant XML parser found. See http://java.sun.com/xml for the
reference implementation.
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/xml/sax/SAXException
        at org.apache.tools.ant.Main.runBuild(Main.java:402)
        at org.apache.tools.ant.Main.main(Main.java:149)

	

>How-To-Repeat:
install jaxp1_0_1.zip from sun. Link share/java/classes/jaxp.jar and
ditto/parser.jar to the installed location, and set your classpaths.
Now, try installing jakarta-ant. It will find jaxp.jar, and will
symlink to it, and to crimson.jar, which does not exist. It will
install fine, but will fail to run.

>Fix:
depend on file share/java/classes/crimson.jar instead:

Index: Makefile
===================================================================
RCS file: /net/elbas/opt/ncvs/ports/devel/jakarta-ant/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	2001/04/03 03:19:50	1.1
+++ Makefile	2001/04/24 16:04:40
@@ -17,7 +17,7 @@
 MAINTAINER=	ernst@jollem.com
 
 RUN_DEPENDS=	${JAVAVM}:${PORTSDIR}/java/javavmwrapper \
-		${LOCALBASE}/share/java/classes/jaxp.jar:${PORTSDIR}/textproc/crimson
+		${LOCALBASE}/share/java/classes/crimson.jar:${PORTSDIR}/textproc/crimson
 
 JAVAVM?=	${LOCALBASE}/bin/javavm
 FIND?=		/usr/bin/find
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104241615.f3OGFd703997>