On 21/08/17 09:27, Sorin Gheorghiu wrote:
Hi Andy,

either way, fuseki will fail to start with the same error, which for my understanding it indicates the /jena-text-es /module is missing.
Do I have to include any extra jar?

# java -Xmx8G -Xms8G -jar fuseki-server.jar --config=/etc/default/fuseki/config.ttl

That won't work.


# java -Xmx8G -Xms8G -cp "$FUSEKI_HOME/lib/jena-text-es-3.4.0.jar:fuseki-server.jar" org.apache.jena.fuseki.cmd.FusekiCmd --conf /etc/default/fuseki/config.ttl


[2017-08-21 09:50:16] Server ERROR Exception in initialization: the root file:///etc/default/fuseki/config.ttl#indexES has no most specific type that is a subclass of ja:Object [2017-08-21 09:50:16] WebAppContext WARN Failed startup of context o.e.j.w.WebAppContext@6ede46f6{/,file:///opt/apache-jena-fuseki-3.4.0/webapp/,UNAVAILABLE} org.apache.jena.assembler.exceptions.NoSpecificTypeException: the root file:///etc/default/fuseki/config.ttl#indexES has no most specific type that is a subclass of ja:Object
   doing:
root: file:///etc/default/fuseki/config.ttl#text_dataset with type: http://jena.apache.org/text#TextDataset assembler class: class org.apache.jena.query.text.assembler.TextDatasetAssembler

Is that all there is in the fuseki log? It looks like it is not initializing

$FUSEKI_HOME/lib/jena-text-es-3.4.0.jar is the right path name

You'll need all the dependencies for jena-text-es as well.

You can force initialization with

 [] ja:loadClass "org.apache.jena.query.text.es.TextES" .
 text:TextIndexES rdfs:subClassOf ja:RDFDataset .

I would say, rebuild Fuseki (and only Fuseki) with a dependency of jena-text-es because it sorts the service loader files out but your maven installation is not working.

(PS that maven error happens if you run maven with java9)

    Andy




...


Thank you,
Sorin


Am 19.08.2017 um 12:21 schrieb Andy Seaborne:


On 18/08/17 15:01, [email protected] wrote:
Are you asking about an artifact for jena-text-es, or an artifact for Fuseki equipped with jena-text-es?

Fuseki is normally run as a jar-with-dependencies using "java -jar"

One way to include extra JARs into fuseki is to use the jar on the classpath and call the main method:

(all one line)

java -cp "ExtraJars:fuseki-server.jar"
       org.apache.jena.fuseki.cmd.FusekiCmd ARGS

    HTH
    Andy



ajs6f

Andy Seaborne wrote on 8/18/17 9:54 AM:
Does exist by chance a binary for Text Search ES?

It's in maven central:

http://central.maven.org/maven2/org/apache/jena/jena-text-es/3.4.0/



On 18/08/17 13:21, Sorin Gheorghiu wrote:
Hello,

in order to include *jena-text-es *I had to build artifacts, therefore I checkout the sources:

$ git clone https://github.com/apache/jena.git
$ cd jena
$ git checkout tags/jena-3.4.0

then I added in the pom.xml of /jena/jena-fuseki2/jena-fuseki-core/

<dependency> <groupId>org.apache.jena</groupId> <artifactId>jena-text-es</artifactId> <version>3.4.0</version> </dependency>

as well as in the pom.xml of /jena// (on all 3 profiles: dev, bootstrap, complete)

... <module>jena-text-es</module> ...

but the build failed with error:

$ mvn clean install
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (enforce) on project jena-project: Execution enforce of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce: java.lang.ExceptionInInitializerError: null

Maybe the version of mvn you are running is too old?


Did I miss a dependency or any other step?
Does exist by chance a binary for Text Search ES?

Thank you,
Sorin


Reply via email to