Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log4j.properties file error #29

Closed
sebastianfelipe opened this issue Oct 8, 2016 · 5 comments
Closed

log4j.properties file error #29

sebastianfelipe opened this issue Oct 8, 2016 · 5 comments

Comments

@sebastianfelipe
Copy link

sebastianfelipe commented Oct 8, 2016

There is a problem related with some missing file, I assume this file is this one https://github.com/oeg-upm/morph-rdb/blob/master/morph-base/src/main/scala/es/upm/fi/dia/oeg/morph/base/MorphProperties.scala around line 87. It needs the configurator file. I don't know if that is the solution, but please have a look at it. Here is the error:

INFO main - reading configuration file : project/run.r2rml.properties
log4j:ERROR Could not read configuration file [log4j.properties].
java.io.FileNotFoundException: log4j.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:306)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:324)
at es.upm.fi.dia.oeg.morph.base.engine.MorphBaseRunnerFactory.(MorphBaseRunnerFactory.scala:27)
at es.upm.fi.dia.oeg.morph.r2rml.rdb.engine.MorphRDBRunnerFactory.(MorphRDBRunnerFactory.scala:22)
at es.upm.fi.dia.oeg.morph.r2rml.rdb.engine.MorphCSVRunnerFactory.(MorphCSVRunnerFactory.scala:19)
at es.upm.fi.dia.oeg.morph.r2rml.rdb.engine.MorphCSVRunner$.apply(MorphCSVRunner.scala:34)
at es.upm.fi.dia.oeg.morph.r2rml.rdb.engine.MorphCSVRunner$.apply(MorphCSVRunner.scala:42)
at es.upm.fi.dia.oeg.morph.r2rml.rdb.engine.MorphCSVRunner$.main(MorphCSVRunner.scala:60)
at es.upm.fi.dia.oeg.morph.r2rml.rdb.engine.MorphCSVRunner.main(MorphCSVRunner.scala)
log4j:ERROR Ignoring configuration file [log4j.properties].
screenshot 2016-10-07 23 37 49

I'm using El Capitan OSX and java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

I can't generate the output while this error exists.

Thanks.

@fpriyatna
Copy link
Collaborator

hi Sebastian, thanks for your interest on morph-rdb and forgive my late response.

The lack of the log.properties file does not affect the functionalities of morph-rdb. You can find the example of log4j.properties here: https://github.com/oeg-upm/morph-rdb/blob/master/morph-examples/log4j.properties and put that file in your active directory.

Please let me know if you need further assistance.

@goknurbati
Copy link

Hi Fpriyatna,
How can we add the log4j.properties file and this file has default content, or how can we edit it.
Thanks for your assist.

@fpriyatna
Copy link
Collaborator

Hi goknurbati,

You can add this log4j.properties file in the root folder of morph-rdb.

Regards
Freddy

@goknurbati
Copy link

Hi fpriyatna,
Thanks for your answer, I fixed the problem with changing the location of the log4j.properties file. (src/log4j.properties)

Regards...

@dachafra
Copy link
Member

issue solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants