OWL API build failed with ANT - java

I download OWL API 3.2.4 from http://owlapi.sourceforge.net/download.html
and build it with ANT.
There are some errors show on the terminal:
$ ant
Buildfile: /home/yichu/owlapi-3.2.4/build.xml
clean:
[delete] Deleting directory /home/yichu/owlapi-3.2.4/build
compile:
[mkdir] Created dir: /home/yichu/owlapi-3.2.4/build/classes
[javac] /home/yichu/owlapi-3.2.4/build.xml:57: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
binjar:
[exec] Result: 1
[jar] Building MANIFEST-only jar: /home/yichu/owlapi-3.2.4/build/owlapi-bin.jar
srcjar:
BUILD FAILED
/home/yichu/owlapi-3.2.4/build.xml:139: /home/yichu/api/src/main/java does not exist.
What do the errors mean?
Thank you!

That's caused by a misfeature introduced in Ant 1.8. Just add an attribute of that name to the javac task, set it to false, and forget it ever happened.

Related

Jenkins Setup Issue

I have done the Jenkins Setup to clone solution from Github Repo and trigger the build and solution should run on multiple browsers in parallel (I'm using ANT build).
But when I'm trying to run scripts, its triggering the build but unable to clone solution on VM, throwing below error
Started by upstream project "HippoAutomationTests" build number 12
originally caused by:
Started by user Andy Williams
[EnvInject] - Loading node environment variables.
Building on master in workspace /x01/builds/workspace/HippoAutomationTests/browser/Firefox
using credential b89b0ace-6852-43d4-83a7-83f3ba77a290
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://bitbucket.org/kohler_source/hippoautomationtests.git # timeout=10
Fetching upstream changes from https://bitbucket.org/kohler_source/hippoautomationtests.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials Bitbucket Credentials
> git fetch --tags --progress https://bitbucket.org/kohler_source/hippoautomationtests.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 104215052b7b4ae548eb2a4782bd9292bc93b95a (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 104215052b7b4ae548eb2a4782bd9292bc93b95a
Commit message: "Updating the solution"
> git rev-list --no-walk 104215052b7b4ae548eb2a4782bd9292bc93b95a # timeout=10
[Firefox] $ /x01/jenkins/tools/hudson.tasks.Ant_AntInstallation/Ant_Installation/bin/ant -file build.xml -DGroup=HippoIndia -Dbrowser=Firefox -DURL=http://plumbingindia.kohler.acct.us.onehippo.com/ -DrealTimeReport=true -DrunParallel=methods -Dselenium.capture.path=/Test/build/test-output/new -Dtest.url=http://plumbingindia.kohler.acct.us.onehippo.com/ -DuseVideoCapture=false -DbuildName=Test -DdbMode=false -Dselenium.timeout=60000 -DlocalExecution=true -DthreadCount=1 -Dtest.browser=Firefox -Dpackages=com.tests.* -Dtest.browser.version=11.0 -DretryCount=0 -Dselenium.port=4444 -DdbUrl=localhost:3306/isaf -DshowVideosOnPass=false -DdataProviderThreadCount=20 -Dgroups=HippoIndia -DuseProxy=false -DdbUser=isaf_user -Dselenium.host=localhost -DdbPass=isaf#123 -DreportType=iwafreport build.config run.test
Buildfile: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/build.xml
build.config:
[copy] Copying 1 file to /x01/builds/workspace/HippoAutomationTests/browser/Firefox
clean:
[delete] Deleting directory /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build
init:
[mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build
[mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-classes
[mkdir] Created dir: /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output
compile:
[javac] /x01/builds/workspace/HippoAutomationTests/browser/Firefox/build.xml:99: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 18 source files to /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
run.test:
[java] Error occurred during initialization of VM
[java] Error opening zip file or JAR manifest missing : /x01/builds/workspace/HippoAutomationTests/browser/Firefox/lib\aspectjweaver.jar
[java] agent library failed to init: instrument
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 4 seconds
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level /x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output/IwafReport to /x01/jenkins/jobs/HippoAutomationTests/configurations/axis-browser/Firefox/htmlreports/HTML_20Report
ERROR: Specified HTML directory '/x01/builds/workspace/HippoAutomationTests/browser/Firefox/Test/build/test-output/IwafReport' does not exist.
Build step 'Publish HTML reports' changed build result to FAILURE
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
testng-results.xml was last modified before this build started. Ignoring it.
testng-results.xml was last modified before this build started. Ignoring it.
Saving reports...
Found matching files but did not find any TestNG results.
Finished: FAILURE
Please provide some suggestion to resolve the issue.
The aspectjweaver.jar JAR is missing on your build environment as per the error message:
[java] Error occurred during initialization of VM [java] Error opening zip file or JAR manifest missing : /x01/builds/workspace/HippoAutomationTests/browser/Firefox/lib\aspectjweaver.jar
[java] agent library failed to init: instrument
[java] Java Result: 1
Ensure that this JAR is present and don't use \ as a path delimiter. It should be lib/aspectjweaver.jar just like rest of the path.

Jenkins shows log4j complaining with: log4j:WARN No appenders could be found for logger [duplicate]

This question already has answers here:
No appenders could be found for logger(log4j)?
(32 answers)
Closed 8 years ago.
Can someone please help me figure out why Jenkins keeps complaining about log4j when it works from the IDE? I'm familiar with the error and what the fix for it is. I have a log4j.properties file in my src folder. When I run my tests from the IDE, I don't see this error. Only from Jenkins. Any help would be appreciated.
THIS IS NOT THE SAME QUESTION AS THE ONES I'M BEING LINKED TO! READ THE QUESTION PLEASE! THIS IS HAPPENING IN JENKINS, NOT IN THE IDE.
Thanks
Stack:
Started by user anonymous
Building in workspace C:\Users\userm4\.jenkins\jobs\Company Smoke Test\workspace
[Selenium Main] $ cmd.exe /C '"C:\apache-ant-1.9.4\bin\ant.bat -file TestNG run makexsltreports && exit %%ERRORLEVEL%%"'
Buildfile: E:\Selenium Main\TestNG\build.xml
setClassPath:
init:
clean:
[delete] Deleting directory E:\Selenium Main\TestNG\build
compile:
[echo] making directory...
[mkdir] Created dir: E:\Selenium Main\TestNG\build
[echo] classpath------: E:\Selenium Main\TestNG\lib\SaxonLiaison.jar:E:\Selenium Main\TestNG\lib\jtds-1.3.1.jar:E:\Selenium Main\TestNG\lib\junit-4.11.jar:E:\Selenium Main\TestNG\lib\log4j-1.2.17.jar:E:\Selenium Main\TestNG\lib\mysql-connector-java-5.1.34.jar:E:\Selenium Main\TestNG\lib\saxon-8.7.jar:E:\Selenium Main\TestNG\lib\selenium-java-2.44.0.jar:E:\Selenium Main\TestNG\lib\selenium-server-standalone-2.44.0.jar:E:\Selenium Main\TestNG\lib\testng-6.8.8.jar
[echo] compiling...
[javac] E:\Selenium Main\TestNG\build.xml:66: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 52 source files to E:\Selenium Main\TestNG\build
run:
[testng] [TestNG] Running:
[testng] E:\Selenium Main\TestNG\testng.xml
[testng]
[testng] log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
[testng] log4j:WARN Please initialize the log4j system properly.
[testng] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
...
Try move log4j.properties to WEB-INF/classes in your build or add -Dlog4j.configuration=theconfig on your job command.

Java - Launch4j, Build failure

I am trying to create an executable file from my project but unfortunately I have this failure:
Buildfile: C:\02_DEV\R_5_2_3\DiagraDB\build.xml
compile:
[javac] Compiling 1 source file to C:\02_DEV\R_5_2_3\DiagraDB\bin
dist:
[jar] Building jar: C:\DiagraDB_build\lib\DiagraDB.jar
[copy] Copying 1 file to C:\DiagraDB_build\mysql
[launch4j] Compiling resources
[launch4j] Linking
[launch4j] C:\02_DEV\R_5_2_3\DiagraDB\launch4j\bin\ld.exe: C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\crt2.o: No such file: No such file or directory
BUILD FAILED
C:\02_DEV\R_5_2_3\DiagraDB\build.xml:125: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: Exec failed (1): C:\02_DEV\R_5_2_3\DiagraDB\launch4j\bin\ld.exe -mi386pe --oformat pei-i386 --subsystem windows -s C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\crt2.o C:\02_DEV\R_5_2_3\DiagraDB\launch4j\head\guihead.o C:\02_DEV\R_5_2_3\DiagraDB\launch4j\head\head.o C:\Users\MET4ABT\AppData\Local\Temp\launch4j5622103051739315213o C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libmingw32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libgcc.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libmsvcrt.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libkernel32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libuser32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libadvapi32.a C:\02_DEV\R_5_2_3\DiagraDB\launch4j\w32api\libshell32.a -o C:\DiagraDB_build\DiagraDB.exe
Total time: 6 seconds
I have read some kind of stuff such as Launch4j / windres: how to set paths correctly? but I couldn't make it work for mine.
(I have the JDK Version 7 and windows 7.) I appreciate your suggestions about a solution for this problem. Thanks in advance.

Why does Avahi "ant test-browse" fail with "libavahi4j.so: undefined symbol: avahi_malloc"?

I was able to successfully build avahi per the instructions, but the next step in the quick start of running "ant test-browse" results in a symbol lookup error, and I'm confused about how to proceed with troubleshooting this problem. I did find the following post that showed a similar problem, but wasn't able to make any progress (it seems the thread was never publicly resolved anyway). Here is the error output that I see:
myUser#ubuntu:~/Downloads/avahi4j-0.1$ ant test-browse
Buildfile: /home/myUser/Downloads/avahi4j-0.1/build.xml
init:
compile:
[javac] /home/myUser/Downloads/avahi4j-0.1/build.xml:109: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
jar:
jnilib:
[exec] make: Entering directory `/home/myUser/Downloads/avahi4j-0.1/src'
[exec] make: Nothing to be done for `all'.
[exec] make: Leaving directory `/home/myUser/Downloads/avahi4j-0.1/src'
test-browse:
[java] Avahi4J v0.1-0
[java] /usr/lib/jvm/java-7-oracle/jre/bin/java: symbol lookup error: /home/myUser/Downloads/avahi4j-0.1/libavahi4j.so: undefined symbol: avahi_malloc
BUILD FAILED
/home/myUser/Downloads/avahi4j-0.1/build.xml:185: Java returned: 127
Total time: 0 seconds
Finally found a workaround: export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libavahi-common.so:/usr/lib/x86_64-linux-gnu/libavahi-client.so
If anyone can shed light on why this manual hacking is required, I would love suggestions on why the standard build process did not work for me (this is on Ubuntu).

Unable to build piggybank -> /home/build/ivy/lib does not exist

hey all I followed the steps here: http://wiki.apache.org/pig/PiggyBank
to build the piggybank jar but I keep getting the output below. I also built the pig project from source and reference that in my .bash_profile:
cloudera#cloudera-demo:~/piggybank/java$ ./makepiggy.sh
Buildfile: /home/cloudera/piggybank/java/build.xml
download-hive-deps:
init:
compile:
[echo] *** Compiling Pig UDFs ***
[javac] /home/cloudera/piggybank/java/build.xml:100: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 153 source files to /home/cloudera/piggybank/java/build/classes
BUILD FAILED
/home/cloudera/piggybank/java/build.xml:100: /home/build/ivy/lib does not exist.
here is my bash_profile:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22
export CLASSPATH=$CLASSPATH:/home/cloudera/pig/trunk/pig.jar
** UPDATE **
The docs were incorrect on the Wiki page, they appear to be correct now: http://wiki.apache.org/pig/PiggyBank
follow the new instructions and you should be fine
The docs were incorrect on the Wiki page, they appear to be correct now: http://wiki.apache.org/pig/PiggyBank
follow the new instructions and you should be fine
Create a directory for the Pig source code: mkdir pig
cd into that directory: cd pig
Checkout the Pig source code: svn checkout http://svn.apache.org/repos/asf/pig/trunk/ .
Build the project: ant
cd into the piggybank dir: cd contrib/piggybank/java
Build the piggybank: ant
You should now see a piggybank.jar file in that directory.

Categories