GWT debugging for 6.3.4

He we will discuss about how to make customization and improvement to the OpenKM source code.
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.
Post Reply
Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

GWT debugging for 6.3.4

Post by Petr_Valenta » Wed Jul 12, 2017 2:03 pm

Hello

I followed instructions mentioned in Debug GWT frontend user interface. And it is not working - eclipse is ok, its debugger shows processes but GWT window is empty with no traces and URL is not accessible. I tried every possible combination - your description is confusing, because your text suggests something and images shows something different.

Question no.1 - the instructions for GWT above are for localhost? If yes, it is not clear from the text - in the first chapter you describe REMOTE tomcat and there is no information, that GWT concerns a LOCAL tomcat.

I took it as for LOCAL and I tried to install a local tomcat within my project according to instructions in Configure tomcat server. It is maybe obsolete. It was not possible to finish the configuration due to different wizard in the eclipse - there is no wizard for timeouts. Or - maybe - the project OpenKM imported as maven project does not contain web application.

Question no.2 - What are correct steps, when I make a local git repository based on your git and I want to have a web project with fully configurable Tomcat?

An don't tell me to use your OpenKM-6.3-community-portable-dev-1.0. It is unusable. After download today's zip (12.7.2017), unzip, running java-modification script and going into Eclipse I can see errors in the source code.
Maven install ends up after INCREDIBLE long time with the error Failed to execute goal on project openkm: Could not resolve dependencies for project com.openkm:openkm:war:6.3.1-DEV: Failed to collect dependencies for [junit:junit:jar:4.11 (compile), com.googlecode.catch-exception:catch-exception:jar:1.2.0 (compile), javax.transaction:jta:jar:1.1 (test), javassist:javassist:jar:3.12.1.GA (test), .............. org.reflections:reflections:jar:0.9.9-RC1 (compile)]: Failed to read artifact descriptor for org.jbpm.jbpm3:jbpm-jpdl:jar:3.3.1.OKM: Could not transfer artifact org.jbpm.jbpm3:jbpm-jpdl:pom:3.3.1.OKM from/to openkm.com (http://maven.openkm.com/maven2): Failed to transfer http://maven.openkm.com/maven2/org/jbpm ... .1.OKM.pom. Error code 502, Bad Gateway -> [Help 1].
It is impossile to run a local tomcat due to errors in the project (even if I continue regardless the complain Could not load the Tomcat server configuration at \Servers\openkm-config. The configuration may be corrupt or incomplete. Resource is out of sync with the file system: '/Servers/openkm-config/server.xml'.).
GWT debug GWT 6.3 DEV is also impossible to run due to fatal exception Could not create the Java Virtual Machine. Moreover its configuration differs from those in images metioned in the first section of this description.

Question no.3 - What sould I do to be able to debug GWT?

Petr Valenta

jllort
Moderator
Moderator
Posts: 9709
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: GWT debugging for 6.3.4

Post by jllort » Fri Jul 14, 2017 5:21 pm

The next release will be Development environment based in VM, really we were on process on releasing but by mistake we have uploaded in a wrong site, you can meanwhile download from here https://sourceforge.net/projects/openkm/files/common/ ( it's the 10GB file ).

The VM is based in linux mint and the credentials are, user:openkm with password:openkm.

About GWT if you need to debug frontend application then you need to debug GWT. For me is more confortable using old GWT Shell rather GWT super dev mode ( GWT Shell only work with firefox 2.4 and older. In my case I have an old portable installed in my computer ). Here you can find some information about how doing it https://docs.openkm.com/kcenter/view/ok ... userinterf

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: GWT debugging for 6.3.4

Post by Petr_Valenta » Fri Jul 14, 2017 5:49 pm

As for https://sourceforge.net/projects/openkm/files/common/ ( it's the 10GB file ) - see the end of OpenKM-6.3-community-portable-dev-1.0: Maven ends with Error code 401, Unauthorized. It is impossible to download OVA.

As for
Eclipse tips
- Did you try to follow EXACTLY instructions mentioned there? I did. And failed. The first - pictures shows something different than the text around - especially about setting the debug configuration. The second - it cannot work due to incompatitibility of new browsers, which is not mentioned on your pages. New browsers (Firefox and Chrome) does not suport GWT plugin. The third - you suppose local tomcat or debugging directly on the server, aren't you. It is also not mentioned there. And it is useless - GWT is able to debug OpenKM running on the remote server with no problem.

I have already solved this problem on my own and I am able to debug GWT on my remote server. But I suggest to validate both your OVA and Eclipse tips.

jllort
Moderator
Moderator
Posts: 9709
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: GWT debugging for 6.3.4

Post by jllort » Sat Jul 15, 2017 5:24 pm

We are investigating why the OVA is still not ready to downloading, seems because it's 10 GB has still not being propagated to the mirrors and that's the reason why is not able to download.
About documentation, I'm agree with you screenshot values in program arguments are not the same what are in text description ( these are old screenshots what have been reused. I have changed it for new screenshot ).

GWT allow working with Super dev mode and also older GWT Shell ( Shell only works with firefox 2.4 and older, I usually prefer this option rather super dev mode, for me is more confortable. If you want to play with super dev mode I suggest chrome and look for a video in youtube, it's quite difficult explaining how to get it configured in screenshots. ) . We do not write in the documentation all the possible scenarios and configuration ( local and remote ) for it there's the official documentation of GWT http://www.gwtproject.org/doc/latest/De ... gging.html and here http://www.gwtproject.org/articles/superdevmode.html

Anyway I have written some extra comments about firefox version issue and superdev mode scenario.

Petr_Valenta
Senior Boarder
Senior Boarder
Posts: 47
Joined: Mon Mar 06, 2017 9:10 am

Re: GWT debugging for 6.3.4

Post by Petr_Valenta » Sat Jul 15, 2017 6:18 pm

Thank you very much for your fast reaction. Even during weeked. I really appreciate it.

Tis issue can be closed.

pavila
Moderator
Moderator
Posts: 3036
Joined: Tue Dec 11, 2007 6:02 pm
Location: Alicante, Spain
Contact:

Re: GWT debugging for 6.3.4

Post by pavila » Tue Jul 18, 2017 9:58 am

You're welcome :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest