You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Quanah Gibson-Mount <qu...@zimbra.com> on 2009/05/28 01:45:27 UTC

Apache-Ant and Fedora 10

Hello,

I build our software (Zimbra Collaboration Suite) on a multitude of
platforms.  Part of the build process uses Ant.  However, I have found that
when I got to build our software on the Fedora 10 OS, it fails due to Ant
not recognizing a particular file name correctly.  The error I see is:

 BUILD FAILED
 /data/builds01/F10/main/20090416152049_FOSS/ZimbraWebClient/build.xml:214:
Problem creating war:
/data/builds01/F10/main/20090416152049_FOSS/ZimbraWebClient/WebRoot/help/ja
/advanced/ss_btn_a????o??AE??gE??sE??bE??N.gif (No such file or directory)


The actual name of the file is:

[build@build-f10 advanced]$ ls -l ss_btn*
-r--r--r-- 1 build build 234 2009-04-16 15:24
ss_btn_aÌ÷oÌAEÌgEÌsEÌbEÌN.gif

This works fine on every other platform I build on (RHEL4, RHEL5, Ubuntu6,
Ubuntu8, SLES10, Fedora 7, Mac OSX 10.4, Mac OSX 10.5, etc).

I'm at a loss as to why Ant is failing on Fedora 10.  Does anyone have some
idea of what I can look at?

I download and install ant and java myself, so that the versions are the
same across build systems.

------- Ant diagnostics report -------
Apache Ant version 1.7.1 compiled on June 27 2008

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.1
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.1 compiled on June 27 2008
ant.java.version: 1.5
ant.core.lib: /usr/local/ant/lib/ant.jar
ant.home: /usr/local/ant

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/local/ant
ant-apache-regexp.jar (3762 bytes)
ant-apache-oro.jar (39627 bytes)
ant-jdepend.jar (8132 bytes)
ant-jsch.jar (30797 bytes)
ant-antlr.jar (5752 bytes)
ant-apache-bcel.jar (8611 bytes)
ant-stylebook.jar (2330 bytes)
ant-swing.jar (6738 bytes)
ant-launcher.jar (12143 bytes)
xercesImpl.jar (1223877 bytes)
ant-weblogic.jar (14205 bytes)
ant-junit.jar (93518 bytes)
xml-apis.jar (194354 bytes)
ant-starteam.jar (35355 bytes)
ant-trax.jar (6881 bytes)
ant-jmf.jar (6593 bytes)
ant.jar (1323005 bytes)
ant-testutil.jar (14941 bytes)
ant-javamail.jar (6998 bytes)
ant-apache-log4j.jar (3056 bytes)
ant-commons-logging.jar (3910 bytes)
ant-apache-bsf.jar (3939 bytes)
ant-nodeps.jar (431580 bytes)
ant-jai.jar (21348 bytes)
ant-netrexx.jar (9881 bytes)
ant-commons-net.jar (47026 bytes)
ant-apache-resolver.jar (4071 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: /home/build
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
jdepend : Missing dependency jdepend.xmlui.JDepend
A task being missing/unavailable should only matter if you are trying to
use it

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: /usr/local/ant/lib/xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: /usr/local/ant/lib/xercesImpl.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path : /usr/local/jdk1.5.0_17/jre/lib/i386
java.vm.version : 1.5.0_17-b04
ant.library.dir : /usr/local/ant/lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : :
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : unknown
java.vm.specification.name : Java Virtual Machine Specification
user.dir : /home/build
java.runtime.version : 1.5.0_17-b04
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
java.endorsed.dirs : /usr/local/jdk1.5.0_17/jre/lib/endorsed
os.arch : i386
java.io.tmpdir : /tmp
line.separator :

java.vm.specification.vendor : Sun Microsystems Inc.
os.name : Linux
ant.home : /usr/local/ant
sun.jnu.encoding : UTF-8
java.library.path :
/usr/local/jdk1.5.0_17/jre/lib/i386/client:/usr/local/jdk1.5.0_17/jre/lib/i
386:/usr/local/jdk1.5.0_17/jre/../lib/i386
java.specification.name : Java Platform API Specification
java.class.version : 49.0
sun.management.compiler : HotSpot Client Compiler
os.version : 2.6.27.5-117.fc10.i686
user.home : /home/build
user.timezone : GMT-08:00
java.awt.printerjob : sun.print.PSPrinterJob
file.encoding : UTF-8
java.specification.version : 1.5
user.name : build
java.class.path :
/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-apache-regexp.ja
r:/usr/local/ant/lib/ant-apache-oro.jar:/usr/local/ant/lib/ant-jdepend.jar:
/usr/local/ant/lib/ant-jsch.jar:/usr/local/ant/lib/ant-antlr.jar:/usr/local
/ant/lib/ant-apache-bcel.jar:/usr/local/ant/lib/ant-stylebook.jar:/usr/loca
l/ant/lib/ant-swing.jar:/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/
lib/xercesImpl.jar:/usr/local/ant/lib/ant-weblogic.jar:/usr/local/ant/lib/a
nt-junit.jar:/usr/local/ant/lib/xml-apis.jar:/usr/
local/ant/lib/ant-starteam.jar:/usr/local/ant/lib/ant-trax.jar:/usr/local/a
nt/lib/ant-jmf.jar:/usr/local/ant/lib/ant.jar:/usr/local/ant/lib/ant-testut
il.jar:/usr/local/ant/lib/ant-javamail.jar:/usr/local/ant/lib/ant-apache-lo
g4j.jar:/usr/local/ant/lib/ant-commons-logging.jar:/usr/local/ant/lib/ant-a
pache-bsf.jar:/usr/local/ant/lib/ant-nodeps.jar:/usr/local/ant/lib/ant-jai.
jar:/usr/local/ant/lib/ant-netrexx.jar:/usr/local/ant/lib/ant-commons-net.j
ar:/usr/local/ant/lib/ant-apache-resolver.jar:/usr
/local/jdk1.5.0_17/lib/tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : /usr/local/jdk1.5.0_17/jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
java.vm.info : mixed mode
java.version : 1.5.0_17
java.ext.dirs : /usr/local/jdk1.5.0_17/jre/lib/ext
sun.boot.class.path :
/usr/local/jdk1.5.0_17/jre/lib/rt.jar:/usr/local/jdk1.5.0_17/jre/lib/i18n.j
ar:/usr/local/jdk1.5.0_17/jre/lib/sunrsasign.jar:/usr/local/jdk1.5.0_17/jre
/lib/jsse.jar:/usr/local/jdk1.5.0_17/jre/lib/jce.jar:/usr/local/jdk1.5.0_17
/jre/lib/charsets.jar:/usr/local/jdk1.5.0_17/jre/classes
java.vendor : Sun Microsystems Inc.
file.separator : /
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.cpu.isalist :

-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is /tmp
Temp dir is writeable
Temp dir alignment with system clock is -153 ms

-------------------------------------------
 Locale information
-------------------------------------------
Timezone GMT-08:00 offset=-28800000

-------------------------------------------
 Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection


Thanks!

--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Apache-Ant and Fedora 10

Posted by Quanah Gibson-Mount <qu...@zimbra.com>.
--On Friday, May 29, 2009 10:14 AM -0700 Quanah Gibson-Mount 
<qu...@zimbra.com> wrote:

> Any other thoughts on what might be triggering this?
>
> Thanks!

Tracked this down to an issue with sshd configuration, since our builds are 
remotely started over ssh.  It was no longer allowing LANG to be set 
remotely, which triggered the issue.

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Apache-Ant and Fedora 10

Posted by Quanah Gibson-Mount <qu...@zimbra.com>.
--On Friday, May 29, 2009 8:26 AM +0100 Andy Stevens 
<in...@googlemail.com> wrote:

>> [build@build-f10 advanced]$ ls -l ss_btn*
>> -r--r--r-- 1 build build 234 2009-04-16 15:24
>> ss_btn_aÌ÷oÌAEÌgEÌsEÌbEÌN.gif
>
> Don't know about Fedora specifically, but "funny" characters being
> replaced by question marks can be a sign of characters not being
> supported by the character set encoding.  Is the locale set up for
> UTF8 on your Fedora box? (check the LC_* environment variables)

Hi Andy, thanks for the thoughts!

There's no LC_* settings because LANG is set.  LANG is en_US.UTF-8, which 
matches my other build systems.

Fedora 10:
LANG=en_US.UTF-8

RHEL4:
LANG=en_US.UTF-8

etc.

> Another thought - which java/jre versions are installed on your
> different boxes, english (US) or international?

The same version of java is installed on all the boxes.  I.e., I download a 
specific version from Sun (32 and 64-bit versions), and then extract that 
version onto each of the hosts.  Since this version works on all the other 
hosts, I don't see that it's java related.


Any other thoughts on what might be triggering this?

Thanks!

--Quanah


--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Apache-Ant and Fedora 10

Posted by Andy Stevens <in...@googlemail.com>.
2009/5/28 Quanah Gibson-Mount <qu...@zimbra.com>:
> Hello,
>
> I build our software (Zimbra Collaboration Suite) on a multitude of
> platforms.  Part of the build process uses Ant.  However, I have found that
> when I got to build our software on the Fedora 10 OS, it fails due to Ant
> not recognizing a particular file name correctly.  The error I see is:
>
> BUILD FAILED
> /data/builds01/F10/main/20090416152049_FOSS/ZimbraWebClient/build.xml:214:
> Problem creating war:
> /data/builds01/F10/main/20090416152049_FOSS/ZimbraWebClient/WebRoot/help/ja
> /advanced/ss_btn_a????o??AE??gE??sE??bE??N.gif (No such file or directory)
>
>
> The actual name of the file is:
>
> [build@build-f10 advanced]$ ls -l ss_btn*
> -r--r--r-- 1 build build 234 2009-04-16 15:24
> ss_btn_aÌ÷oÌAEÌgEÌsEÌbEÌN.gif

Don't know about Fedora specifically, but "funny" characters being
replaced by question marks can be a sign of characters not being
supported by the character set encoding.  Is the locale set up for
UTF8 on your Fedora box? (check the LC_* environment variables)

Another thought - which java/jre versions are installed on your
different boxes, english (US) or international?

Hope this helps,


Andy
-- 
http://pseudoq.sourceforge.net/  Open source java sudoku solver

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Articles for CM Crossroads

Posted by Bob Aiello <ra...@acm.org>.
Hi everyone, 

the June of CM Crossroads (www.cmcrossroads.com) is on 
"Evaluating and Selecting Right Tools". If you are interested in 
participating then I need a draft of your article by June 10th 
(publication date is June 17th).

Articles are usually around 1200 - 1500 words and I provide
editing support (e.g. grammer, spelling, word usage). 

Oh and I am always looking for short articles on Ant, Maven,
GNU Make and MSBuild etc.

Bob Aiello
Editor in Chief 
CM Crossroads
raiello@acm.org

http://www.linkedin.com/in/BobAiello


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org