Page 1 of 1

GWT debugging for 6.3.4

PostPosted:Wed Jul 12, 2017 2:03 pm
by Petr_Valenta
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

Re: GWT debugging for 6.3.4

PostPosted:Fri Jul 14, 2017 5:21 pm
by jllort
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

Re: GWT debugging for 6.3.4

PostPosted:Fri Jul 14, 2017 5:49 pm
by Petr_Valenta
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.

Re: GWT debugging for 6.3.4

PostPosted:Sat Jul 15, 2017 5:24 pm
by jllort
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.

Re: GWT debugging for 6.3.4

PostPosted:Sat Jul 15, 2017 6:18 pm
by Petr_Valenta
Thank you very much for your fast reaction. Even during weeked. I really appreciate it.

Tis issue can be closed.

Re: GWT debugging for 6.3.4

PostPosted:Tue Jul 18, 2017 9:58 am
by pavila
You're welcome :)

Re: GWT debugging for 6.3.4

PostPosted:Thu Jan 11, 2018 4:53 pm
by gennari
jllort wrote: 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
Hi there,
I can't build OpenKM due to this error:
Code: Select all
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenKM Web Application 6.3.1-DEV
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.dropbox.sdk:dropbox-client:jar:5.1.3 is missing, no dependency information available
[WARNING] The POM for net.sf:jodreports:jar:2.3.0 is missing, no dependency information available
Downloading: http://maven.openkm.com/maven2/commons-logging/commons-logging/1.2.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata commons-logging:commons-logging:1.2.1-SNAPSHOT/maven-metadata.xml from/to openkm.com (http://maven.openkm.com/maven2): Access denied to http://maven.openkm.com/maven2/commons-logging/commons-logging/1.2.1-SNAPSHOT/maven-metadata.xml. Error code 401, Unauthorized
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.681s
[INFO] Finished at: Thu Jan 11 17:09:29 CET 2018
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[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.hsqldb:hsqldb:jar:2.2.6 (test), javax.servlet:servlet-api:jar:2.5 (provided), javax.servlet:jstl:jar:1.2 (provided), javax.servlet.jsp:jsp-api:jar:2.1 (provided), javax.mail:mail:jar:1.4.7 (provided), log4j:log4j:jar:1.2.17 (provided), org.apache.tomcat:tomcat-catalina:jar:7.0.27 (provided), commons-io:commons-io:jar:1.4 (compile), commons-fileupload:commons-fileupload:jar:1.2.2 (compile), commons-httpclient:commons-httpclient:jar:3.1 (compile), org.apache.commons:commons-compress:jar:1.0 (compile), de.schlichtherle:truezip:jar:6.8.2 (compile), org.slf4j:slf4j-api:jar:1.5.3 (compile), org.slf4j:slf4j-log4j12:jar:1.5.3 (compile), org.slf4j:jul-to-slf4j:jar:1.5.3 (compile), dnsjava:dnsjava:jar:2.0.8 (compile), commons-beanutils:commons-beanutils:jar:1.8.3 (compile), commons-codec:commons-codec:jar:1.2 (compile), javax.jcr:jcr:jar:1.0 (compile), org.apache.jackrabbit:jackrabbit-core:jar:1.6.5 (compile), org.apache.jackrabbit:jackrabbit-text-extractors:jar:1.6.5 (compile), net.homeip.yusuke:twitter4j:jar:2.0.10 (compile), rome:rome:jar:1.0 (compile), net.sf.jasperreports:jasperreports:jar:3.7.6 (compile), org.codehaus.groovy:groovy-all-minimal:jar:1.5.8 (compile), org.jbpm.jbpm3:jbpm-jpdl:jar:3.3.1.OKM (compile), org.jbpm.jbpm3:jbpm-identity:jar:3.3.1.OKM (compile), org.hibernate:hibernate-core:jar:3.6.10.Final (compile), org.hibernate:hibernate-ehcache:jar:3.6.10.Final (compile), org.hibernate:hibernate-search:jar:3.4.2.Final (compile), org.hibernate:hibernate-validator:jar:4.2.0.Final (compile), org.apache.lucene:lucene-queries:jar:3.1.0 (compile), org.beanshell:bsh:jar:2.0b5 (compile), com.dropbox.sdk:dropbox-client:jar:5.1.3 (compile), org.artofsolving.jodconverter:jodconverter-core:jar:3.0-beta-4 (compile), entagged.audioformats:audioformats:jar:0.15 (compile), com.drewnoakes:metadata-extractor:jar:2.4.0-beta-1 (compile), org.apache.poi:poi:jar:3.9 (compile), org.apache.poi:poi-scratchpad:jar:3.9 (compile), org.apache.pdfbox:pdfbox:jar:1.6.0 (compile), com.catcode:odfutils:jar:051129 (compile), org.dts:jmyspell-core:jar:1.0.0-beta-2 (compile), net.sf:jodreports:jar:2.3.0 (compile), org.odftoolkit:odfdom-java:jar:0.8.6 (compile), org.hyperic:sigar:jar:1.6.5.132 (compile), com.google.gwt:gwt-servlet:jar:2.4.0 (runtime), com.google.gwt:gwt-user:jar:2.4.0 (provided), com.google.gwt:gwt-dev:jar:2.4.0 (provided), com.google.code.gwt-log:gwt-log:jar:3.1.6 (compile), com.google.gwt:gwt-incubator:jar:2.1.0 (compile), gwt-vl.sourceforge.net:gwt-vl:jar:2.0b-without-hibernate (compile), org.openrdf.sesame:onejar:jar:2.2.4 (compile), com.google.code.gson:gson:jar:2.2.4 (compile), com.kenai.crontab-parser:crontab-parser:jar:1.0.1 (compile), de.sven-jacobs:loremipsum:jar:1.0 (compile), com.github.dcarter.gdata-java-client:gdata-contacts-3.0:jar:1.46.0 (compile), com.github.dcarter.gdata-java-client:gdata-docs-3.0:jar:1.46.0 (compile), org.apache.cxf:cxf-rt-frontend-jaxws:jar:2.7.12 (compile), org.apache.cxf:cxf-rt-frontend-jaxrs:jar:2.7.12 (compile), org.apache.cxf:cxf-rt-transports-http:jar:2.7.12 (compile), org.apache.cxf:cxf-rt-ws-security:jar:2.7.12 (compile), org.apache.ws.security:wss4j:jar:1.6.16 (compile), org.springframework:spring-core:jar:3.1.0.RELEASE (compile), org.springframework:spring-beans:jar:3.1.0.RELEASE (compile), org.springframework:spring-web:jar:3.1.0.RELEASE (compile), org.springframework:spring-context:jar:3.1.0.RELEASE (compile), org.springframework:spring-orm:jar:3.1.0.RELEASE (compile), org.springframework.ws:spring-ws-core:jar:2.0.3.RELEASE (compile), org.springframework.security:spring-security-core:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-config:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-web:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-taglibs:jar:3.1.0.RELEASE (compile), org.springframework.security:spring-security-ldap:jar:3.1.0.RELEASE (compile), com.google.code:jspf:jar:1.0.1 (compile), org.apache.chemistry.opencmis:chemistry-opencmis-server-support:jar:0.10.0 (compile), org.apache.chemistry.opencmis:chemistry-opencmis-server-bindings:jar:0.10.0 (compile), com.ettrema:milton-api:jar:1.8.1.3 (compile), com.ettrema:milton-servlet:jar:1.8.1.3 (compile), net.sf.dozer:dozer:jar:5.3.2 (compile), com.google.zxing:core:jar:2.2 (compile), com.google.zxing:javase:jar:2.2 (compile), com.amazonaws:aws-java-sdk:jar:1.3.0 (compile), com.cybozu:langdetect:jar:2011.11.28 (compile), net.sourceforge:jashi:jar:2008.07.31 (compile), com.googlecode.jcsv:jcsv:jar:1.4.0 (compile), org.owasp:encoder:jar:1.1 (compile), com.auxilii:msgparser:jar:1.12 (compile), com.ibm.icu:icu4j:jar:50.1.1 (compile), ca.uwaterloo.a3seth:omr-tool:jar:2007.07.01 (compile), net.sourceforge:jiu:jar:2007.07.01 (compile), org.docx4j:docx4j:jar:2.8.1 (compile), org.reflections:reflections:jar:0.9.9-RC1 (compile)]: Failed to read artifact descriptor for com.ettrema:milton-api:jar:1.8.1.3: Failure to find com.ettrema:milton:pom:1.8.1.3 in http://maven.openkm.com/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of openkm.com has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
I tried to download Virtual Machine from link you have posted, but I can't find .ova file.

Where I find a working development environment?

Regards.

Genna

Re: GWT debugging for 6.3.4

PostPosted:Fri Jan 12, 2018 7:28 pm
by jllort
It's a problem while downloading maven dependencies. Can you try compiling from command line ( you should need to install maven in your computer http://maven.apache.org/download.cgi , also read https://maven.apache.org/guides/getting ... sites.html and https://maven.apache.org/install.html ). Use this command line:
Code: Select all
mvn -Dmaven.test.skip=true clean packag