Coder Social home page Coder Social logo

Comments (5)

beebs-systap avatar beebs-systap commented on June 4, 2024 1

Hello,

Please see if one of the suggestions described here works for you. You may need to either add the path to the journal file as a startup parameter to Tomcat or edit the RWStore.properties.

The logging is done to the catalina.out for Tomcat in the war / Tomcat deployment model.

from database.

mnscholz avatar mnscholz commented on June 4, 2024

Hi,

thanks for the help!
Rather late (the holidays...) I want to report that I got blazegraph running on tomcat.

There were two problems:

  1. the blazegraph.war release file does not contain blazegraph.jnl. I downloaded the source code, compiled it and got the jnl called blazegraph.jnl.
  2. despite the release being called blazegraph.war, in the RWStore.properties (and other .properties files), the library is called bigdata.jnl, not blazegraph.jnl. I changed them to the latter and used an absolute path.

After restarting tomcat a couple of times, blazegraph works fine now.

from database.

thompsonbry avatar thompsonbry commented on June 4, 2024

from database.

mnscholz avatar mnscholz commented on June 4, 2024

Good to know! So finally it seems the problem was that blazegraph/tomcat could not create the file due to missing permissions.

Thanks!
Martin

from database.

nvbach91 avatar nvbach91 commented on June 4, 2024

Blazegraph by default will create the bigdata.jnl file inside he folder where the servlet container is run. Usually that folder is protected so the jnl file can't be created. You should pick another location by defining an absolute path of in the properties files of Blazegraph.

Solution:

change

./webapps/blazegraph/WEB-INF/web.xml
line:42:<param-value>RWStore.properties</param-value>
./webapps/blazegraph/WEB-INF/GraphStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=bigdata.jnl
./webapps/blazegraph/WEB-INF/classes/RWStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=bigdata.jnl

to

./webapps/blazegraph/WEB-INF/web.xml
line:42:<param-value>/opt/tomcat/webapps/blazegraphpublic/WEB-INF/RWStore.properties</param-value>
./webapps/blazegraph/WEB-INF/GraphStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=/your/existing/desired/path/bigdata.jnl
./webapps/blazegraph/WEB-INF/classes/RWStore.properties
line:12:com.bigdata.journal.AbstractJournal.file=/your/existing/desired/path/bigdata.jnl

also, you might need to

chown tomcat:tomcat /your/existing/desired/path/

link: https://github.com/blazegraph/database/wiki/NanoSparqlServer#common-startup-problems

from database.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.