Re: [ovirt-devel] [ENGINE] - failure to debug GWT

2014-09-02 Thread Tomas Jelinek
Hi,

I think you just need to add your hostname where you start the dev mode to 
/etc/hosts somehow like this:

$ hostname
myHost

than /etc/hosts is:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 
myHost
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 
myHost

BTW, any reason you use the -Dgwt.persistentunitcache=false flag explicitly? 
False should be the default value for persistentunitcache.
I'm runnning my debug mode only like this:

make gwt-debug DEBUG_MODULE=webadmin

Have a nice day,
Tomas

- Original Message -
 From: Yair Zaslavsky yzasl...@redhat.com
 To: devel@ovirt.org
 Sent: Tuesday, September 2, 2014 4:14:01 AM
 Subject: [ovirt-devel] [ENGINE] - failure to debug GWT
 
 Hi all,
 Maybe one can help me in strange debugging issues I have?
 I am running the debug server using the following line -
 
 make gwt-debug DEBUG_MODULE=webadmin
 DEV_EXTRA_BUILD_FLAGS=-Dgwt.persistentunitcache=false
 
 The server listens on port 8000 as expected.
 I then connect from Eclipse (using remote debug) to port 8000 - and the
 server crashes, this is what I see -
 
 
 http://pastebin.com/twapYa9N
 
 Can anyone help with this?
 
 Thanks,
 Yair
 
 (I will also paste here the output) -
 
 ERROR] [AppClassLoader@7ffe] info AspectJ Weaver Version 1.6.11 built on
 Tuesday Mar 15, 2011 at 15:31:04 GMT
 [ERROR] [AppClassLoader@7ffe] info register classloader
 sun.misc.Launcher$AppClassLoader@7ffe
 [ERROR] [AppClassLoader@7ffe] info using configuration
 file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT.jar!/META-INF/aop.xml
 [ERROR] [AppClassLoader@7ffe] info using configuration
 file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
 [ERROR] [AppClassLoader@7ffe] info register aspect
 org.ovirt.engine.ui.gwtextension.DontPrune
 [ERROR] [AppClassLoader@7ffe] info register aspect
 org.ovirt.engine.ui.gwtextension.DontPrune
 [ERROR] -bindAddress host 0.0.0.0 unknown
 [ERROR] Google Web Toolkit 2.5.1
 [ERROR] DevMode [-noserver] [-port port-number | auto] [-whitelist
 whitelist-string] [-blacklist blacklist-string] [-logdir directory]
 [-logLevel level] [-gen dir] [-bindAddress host-name-or-address]
 [-codeServerPort port-number | auto] [-server
 servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir]
 [-extra dir] [-workDir dir] module[s]
 [ERROR]
 [ERROR] where
 [ERROR]   -noserverPrevents the embedded web server from running
 [ERROR]   -portSpecifies the TCP port for the embedded web server
 (defaults to )
 [ERROR]   -whitelist   Allows the user to browse URLs that match the
 specified regexes (comma or space separated)
 [ERROR]   -blacklist   Prevents the user browsing URLs that match the
 specified regexes (comma or space separated)
 [ERROR]   -logdir  Logs to a file in the given directory, as well as
 graphically
 [ERROR]   -logLevelThe level of logging detail: ERROR, WARN, INFO,
 TRACE, DEBUG, SPAM, or ALL
 [ERROR]   -gen Debugging: causes normally-transient generated
 types to be saved in the specified directory
 [ERROR]   -bindAddress Specifies the bind address for the code server and
 web server (defaults to 127.0.0.1)
 [ERROR]   -codeServerPort  Specifies the TCP port for the code server
 (defaults to 9997)
 [ERROR]   -server  Specify a different embedded web server to run
 (must implement ServletContainerLauncher)
 [ERROR]   -startupUrl  Automatically launches the specified URL
 [ERROR]   -war The directory into which deployable output files
 will be written (defaults to 'war')
 [ERROR]   -deploy  The directory into which deployable but not
 servable output files will be written (defaults to 'WEB-INF/deploy' under
 the -war directory/jar, and may be the same as the -extra directory/jar)
 [ERROR]   -extra   The directory into which extra files, not intended
 for deployment, will be written
 [ERROR]   -workDir The compiler's working directory for internal use
 (must be writeable; defaults to a system temp dir)
 [ERROR] and
 [ERROR]   module[s]Specifies the name(s) of the module(s) to host
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 6:07.100s
 [INFO] Finished at: Tue Sep 02 04:51:20 IDT 2014
 [INFO] Final Memory: 56M/653M
 [INFO]
 
 [WARNING] The requested profile gwt-user could not be activated because it
 does not exist.
 [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:debug
 (default-cli) on project webadmin: Command [[
 [ERROR] /bin/sh -c
 /usr/lib/jvm/java

Re: [ovirt-devel] [ENGINE] - failure to debug GWT

2014-09-02 Thread Yair Zaslavsky


- Original Message -
 From: Tomas Jelinek tjeli...@redhat.com
 To: Yair Zaslavsky yzasl...@redhat.com
 Cc: devel@ovirt.org
 Sent: Tuesday, September 2, 2014 9:03:19 AM
 Subject: Re: [ovirt-devel] [ENGINE] - failure to debug GWT
 
 Hi,
 
 I think you just need to add your hostname where you start the dev mode to
 /etc/hosts somehow like this:
 
 $ hostname
 myHost
 
 than /etc/hosts is:
 127.0.0.1   localhost localhost.localdomain localhost4
 localhost4.localdomain4 myHost
 ::1 localhost localhost.localdomain localhost6
 localhost6.localdomain6 myHost
 
 BTW, any reason you use the -Dgwt.persistentunitcache=false flag
 explicitly? False should be the default value for persistentunitcache.
 I'm runnning my debug mode only like this:
 
 make gwt-debug DEBUG_MODULE=webadmin
 
 Have a nice day,
 Tomas

Many thanks Thomas, it worked!

 
 - Original Message -
  From: Yair Zaslavsky yzasl...@redhat.com
  To: devel@ovirt.org
  Sent: Tuesday, September 2, 2014 4:14:01 AM
  Subject: [ovirt-devel] [ENGINE] - failure to debug GWT
  
  Hi all,
  Maybe one can help me in strange debugging issues I have?
  I am running the debug server using the following line -
  
  make gwt-debug DEBUG_MODULE=webadmin
  DEV_EXTRA_BUILD_FLAGS=-Dgwt.persistentunitcache=false
  
  The server listens on port 8000 as expected.
  I then connect from Eclipse (using remote debug) to port 8000 - and the
  server crashes, this is what I see -
  
  
  http://pastebin.com/twapYa9N
  
  Can anyone help with this?
  
  Thanks,
  Yair
  
  (I will also paste here the output) -
  
  ERROR] [AppClassLoader@7ffe] info AspectJ Weaver Version 1.6.11 built
  on
  Tuesday Mar 15, 2011 at 15:31:04 GMT
  [ERROR] [AppClassLoader@7ffe] info register classloader
  sun.misc.Launcher$AppClassLoader@7ffe
  [ERROR] [AppClassLoader@7ffe] info using configuration
  file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT.jar!/META-INF/aop.xml
  [ERROR] [AppClassLoader@7ffe] info using configuration
  file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
  [ERROR] [AppClassLoader@7ffe] info register aspect
  org.ovirt.engine.ui.gwtextension.DontPrune
  [ERROR] [AppClassLoader@7ffe] info register aspect
  org.ovirt.engine.ui.gwtextension.DontPrune
  [ERROR] -bindAddress host 0.0.0.0 unknown
  [ERROR] Google Web Toolkit 2.5.1
  [ERROR] DevMode [-noserver] [-port port-number | auto] [-whitelist
  whitelist-string] [-blacklist blacklist-string] [-logdir directory]
  [-logLevel level] [-gen dir] [-bindAddress host-name-or-address]
  [-codeServerPort port-number | auto] [-server
  servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy dir]
  [-extra dir] [-workDir dir] module[s]
  [ERROR]
  [ERROR] where
  [ERROR]   -noserverPrevents the embedded web server from running
  [ERROR]   -portSpecifies the TCP port for the embedded web
  server
  (defaults to )
  [ERROR]   -whitelist   Allows the user to browse URLs that match the
  specified regexes (comma or space separated)
  [ERROR]   -blacklist   Prevents the user browsing URLs that match the
  specified regexes (comma or space separated)
  [ERROR]   -logdir  Logs to a file in the given directory, as well
  as
  graphically
  [ERROR]   -logLevelThe level of logging detail: ERROR, WARN, INFO,
  TRACE, DEBUG, SPAM, or ALL
  [ERROR]   -gen Debugging: causes normally-transient generated
  types to be saved in the specified directory
  [ERROR]   -bindAddress Specifies the bind address for the code server
  and
  web server (defaults to 127.0.0.1)
  [ERROR]   -codeServerPort  Specifies the TCP port for the code server
  (defaults to 9997)
  [ERROR]   -server  Specify a different embedded web server to run
  (must implement ServletContainerLauncher)
  [ERROR]   -startupUrl  Automatically launches the specified URL
  [ERROR]   -war The directory into which deployable output files
  will be written (defaults to 'war')
  [ERROR]   -deploy  The directory into which deployable but not
  servable output files will be written (defaults to 'WEB-INF/deploy' under
  the -war directory/jar, and may be the same as the -extra directory/jar)
  [ERROR]   -extra   The directory into which extra files, not
  intended
  for deployment, will be written
  [ERROR]   -workDir The compiler's working directory for internal
  use
  (must be writeable; defaults to a system temp dir)
  [ERROR] and
  [ERROR]   module[s]Specifies the name(s) of the module(s) to host
  [INFO]
  
  [INFO] BUILD FAILURE
  [INFO]
  
  [INFO] Total time: 6:07.100s
  [INFO] Finished at: Tue Sep

Re: [ovirt-devel] [ENGINE] - failure to debug GWT

2014-09-02 Thread Tomas Jelinek


- Original Message -
 From: Yair Zaslavsky yzasl...@redhat.com
 To: Tomas Jelinek tjeli...@redhat.com
 Cc: devel@ovirt.org
 Sent: Tuesday, September 2, 2014 8:26:56 AM
 Subject: Re: [ovirt-devel] [ENGINE] - failure to debug GWT
 
 
 
 - Original Message -
  From: Tomas Jelinek tjeli...@redhat.com
  To: Yair Zaslavsky yzasl...@redhat.com
  Cc: devel@ovirt.org
  Sent: Tuesday, September 2, 2014 9:03:19 AM
  Subject: Re: [ovirt-devel] [ENGINE] - failure to debug GWT
  
  Hi,
  
  I think you just need to add your hostname where you start the dev mode to
  /etc/hosts somehow like this:
  
  $ hostname
  myHost
  
  than /etc/hosts is:
  127.0.0.1   localhost localhost.localdomain localhost4
  localhost4.localdomain4 myHost
  ::1 localhost localhost.localdomain localhost6
  localhost6.localdomain6 myHost
  
  BTW, any reason you use the -Dgwt.persistentunitcache=false flag
  explicitly? False should be the default value for persistentunitcache.
  I'm runnning my debug mode only like this:
  
  make gwt-debug DEBUG_MODULE=webadmin
  
  Have a nice day,
  Tomas
 
 Many thanks Thomas, it worked!

Cool! Happy to hear that!

For future reference, if someone would google around and this would not be the 
solution, I'm adding here a wiki which tries to describe how to debug the 
frontend:

http://www.ovirt.org/DebugFrontend

 
  
  - Original Message -
   From: Yair Zaslavsky yzasl...@redhat.com
   To: devel@ovirt.org
   Sent: Tuesday, September 2, 2014 4:14:01 AM
   Subject: [ovirt-devel] [ENGINE] - failure to debug GWT
   
   Hi all,
   Maybe one can help me in strange debugging issues I have?
   I am running the debug server using the following line -
   
   make gwt-debug DEBUG_MODULE=webadmin
   DEV_EXTRA_BUILD_FLAGS=-Dgwt.persistentunitcache=false
   
   The server listens on port 8000 as expected.
   I then connect from Eclipse (using remote debug) to port 8000 - and the
   server crashes, this is what I see -
   
   
   http://pastebin.com/twapYa9N
   
   Can anyone help with this?
   
   Thanks,
   Yair
   
   (I will also paste here the output) -
   
   ERROR] [AppClassLoader@7ffe] info AspectJ Weaver Version 1.6.11 built
   on
   Tuesday Mar 15, 2011 at 15:31:04 GMT
   [ERROR] [AppClassLoader@7ffe] info register classloader
   sun.misc.Launcher$AppClassLoader@7ffe
   [ERROR] [AppClassLoader@7ffe] info using configuration
   file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT.jar!/META-INF/aop.xml
   [ERROR] [AppClassLoader@7ffe] info using configuration
   file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
   [ERROR] [AppClassLoader@7ffe] info register aspect
   org.ovirt.engine.ui.gwtextension.DontPrune
   [ERROR] [AppClassLoader@7ffe] info register aspect
   org.ovirt.engine.ui.gwtextension.DontPrune
   [ERROR] -bindAddress host 0.0.0.0 unknown
   [ERROR] Google Web Toolkit 2.5.1
   [ERROR] DevMode [-noserver] [-port port-number | auto] [-whitelist
   whitelist-string] [-blacklist blacklist-string] [-logdir directory]
   [-logLevel level] [-gen dir] [-bindAddress host-name-or-address]
   [-codeServerPort port-number | auto] [-server
   servletContainerLauncher[:args]] [-startupUrl url] [-war dir] [-deploy
   dir]
   [-extra dir] [-workDir dir] module[s]
   [ERROR]
   [ERROR] where
   [ERROR]   -noserverPrevents the embedded web server from running
   [ERROR]   -portSpecifies the TCP port for the embedded web
   server
   (defaults to )
   [ERROR]   -whitelist   Allows the user to browse URLs that match the
   specified regexes (comma or space separated)
   [ERROR]   -blacklist   Prevents the user browsing URLs that match the
   specified regexes (comma or space separated)
   [ERROR]   -logdir  Logs to a file in the given directory, as well
   as
   graphically
   [ERROR]   -logLevelThe level of logging detail: ERROR, WARN,
   INFO,
   TRACE, DEBUG, SPAM, or ALL
   [ERROR]   -gen Debugging: causes normally-transient generated
   types to be saved in the specified directory
   [ERROR]   -bindAddress Specifies the bind address for the code server
   and
   web server (defaults to 127.0.0.1)
   [ERROR]   -codeServerPort  Specifies the TCP port for the code server
   (defaults to 9997)
   [ERROR]   -server  Specify a different embedded web server to run
   (must implement ServletContainerLauncher)
   [ERROR]   -startupUrl  Automatically launches the specified URL
   [ERROR]   -war The directory into which deployable output
   files
   will be written (defaults to 'war')
   [ERROR]   -deploy  The directory into which deployable but not
   servable output files will be written (defaults to 'WEB-INF/deploy' under
   the -war directory/jar, and may be the same as the -extra directory/jar

[ovirt-devel] [ENGINE] - failure to debug GWT

2014-09-01 Thread Yair Zaslavsky
Hi all,
Maybe one can help me in strange debugging issues I have?
I am running the debug server using the following line -

make gwt-debug DEBUG_MODULE=webadmin 
DEV_EXTRA_BUILD_FLAGS=-Dgwt.persistentunitcache=false

The server listens on port 8000 as expected.
I then connect from Eclipse (using remote debug) to port 8000 - and the server 
crashes, this is what I see -


http://pastebin.com/twapYa9N

Can anyone help with this?

Thanks,
Yair

(I will also paste here the output) -

ERROR] [AppClassLoader@7ffe] info AspectJ Weaver Version 1.6.11 built on 
Tuesday Mar 15, 2011 at 15:31:04 GMT
[ERROR] [AppClassLoader@7ffe] info register classloader 
sun.misc.Launcher$AppClassLoader@7ffe
[ERROR] [AppClassLoader@7ffe] info using configuration 
file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT.jar!/META-INF/aop.xml
[ERROR] [AppClassLoader@7ffe] info using configuration 
file:/home/yzaslavs/.m2/upstream_repository/org/ovirt/engine/ui/gwt-extension/3.6.0-SNAPSHOT/gwt-extension-3.6.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
[ERROR] [AppClassLoader@7ffe] info register aspect 
org.ovirt.engine.ui.gwtextension.DontPrune
[ERROR] [AppClassLoader@7ffe] info register aspect 
org.ovirt.engine.ui.gwtextension.DontPrune
[ERROR] -bindAddress host 0.0.0.0 unknown
[ERROR] Google Web Toolkit 2.5.1
[ERROR] DevMode [-noserver] [-port port-number | auto] [-whitelist 
whitelist-string] [-blacklist blacklist-string] [-logdir directory] [-logLevel 
level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort 
port-number | auto] [-server servletContainerLauncher[:args]] [-startupUrl 
url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir] module[s] 
[ERROR] 
[ERROR] where 
[ERROR]   -noserverPrevents the embedded web server from running
[ERROR]   -portSpecifies the TCP port for the embedded web server 
(defaults to )
[ERROR]   -whitelist   Allows the user to browse URLs that match the 
specified regexes (comma or space separated)
[ERROR]   -blacklist   Prevents the user browsing URLs that match the 
specified regexes (comma or space separated)
[ERROR]   -logdir  Logs to a file in the given directory, as well as 
graphically
[ERROR]   -logLevelThe level of logging detail: ERROR, WARN, INFO, 
TRACE, DEBUG, SPAM, or ALL
[ERROR]   -gen Debugging: causes normally-transient generated types 
to be saved in the specified directory
[ERROR]   -bindAddress Specifies the bind address for the code server and 
web server (defaults to 127.0.0.1)
[ERROR]   -codeServerPort  Specifies the TCP port for the code server (defaults 
to 9997)
[ERROR]   -server  Specify a different embedded web server to run (must 
implement ServletContainerLauncher)
[ERROR]   -startupUrl  Automatically launches the specified URL
[ERROR]   -war The directory into which deployable output files 
will be written (defaults to 'war')
[ERROR]   -deploy  The directory into which deployable but not servable 
output files will be written (defaults to 'WEB-INF/deploy' under the -war 
directory/jar, and may be the same as the -extra directory/jar)
[ERROR]   -extra   The directory into which extra files, not intended 
for deployment, will be written
[ERROR]   -workDir The compiler's working directory for internal use 
(must be writeable; defaults to a system temp dir)
[ERROR] and 
[ERROR]   module[s]Specifies the name(s) of the module(s) to host
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 6:07.100s
[INFO] Finished at: Tue Sep 02 04:51:20 IDT 2014
[INFO] Final Memory: 56M/653M
[INFO] 
[WARNING] The requested profile gwt-user could not be activated because it 
does not exist.
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:debug 
(default-cli) on project webadmin: Command [[
[ERROR] /bin/sh -c /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/jre/bin/java 
-javaagent:/home/yzaslavs/.m2/upstream_repository/org/aspectj/aspectjweaver/1.6.11/aspectjweaver-1.6.11.jar
 -Xms1024M -Xmx4096M -XX:PermSize=512M -XX:MaxPermSize=1024M \
[ERROR] 
-Dgwt.jjs.permutationWorkerFactory=com.google.gwt.dev.ThreadedPermutationWorkerFactory
 \
[ERROR] -Dgwt.jjs.maxThreads=4 \
[ERROR] 
-Djava.io.tmpdir=/home/yzaslavs/work/ovirt_git/ovirt-engine/frontend/webadmin/modules/webadmin/target/tmp
 \
[ERROR] 
-Djava.util.prefs.systemRoot=/home/yzaslavs/work/ovirt_git/ovirt-engine/frontend/webadmin/modules/webadmin/target/tmp/.java
 \
[ERROR] 
-Djava.util.prefs.userRoot=/home/yzaslavs/work/ovirt_git/ovirt-engine/frontend/webadmin/modules/webadmin/target/tmp/.java
 '-Dgwt.dontPrune=org\.ovirt\.engine\.core\.(common|compat)\..*' -Xdebug 
-Xnoagent