Fuseki Upload Connection Refused

Jakob Source

I am trying to upload an RDF Model to my Jena/Fuseki (runs in docker container).

public void sendToJena() {
    DatasetAccessor accessor = DatasetAccessorFactory
            .createHTTP("http://localhost:3030/test/");
    accessor.putModel(model);
}

The code above runs insinde an Payara Application Server (also in docker container).

Everytime the method gets executed I recieve connection refused:

StandardWrapperValve[Jersey Web Application]: Servlet.service() for servlet Jersey Web Application threw exception

java.net.ConnectException: Connection refused (Connection refused)

Any ideas or thoughts on this? Thanks, Jakob

EDIT:

Already tried to pass the createHTTP() method a custom HTTP client, did not work as well.

javalocalhostrdfjenafuseki

Answers

answered 7 months ago Jakob #1

The solution was to lookup the IP-Address of the Fuseki Docker Container and replace localhost with it.

comments powered by Disqus