Page 1 of 1

New installatioon with repository on NAS

PostPosted:Mon Apr 25, 2011 5:10 pm
by Dexter1979
Hello,

I am trying to get OpenKM working on a Ubuntu server machine. If I do a quick install everything works fine. When I try and install with the repository on our local and backed up NAS box it fails to logon giving me a error when I login with okmAdmin.
Code: Select all
org.apache.jackrabbit.core.config.ConfigurationException cannot be cast to javax.jcr.LoginException
Here's my OpenKM.cfg
Code: Select all
#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.HSQLDialect
hibernate.hbm2ddl=create
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
repository.home=/home/openkm/repository
repository.config=/opt/openkm/repository.xml
The only other thing I altered is a local copy of the groups dtd file (server has no internet) wich works with a default repository location.

I need to mention that I have the NAS mounted correctly on the system and some files do appear when I run it but it still gives an error.

Please help so I can actually start using your nice piece of software..

Re: New installatioon with repository on NAS

PostPosted:Tue Apr 26, 2011 1:42 pm
by jllort
the repository.home and repository.config configuration parameter must be defined first time starting jboss, if it has been created some repository folder under jboss I recommend remove it, and start jboss with this new configuration.

Put here your server.log stack trace to understanding better the error

Re: New installation with repository on NAS

PostPosted:Thu Apr 28, 2011 2:56 pm
by Dexter1979
Hello Jllort,

It was a fresh installation and I did not specify both repository parameters you mentioned. I let it run, logged in with okmAdmin and logged back out. Stopped JBOSS, mapped the NAS to the repository directory, restarted JBOSS and ran into my problem.

I will try your suggestions and report back. If I don't move the repository.xml file does that mean the repository folder must be located in the same folder as the repository.xml file? As in repository.xml location -> /opt/openkm/, Repository location -> /opt/openkm/repository.

Re: New installatioon with repository on NAS

PostPosted:Thu Apr 28, 2011 8:56 pm
by jllort
repository xml can be in jboss home and repository home in other there's no problem on it. You problem was you started jboss and after it have tryed configuring repository ... it's not the idea ... the idea is first time you starting jboss it'll be the repository configuration forever, you'll can not change it before first starting.

If something wrong happens on first starting simply delete the repository folder and start again.