Page 1 of 1

Migration from 5.1.5 to 5.1.6

PostPosted:Tue Jul 12, 2011 9:11 pm
by Odera
I followed the instructions given at: http://wiki.openkm.com/index.php/Migrat ... 5_to_5.1.6

But when I try to login, I receive an error:
java.lang.ClassCastException: org.apache.jackrabbit.core.config.ConfigurationException cannot be cast to javax.jcr.LoginException
Go to login page
My host system is a single-core 32-bit Linux running Ubuntu Server 10.04. The system has 2GB RAM.

Please advise.

Thank you for a great KMS.

Re: Migration from 5.1.5 to 5.1.6

PostPosted:Thu Jul 14, 2011 8:49 pm
by jllort
1- Stop jboss
2- Try removing the library server/default/lib/hibernate-annotations.jar ( backup this library, because I'm not sure that this could be the problem, and could be possible you need to restore)
3- Start jboss

Re: Migration from 5.1.5 to 5.1.6

PostPosted:Tue Jul 19, 2011 6:22 am
by Odera
Thanks for the quick reply. As it turns out, I was running Ubuntu's default OpenJDK. This issue does not appear with Sun's JDK.

Re: Migration from 5.1.5 to 5.1.6

PostPosted:Tue Jul 19, 2011 5:07 pm
by jllort
we encourage using java sun jdk because is version which we developing application and which is certified by us during testing. We do not use open jdk and we could not be sure all runs correctly with it.

Re: Migration from 5.1.5 to 5.1.6

PostPosted:Thu Aug 30, 2012 6:19 pm
by tuxtux1981
Hello, I had the same trouble, and there is an easy way to solve it.

I made a full backup instead only the repository. It is running on Ubuntu 11.10, a Proliant HP Server.

There is an script in the next path (of course I installed OpenKM in /opt/, you can change it to your own path):

/opt/jboss-4.2.3.GA/server/default/data/hypersonic/

There is a file "OKM_APP.script, you can open it with vi or nano and search repository.
There are two lines, that refers to the repository path.

INSERT INTO OKM_CONFIG VALUES('repository.config','string','/opt/jboss-4.2.3.GA/repository.xml')
INSERT INTO OKM_CONFIG VALUES('repository.home','string','/opt/jboss-4.2.3.GA/repository')

So, I changed that path, to the new PATH. I tried it in other Linux distribution and Windows.

This is an example
INSERT INTO OKM_CONFIG VALUES('repository.config','string','D:\OpenKM_BK\repository.xml')
INSERT INTO OKM_CONFIG VALUES('repository.home','string','D:\OpenKM_BK\repository')