Page 1 of 2
Source code installation on Windows
PostPosted:Sun Apr 17, 2011 11:22 am
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
Re: Source code installation on Windows
PostPosted:Sun Apr 17, 2011 2:27 pm
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 ?
Re: Source code installation on Windows
PostPosted:Mon Apr 18, 2011 1:22 pm
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 all16: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 (118.21 KiB) Viewed 11080 times
Re: Source code installation on Windows
PostPosted:Mon Apr 18, 2011 5:54 pm
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
Re: Source code installation on Windows
PostPosted:Tue Apr 19, 2011 1:01 pm
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 (17.44 KiB) Viewed 11068 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.
Re: Source code installation on Windows
PostPosted:Tue Apr 19, 2011 2:33 pm
by jllort
In version 5.0 it has been changed now is
http://localhost:8080/OpenKM/frontend etc.... can you tell me the url in the wiki ... I'll correct it.
Confirm me
http://localhost:8080/OpenKM without GWT developer mode runs correctly
Re: Source code installation on Windows
PostPosted:Wed Apr 20, 2011 7:57 am
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\
Re: Source code installation on Windows
PostPosted:Wed Apr 20, 2011 9:54 am
by alexnegrila
Re: Source code installation on Windows
PostPosted:Wed Apr 20, 2011 8:31 pm
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.
Re: Source code installation on Windows
PostPosted:Thu Apr 21, 2011 4:16 pm
by alexnegrila
It did not solve the problem.
Re: Source code installation on Windows
PostPosted:Thu Apr 21, 2011 5:13 pm
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 )
Re: Source code installation on Windows
PostPosted:Thu Apr 21, 2011 5:40 pm
by alexnegrila
These are the logs from trying to Run on server the openkm project:
(86.75 KiB) Downloaded 1292 times
Re: Source code installation on Windows
PostPosted:Thu Apr 21, 2011 6:15 pm
by alexnegrila
This is the console output when I start the server from the JBoss toolbar:
JBoss toolbar.JPG (9.35 KiB) Viewed 11030 times
(2.55 KiB) Downloaded 1323 times
Is the server configuration for OpenKM 5.0.3 supposed to work with the 5.0 development branch?
Re: Source code installation on Windows
PostPosted:Fri Apr 22, 2011 9:34 am
by jllort
Have you made any change on source code, because this message it's strange:
Code: Select all21: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 !!!
Re: Source code installation on Windows
PostPosted:Fri Apr 22, 2011 9:44 am
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?