• Source code installation on Windows

  • 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.
 #10502  by alexnegrila
 
I followed the developer guide but I encountered some problems.
1. I can not get the server to run the application with Open.war.lnk instead of Open.war
2. The GWT source code does not compile unless I run a Maven build on the project

I run the application using "Run on server..." on the JBoss server from the OpenKM 5.0 installation package.
For the front-end to work I copy the compiled GWT files in e:\workspaceHelios\.metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_4.2_Runtime_Server1302264732709\deploy\

I would like to know what is the right way to compile and run the OpenKM application.

P.S. I think an advanced or explicit developer installation guide would be much appreciated.

Thanks in advance,
Alex
 #10503  by jllort
 
First go step by step. And concentrate on compilation. What happens when you execute "Run As -> maven package" it's right compiled at target ? GWT too ?
 #10541  by alexnegrila
 
I followed the instructions in Developer tips and the GWT code is compiled all right, with the special Maven build configuration as well as "run as - maven package".
The server shows this error when i try to run openkm on server :
Code: Select all
16:11:08,781 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@4dd966ed { url=file:/E:/jboss-4.2.3.GA/server/default/deploy/OpenKM.war.lnk }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/E:/jboss-4.2.3.GA/server/default/deploy/OpenKM.war.lnk
  altDD: null
  lastDeployed: 1303132268779
  lastModified: 1303132268779
  mbeans:
I've set up the OpenKM.war.lnk like this:
Shortcut configuration.JPG
Shortcut configuration.JPG (118.21 KiB) Viewed 11078 times
 #10549  by jllort
 
And the alias is folder /Tarjet/OpenKM ? if you click into OpenKM.war - alias folder - there're files ? web.xml into WEB-INF
 #10572  by alexnegrila
 
Yes, the shortcut points to /target/OpenKM as in the picture I attached earlier. If I click on it I get redirected to /target/OpenKM where I find the files shown in the attached picture below:
Files in Shortcut.JPG
Files in Shortcut.JPG (17.44 KiB) Viewed 11066 times
I went step by step in the guide, setting the debugging configurations. On debugging GWT I found that the DevMode screen does not show any lines of status and the application does not start when I try to access http://localhost:8080/OpenKM/com.openkm ... 0.1.1:9997

Thanks for the promptness off your answers.
 #10605  by alexnegrila
 
In the wiki page http://wiki.openkm.com/index.php/Debugging_with_GWT the link in the debug configuration for GWT Shell is set like this " -port 8080 -noserver -port 8080 -startupUrl /OpenKM/com.openkm.frontend.Main/index.html com.openkm.frontend.Main".

http://localhost:8080/OpenKM works only if I run the openkm project using "Run on server..." on the JBoss server from the OpenKM 5.0.3 installation package and
I copy the compiled GWT files in e:\workspaceHelios\.metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_4.2_Runtime_Server1302264732709\deploy\
 #10620  by jllort
 
I've changed the wiki page
Code: Select all
-port 8080 -noserver -port 8080 -startupUrl  /OpenKM/frontend/index.html com.openkm.frontend.Main
Tell me if it solves the problem to you.
 #10684  by jllort
 
Let's do by phases:
1- Do you starting jboss under eclipse ? (GWT develoepr mode is only for debugging GWT but jboss must be yet started under eclipse )
2- Make some screenshot about console while you're trying starting jboss under eclipse. ( delete before starting server.log if not starts right, post here server.log )
 #10722  by jllort
 
Have you made any change on source code, because this message it's strange:
Code: Select all
21:06:45,816 INFO  [TomcatDeployer] deploy, ctxPath=/openkm, warUrl=file:/E:/workspaceHelios/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Runtime_Server1302264732709/deploy/openkm.war/

21:06:45,856 WARN  [config] Unable to process deployment descriptor for context '/openkm'
You must NOT using any deploy eclipse ( menu options ). Simply must be created and alias ( link ) between target/OpenKM eclipse folder to server/default/deploy/OpenKM.war ( OpenKM.war must be the name of the folder alias you create on your windows ). Nothing else. I think you're doing something strange ( or you've done ). Jboss tools must not be used !!!
 #10724  by alexnegrila
 
How do you run the code on the JBoss server.

Do you start the run.bat or run.sh file?

Or do you right click on the project in eclipse and try to Run As -> Run on server.... and select the JBoss server there?

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.