Page 1 of 1

not Found Source

PostPosted:Sat Feb 12, 2011 6:32 pm
by Kicker
sorry i am a Beginner java programmer
i downloaded openKm source form sf.net and extracted
but dont found main source code and database script
i already installed jboss and want to get Only OpenKm source code and Database backup
thanks

Re: not Found Source

PostPosted:Sat Feb 12, 2011 8:00 pm
by Kicker
i find war file and extracted then created eclipse project
but how to config and create mysql database

Re: not Found Source

PostPosted:Mon Feb 14, 2011 10:44 am
by jllort
You must select it on OpenKM.cfg and when is starting first time application the database is automatically created. If you want to extract the script look for Test.java file in source code I think there is some commented code for doing it

Re: not Found Source

PostPosted:Tue Feb 15, 2011 4:19 pm
by Kicker
thanks
i want to config OpenKm with MySql
i dont how to change OpenKm.cfg


my openkm-ds.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
  <local-tx-datasource>
    <jndi-name>OpenKMDS</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/DefaultDS?createDatabaseIfNotExist=true</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>Kicker</user-name>
    <password>password</password>
    <min-pool-size>5</min-pool-size>
    <max-pool-size>20</max-pool-size>
    <idle-timeout-minutes>0</idle-timeout-minutes>
    <prepared-statement-cache-size>32</prepared-statement-cache-size>
    <metadata>
      <type-mapping>mySQL</type-mapping>
    </metadata>
    <depends>jboss:service=mySQL,database=OKM_APP</depends>
  </local-tx-datasource>
  <mbean code="org.jboss.jdbc.HypersonicDatabase" 
         name="jboss:service=Hypersonic,database=OKM_APP">
    <attribute name="Database">OKM_APP</attribute>
    <attribute name="InProcessMode">true</attribute>
  </mbean>
</datasources>

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.MySQL5Dialect
hibernate.hbm2ddl=create
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp

Re: not Found Source

PostPosted:Tue Feb 15, 2011 5:55 pm
by jllort
Please start other post for this question.

Re: not Found Source

PostPosted:Wed Feb 16, 2011 5:13 am
by Kicker
very thanks
corrected ...