Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Apache Ant Integration Plugin invalid dependency #1008

jomar55 ·
I'm evaluating QuickBuild 2.1.41-windows-x86-64 and installation has been wonderfully smooth.
During my first attempt at running an Ant build step, I get the following error message:
7:33:09,686 [build@tsiengs1:8810] ERROR - The specified logger class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be used because Class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be loaded because of an invalid dependency.

I haven't found anything in the forums or bug tracker. Is this an Ant CLASSPATH issue?
I'm not quite sure how to proceed.
  • replies 7
  • views 3852
  • stars 0
robinshen ADMIN ·
Thanks for your evaluation. Which Ant version are you using?
jomar55 ·
D:\apache-ant-1.8.1>ant -version
Apache Ant version 1.8.1 compiled on April 30 2010
D:\apache-ant-1.8.1>
robinshen ADMIN ·
This sounds like a classpath issue. Please upgrade to 2.1.42 (http://build.pmease.com/build/822) and run the build in debug mode (by set log level property in basic setting of the configuration). All environments including CLASSPATH will be printed in the build log, which may help find cause of the problem.
jomar55 ·
Upgraded as instructed and performed a build which exhibits the same basic problem:
16:30:19,250 [build@tsiengs1:8810] ERROR - The specified logger class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be used because Class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be loaded because of an invalid dependency.

With DEBUG level logging, the "Executing command" is
16:30:19,126 [build@tsiengs1:8810] DEBUG - Executing command: D:\apache-ant-1.8.1\bin\ant.bat "-DbuildDate=Fri Jun 25 16:30:18 EDT 2010" -DbuildVersion=1.0.0.3207 -DartifactsDir=F:\quickbuild-data\storage\HD03\builds\19 "-Dexe4jBaseDir=D:/Program Files/exe4j" -v -buildfile F:\quickbuild-data\workspaces\HD03\build\build_hd03_new.xml BUILD_TESTING_RELEASE -logger com.pmease.quickbuild.plugin.builder.ant.AntLogger 
Will command parsing work with switches inside double quotes?

"Command working directory:
16:30:19,126 [build@tsiengs1:8810] DEBUG - Command working directory: F:\quickbuild-data\workspaces\HD03\build

"Command environments":
16:30:19,126 [build@tsiengs1:8810] DEBUG - Command environments:
ProgramData=C:\ProgramData
USERPROFILE=C:\Windows\system32\config\systemprofile
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw
WRAPPER_FILE_SEPARATOR=\
ANT_OPTS=-Xmx1024m -Xms512m
JAVA_HOME=D:\j2sdk1.4.2_12
WRAPPER_OS=windows
ProgramFiles(x86)=C:\Program Files (x86)
WRAPPER_BIN_DIR=D:\Program Files\quickbuild-2.1.42-windows-x86-64\bin
SystemDrive=C:
TEMP=C:\Windows\system32\config\systemprofile\AppData\Local\Temp
ProgramFiles=C:\Program Files
Path=D:\Program Files\Java\jdk1.6.0_20\bin;D:\apache-ant-1.8.1\bin;D:\Perl\site\bin;D:\Perl\bin;D:\Program Files (x86)\CollabNet\Subversion Server;D:\Python25\;D:\Python25\Scripts;C:\Program Files\EMC\PowerCommon\;C:\Program Files\EMC\PowerPath\;C:\Program Files\EMC\PowerPath\32bit\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\Dell\SysMgt\oma\bin;C:\Program Files (x86)\Dell\SysMgt\idrac;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;D:\Program Files\MySQL\MySQL Server 5.1\bin
PROCESSOR_REVISION=1a05
EXE4J_JAVA_HOME=D:\Program Files\Java\jdk1.6.0_20
WRAPPER_BITS=64
USERDOMAIN=TRANSONIC
PP_SHOW_VERSION_STYLE=VERBOSE
ALLUSERSPROFILE=C:\ProgramData
WRAPPER_HOST_NAME=tsiengs1
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
WRAPPER_WORKING_DIR=D:\Program Files\quickbuild-2.1.42-windows-x86-64\bin
TMP=C:\Windows\system32\config\systemprofile\AppData\Local\Temp
CLASSPATH=D:\Program Files\quickbuild-2.1.42-windows-x86-64\plugins\com.pmease.quickbuild.plugin.builder.ant_2.1.5.jar
PROCESSOR_ARCHITECTURE=AMD64
CommonProgramFiles=C:\Program Files\Common Files
WRAPPER_PID=6552
OS=Windows_NT
FP_NO_HOST_CHECK=NO
WRAPPER_ARCH=x86
PROCESSOR_LEVEL=6
APR_ICONV1_PATH=D:\Program Files (x86)\CollabNet\Subversion Server\httpd\bin\iconv
ANT_HOME=D:\apache-ant-1.8.1
=D:=D:\Program Files\quickbuild-2.1.42-windows-x86-64\bin
LOCALAPPDATA=C:\Windows\system32\config\systemprofile\AppData\Local
COMPUTERNAME=TSIENGS1
SystemRoot=C:\Windows
windir=C:\Windows
NUMBER_OF_PROCESSORS=16
PUBLIC=C:\Users\Public
USERNAME=SYSTEM
WRAPPER_HOSTNAME=tsiengs1
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
ComSpec=C:\Windows\system32\cmd.exe
APPDATA=C:\Windows\system32\config\systemprofile\AppData\Roaming
WRAPPER_PATH_SEPARATOR=;
I found this entry in the environment odd:
=D:=D:\Program Files\quickbuild-2.1.42-windows-x86-64\bin

And finally:
16:30:19,234 [build@tsiengs1:8810] INFO  - Apache Ant version 1.8.1 compiled on April 30 2010
16:30:19,240 [build@tsiengs1:8810] INFO - Buildfile: F:\quickbuild-data\workspaces\HD03\build\build_hd03_new.xml
16:30:19,250 [build@tsiengs1:8810] ERROR - The specified logger class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be used because Class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be loaded because of an invalid dependency.
16:30:19,260 [build@tsiengs1:8810] ERROR - java.lang.RuntimeException
16:30:19,260 [build@tsiengs1:8810] ERROR - at org.apache.tools.ant.Main.createLogger(Main.java:907)
16:30:19,260 [build@tsiengs1:8810] ERROR - at org.apache.tools.ant.Main.addBuildListeners(Main.java:852)
16:30:19,260 [build@tsiengs1:8810] ERROR - at org.apache.tools.ant.Main.runBuild(Main.java:722)
16:30:19,260 [build@tsiengs1:8810] ERROR - at org.apache.tools.ant.Main.startAnt(Main.java:218)
16:30:19,260 [build@tsiengs1:8810] ERROR - at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
16:30:19,260 [build@tsiengs1:8810] ERROR - at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
16:30:19,313 [build@tsiengs1:8810] ERROR - Step 'build' is failed.
com.pmease.quickbuild.QuickbuildException: Ant build failed.
The specified logger class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be used because Class com.pmease.quickbuild.plugin.builder.ant.AntLogger could not be loaded because of an invalid dependency.
java.lang.RuntimeException
at org.apache.tools.ant.Main.createLogger(Main.java:907)
at org.apache.tools.ant.Main.addBuildListeners(Main.java:852)
at org.apache.tools.ant.Main.runBuild(Main.java:722)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
at com.pmease.quickbuild.plugin.builder.ant.AntBuildStep.run(AntBuildStep.java:314)
at com.pmease.quickbuild.plugin.builder.ant.AntBuildStep$$EnhancerByCGLIB$$c3230451.CGLIB$run$0(<generated>)
at com.pmease.quickbuild.plugin.builder.ant.AntBuildStep$$EnhancerByCGLIB$$c3230451$$FastClassByCGLIB$$5769c186.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultExpressionManager$Interpolator.intercept(DefaultExpressionManager.java:271)
at com.pmease.quickbuild.plugin.builder.ant.AntBuildStep$$EnhancerByCGLIB$$c3230451.run(<generated>)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:525)
at com.pmease.quickbuild.stepsupport.StepJob.execute(StepJob.java:37)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:116)
at java.lang.Thread.run(Thread.java:619)
robinshen ADMIN ·
From the environment, JDK 1.4 is used to run Ant. Since QuickBuild supplies Ant with a logger class compiled under JDK 1.5 and this will lead to the invalid dependency error. A patch release will be available soon to compile the logger class under JDK 1.4 to fix this issue.
robinshen ADMIN ·
Now fixed in 2.1.43: http://build.pmease.com/build/838

Thanks for reporting
jomar55 ·
Thanks for such a quick response and resolution.This did indeed resolve the problem and I'm looking forward to continuing the evaluation.