org.wikibrain.conf.ConfigurationException while trying to run Quickstart example.

27 views
Skip to first unread message

ravi kumar singh

unread,
Feb 23, 2017, 11:33:20 AM2/23/17
to wikibrain
Hello,
I want to use wikibrain for implementing some new similarity related measures and also use the existing ones for my masters thesis.

While setting up Wikibrain and trying to run QuickStart example, I encountered org.wikibrain.conf.ConfigurationException exception.

I had a look at this link https://github.com/shilad/wikibrain/issues/155 for the same issue where it was mentioned the jar was not in the classpath.

The problem with my implementation is that I am trying to use it as a maven dependency with Spring boot application which is also maven project. So wikibrain jars are present in lib folder in jar.

I think the problem is isLocalFile(url) check in JvmUtils.java(line 52) while building classpath so as to include class files in wikibrain jars to register providers for Configurator. Though the wikibrain jars are picked up for check but their URL is jar (not file).

Could you please direct me in some direction where I could explore to fix this problem. Any input is really appreciated as I dont want to waste my time in getting dumps from wikimedia and create database backend for my project.


Best Regards
Ravi
wikibrain language error.png

Shilad Sen

unread,
Feb 24, 2017, 10:20:17 PM2/24/17
to ravi kumar singh, wikibrain
Hi Ravi,

You are right, the configurator isn't designed for URLs in the classpath. If you can run it with local files things should work!

-Shilad

--
You received this message because you are subscribed to the Google Groups "wikibrain" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wikibrain+unsubscribe@googlegroups.com.
To post to this group, send email to wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wikibrain/f947080c-3803-44af-a139-1c07f44f9f0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Shilad W. Sen

Associate Professor
Mathematics, Statistics, and Computer Science Dept.
Macalester College

ravi kumar singh

unread,
Feb 25, 2017, 4:44:36 AM2/25/17
to wikibrain, ravikr...@gmail.com
Hi Shilad,
Thank you so much for the prompt reply. Locally the examples work of course :).
May be since you guys are working on first release it would be nice to have this as a feature as well then people can use wikibrain as a maven dependency and use it. Just need to add JAR Urls as well along with file url in the JvmUtil.isLocalFile(url) method

Thank you once again for your time and it was really easy to get wikibrain up and running.

Best Regards
Ravi


On Saturday, 25 February 2017 04:20:17 UTC+1, Shilad Sen wrote:
Hi Ravi,

You are right, the configurator isn't designed for URLs in the classpath. If you can run it with local files things should work!

-Shilad
On Thu, Feb 23, 2017 at 10:33 AM, ravi kumar singh <ravikr...@gmail.com> wrote:
Hello,
I want to use wikibrain for implementing some new similarity related measures and also use the existing ones for my masters thesis.

While setting up Wikibrain and trying to run QuickStart example, I encountered org.wikibrain.conf.ConfigurationException exception.

I had a look at this link https://github.com/shilad/wikibrain/issues/155 for the same issue where it was mentioned the jar was not in the classpath.

The problem with my implementation is that I am trying to use it as a maven dependency with Spring boot application which is also maven project. So wikibrain jars are present in lib folder in jar.

I think the problem is isLocalFile(url) check in JvmUtils.java(line 52) while building classpath so as to include class files in wikibrain jars to register providers for Configurator. Though the wikibrain jars are picked up for check but their URL is jar (not file).

Could you please direct me in some direction where I could explore to fix this problem. Any input is really appreciated as I dont want to waste my time in getting dumps from wikimedia and create database backend for my project.


Best Regards
Ravi

--
You received this message because you are subscribed to the Google Groups "wikibrain" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wikibrain+...@googlegroups.com.

To post to this group, send email to wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wikibrain/f947080c-3803-44af-a139-1c07f44f9f0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages