Advice re: developer environment
PostPosted:Tue Nov 15, 2011 12:43 pm
Hi there,
First of all congratulations on the platform. It is absolutely impressive! In fact it is so nice that I am really motivated in trying to add new features to it. I have worked for years with Documentum platforms, so I have already a few new features on paper. I plan to start discussing these with the community shortly, but in the meantime, I am struggling a bit to make the developper/debugging environment work. I work on Windows XP, with Eclipse Indigo and JDK 1.6_026, browser Chrome.
In essence, I have complied with all suggestions in the developers guide in the wiki. I have installed the project from the SVN, I have MAVEN up and running, I have configured the JBoss server as per the guide, and created the GWT shell (the java app). I have even made the alias thing working on Windows (i.e. OpenKM.war in the JBoss download package points to target/OpenKM) (see note 1 below on how I did this in Windows) and removed the original OpenKH.war file. However, I cannot seem to be able to actually debug the app. I think I am very close to it, but maybe some guidance from your side will help.
What I do is I start the JBoss server from the Eclipse IDE - the one in the OpenKM download package, and configured as per the DeveloperWiki. Then I start the GWT Shell (also configured as per the DeveloperWiki)(aside note, there appears to be an error in one of the instructions, see note 2 below). Then I access the http://localhost:8080/OpenKM/frontend/i ... 0.1.1:9997. I install the GWT extention for Chrome. Then I get the login screen, then enter the credentials, and that is it. I am in the frontend and everything works as it should be. However, whenever I click or browse the repository nothing happens in the GWT, no events appear, nothing. If I pause the GWT Shell from Eclipse, I get a freeze in the browser app - so I am guessing I have the setting right. However, I am not sure where is the program actually being executed, so to be able to step in and start adding extensions and all.
So, my questions are:
1. Am I doing something wrong?
2. Is there a point where I should add a breakpoint to test the debugging in the front app.
3. Do I need to do anything else in terms of debug configurations or run configurations to start developing extensions and all with OpenKM?
Many thanks for your time,
JO
Note 1: To create an alias in Windows XP one can use the sysinternals application: junction.exe. This will allow one to map the default/deploy/openkm.war path to the target/OpenKM path in the project.
Note 2: When configuring the GWT Shell as a java app, the program arguments suggested by the DeveloperWiki are:
-port 8080 -noserver -port 8080 -startupUrl /OpenKM/frontend/index.html com.openkm.frontend.Main
However, the picture in the DeveloperWiki shows the following different program argumens:
-port 8080 - noserver -port 8080 -startUrl /OpenKM/com.openkm.frontend.Main/index.html com.openkm.frontend.Main
Furthermore, still in the DeveloperWiki when advising on debugging the front end, the url provided is:
http://localhost:8080/OpenKM/com.openkm ... 0.1.1:9997
I personally get a file missing error when accessing: http://localhost:8080/OpenKM/com.openkm ... 0.1.1:9997.
However, things work when accessing the server via http://localhost:8080/OpenKM/frontend/i ... 0.1.1:9997.
First of all congratulations on the platform. It is absolutely impressive! In fact it is so nice that I am really motivated in trying to add new features to it. I have worked for years with Documentum platforms, so I have already a few new features on paper. I plan to start discussing these with the community shortly, but in the meantime, I am struggling a bit to make the developper/debugging environment work. I work on Windows XP, with Eclipse Indigo and JDK 1.6_026, browser Chrome.
In essence, I have complied with all suggestions in the developers guide in the wiki. I have installed the project from the SVN, I have MAVEN up and running, I have configured the JBoss server as per the guide, and created the GWT shell (the java app). I have even made the alias thing working on Windows (i.e. OpenKM.war in the JBoss download package points to target/OpenKM) (see note 1 below on how I did this in Windows) and removed the original OpenKH.war file. However, I cannot seem to be able to actually debug the app. I think I am very close to it, but maybe some guidance from your side will help.
What I do is I start the JBoss server from the Eclipse IDE - the one in the OpenKM download package, and configured as per the DeveloperWiki. Then I start the GWT Shell (also configured as per the DeveloperWiki)(aside note, there appears to be an error in one of the instructions, see note 2 below). Then I access the http://localhost:8080/OpenKM/frontend/i ... 0.1.1:9997. I install the GWT extention for Chrome. Then I get the login screen, then enter the credentials, and that is it. I am in the frontend and everything works as it should be. However, whenever I click or browse the repository nothing happens in the GWT, no events appear, nothing. If I pause the GWT Shell from Eclipse, I get a freeze in the browser app - so I am guessing I have the setting right. However, I am not sure where is the program actually being executed, so to be able to step in and start adding extensions and all.
So, my questions are:
1. Am I doing something wrong?
2. Is there a point where I should add a breakpoint to test the debugging in the front app.
3. Do I need to do anything else in terms of debug configurations or run configurations to start developing extensions and all with OpenKM?
Many thanks for your time,
JO
Note 1: To create an alias in Windows XP one can use the sysinternals application: junction.exe. This will allow one to map the default/deploy/openkm.war path to the target/OpenKM path in the project.
Note 2: When configuring the GWT Shell as a java app, the program arguments suggested by the DeveloperWiki are:
-port 8080 -noserver -port 8080 -startupUrl /OpenKM/frontend/index.html com.openkm.frontend.Main
However, the picture in the DeveloperWiki shows the following different program argumens:
-port 8080 - noserver -port 8080 -startUrl /OpenKM/com.openkm.frontend.Main/index.html com.openkm.frontend.Main
Furthermore, still in the DeveloperWiki when advising on debugging the front end, the url provided is:
http://localhost:8080/OpenKM/com.openkm ... 0.1.1:9997
I personally get a file missing error when accessing: http://localhost:8080/OpenKM/com.openkm ... 0.1.1:9997.
However, things work when accessing the server via http://localhost:8080/OpenKM/frontend/i ... 0.1.1:9997.