Page 1 of 1

Compilation error in OKM-3_0 tagged source code

PostPosted:Fri Jun 19, 2009 4:30 am
by kiransringeri
Hi,
I have taken the OpenKM source code (tagged version OKM-3_0)
But, eclipse shows compilation problems.

Severity and Description Path Resource Location Creation Time Id
AuthModule cannot be resolved to a type openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 77 1245385639204 12421
AuthModule cannot be resolved to a type openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 108 1245385639204 12423
AuthModuleHome cannot be resolved to a type openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 46 1245385639204 12417
AuthModuleHome cannot be resolved to a type openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 63 1245385639204 12419
AuthModuleHome cannot be resolved to a type openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 63 1245385639204 12420
e cannot be resolved openkm/src/es/git/openkm/module/direct DirectScriptingModule.java line 269 1245385639290 12439
EvalError cannot be resolved to a type openkm/src/es/git/openkm/module/direct DirectScriptingModule.java line 268 1245385639290 12438
home cannot be resolved openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 63 1245385639204 12418
home cannot be resolved openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 81 1245385639204 12422
home cannot be resolved openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 112 1245385639204 12424
Interpreter cannot be resolved to a type openkm/src/es/git/openkm/module/direct DirectScriptingModule.java line 261 1245385639289 12436
Interpreter cannot be resolved to a type openkm/src/es/git/openkm/module/direct DirectScriptingModule.java line 261 1245385639290 12437
The import bsh cannot be resolved openkm/src/es/git/openkm/module/direct DirectScriptingModule.java line 30 1245385639289 12434
The import bsh cannot be resolved openkm/src/es/git/openkm/module/direct DirectScriptingModule.java line 31 1245385639289 12435
The import es.git.openkm.ejb.AuthModule.AuthModule cannot be resolved openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 41 1245385639204 12416
The import es.git.openkm.ejb.AuthModule.AuthModuleHome cannot be resolved openkm/src/es/git/openkm/module/ejb EJBAuthModule.java line 40 1245385639204 12415



PS: I didn\'t find a suitable group to post this question. So posting in the most active group.

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Thu Jul 02, 2009 6:38 pm
by dignan
This is because you have not used XDoclet to generate those classes yet.

To do this you must install JBoss Tools version 2.1.2_GA plugin into Eclipse Europa (3.3). Then configure XDoclet in Preferences such that all libraries are found. Most of the libraries are in <eclipse home>/plugins/org.jboss.ide.eclipse.xdoclet.core_2.0.0.GA. There is one library missing, which you can get by downloading the file here: http://sourceforge.net/projects/xdoclet ... -1.2.3.zip extracting that, and copying or moving xjavadoc-1.1.jar from there to the plugin folder of xdoclet.core_2.0.0.GA. Once you have done that, in Eclipse right click your openkm project and click \"Run XDoclet\". From there, follow the development guide instructions.

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Fri Jul 03, 2009 4:18 am
by kiransringeri
Thanks a lot. It worked.
I am able to run the OpenKM from Eclipse.
How can I create the OpenKM.war file?
Is it like following?
1. Run generate.sh
2. Run generateback.sh
3. Zip the OpenKM.war folder in JBoss?

OR do we have a single script which generates OpenKM.war?

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Fri Jul 03, 2009 6:21 pm
by dignan
I\'m not sure what the exact step is, but you set it up to auto-update it in the developers guide here: http://www.openkm.com/index.php?option= ... oper_guide

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Mon Jul 06, 2009 9:31 am
by jllort
You must have installed jboss-tools in your eclipse. If generates automatically OpenKM.ear file to be deployed on jboss ( I think it\'s well explained on developer guide ). You must deploy OpenKM.ear file not OpenKM.war that\'s into ear file.

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Fri Sep 11, 2009 9:17 pm
by hayline
Hi all...
I\'m facing the same problem..
I just cannot find \"Run Xdoclet\" option..I installed Jboss Tools Plugin on eclipse but I can\'t find the folder
I can see Xdoclet preferences on window menu but can\'t find Xdoclet..
When trying the keys \"ctrl+alt+F1\" all I get is \"Help - RElated TOpics\" window..

:blush: Do you have any idea??

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Fri Sep 11, 2009 9:18 pm
by hayline
Hi all...
I\'m facing the same problem..
I just cannot find \"Run Xdoclet\" option..I installed Jboss Tools Plugin on eclipse but I can\'t find the folder : <eclipsehome>/plugins/org.jboss.ide.eclipse.xdoclet.core_2.0.0.GA
I can see Xdoclet preferences on window menu but can\'t find Xdoclet..
When trying the keys \"ctrl+alt+F1\" all I get is \"Help - RElated TOpics\" window..

:blush: Do you have any idea??

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Mon Sep 14, 2009 6:46 pm
by jllort
Copy this [file name=xdoclet_build-723a0e35ecf0911ca4f5d38df90db381.zip size=2632]http://www.openkm.com/images/fbfiles/fi ... 0db381.zip[/file] in your project ( take a look into ) and execute as and ant.

Re:Compilation error in OKM-3_0 tagged source code

PostPosted:Thu Oct 01, 2009 7:38 pm
by hayline
Ok tks ..that worked for me..