Create and run an Apache Stanbol instance - fails

Following the instructions: stanbol build and start the instance of stanbol

We always get the following error on execution:

% mvn clean install

[ERROR] The target org.apache.maven.plugins: maven-surefire-plugin: 2.16: test (default test) in the org.apache.stanbol.commons.owl project failed: there are testing errors.

We assume this has something to do with this:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: default for inactivity (NOP) SLF4J: For more information see http://www.slf4j.org/codes.html#StaticLoggerBinder .

Full log can be found: here

Since we don’t know what exactly went wrong, we hope that someone can give us some advice to find a solution.

If tests are skipped with -DskipTests

If after that a server error message appears:

16.07.2014 12:30:10.136 *ERROR* [FelixStartLevel] ERROR: Error starting 

Access the full server log here

The result that I get when using stanbol 0.12 here is still an error, but most of the tests were successful ... the version on github has a similar error here

And starting after skipping tests throws it. Errors are shown here.

+4
source share
5 answers

org.apache.stanbol.commons.owl, .

0.12:

org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.stanbol.commons.web.base.jersey [71]: Unable to resolve 71.0: missing requirement [71.0] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.1)(!(version>=2.0.0)))
    at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3962)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2025)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1279)
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:304)
    at java.lang.Thread.run(Thread.java:744)

org.apache.stanbol.commons.web.base.jersey org.osgi.service.http;version="[1.2.0,2)" ( MANIFEST.MF ) org.apache.felix:org.apache.felix.http.api:jar:2.3.0 ( STANBOL-1356) 1.2.0 .

, , , - , org.apache.stanbol.commons.web.base.jersey 1.2.1.

github 0.12 build

java.lang.UnsupportedClassVersionError: org/apache/marmotta/ldpath/api/backend/RDFBackend : Unsupported major.minor version 51.0

Stanbol 0.12.1-SNAPSHOT 1.0.0-SNAPSHOT Java 7. , Apache Marmotta LDPath.

ERROR: Bundle org.apache.felix.http.jetty [72]: Error starting slinginstall:org.apache.felix.http.jetty-2.3.0.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.http.jetty [72]: Unable to resolve 72.0: missing requirement [72.0] package; (&(package=javax.servlet)(version>=3.0.0)(!(version>=4.0.0)))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.felix.http.jetty [72]: Unable to resolve 72.0: missing requirement [72.0] package; (&(package=javax.servlet)(version>=3.0.0)(!(version>=4.0.0)))
    at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3443)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1727)
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1156)
    at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
    at java.lang.Thread.run(Thread.java:744)

... STANBOL-1356. , . , , pom.xml <jarWebSupport></jarWebSupport>. . .

+1

, . Stanbol Jenkins, trunk (https://builds.apache.org/view/All/job/stanbol-trunk/). , buins Apache Stanbol.

+2

Apache Stanbol:

  • trunk Stanbol github ( c8875721f7c57cb099b4c2ad8b41ea81bad3ef56 28.7.2014).
  • , . , .bashrc JAVA_HOME java- 7
  • stanbol-trunk : MAVEN_OPTS = "- Xmx1024m -XX: MaxPermSize = 256M" : mvn install -Dmaven.test.skip = true
  • : java -Xmx1g -XX: MaxPermSize = 192m -jar- /full/target/org.apache.stanbol.launchers.full-1.0.0-SNAPSHOT.jar -p 9090

Heapsize 64- Jvm: java -Xmx1g -XX: MaxPermSize = 1024M -jar- /full/target/org.apache.stanbol.launchers.full-1.0.0-SNAPSHOT.jar -p 9090

+2

( org.apache.maven.plugins: maven-surefire-plugin: 2.18.1: test ( -) org.apache.stanbol.rules.adapters.clerezza: .)

, . git https://github.com/apache/stanbol "mvn install" → Build SUCCESS,

, , https://stanbol.apache.org/downloads/ , github.

, (), github ; -)

+1

The workaround is to skip tests, just add “-DskipTests” when calling maven. The real solution would probably be to add the slf4j implementation in test mode in commons / owl.

0
source

Source: https://habr.com/ru/post/1548477/


All Articles