Page 1 of 1

[resolved] Can't modify parameters withinconf. interface

PostPosted:Mon Aug 15, 2011 8:08 pm
by gelinp
Hi,

I've installed openKm into /opt directory with user root.ww-data user. I can log in with okmAdmin and going to adminsitration. But modifications to openKM.cfg file and I restart the application, the file openKM.cfg looks empty... I modify parameters using administration interface (configuration) I can see that into "generate thesaurus" interface*. But if I shutdown jboss server then after the restart the thesaurus configuration is empty...

I modified directly /opt/jboss-4.2.3.GA/OpenKM.cfg but it's the same problem I can't see my Thesaurus configuration into openKM administration interface.

By the way, I chmod OpenKM.cfg as root.www-data [770], so Apache (and may be jboss) with www-data profil can modify the file ! So I don't understand the problem !

Thank you for your help.
Patrick

* : But I can't generate vocabulary of the exemple...

OpenKM.cfg file :
Code: Select all
#system.ocr=/usr/bin/cuneiform
#system.openoffice.path=/usr/lib/openoffice
#system.imagemagick.convert=/usr/bin/convert
#system.swftools.pdf2swf=/usr/bin/pdf2swf
#system.antivir=/usr/bin/clamscan
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=create
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
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/>
p.s.: how to upload boot.log and server.log because forum refuse to upload any files ?

Re: Can't modify parameters within openkm.cfg or adm. interf

PostPosted:Tue Aug 16, 2011 6:06 pm
by pavila
Starting from OpenKM 5.1 configuration is managed from Administration (and stored in database), so OpenKM.cfg is not the right place. This file only is used to read a couple of configuration properties related to database backend (Hibernate).

Re: Can't modify parameters within openkm.cfg or adm. interf

PostPosted:Tue Aug 16, 2011 6:26 pm
by gelinp
ok i've seen this information today looking for a response into documentation. But I'm using the web administration interface of OpenKM but how to save it ? I can't find a buton to save and I can oly quit the current session and restor it to get back parameters, but if I stop jboss then OpenKM restart with initial parameters... So the question is how to fix mofifications ? May be the problem is because I store application into /opt repository with www-data.www-data, and it's difficult to use apache to manage a repository outside /var/www/..

Thank you for your help.
Patrick

Re: [resolved] Can't modify parameters withinconf. interface

PostPosted:Wed Aug 17, 2011 7:05 am
by gelinp
The problem was in OpenKM.cfg :

change

hibernate.hbm2ddl=create

to

hibernate.hbm2ddl=none

Re: [resolved] Can't modify parameters withinconf. interface

PostPosted:Fri Aug 19, 2011 9:31 pm
by pavila
Yep, this is show in a red box at http://wiki.openkm.com/index.php/Quick_Install.