[Anthill] Ant sub-process environment missing

Tovsen, Neal Neal.Tovsen at ecolab.com
Tue Jun 28 10:55:41 CDT 2005


Hey all,

First off, is there any way to search the archives rather than browsing
through?

Anyway, here's my problem:

Anyone here running Anthill on a VMWare Microsoft OS? I'm pretty new to
Anthill, but I can install/configure/use Anthill very easily on my local
machine and on other machines with no problems. Works great! But our
official build server is a VMWare box running 2003 Server. We set this
box up just like the others. When we try to trigger builds on this box
we get the following errors in the build log:

========================================

init:

compile:
    [javac] Compiling 1 source file to C:\...\classes

BUILD FAILED
C:\...\build.xml:22: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK

Total time: 1 second

========================================

When I run this on my local machine, or on the other non-VMWare 2003
server that we tried, the Tomcat log file looks something like this
(edited):

========================================
15:42:10:885 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Build Command: cmd /x/c
C:\javalib\anthill\lib\ant1.6.2\bin\ant.bat
-DdeployDir=C:\javalib\anthill\publishDir\EcolabSampleWar -Dversion=5.8
-Dkit=5.8 -buildfile C:\temp\EcolabSampleWar\build.xml -logfile
C:\javalib\anthill\publishDir\EcolabSampleWar\buildLogs\EcolabSampleWar-
5.8-build.log
15:42:11:556 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Execute:Java13CommandLauncher:
Executing 'cmd' with arguments:
'/x/c'
'C:\javalib\anthill\lib\ant1.6.2\bin\ant.bat'
'-DdeployDir=C:\javalib\anthill\publishDir\EcolabSampleWar'
'-Dversion=5.8'
'-Dkit=5.8'
'-buildfile'
'C:\temp\EcolabSampleWar\build.xml'
'-logfile'
'C:\javalib\anthill\publishDir\EcolabSampleWar\buildLogs\EcolabSampleWar
-5.8-build.log'

The ' characters around the executable and arguments are
not part of the command.

WorkingDir: none
Environment Variables: 
ALLUSERSPROFILE=C:\Documents and Settings\All Users
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=blahblah
ComSpec=C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK=NO
JAVA_HOME=C:\jdk1.5.0_02
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=[edit]C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Pr
ogram Files\ATI Technologies\ATI Control Panel;C:\WINDOWS\Downloaded
Program Files;[edit]...
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.pyo;.pyc;.py;.
pyw
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0d06
ProgramFiles=C:\Program Files
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINDOWS
TCL_LIBRARY=C:\IBMTOOLS\Python22\tcl\tcl8.4
TEMP=C:\WINDOWS\TEMP
TK_LIBRARY=C:\IBMTOOLS\Python22\tcl\tk8.4
TMP=C:\WINDOWS\TEMP
USERPROFILE=C:\Documents and Settings\LocalService
windir=C:\WINDOWS
ANT_HOME=C:\javalib\anthill\lib\ant1.6.2
Buildfile: C:\[edit]\build.xml
========================================



But when I run it on a VMWare box (tried two so far), it always looks
like this:



========================================
08:28:45:445 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Build Command: cmd /x/c
E:\javalibs\anthill\lib\ant1.6.2\bin\ant.bat
-DdeployDir=E:\javalibs\anthill\publishDir\EcolabSampleWar
-Dversion=1.0.99 -Dkit=1.0.99 -buildfile
C:\ecolab\workspace\EcolabSampleWar\EcolabSampleWar\build.xml -logfile
E:\javalibs\anthill\publishDir\EcolabSampleWar\buildLogs\EcolabSampleWar
-1.0.99-build.log
08:28:46:023 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Execute:Java13CommandLauncher:
Executing 'cmd' with arguments:
'/x/c'
'E:\javalibs\anthill\lib\ant1.6.2\bin\ant.bat'
'-DdeployDir=E:\javalibs\anthill\publishDir\EcolabSampleWar'
'-Dversion=1.0.99'
'-Dkit=1.0.99'
'-buildfile'
'C:\ecolab\workspace\EcolabSampleWar\EcolabSampleWar\build.xml'
'-logfile'
'E:\javalibs\anthill\publishDir\EcolabSampleWar\buildLogs\EcolabSampleWa
r-1.0.99-build.log'

The ' characters around the executable and arguments are
not part of the command.

WorkingDir: none
Environment Variables: 
ANT_HOME=E:\javalibs\anthill\lib\ant1.6.2
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre1.5.0_02\lib\tools.jar
Buildfile: C:\[edit]\build.xml
========================================

As you can see, it seems as though NONE of the environment variables are
present except for ANT_HOME, though there are clearly many set in the
system environment control panel besides the critical JAVA_HOME and
PATH. 

This happens if you start Tomcat from command line or if you start it as
a Windows service. We've tried using the system account in the service
properties, as well as several named users with local admin and other
privileges. I can see all the environment variables if I simply open a
cmd prompt. And Tomcat itself doesn't seem to have any problems...it
compiles JSPs and runs the Anthill application just fine. It only seems
to be when Anthill tries to spawn an Ant process...

The local Windows admin guy says there's no system security policy that
should cause this to happen, but that doesn't mean he's right. Maybe it
is a VMWare bug? I've never seen anything like this. We're pretty
stumped. Any ideas appreciated!

Thanks,
Neal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill/attachments/20050628/9f4f57f6/attachment-0002.htm


More information about the Anthill mailing list