Page 1 of 1

Development

PostPosted:Fri Aug 19, 2011 6:44 am
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

Re: Development

PostPosted:Sun Aug 21, 2011 8:35 pm
by pavila
Try with a soft link (ln -s), this is the way I use to debug under Linux with Eclipse + JBoss.

Re: Development

PostPosted:Mon Aug 22, 2011 6:29 am
by OpenInsight
Hi pavila,

Could u plz explain how to create a softlink?

Thnaks

Waruna

Re: Development

PostPosted:Fri Aug 26, 2011 7:59 am
by jllort
You're on windows or linux ?

Re: Development

PostPosted:Mon Aug 29, 2011 8:05 am
by pavila
$ man ln

Re: Development

PostPosted:Wed Aug 31, 2011 5:42 am
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

Re: Development

PostPosted:Sat Sep 03, 2011 8:58 pm
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.

Re: Development

PostPosted:Sat Sep 03, 2011 8:59 pm
by atty_miller
Sorry, I meant to say I uncommented that code in the pom.xml

Re: Development

PostPosted:Sat Sep 03, 2011 11:26 pm
by atty_miller
NEVERMIND I FIXED IT!

Re: Development

PostPosted:Tue Sep 06, 2011 8:56 pm
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