Page 1 of 1

Cannot change configuration file

PostPosted:Thu Mar 03, 2011 11:34 am
by evanoktavianus
Dear all,

I have tried to enable the webdav access by adding "system.webdavon" on the openKM.cfg file but it wont work. Accessing the webdav url only gives me webdave is disabled warning. I then altered the configuration to "system.webdav=on" but it still wont work.

I begin to realize that the problem might not be in the webdav configuration; i just simply cannot change the configuration of the whole openKM system. I realized that when i see the "hibernate.hbm2ddl = create" warning even when i already altered the line within the openKM.cfg into hibernate.hbm2ddl=none".

One interesting point is that when i deliberately removed the openKM.cfg file, the server log indicate that openKM did not find configuration file and will use default setting instead. It shows that openKM does look for the configuration file.

Can anyone help me? is there any special syntax that i didnt get quite right there? i understand that the "#" mark means commenting the configuration, is there anything else that i need to know?

Also, is there any way that i can see the configuration taken by the openKM on the fly, like debug mode or something?

Thanks, really appreciate any assistance.
Evan Oktavianus

Re: Cannot change configuration file

PostPosted:Thu Mar 03, 2011 6:04 pm
by pavila
You have to restart JBoss to see the changes.

Re: Cannot change configuration file

PostPosted:Fri Mar 04, 2011 4:17 am
by evanoktavianus
i have restarted jboss by closing the cmd dialog then restarting the run.bat. Is there anything else that i should do? please help :cry:

Re: Cannot change configuration file

PostPosted:Fri Mar 04, 2011 5:24 am
by joako
If you issue the command:

ps aux | grep java

Do you see any running process? Assume you only have OpenKM and Apache, etc nothing more on your server. The only java process you have will be for OpenKM, you can end it if you issue the command:

kill <PID>

Where <PID> is the number that is shown in the first command (ps)

Re: Cannot change configuration file

PostPosted:Fri Mar 04, 2011 8:34 am
by jllort
Put here your OpenKM.cfg

Re: Cannot change configuration file

PostPosted:Fri Mar 04, 2011 8:35 am
by evanoktavianus
Hi, thanks for replying,,i really appreciate it.
I work on a windows environment, so i can't really use ps command. However, i already tried restarting my computer so i guess the problem of restarting the jboss server shouldn't be an issue.

Can I have someone clarify on some points here:
1. do i need to add "system.webdav≠on" or "system.webdav=on" with equal sign into the OpenKM.cfg?
2. When people already change their config into: "hibernate.hbm2ddl = none", will they normally see the "hibernate.hbm2ddl = create" warning on the login page?
3. Is there any other option other than Webdav so that my scanner can directly put scanned files into OpenKM repository?

Thanks a lot ^_^

Re: Cannot change configuration file

PostPosted:Fri Mar 04, 2011 8:37 am
by jllort
the property is
Code: Select all
system.webdav=on
Simply after change it on OpenKM.cfg and saved, restart the jboss, nothing else.

Re: Cannot change configuration file

PostPosted:Fri Mar 04, 2011 9:07 am
by evanoktavianus
Here is my openkm.cfg:
Code: Select all
 
system.webdav=on
# Default configuration values
#
# repository.config=repository.xml
# repository.home=repository
# system.user=system
# default.user.role=UserRol
# default.admin.role=AdminRol
# principal.adapter=com.openkm.core.UsersRolesPrincipalAdapter
# max.file.size=5
# max.search.results=25
# system.demo=off
#restrict.file.mime=off
#restrict.file.extension=*~,*.bak,._*
#system.ocr=/usr/bin/tesseract
#system.openoffice.path=/usr/lib/openoffice
#system.img2pdf=/usr/bin/convert
#system.pdf2swf=/usr/bin/pdf2swf
#system.antivir=/usr/bin/clamscan
#hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
#hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=none
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
#max.file.size=060520010
#principal.adapter=com.openkm.principal.DatabasePrincipalAdapter
#notify.twitter.user=openkm
#notify.twitter.password=****
#subscription.message.body=Prueba.vm

FYI, i edited the file on notepad, is it ok?
i tried it on another computer with no result. Is there a possibility that there was something wrong file the system files i downloaded? Could we in anyway see the webdav properties on the fly?

thanks ^_^

Re: Cannot change configuration file

PostPosted:Sat Mar 05, 2011 10:16 am
by jllort
The url http://host:8080/OpenKM/respository/default/ should run in your browser.

Take a look at administration tab, at properties to ensure sytem.webdav is enabled, there's no clue.