[Users] Deploy failed

Stephen Liu satimis at yahoo.com
Sun Nov 11 10:51:47 UTC 2012



----- Original Message -----

> From: Allon Mureinik <amureini at redhat.com>
> To: Stephen Liu <satimis at yahoo.com>
> Cc: users at ovirt.org
> Sent: Sunday, November 11, 2012 6:43 PM
> Subject: Re: [Users] Deploy failed
> 
>>  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
> 
> Seems like you some old .class files lying around, for some reason.
> Have you tried manually removing your "target" dirs before building?

Hi Allon,

I think it would be better for me to reinstall Fedora 17.  Because I have been following 2 instructions to build oVirt on it.  Some old files are still hanging around.

I'll come back later.

Thanks

Stephen L





> 
> ----- Original Message -----
>>  From: "Stephen Liu" <satimis at yahoo.com>
>>  To: users at ovirt.org
>>  Sent: Sunday, November 11, 2012 11:02:41 AM
>>  Subject: [Users] Deploy failed
>> 
>>  Hi all,
>> 
>> 
>>  Document to follow;
>>  http://wiki.ovirt.org/wiki/Building_Engine_Draft
>> 
>> 
>>  Build
>>  =====
>> 
>>  [satimis at localhost dbscripts]$ cd $OVIRT_HOME
>> 
>>  [satimis at localhost ovirt-engine]$ mvn clean install
>> 
>>  without complaint.
>> 
>> 
>>  Deploy
>>  ======
>> 
>>  [satimis at localhost ovirt-engine]$ cd $OVIRT_HOME/ear
>> 
>>  [satimis at localhost ear]$ 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 82.5 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 343.6 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 101.2 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 164.4 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 221.6 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 82.3 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 203.9 KB/sec)
>>  Downloaded:
>>  http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.jar
>>  (1292 KB at 384.4 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: 8.705s
>>  [INFO] Finished at: Sun Nov 11 16:45:53 HKT 2012
>>  [INFO] Final Memory: 14M/207M
>>  [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
>> 
>> 
>> 
>>  Any advice?
>> 
>> 
>>  B.R.
>>  Stephen L
>> 
>>  _______________________________________________
>>  Users mailing list
>>  Users at ovirt.org
>>  http://lists.ovirt.org/mailman/listinfo/users
>> 
> 



More information about the Users mailing list