Page 1 of 1

Error in Logon - New PC

PostPosted:Thu Jan 26, 2012 2:33 pm
by capitao2000
Hello

I've benn woek In OpenKm since a long time with no problems. I've installed OpenKM in a machine with a Xp 32bit and java version is 1.7.0. Now I transfer the directory where OpenKM was to other computer with windows 2000 SP4 with java 1.6.30. I assume the same ip to the new machine and try to login. The result is the folwing error: java.lang.ClassCastException: org.apache.jackrabbit.core.config.ConfigurationException cannot be cast to javax.jcr.LoginException and beside Go to login page, as you can see in the attached image. What can I do? Thanks in advance...

Re: Error in Logon - New PC

PostPosted:Fri Jan 27, 2012 11:11 am
by capitao2000
Please, if someone can help me!!!

Re: Error in Logon - New PC

PostPosted:Sat Jan 28, 2012 9:18 am
by jllort
You've done a migration no ?

1- Ensure jboss path are same in older server that never
2- I suggest downgrade to java 1.6, jboss have some problems with java 1.7

We'll be waiting your feedback

Re: Error in Logon - New PC

PostPosted:Mon Jan 30, 2012 9:36 am
by capitao2000
jllort wrote:You've done a migration no ?

1- Ensure jboss path are same in older server that never
2- I suggest downgrade to java 1.6, jboss have some problems with java 1.7

We'll be waiting your feedback
jllort, thanks a lot. The problem was really in the path. In the olf computer I've Jboss in drive C. Then I'ce copied to the new computer, bur in D Drive. If I put the Jboss in C Drive in the new computer works fine. Even with the java version downgraded (1.6.30). I thnink w2k doesn't support java 7. One more time thank you!!!!! :D :D :D :D :D

Re: Error in Logon - New PC

PostPosted:Tue Jan 31, 2012 4:09 pm
by jllort
If you want to change the path, should change configuration home.repository value at administration. Better if you do it directly in database with OpenKM stopped.

Re: Error in Logon - New PC

PostPosted:Thu Aug 30, 2012 6:18 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')