[Engine-devel] Building oVirt from source

Stephen Liu satimis at yahoo.com
Wed Nov 14 10:18:03 UTC 2012


Hi Laszlo,

# find / -name engine.ear
find: `/run/user/satimis/gvfs': Permission denied
/home/satimis/ovirt-engine/ear/target/engine.ear

NOT;
/usr/share/jboss-as/standalone/deployments/engine.ear/

# find / -name jboss-as
find: `/run/user/satimis/gvfs': Permission denied
/home/satimis/jboss-as


B.R.
Stephen L






>________________________________
> From: Laszlo Hornyak <lhornyak at redhat.com>
>To: Stephen Liu <satimis at yahoo.com> 
>Cc: engine-devel at ovirt.org 
>Sent: Wednesday, November 14, 2012 4:36 PM
>Subject: Re: [Engine-devel] Building oVirt from source
> 
>Hi,
>
>We may have some infrastructure problems. Looks like gerrit is dead as well :(
>Does this directory exist?
>/usr/share/jboss-as/standalone/deployments/engine.ear/
>
>
>----- Original Message -----
>> From: "Stephen Liu" <satimis at yahoo.com>
>> To: "Laszlo Hornyak" <lhornyak at redhat.com>
>> Cc: engine-devel at ovirt.org
>> Sent: Wednesday, November 14, 2012 9:25:56 AM
>> Subject: Re: [Engine-devel] Building oVirt from source
>> 
>> 
>> 
>> Hi,
>> 
>> I have sent another email to the list under the subject: "Deploy
>> error again". But it never came to the list:
>> 
>> Subject : Deploy error again
>> 
>> Failure:-
>> 
>> $ mvn clean install -Pdep,setup
>> /usr/lib/jvm/java
>> [INFO] Scanning for projects...
>> [WARNING]
>> [WARNING] Some problems were encountered while building the effective
>> model for org.ovirt.engine:engine-server-ear:ear:3.1.0
>> [WARNING] 'build.plugins.plugin.version' for
>> org.apache.maven.plugins:maven-ear-plugin is missing. @ line 154,
>> column 15
>> [WARNING] 'distributionManagement.repository.id' must not be 'local',
>> this identifier is reserved for the local repository, using it for
>> other repositories will corrupt your repository metadata. @ line 18,
>> column 11
>> [WARNING]
>> [WARNING] It is highly recommended to fix these problems because they
>> threaten the stability of your build.
>> [WARNING]
>> [WARNING] For this reason, future Maven versions might no longer
>> support building such malformed projects.
>> [WARNING]
>> [INFO]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building oVirt Server EAR 3.1.0
>> [INFO]
>> ------------------------------------------------------------------------
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
>> (5 KB at 46.7 KB/sec)
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
>> (24 KB at 255.8 KB/sec)
>> [INFO]
>> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
>> engine-server-ear ---
>> [INFO] Deleting /home/satimis/ovirt-engine/ear/target
>> [INFO]
>> [INFO] --- maven-antrun-plugin:1.3:run (undeploy) @ engine-server-ear
>> ---
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.pom
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.pom
>> (3 KB at 77.6 KB/sec)
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
>> (5 KB at 137.9 KB/sec)
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
>> (10 KB at 232.4 KB/sec)
>> Downloading:
>> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar
>> (12 KB at 79.1 KB/sec)
>> Downloaded:
>> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
>> (245 KB at 226.5 KB/sec)
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
>> (1292 KB at 384.3 KB/sec)
>> [INFO] Executing tasks
>> [echo] *** Deleting
>> /usr/share/jboss-as/standalone/deployments/engine.ear/...
>> [INFO] Executed tasks
>> [INFO]
>> [INFO] --- maven-ear-plugin:2.6:generate-application-xml
>> (default-generate-application-xml) @ engine-server-ear ---
>> [INFO] Generating application.xml
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
>> @ engine-server-ear ---
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] skip non existing resourceDirectory
>> /home/satimis/ovirt-engine/ear/src/main/java
>> [INFO] Copying 1 resource
>> [INFO]
>> [INFO] --- maven-ear-plugin:2.6:ear (default-ear) @ engine-server-ear
>> ---
>> [INFO] Copying artifact[jar:org.ovirt.engine.core:common:3.1.0]
>> to[lib/engine-common.jar]
>> [INFO] Copying artifact[jar:org.ovirt.engine.core:compat:3.1.0]
>> to[lib/engine-compat.jar]
>> [INFO] Copying artifact[jar:org.ovirt.engine.core:dal:3.1.0]
>> to[lib/engine-dal.jar]
>> [INFO] Copying artifact[jar:org.ovirt.engine.core:utils:3.1.0]
>> to[lib/engine-utils.jar]
>> [INFO] Copying
>> artifact[jar:org.ovirt.engine.core:engineencryptutils:3.1.0]
>> to[lib/engine-encryptutils.jar]
>> [INFO] Copying artifact[jar:org.ovirt.engine.core:vdsbroker:3.1.0]
>> to[lib/engine-vdsbroker.jar]
>> [INFO] Copying artifact[war:org.ovirt.engine.core:root-war:3.1.0]
>> to[root.war] (unpacked)
>> [INFO] Copying artifact[war:org.ovirt.engine.ui:rmw-war:3.1.0]
>> to[ovirtengineweb.war] (unpacked)
>> [INFO] Copying
>> artifact[war:org.ovirt.engine.api:restapi-webapp:3.1.0]
>> to[restapi.war] (unpacked)
>> [INFO] Copying artifact[war:org.ovirt.engine.ui:userportal:3.1.0]
>> to[userportal.war] (unpacked)
>> [INFO] Copying artifact[war:org.ovirt.engine.ui:webadmin:3.1.0]
>> to[webadmin.war] (unpacked)
>> [INFO] Copying artifact[ejb:org.ovirt.engine.ui:genericapi:3.1.0]
>> to[engine-genericapi.jar] (unpacked)
>> [INFO] Copying artifact[ejb:org.ovirt.engine.core:scheduler:3.1.0]
>> to[engine-scheduler.jar] (unpacked)
>> [INFO] Copying artifact[ejb:org.ovirt.engine.core:bll:3.1.0]
>> to[engine-bll.jar] (unpacked)
>> [INFO] Copying artifact[jar:commons-codec:commons-codec:1.4]
>> to[lib/commons-codec-1.4.jar]
>> [INFO] Copying
>> artifact[jar:org.hibernate:hibernate-validator:4.0.2.GA]
>> to[lib/hibernate-validator-4.0.2.GA.jar]
>> [INFO] Copying artifact[jar:javax.validation:validation-api:1.0.0.GA]
>> to[lib/validation-api-1.0.0.GA.jar]
>> [INFO] Copying artifact[jar:org.slf4j:slf4j-api:1.5.6]
>> to[lib/slf4j-api-1.5.6.jar]
>> [INFO] Copying artifact[jar:javax.xml.bind:jaxb-api:2.1]
>> to[lib/jaxb-api-2.1.jar]
>> [INFO] Copying artifact[jar:javax.xml.stream:stax-api:1.0-2]
>> to[lib/stax-api-1.0-2.jar]
>> [INFO] Copying artifact[jar:javax.activation:activation:1.1]
>> to[lib/activation-1.1.jar]
>> [INFO] Copying artifact[jar:com.sun.xml.bind:jaxb-impl:2.1.3]
>> to[lib/jaxb-impl-2.1.3.jar]
>> [INFO] Copying
>> artifact[jar:org.hibernate:hibernate-annotations:3.4.0.GA]
>> to[lib/hibernate-annotations-3.4.0.GA.jar]
>> [INFO] Copying artifact[jar:org.hibernate:ejb3-persistence:1.0.2.GA]
>> to[lib/ejb3-persistence-1.0.2.GA.jar]
>> [INFO] Copying
>> artifact[jar:org.hibernate:hibernate-commons-annotations:3.1.0.GA]
>> to[lib/hibernate-commons-annotations-3.1.0.GA.jar]
>> [INFO] Copying artifact[jar:org.hibernate:hibernate-core:3.3.0.SP1]
>> to[lib/hibernate-core-3.3.0.SP1.jar]
>> [INFO] Copying artifact[jar:antlr:antlr:2.7.6]
>> to[lib/antlr-2.7.6.jar]
>> [INFO] Copying artifact[jar:dom4j:dom4j:1.6.1]
>> to[lib/dom4j-1.6.1.jar]
>> [INFO] Copying artifact[jar:xml-apis:xml-apis:1.0.b2]
>> to[lib/xml-apis-1.0.b2.jar]
>> [INFO] Copying
>> artifact[jar:org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:1.0.0.Final]
>> to[lib/jboss-interceptors-api_1.1_spec-1.0.0.Final.jar]
>> [INFO] Copying
>> artifact[jar:org.ovirt.engine.core:engine-tools-common:3.1.0]
>> to[lib/engine-tools-common-3.1.0.jar]
>> [INFO] Copying
>> artifact[jar:commons-beanutils:commons-beanutils:1.8.2]
>> to[lib/commons-beanutils-1.8.2.jar]
>> [INFO] Copying artifact[jar:org.apache.mina:mina-core:2.0.1]
>> to[lib/mina-core-2.0.1.jar]
>> [INFO] Copying artifact[jar:org.apache.sshd:sshd-core:0.7.0]
>> to[lib/sshd-core-0.7.0.jar]
>> [INFO] Copying artifact[jar:org.apache.commons:commons-compress:1.3]
>> to[lib/commons-compress-1.3.jar]
>> [INFO] Copying artifact[jar:commons-lang:commons-lang:2.4]
>> to[lib/commons-lang-2.4.jar]
>> [INFO] Copying artifact[jar:org.apache.xmlrpc:xmlrpc-client:3.1.3]
>> to[lib/xmlrpc-client-3.1.3.jar]
>> [INFO] Copying artifact[jar:org.apache.xmlrpc:xmlrpc-common:3.1.3]
>> to[lib/xmlrpc-common-3.1.3.jar]
>> [INFO] Copying
>> artifact[jar:org.apache.ws.commons.util:ws-commons-util:1.0.2]
>> to[lib/ws-commons-util-1.0.2.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-jdbc:3.1.1.RELEASE]
>> to[lib/spring-jdbc-3.1.1.RELEASE.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-tx:3.1.1.RELEASE]
>> to[lib/spring-tx-3.1.1.RELEASE.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework.ldap:spring-ldap-core:1.3.1.RELEASE]
>> to[lib/spring-ldap-core-1.3.1.RELEASE.jar]
>> [INFO] Copying
>> artifact[jar:commons-httpclient:commons-httpclient:3.1]
>> to[lib/commons-httpclient-3.1.jar]
>> [INFO] Copying
>> artifact[jar:commons-collections:commons-collections:3.1]
>> to[lib/commons-collections-3.1.jar]
>> [INFO] Copying artifact[jar:org.quartz-scheduler:quartz:2.1.2]
>> to[lib/quartz-2.1.2.jar]
>> [INFO] Copying artifact[jar:c3p0:c3p0:0.9.1.1]
>> to[lib/c3p0-0.9.1.1.jar]
>> [INFO] Copying
>> artifact[jar:org.ovirt.engine.core:searchbackend:3.1.0]
>> to[lib/searchbackend-3.1.0.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-core:3.1.1.RELEASE]
>> to[lib/spring-core-3.1.1.RELEASE.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-asm:3.1.1.RELEASE]
>> to[lib/spring-asm-3.1.1.RELEASE.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-beans:3.1.1.RELEASE]
>> to[lib/spring-beans-3.1.1.RELEASE.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-context:3.1.1.RELEASE]
>> to[lib/spring-context-3.1.1.RELEASE.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-aop:3.1.1.RELEASE]
>> to[lib/spring-aop-3.1.1.RELEASE.jar]
>> [INFO] Copying artifact[jar:aopalliance:aopalliance:1.0]
>> to[lib/aopalliance-1.0.jar]
>> [INFO] Copying
>> artifact[jar:org.springframework:spring-expression:3.1.1.RELEASE]
>> to[lib/spring-expression-3.1.1.RELEASE.jar]
>> [INFO] Copy ear sources to
>> /home/satimis/ovirt-engine/ear/target/engine
>> [WARNING] resourcesDir is deprecated. Please use the
>> earSourceDirectory property instead.
>> [INFO] Copy ear resources to
>> /home/satimis/ovirt-engine/ear/target/engine
>> [INFO] Including custom manifest
>> file[/home/satimis/ovirt-engine/ear/target/engine/META-INF/MANIFEST.MF]
>> [INFO] Building jar: /home/satimis/ovirt-engine/ear/target/engine.ear
>> [INFO]
>> [INFO] --- maven-dependency-plugin:2.1:copy (copy-quartz-jar) @
>> engine-server-ear ---
>> [INFO] Configured Artifact: org.quartz-scheduler:quartz:2.1.2:jar
>> [INFO] Copying quartz-2.1.2.jar to
>> /home/satimis/ovirt-engine/ear/target/quartz/quartz-2.1.2.jar
>> [INFO]
>> [INFO] --- maven-antrun-plugin:1.3:run (deploy) @ engine-server-ear
>> ---
>> [INFO] Executing tasks
>> [echo] *** Copying updated files from target/engine/ to
>> /usr/share/jboss-as/standalone/deployments/engine.ear/...
>> [copy] Copying 1168 files to
>> /usr/share/jboss-as/standalone/deployments/engine.ear
>> [copy] Copying
>> /home/satimis/ovirt-engine/ear/target/engine/engine-bll.jar/org/ovirt/engine/core/bll/VmCountVdsLoadBalancingAlgorithm$1.class
>> to
>> /usr/share/jboss-as/standalone/deployments/engine.ear/engine-bll.jar/org/ovirt/engine/core/bll/VmCountVdsLoadBalancingAlgorithm$1.class
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 15.761s
>> [INFO] Finished at: Wed Nov 14 14:34:56 HKT 2012
>> [INFO] Final Memory: 16M/295M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-antrun-plugin:1.3:run (deploy) on
>> project engine-server-ear: An Ant BuildException has occured: Failed
>> to copy
>> /home/satimis/ovirt-engine/ear/target/engine/engine-bll.jar/org/ovirt/engine/core/bll/VmCountVdsLoadBalancingAlgorithm$1.class
>> to
>> /usr/share/jboss-as/standalone/deployments/engine.ear/engine-bll.jar/org/ovirt/engine/core/bll/VmCountVdsLoadBalancingAlgorithm$1.class
>> due to java.io.FileNotFoundException
>> /usr/share/jboss-as/standalone/deployments/engine.ear/engine-bll.jar/org/ovirt/engine/core/bll/VmCountVdsLoadBalancingAlgorithm$1.class
>> (No such file or directory) -> [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/MojoExecutionException
>> 
>> 
>> PluginExecutionException
>> https://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>> .....
>> You should report this problem to the maintainer of the plugin.
>> 
>> 
>> Please help. How to fix this problem and continue?
>> 
>> TIA
>> 
>> B.R.
>> Stephen L
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> From: Laszlo Hornyak <lhornyak at redhat.com>
>> To: Stephen Liu <satimis at yahoo.com>
>> Cc: engine-devel at ovirt.org
>> Sent: Wednesday, November 14, 2012 3:43 PM
>> Subject: Re: [Engine-devel] Building oVirt from source
>> 
>> 
>> 
>> ----- Original Message -----
>> > From: "Stephen Liu" < satimis at yahoo.com >
>> > To: engine-devel at ovirt.org
>> > Sent: Tuesday, November 13, 2012 5:20:46 PM
>> > Subject: [Engine-devel] Building oVirt from source
>> > 
>> > 
>> > 
>> > 
>> > Hi all,
>> > 
>> > Have another round to build oVirt from source following;
>> > 
>> > Building Engine Draft
>> > http://wiki.ovirt.org/wiki/Building_Engine_Draft
>> > 
>> > OS - Fedora 17 desktop 64bit, fresh and clean installed.
>> > 
>> > Not much problem encountered up to "Installing JBoss AS" except
>> > follows:
>> > 
>> > 1)
>> > Maven personal settings
>> > ==================
>> > 
>> > $ mkdir $HOME/.m2
>> > $ wget -O $HOME/.m2/settings.xml
>> > http://wiki.ovirt.org/w/images/1/18/Settings.xml.png
>> > 
>> > (it should read
>> > " http://wiki.ovirt.org/w/images/1/18/Settings.xml.png ")
>> > ^^^^ (not www)
>> > 
>> > 2)
>> > Check that the application server starts correctly:
>> > 
>> > $ cd $JBOSS_HOME/bin
>> > $ ./standalone.sh -b 0.0.0.0
>> > ===================================================
>> > 
>> > JBoss Bootstrap Environment
>> > 
>> > JBOSS_HOME: /home/satimis/jboss-as
>> > 
>> > JAVA: java
>> > 
>> > JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation
>> > -Xms64m -Xmx512m -XX:MaxPermSize=256m
>> > -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true
>> > -Dsun.rmi.dgc.client.gcInterval=3600000
>> > -Dsun.rmi.dgc.server.gcInterval=3600000
>> > -Djboss.modules.system.pkgs=org.jboss.byteman
>> > -Djava.awt.headless=tr
>> > ....
>> > .....
>> > 
>> > 22:14:38,217 INFO [org.jboss.as] (Controller Boot Thread)
>> > JBAS015874:
>> > JBoss AS 7.1.1.Final "Brontes" started in 6662ms - Started 133 of
>> > 208 services (74 services are passive or on-demand)
>> 
>> So your jboss is started at this point and should e listening on 8080
>> for http connections. Is ovirt running?
>> If not you should check if it is there in
>> standalone/deployments/engine.ear
>> Also, see if engine.ear.deployed exists. touch engine.dodeploy to
>> kick jboss and deploy it.
>> 
>> > 
>> > 
>> > It hung here;
>> > 
>> > Press [Ctrl] + c
>> > it continued to display:
>> > 
>> > 19:49,653 INFO [org.jboss.as.osgi] (MSC service thread 1-3)
>> > JBAS011942: Stopping OSGi Framework
>> > 22:19:49,701 INFO [org.jboss.as.logging] JBAS011503: Restored
>> > bootstrap log handlers
>> > 22:19:49,726 INFO [org.apache.coyote.http11.Http11Protocol] Pausing
>> > Coyote HTTP/1.1 on http--0.0.0.0-8080
>> > 22:19:49,727 INFO [org.apache.coyote.http11.Http11Protocol]
>> > Stopping
>> > Coyote HTTP/1.1 on http--0.0.0.0-8080
>> > 22:19:49,729 INFO [com.arjuna.ats.jbossatx] ARJUNA032018:
>> > Destroying
>> > TransactionManagerService
>> > 22:19:49,730 INFO [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping
>> > transaction recovery manager
>> > 22:19:49,753 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final
>> > "Brontes" stopped in 111ms
>> > 
>> > Is it normal? Without problem?
>> > 
>> > Thanks
>> > 
>> > B.R.
>> > Stephen L
>> > _______________________________________________
>> > Engine-devel mailing list
>> > Engine-devel at ovirt.org
>> > http://lists.ovirt.org/mailman/listinfo/engine-devel
>> > 
>> 
>> 
>> 
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/engine-devel/attachments/20121114/12f678b1/attachment.html>


More information about the Engine-devel mailing list