You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Rupert Westenthaler <ru...@gmail.com> on 2012/05/02 08:47:44 UTC

Re: indexer for rdf version 10 error

Hi Alfredo

Sorry for the late replay, but I was offline for the last few days.

I am not able to reproduce this on my Mac box - even after deleting my
local cache and making a clean build with both maven 2.2.1 and 3.*

Based on the WARN messages in the loggings you provided I reason that
somehow the assembly:single task has not correctly included all
required resources in the assembled runable JAR. This would also
explain the "IllegalArgumentException" as the indexing.properties file
is also read from the this JAR archive if it is not already present in
the "./indexing/config" folder.

In detail I expect the following files/folders to be missing in the
assembled jar file.

* log4j.properties
* indexing/config

So I assume that the problem you encounter is related to you build
environment. Can you please provide additional information about

* Java JDK version
* Maven version you used to build Stanbol and the assembly

best
Rupert

On Mon, Apr 30, 2012 at 12:50 PM, seralf <se...@gmail.com> wrote:
> HI i'm having problem with the entityhub indexer for rdf, version 10...
> i've started it on a fresh install and first of all i try to re-generate
> the default index.
> With mvn assembly:single all works ok, but when i use the command:
> java -Xmx1024m -jar
> org.apache.stanbol.entityhub.indexing.genericrdf-0.10.0-incubating-SNAPSHOT-jar-with-dependencies.jar
> init
>
> it gives me the error:
>
> log4j:WARN No appenders could be found for logger
> (org.apache.stanbol.entityhub.indexing.core.config.IndexingConfig).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Exception in thread "main" java.lang.IllegalArgumentException: Unable to
> find configuration file 'indexing.properties'!
> at
> org.apache.stanbol.entityhub.indexing.core.config.IndexingConfig.loadConfig(IndexingConfig.java:610)
> at
> org.apache.stanbol.entityhub.indexing.core.config.IndexingConfig.<init>(IndexingConfig.java:291)
> at
> org.apache.stanbol.entityhub.indexing.core.IndexerFactory.create(IndexerFactory.java:84)
> at
> org.apache.stanbol.entityhub.indexing.core.IndexerFactory.create(IndexerFactory.java:69)
> at org.apache.stanbol.entityhub.indexing.Main.main(Main.java:66)
>
> any suggestions?
>
> thanks
>
> Alfredo



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen