• [Resolved] Problem generating kea thesaurus...

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #11822  by gelinp
 
Hi,
I parameter the config file (cf. other post about persistance problem of this configuration) then when I send information to calcul first level of the thesaurus exemple OPenKM display the error message :

Founded 0 terms in level 0

I can see a java exception into jboss console :
Code: Select all
09:00:44,630 ERROR [KEATree] RDFVocabulary repository exception
org.openrdf.repository.RepositoryException: OWL Repository not started
	at com.openkm.kea.RDFREpository.getOWLConnection(RDFREpository.java:88)
	at com.openkm.kea.tree.KEATree.getParentTerms(KEATree.java:153)
	at com.openkm.kea.tree.KEATree.gnerateTreeHelper(KEATree.java:77)
	at com.openkm.kea.tree.KEATree.generateTree(KEATree.java:71)
	at org.apache.jsp.admin.generate_005fthesaurus_jsp._jspService(generate_005fthesaurus_jsp.java:129)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
	at java.lang.Thread.run(Thread.java:662)
It looks like a problem with repository configuration... I've read the documentation about it but I'm not fluently with Jackrabbit... Do I must change parameters into repository.xml file ?

Thank you for your help.

Patrick
Last edited by gelinp on Thu Aug 25, 2011 7:18 am, edited 1 time in total.
 #11856  by pavila
 
Thesaurus has no relation with Jackrabbit configuration. If you have followed the wiki sample, it should work. If not, something is wrong in the documentation. Which OpenKM version are you using?
 #11863  by gelinp
 
Version: 5.1.7 (build: 7085). I'm following tutorial, only the tutorial...

This is my configuration to use kea thesaurus (the same as the exemple):
Code: Select all
kea.thesaurus.owl.file=/vocabulary/inroute.owl
kea.thesaurus.base.url=http://www.inroutenetwork.org
kea.thesaurus.tree.root=SELECT DISTINCT UID, TEXT FROM {UID} Y {OBJECT}, {UID} rdfs:label {TEXT} ; [rdfs:subClassOf {CLAZZ}] where not bound(CLAZZ) and lang(TEXT)="en" USING NAMESPACE foaf=<http://xmlns.com/foaf/0.1/>, dcterms=<http://purl.org/dc/terms/>, rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>, owl=<http://www.w3.org/2002/07/owl#>, rdfs=<http://www.w3.org/2000/01/rdf-schema#>, skos=<http://www.w3.org/2004/02/skos/core#>, dc=<http://purl.org/dc/elements/1.1/>
kea.thesaurus.tree.childs=SELECT DISTINCT UID, TEXT FROM {UID} rdfs:subClassOf {CLAZZ}, {UID} rdfs:label {TEXT} where xsd:string(CLAZZ) = "RDFparentID" and lang(TEXT)="en" USING NAMESPACE foaf=<http://xmlns.com/foaf/0.1/>, dcterms=<http://purl.org/dc/terms/>, rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>, owl=<http://www.w3.org/2002/07/owl#>, rdfs=<http://www.w3.org/2000/01/rdf-schema#>, skos=<http://www.w3.org/2004/02/skos/core#>, dc=<http://purl.org/dc/elements/1.1/>
 #11904  by jllort
 
the folder vocabulary must be under jboss home, the problem could be it not found the file.
 #11916  by gelinp
 
Thank you for your help, I resolved the problem :

My path was good :
Code: Select all
/var/www/jboss-4.2.3.GA/vocabulary/inroute.owl
But right files where root.www-data rwxrwx--- and I modify them like that root.www-data rw-rw-rw-

So the problem is that kea doesn't use www-data users group ! So you need to explain into the wiki how kea use right with the file system.

Than you for your help.
Patrick
 #11936  by jllort
 
The idea is one user called openkm will be who executes jboss application server. And all files under jboss must have rw rights for that user.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.