karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofre ...@nanthrax.net>
Subject Re: Building apache failed
Date Thu, 11 Jun 2020 05:15:00 GMT
Hi Mike,

Jenkins is happy https://builds.apache.org/view/K/view/Karaf/job/karaf-master/ <https://builds.apache.org/view/K/view/Karaf/job/karaf-master/>
and it works on my machine with:

java version "11.0.6" 2020-01-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)

Result:

[INFO] Running org.apache.karaf.jpm.ProcessTest
/Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/bin/java
Executing: "/Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/bin/java" -Dprop="key"
-classpath /Users/jbonofre/Workspace/karaf/instance/target/test-classes/ org.apache.karaf.jpm.MainTest
60000
Process: 75717
Running: true
Destroying
Running: false
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.129 s - in org.apache.karaf.jpm.ProcessTest

The difference is that I’m using Oracle JDK (not OpenJDK). I don’t remember if OpenJDK
includes JPM by default.

Let me try with OpenJDK.

Regards
JB

> Le 10 juin 2020 à 21:38, Mike Hummel <mh@mhus.de> a écrit :
> 
> Hello,
> 
> I try to build karaf but it's not working:
> 
> 
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running org.apache.karaf.jpm.ProcessTest
> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
> Executing: "/usr/lib/jvm/java-11-openjdk-amd64/bin/java" -Dprop="key" -classpath /home/user/karaf/instance/target/test-classes/
org.apache.karaf.jpm.MainTest 60000
> Process: 4398
> Running: true
> Destroying
> Running: true
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.149 s <<<
FAILURE! - in org.apache.karaf.jpm.ProcessTest
> [ERROR] testCreate(org.apache.karaf.jpm.ProcessTest)  Time elapsed: 2.104 s  <<<
FAILURE!
> junit.framework.AssertionFailedError
> 	at org.apache.karaf.jpm.ProcessTest.testCreate(ProcessTest.java:57)
> 
> in
> 
> [INFO] Apache Karaf :: Instance :: Core ................... FAILURE [  7.811 s]
> 
> Environment:
> 
> user@deploy-mhus:~/karaf$ java --version
> openjdk 11.0.2 2019-01-15
> OpenJDK Runtime Environment (build 11.0.2+9-Debian-3bpo91)
> OpenJDK 64-Bit Server VM (build 11.0.2+9-Debian-3bpo91, mixed mode, sharing)
> user@deploy-mhus:~/karaf$ uname -a
> Linux deploy-mhus 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64
GNU/Linux
> user@deploy-mhus:~/karaf$
> 
> 
> Any ideas?
> 
> Thx and Regards,
> 
> Mike
> 
> 
> 
> 
> 


Mime
View raw message