[Engine-devel] debug ovirt-engine

Tomas Jelinek tjelinek at redhat.com
Thu Mar 27 09:13:45 UTC 2014


Hey,

well, that errors are due to some aspectj magic we are doing related to the fact that we are using
the same entities on FE and BE and need to hack the GWT optimization to make this work. 
Long story short, please feel free to ignore that errors, that are not errors in fact but debug messages and are
presented as error due to an unrelated bug :) So, if the "GWT Development Mode" window shows up you are free to continue.

Tomas

PS: please always attach also the engine-devel list because others may benefit from this discussion as well...

----- Original Message -----
> From: "彭春洪" <pengchunhong at gmail.com>
> To: "Tomas Jelinek" <tjelinek at redhat.com>
> Sent: Thursday, March 27, 2014 9:04:19 AM
> Subject: Re: [Engine-devel] debug ovirt-engine
> 
> Hi,Tomas Jelinek.
> Thank for your help,I follow the instructs but get some errors.My detail
> steps are these:
> 1.make clean install-dev PREFIX="$HOME/ovirt-engine"
> DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-Dgwt.userAgent=gecko1_8,safari"
> BUILD_GWT_WEBADMIN="1" BUILD_GWT_USERPORTAL="0"
> 2.make gwt-debug DEBUG_MODULE="webadmin"
> DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-Dgwt.userAgent=safari"
> 
>     after this step,the terminal print messages:
>     [debug] execute contextualize
>     [INFO] Using 'UTF-8' encoding to copy filtered resources.
>     [INFO] Copying 208 resources to
> /home/lerroy/ovirt-engine-debug/frontend/webadmin/modules/webadmin/target/generated-sources/gwt
>     [INFO] Copying 685 resources
>     [INFO] Copying 136 resources to resources
>     [INFO]
>     [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> webadmin ---
>     [INFO] Compiling 45 source files to
> /home/lerroy/ovirt-engine-debug/frontend/webadmin/modules/webadmin/target/webadmin-3.4.0-SNAPSHOT/WEB-INF/classes
>     [INFO]
>     [INFO] <<< gwt-maven-plugin:2.4.0:debug (default-cli) @ webadmin <<<
>     [INFO]
>     [INFO] --- gwt-maven-plugin:2.4.0:debug (default-cli) @ webadmin ---
>     [INFO] starting debugger on port 8000 in suspend mode
>     [WARNING] Don't declare gwt-dev as a project dependency. This may
> introduce complex dependency conflicts
>     [INFO] noServer is set! Skipping exploding war file...
>     [INFO] Listening for transport dt_socket at address: 8000
> 3.import ovirt into eclipse as "existing maven projects".
> 4.In Eclipse:
>     4.1."Run | Debug Configurations"
>     4.2.Select "Remote Java Application" and click "New launch
> configuration"
>     4.3.On Connect tab, set Host="localhost" and Port="8000"
>     4.4.On Source tab, click "Add | Java Project" and choose related
> frontend projects
> After set these infomations,click the "debug" button,the terminal shows
> some errors as these:
> [ERROR] [AppClassLoader at 11a40fff] info AspectJ Weaver Version 1.6.11 built
> on Tuesday Mar 15, 2011 at 15:31:04 GMT
> [ERROR] [AppClassLoader at 11a40fff] info register classloader
> sun.misc.Launcher$AppClassLoader at 11a40fff
> [ERROR] [AppClassLoader at 11a40fff] info using configuration
> file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
> [ERROR] [AppClassLoader at 11a40fff] info using configuration
> file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
> [ERROR] [AppClassLoader at 11a40fff] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> [ERROR] [AppClassLoader at 11a40fff] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> [ERROR] [MethodUtil at 3d2bde69] info AspectJ Weaver Version 1.6.11 built on
> Tuesday Mar 15, 2011 at 15:31:04 GMT
> [ERROR] [MethodUtil at 3d2bde69] info register classloader
> sun.reflect.misc.MethodUtil at 3d2bde69
> [ERROR] [MethodUtil at 3d2bde69] info using configuration
> file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
> [ERROR] [MethodUtil at 3d2bde69] info using configuration
> file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
> [ERROR] [MethodUtil at 3d2bde69] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> [ERROR] [MethodUtil at 3d2bde69] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
> 
> when  compile the ovirt-engine with command "make clean install-dev
> PREFIX=$HOME/ovirt-engine", I get the same error "[ERROR]
> [MethodUtil at 3d2bde69] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune",but it still can be install
> successfully and run stably.
> So,my problem is how to resolve this error inorder to debug the
> ovirt-frontend and backend.Thank you very much!
> 
> 
> 2014-03-27 16:01 GMT+08:00 彭春洪 <pengchunhong at gmail.com>:
> 
> > Hi,Gilad Chaplik.
> > Thank for your help,I follow the instructs but get some errors.My detail
> > steps are these:
> > 1.make clean install-dev PREFIX="$HOME/ovirt-engine"
> > DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-Dgwt.userAgent=gecko1_8,safari"
> > BUILD_GWT_WEBADMIN="1" BUILD_GWT_USERPORTAL="0"
> > 2.make gwt-debug DEBUG_MODULE="webadmin"
> > DEV_EXTRA_BUILD_FLAGS_GWT_DEFAULTS="-Dgwt.userAgent=safari"
> >
> >     after this step,the terminal print messages:
> >     [debug] execute contextualize
> >     [INFO] Using 'UTF-8' encoding to copy filtered resources.
> >     [INFO] Copying 208 resources to
> > /home/lerroy/ovirt-engine-debug/frontend/webadmin/modules/webadmin/target/generated-sources/gwt
> >     [INFO] Copying 685 resources
> >     [INFO] Copying 136 resources to resources
> >     [INFO]
> >     [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> > webadmin ---
> >     [INFO] Compiling 45 source files to
> > /home/lerroy/ovirt-engine-debug/frontend/webadmin/modules/webadmin/target/webadmin-3.4.0-SNAPSHOT/WEB-INF/classes
> >     [INFO]
> >     [INFO] <<< gwt-maven-plugin:2.4.0:debug (default-cli) @ webadmin <<<
> >     [INFO]
> >     [INFO] --- gwt-maven-plugin:2.4.0:debug (default-cli) @ webadmin ---
> >     [INFO] starting debugger on port 8000 in suspend mode
> >     [WARNING] Don't declare gwt-dev as a project dependency. This may
> > introduce complex dependency conflicts
> >     [INFO] noServer is set! Skipping exploding war file...
> >     [INFO] Listening for transport dt_socket at address: 8000
> > 3.import ovirt into eclipse as "existing maven projects".
> > 4.In Eclipse:
> >     4.1."Run | Debug Configurations"
> >     4.2.Select "Remote Java Application" and click "New launch
> > configuration"
> >     4.3.On Connect tab, set Host="localhost" and Port="8000"
> >     4.4.On Source tab, click "Add | Java Project" and choose related
> > frontend projects
> > After set these infomations,click the "debug" button,the terminal shows
> > some errors as these:
> > [ERROR] [AppClassLoader at 11a40fff] info AspectJ Weaver Version 1.6.11
> > built on Tuesday Mar 15, 2011 at 15:31:04 GMT
> > [ERROR] [AppClassLoader at 11a40fff] info register classloader
> > sun.misc.Launcher$AppClassLoader at 11a40fff
> > [ERROR] [AppClassLoader at 11a40fff] info using configuration
> > file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
> > [ERROR] [AppClassLoader at 11a40fff] info using configuration
> > file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
> >
> > [ERROR] [AppClassLoader at 11a40fff] info register aspect
> > org.ovirt.engine.ui.gwtextension.DontPrune
> > [ERROR] [AppClassLoader at 11a40fff] info register aspect
> > org.ovirt.engine.ui.gwtextension.DontPrune
> > [ERROR] [MethodUtil at 3d2bde69] info AspectJ Weaver Version 1.6.11 built on
> > Tuesday Mar 15, 2011 at 15:31:04 GMT
> > [ERROR] [MethodUtil at 3d2bde69] info register classloader
> > sun.reflect.misc.MethodUtil at 3d2bde69
> > [ERROR] [MethodUtil at 3d2bde69] info using configuration
> > file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
> > [ERROR] [MethodUtil at 3d2bde69] info using configuration
> > file:/home/lerroy/.m2/repository/org/ovirt/engine/ui/gwt-extension/3.4.0-SNAPSHOT/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
> > [ERROR] [MethodUtil at 3d2bde69] info register aspect
> > org.ovirt.engine.ui.gwtextension.DontPrune
> > [ERROR] [MethodUtil at 3d2bde69] info register aspect
> > org.ovirt.engine.ui.gwtextension.DontPrune
> >
> > when  compile the ovirt-engine with command "make clean install-dev
> > PREFIX=$HOME/ovirt-engine", I get the same error "[ERROR]
> > [MethodUtil at 3d2bde69] info register aspect
> > org.ovirt.engine.ui.gwtextension.DontPrune",but it still can be install
> > successfully and run stably.
> > So,my problem is how to resolve this error inorder to debug the
> > ovirt-frontend and backend.Thank you very much!
> >
> >
> > 2014-03-26 21:32 GMT+08:00 Gilad Chaplik <gchaplik at redhat.com>:
> >
> > np :-)
> >>
> >> Thanks,
> >> Gilad.
> >>
> >>
> >> ----- Original Message -----
> >> > From: "彭春洪" <pengchunhong at gmail.com>
> >> > To: "Gilad Chaplik" <gchaplik at redhat.com>
> >> > Sent: Wednesday, March 26, 2014 1:29:18 PM
> >> > Subject: Re: [Engine-devel] debug ovirt-engine
> >> >
> >> > OK,thank for your instructs,I will try them.
> >> >
> >> >
> >> > 2014-03-26 18:45 GMT+08:00 Gilad Chaplik <gchaplik at redhat.com>:
> >> >
> >> > > btw, at least with eclipse you can debug both client and server
> >> together
> >> > > (two debug instances, port 8787 and 8000)
> >> > > note that debugging the client takes time!! don't be intimidated 8-)
> >> > >
> >> > > Thanks,
> >> > > Gilad.
> >> > >
> >> > > ----- Original Message -----
> >> > > > From: "Chuan Liao (Jason Liao, HPservers-Core-OE-PSC)" <
> >> > > chuan.liao at hp.com>
> >> > > > To: "彭春洪" <pengchunhong at gmail.com>, engine-devel at ovirt.org
> >> > > > Sent: Wednesday, March 26, 2014 10:43:13 AM
> >> > > > Subject: Re: [Engine-devel] debug ovirt-engine
> >> > > >
> >> > > >
> >> > > >
> >> > > > Hi,
> >> > > >
> >> > > >
> >> > > >
> >> > > > Do you go through the wiki page OVirt Engine Development Environment
> >> > > >
> >> > > > http://www.ovirt.org/OVirt_Engine_Development_Environment
> >> > > >
> >> > > >
> >> > > >
> >> > > > you can debug with
> >> > > >
> >> > > > Debug port is available via port 8787, to be used by Eclipse or any
> >> other
> >> > > > debugger.
> >> > > >
> >> > > >
> >> > > >
> >> > > > Best Regards,
> >> > > > Jason Liao
> >> > > >
> >> > > >
> >> > > >
> >> > > > From: engine-devel-bounces at ovirt.org [mailto:
> >> > > engine-devel-bounces at ovirt.org]
> >> > > > On Behalf Of 彭春洪
> >> > > > Sent: 2014 年 3 月 26 日 16:13
> >> > > > To: engine-devel at ovirt.org
> >> > > > Subject: [Engine-devel] debug ovirt-engine
> >> > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > Hello,everybody.when I develop with ovirt-engine,I have meet some
> >> > > obstacles
> >> > > > because of without the debug environment. So I really want to know
> >> how to
> >> > > > debug the frontend and backend of ovirt-engine by break points or by
> >> > > step .
> >> > > > Thank you for help!
> >> > > >
> >> > > > _______________________________________________
> >> > > > Engine-devel mailing list
> >> > > > Engine-devel at ovirt.org
> >> > > > http://lists.ovirt.org/mailman/listinfo/engine-devel
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>



More information about the Engine-devel mailing list