• Setting up Source code OKM in Window.

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #5261  by truptisdolphins
 
Hi ,

First time using OKM. Im trying to set up the code on window as per given in the developer_guide document.
I amd using following version.
JBOSS 4.2.3
gwt 1.5.3
xdoclet 1.2.3
JBOSS tool 2.1.2
jdk 1.5

I have import the code from CVS
Host: openkm.cvs.sourceforge.net
Repository path: /cvsroot/openkm
User: anonymous
Connection type: pserver

after all basic steps done..When I run xdoclet.xml which i downloaded from one forum it gives me this error.file (docbuilerrror.png) due to which the code is nt properly compiled and throw this error under problems view:error.png

Any guidance will be helpful to me..
Thanx in adv
Attachments
error while running the docbuild xml
error while running the docbuild xml
docbuilderror.png (252.58 KiB) Viewed 13597 times
error before runnng docbuild xml
error before runnng docbuild xml
errors.png (230.3 KiB) Viewed 13597 times
 #5264  by jllort
 
NO NO NO .. you're downloading a very older version of OpenKM why you want to downloading it ?

Please take a look at developer guide http://wiki.openkm.com/index.php/Developer_Guide it's well explained

Where have you find this older information to downloading from cvs ( now we're using svn ) ...
 #5273  by truptisdolphins
 
Hey,

I tried from the link u provided.. After doing basic steps..and downloading Maven using SCM from SVN .. I face this issue:

"
5/6/10 7:19:57 PM IST: Build errors for openkm; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project openkm: Missing:
----------
1) entagged.audioformats:audioformats:jar:0.15

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=entagged.audioformats -DartifactId=audioformats -Dversion=0.15 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=entagged.audioformats -DartifactId=audioformats -Dversion=0.15 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.monkiki.openkm:openkm:pom:pom:4.0
2) entagged.audioformats:audioformats:jar:0.15

----------
1 required artifact is missing.

for artifact:
org.monkiki.openkm:openkm:pom:4.0

from the specified remote repositories:
jboss.org (http://repository.jboss.org/maven2, releases=true, snapshots=true),
jboss.com (http://repository.jboss.com/maven2, releases=true, snapshots=true),
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

5/6/10 7:19:58 PM IST: Refreshing [/openkm/pom.xml]
5/6/10 7:20:22 PM IST: Maven Builder: AUTO_BUILD

"

so i downloaded the this jar file entagged.audioformats:audioformats:jar:0.15 and tried running it with given command ..which gives me buld failure error :


C:\project work\workspace\openkm>mvn install:install-file -DgroupId=entagged.aud
ioformats -DartifactId=audioformats -Dversion=0.15 -Dpackaging=jar -Dfile=C:\pro
ject work\entagged-audioformats-0.15.jar
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/codeh ... er-maven-p
lugin/1.0-beta-3/buildnumber-maven-plugin-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/org/apach ... ven-war-pl
ugin/2.1-beta-1/maven-war-plugin-2.1-beta-1.pom

Downloading: http://repo1.maven.org/maven2/org/apach ... ven-plugin
s/13/maven-plugins-13.pom

Downloading: http://repo1.maven.org/maven2/org/apach ... nt/11/mave
n-parent-11.pom

Downloading: http://repo1.maven.org/maven2/org/apach ... ache-5.pom

[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'work\entagged-audioformats-0.15.jar': you must specify a va
lid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:plugin
ArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sat Jun 05 19:26:51 IST 2010
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
C:\project work\workspace\openkm>


how to over come this issue????
 #5274  by jllort
 
You migh read developer guide with patience ... must register libs are into ext-libs ( there's a linux scripts, or copy the content and put in your cmd windows console ). Must be executed into ext-libs.
 #5275  by truptisdolphins
 
Hi,

I am following the developers guide too. after executing that command , the build was successful.
but when i clean the project and build it again it throws this errors:

5/6/10 8:14:29 PM IST: Build errors for openkm; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-3:create (default) on project openkm: An error has occurred while checking scm status.


I tried googling on which brought me to this url bt the language was different,
http://forum.openkm.com/viewtopic.php?f ... 40&start=0

:)
 #5276  by jllort
 
If you execute from console run well no ?

Add in your system environment, could be the typical memory problem with maven
Code: Select all
MAVEN_OPTS=-Xmx512m
 #5277  by truptisdolphins
 
Hi jllort,

I have done the setup again reading the developer guide.
But still at end me facing some index.html was missing from es.git.openkm.frontend /backend file :(

attached is the screenshot and also i could not find the openKM.war in deploy folder. Is once the build is successful and project is widout error i can see the war.
Once the project is compile properly and stable can i rite click and run on JBOSS server.. using Run on server function ..

I had already set MAVEN_OPTS bt still it throws dat error..
Attachments
error for some index.html
error for some index.html
Untitled.jpg (244.33 KiB) Viewed 13584 times
 #5278  by truptisdolphins
 
JUst to get rid of that above error of .html file i manually added index.html in those folders.
The code has no errors shown now..
As shown in developers guide, i was tring to built GWT frontent and backend using GUI but it has no GOALs present.(could not proceed)

I have build it again and it has no errors. IT had no openKM.war in deploy folder.
So i right click on the project and run it on the JBOSS server. openkm.war was created in the jboss deploy folder..
but it threw so many errors of some OpenKM.cfg file not found etc.

I have attached the log file and if any steps i have to perform then please guide me..

Thanx
 #5279  by truptisdolphins
 
I could get the login screen but it is given Authentication failure error for okmAdmin/admin

So i tried browsing database but none of below is created, i could only see local DB..

database=OKMActivity,service=Hypersonic
database=OKMAuth,service=Hypersonic
database=OKMDashboardStats,service=Hypersonic
database=OKMWorkflow,service=Hypersonic

and the error is : Table not found.



00:30:21,425 ERROR [STDERR] Failed to load preferences. Proceeding with defaults:
00:31:18,744 ERROR [STDERR] java.sql.SQLException: Table not found in statement [select * from users]
00:31:18,745 ERROR [STDERR] at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
00:31:18,745 ERROR [STDERR] at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
00:31:18,745 ERROR [STDERR] at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source)
00:31:18,745 ERROR [STDERR] at org.hsqldb.util.DatabaseManagerSwing.executeSQL(Unknown Source)
00:31:18,745 ERROR [STDERR] at org.hsqldb.util.DatabaseManagerSwing.access$1000(Unknown Source)
00:31:18,745 ERROR [STDERR] at org.hsqldb.util.DatabaseManagerSwing$StatementExecRunnable.run(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.event.InvocationEvent.dispatch(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.EventQueue.dispatchEvent(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
00:31:18,746 ERROR [STDERR] at java.awt.EventDispatchThread.run(Unknown Source)
00:31:48,478 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)
at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Unknown Source)
Please help on this..

Thanx
 #5282  by jllort
 
You must use to development the jboss with OpenKM that can be downloaded from source forge and replace only the war file ... because this jboss has right configuration to run OpenKM.
 #5285  by truptisdolphins
 
Hi Jllrot,

I can replace the jboss with OpenKM war file in deploy folder.But I have to do changes in code and build that war and deploy the same war file on JBOSS. How that can be achieved if I jus copy war file from sourceforge.net. ?
Where does repository.xml, jbpm.cfg.xml, openkm.cfg files exists. I mean the location of the files.
Do you have the database scripts stored anywhere so that I can connect with some other database and try logging in.

Thanx
Trupti
 #5288  by jllort
 
You're in windows no ?

We'll the most easy way to develop with OpenKM is as will explain:
1- Remove OpenKM.war from deploy folder
2- Create alias ( in windows I don't know how is called, "direct link" ? from your project target/OpenKM into deploy called OpenKM.war ( really it's a folder ) the war file can be a folder called OpenKM.war with it contents exploded)

Doing it as I explain, and configuring jboss server to debug mode in eclipse, it's the correct way to work.
 #5289  by truptisdolphins
 
Thanx for your repy jllrot.

Yes Im using Windows.

I downloaded OpenKM4.0 with JBOSS 4.2.3 from sourceforge.net which contains
1. OpenKM-4.0-JBoss-4.2.3.GA.zip
2. OKMUtils-4.0.jar
3. QUICK_INSTALL.txt

I unzip the zip file, which a JBOSS server and removed openKM.war file from there.
I imported that war file as project and started the server, which gives me some URI nt register and on browser its gives
404 error : The requested resource (/OpenKM/) is not available.

This is the error that I get in the console when i run on server: Please let me know How to proceed further
14:54:33,590 WARN [SearchIndex] Exception initializing indexing configuration from: C:\project work\jboss-4.2.3.GA\repository\workspaces\default/../../../indexing_configuration.xml
org.apache.jackrabbit.spi.commons.conversion.IllegalNameException: Internal error.: URI http://www.openkm.org/1.0 is not registered.: URI http://www.openkm.org/1.0 is not registered.
at org.apache.jackrabbit.core.query.lucene.NSRegistryBasedNamespaceMappings.translatePropertyName(NSRegistryBasedNamespaceMappings.java:88)
at org.apache.jackrabbit.core.query.lucene.IndexingConfigurationImpl.init(IndexingConfigurationImpl.java:162)
at org.apache.jackrabbit.core.query.lucene.SearchIndex.createIndexingConfiguration(SearchIndex.java:941)
at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:451)
at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:53)
at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:583)
at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:265)
at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1600)
at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:606)
at org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:415)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:305)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
at es.git.openkm.module.direct.DirectRepositoryModule.getRepository(DirectRepositoryModule.java:106)
at es.git.openkm.module.direct.DirectRepositoryModule.initialize(DirectRepositoryModule.java:201)
at es.git.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:100)

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.