• Development

  • 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.
 #11852  by OpenInsight
 
Hi

Im new to Open KM developments. I checkout the project from the svn (openKM 5.1) and complied the project using eclipse and maven plug-in. I use jboss-4.2.3.GA and it is up and running on that server (I build the war file and deploy it on the jboss-4.2.3.GA). I want to create alias to target/OpenKM folder so that i can debug the application Using eclipse IDE. But when i create the alias by adding context element to the server.xml file in '/home/lasith/Desktop/GWT/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer' it couldn't take the data-source (I create a mysql data source). Context element which I used is as below.
Code: Select all
	<Context path="/OpenKM" docBase="/home/waruna/Workspaces/openkm/target/OpenKM" debug="0" reloadable="true" override="true" >
	</Context>
Could you please tel me how to create a alias to the target/OpenKM correctly. My requirement is to debug the openKM application using eclipse IDE by adding debug points to the java code.

Thank you in advance

Waruna
 #11880  by pavila
 
Try with a soft link (ln -s), this is the way I use to debug under Linux with Eclipse + JBoss.
 #11885  by OpenInsight
 
Hi pavila,

Could u plz explain how to create a softlink?

Thnaks

Waruna
 #11927  by jllort
 
You're on windows or linux ?
 #11965  by pavila
 
$ man ln
 #12002  by OpenInsight
 
Thnx for replies. Im using linux (fedora).

I manage to do it using remote debugging.

i add following to the run.sh 's JAVA_OPT

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n


Thanx

Waruna
 #12043  by atty_miller
 
NEVERMIND I FIXED IT

Debugging GWT on Windows 7, OpenKM 5.1, eclipse indigo, GWT

I debug the server fine in host mode, however, I cannot seem to break in the GWT code.

I undocumented the following in the pom.xml:
Code: Select all
<!-- Only for development --> 
    <dependency> 
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-dev</artifactId>
      <version>${gwt.version}</version>
      <scope>provided</scope>
    </dependency>
I added a Java Application GWT-Debug to my windows-preference with the following args:
Code: Select all
Project: openkm
Main class: com.google.gwt.dev.DevMode
Program arguments: -port 8080 -noserver -port 8080 -startupUrl  /OpenKM/frontend/index.html com.openkm.frontend.Main
VM arguments: -Xms1024m -Xmx1024M
-------------------------------------------------------------------------------------------------
Steps I do to start debugging GWT:
1. I start the server in eclipse in debug mode.
2. I run the Java Application GWT-Debug (as configured above) in eclipse from the debug icon.
3. The GWT Development Mode window pops up.

NOW THIS IS WHERE MY PROBLEMS START . . .
4. I have try to login to OpenKM. First I try to cut and past http://localhost:8080/OpenKM/com.openkm ... 0.1.1:9997 in my browser; however, this just gives me a 404 error. SO THIS DOES NOT WORK.

I then press Launch Default Browser button from GWT Development Mode which at least gives me the login screen (not a 404 error) with the following url: http://127.0.0.1:8080/OpenKM/frontend/i ... 0.0.1:9997. However, this gives me the error: "Plugin failed to connect to hosted server at 127.0.0.1:9997 after I click login.

Is my server set up wrong? does it need to be setup to listen to port 9997?

I tried a bunch of different ways but nothing seems to work.

Any help would be appreciated.
Last edited by atty_miller on Sat Sep 03, 2011 11:27 pm, edited 1 time in total.
 #12071  by jllort
 
change /OpenKM/frontend/index.html?... to OpenKM/frontend/index.jsp?... the "com.openkm etc..." was older path, it's still on wiki page ? tell me which and I'll change it

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.