On 01/07/2014 11:28 AM, Vojtech Szocs wrote:
Hi,
(CC'ing Juan, please feel free to correct/add to my comments.)
I think that ERRORs such as:
[ERROR] [AppClassLoader@...] ...
[ERROR] [GinBridgeClassLoader@...] ...
come from AspectJ load-time weaver [1] logging its output to stderr.
[1] GWT compilation includes JVM args:
-javaagent:/path/to/aspectjweaver-${aspectj.version}.jar
We use AspectJ [2] to prevent GWT compiler from optimizing-out code
in backend business entities, i.e. some code in business entities is
not used on client and GWT compiler thinks its dead code, but when
it's optimized-out we would face serialization errors on server.
[2] frontend/webadmin/modules/gwt-extension/
src/main/java/org/ovirt/engine/ui/gwtextension/DontPrune.java
So these kinds of ERRORs are harmless.
The other ERRORs such as:
[ERROR] ... java.util.prefs.FileSystemPreferences$1 run
[ERROR] INFO: Created user preferences directory.
come from Java's "Preferences" subsystem, as we override default
preference file locations [3] in order to avoid conflicts when
running multiple JVMs at once, i.e. parallel Engine build.
[3] GWT compilation includes JVM args:
-Djava.io.tmpdir="${project.build.directory}/tmp"
-Djava.util.prefs.systemRoot="${project.build.directory}/tmp/.java"
-Djava.util.prefs.userRoot="${project.build.directory}/tmp/.java"
Also these kinds of ERRORs are harmless.
So for now, you can safely ignore these ERRORs.
To me, it seems that when gwt-maven-plugin:compile goal executes,
it spawns new JVM (invoking GWT compiler) and *redirects* stdout
of this JVM to plugin logger's stderr.
Juan, what are your thoughts? (maybe I'm missing something)
You are right Vojtech, those error messages are harmless.
----- Original Message -----
> From: "Chuan Liao (Jason, MCXS-CQ)" <chuan.liao(a)hp.com>
> To: engine-devel(a)ovirt.org
> Sent: Tuesday, January 7, 2014 3:47:57 AM
> Subject: [Engine-devel] Does these ERROR will effect WebAdmin build?
>
>
>
> Hi All,
>
>
>
> When I build the WebAdmin from development mode on oVirt engine, I meet these
> ERROR message:
>
>
>
> [INFO]
>
> [INFO] --- gwt-maven-plugin:2.5.1:compile (gwtcompile) @ webadmin ---
>
> [WARNING] Don't declare gwt-dev as a project dependency. This may introduce
> complex dependency conflicts
>
> [ERROR] [AppClassLoader@11a40fff] info AspectJ Weaver Version 1.6.11 built on
> Tuesday Mar 15, 2011 at 15:31:04 GMT
>
> [ERROR] [AppClassLoader@11a40fff] info register classloader
> sun.misc.Launcher$AppClassLoader@11a40fff
>
> [ERROR] [AppClassLoader@11a40fff] info using configuration
>
file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
>
> [ERROR] [AppClassLoader@11a40fff] info using configuration
>
file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
>
> [ERROR] [AppClassLoader@11a40fff] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
>
> [ERROR] [AppClassLoader@11a40fff] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
>
> [ERROR] Jan 06, 2014 6:38:29 PM java.util.prefs.FileSystemPreferences$1 run
>
> [ERROR] INFO: Created user preferences directory.
>
> [INFO] Compiling module org.ovirt.engine.ui.webadmin.WebAdmin
>
> [ERROR] [AppClassLoader@11a40fff] warning javax.* types are not being woven
> because the weaver option '-Xset:weaveJavaxPackages=true' has not been
> specified
>
> [ERROR] [GinBridgeClassLoader@8c2ac32] info AspectJ Weaver Version 1.6.11
> built on Tuesday Mar 15, 2011 at 15:31:04 GMT
>
> [ERROR] [GinBridgeClassLoader@8c2ac32] info register classloader
> com.google.gwt.inject.rebind.GinBridgeClassLoader@8c2ac32
>
> [ERROR] [GinBridgeClassLoader@8c2ac32] info using configuration
>
file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT.jar!/META-INF/aop.xml
>
> [ERROR] [GinBridgeClassLoader@8c2ac32] info using configuration
>
file:/home/jason/workspace/ovirt-engine/frontend/webadmin/modules/gwt-extension/target/gwt-extension-3.4.0-SNAPSHOT-sources.jar!/META-INF/aop.xml
>
> [ERROR] [GinBridgeClassLoader@8c2ac32] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
>
> [ERROR] [GinBridgeClassLoader@8c2ac32] info register aspect
> org.ovirt.engine.ui.gwtextension.DontPrune
>
> [INFO] Computing all possible rebind results for
> 'org.ovirt.engine.ui.webadmin.ApplicationTemplates'
>
>
>
> Build seems that the oVirt engine could work well after the build,
>
> does anybody know these errors maybe effect something, and how to prevent
> them from maven build log?
>
>
>
> Best Regards,
> Jason Liao
--
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.