Page 1 of 1

OpenKm installation and config

PostPosted:Thu Feb 02, 2012 5:54 am
by hugo
Good day,

I have come to the point were I need some help. I've tried installing OpenKm on Ubuntu 11.10, but since java is not on the repositories any more I have resolved to Windows 7.

So what I have installed:
1. Java JDK 6 update 30
2. OpenKm OpenKM-5.1.8_JBoss-4.2.3.GA (It is directory: C:\OpenKM\...
3. OpenOfice 3.3 (tried it but is not priority now to setup)
4. pdf2swf (tried it but is not priority now to setup)

Now I am able to start OpenKm up, with the b 0.0.0.0 option enabled in windows 7's Run "terminal". It starts up fine and can access it over the network.

My problem is that when I change the following code as instructed by the wiki, the effects are not being made. (see code below)

(openkm.cfg)
Code: Select all
hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=none
application.url=http://localhost:8080/OpenKM/frontend/index.jsp
I would change the code, save the file, start the server, see no change in the server, shutdown the server and see that the code is still the same as I changed it. (thus change in code had no effect on OpenKm)

Even the OpenKm login screen in the web browser (after changing the openkm.cfg file from hibernate.hbm2ddl=create to hibernate.hbm2ddl=none) displays "hibernate.hbm2ddl=create" highlighted in red.

and

(run.bat)
Code: Select all
rem JVM memory allocation pool parameters. Modify as appropriate.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m -Djava.awt.headless=true
I did not however change the run.sh file in any of the memory related issues, because that file is only used in a linx environment as I understand it, but I can be wrong.

My second question is; what is the right manner to restart the Jboss server/OpenKm? A the moment I just hit "Ctrl + c" and it seems to shutdown the server.

If you have any advice please help!

Regards

Re: OpenKm installation and config

PostPosted:Fri Feb 03, 2012 9:39 am
by jllort
1- From version 5.1 configuration parameters are set in administration view without need restaring OpenKM service ( major property parameter can be changed on fly, few not )

2- The change between hibernate.hbm2ddl=create to hibernate.hbm2ddl=none simply ensure each time application is restarted you'll not restarting entire database.

3- About memory changes you should be done in run.bat file, at least increase to 1024MB

4- You should configure jboss as service take a look in our http://wiki.openkm.com/index.php/Installation_Guide there's a section about how installing as a service or take a look at google "install jboss as windows service"