[Engine-devel] Failure to deploy (with JBoss 7.1)

Oved Ourfalli ovedo at redhat.com
Tue Jan 17 13:05:02 UTC 2012


The question is what did you have in the previous environment (as5) in postgres-ds.xml file.


----- Original Message -----
> From: "Yaniv Kaul" <ykaul at redhat.com>
> To: "Oved Ourfalli" <ovedo at redhat.com>
> Cc: engine-devel at ovirt.org
> Sent: Tuesday, January 17, 2012 2:43:24 PM
> Subject: Re: [Engine-devel] Failure to deploy (with JBoss 7.1)
> 
> On 01/17/2012 10:57 AM, Oved Ourfalli wrote:
> > Did you use a username+password in the previous datasource (in AS5)
> > or was a trust defined for the postgres instance?
> >
> > If needed, the username+password must be defined in
> > $JBOSS_HOME/standalone/configuration/standalone.xml file:
> > 1. If encrypted then in the EncryptDBPassword section, and
> > reference it in the data source, by using the following instead of
> > username:
> >                          <security-domain>
> >                              EncryptDBPassword
> >                          </security-domain>
> > 2. If not encrypted then just put the password in the datasource
> > definition.
> 
> This is what I have:
> <security>
> <user-name>
>                              postgres
> </user-name>
> <!-- IF NEEDED CHANGE THIS TO THE CORRECT PASSWORD/SECURITY DOMAIN
> -->
> <!--password>
>                              password
> </password-->
> <!--security-domain>
>                              EncryptDBPassword
> </security-domain-->
> </security>
> 
> So as far as I understand, both options are actually commented out.
> Y.
> 
> >
> > I can connect to your machine and help if you want.
> >
> > Oved
> >
> >
> > ----- Original Message -----
> >> From: "Yaniv Kaul"<ykaul at redhat.com>
> >> To: engine-devel at ovirt.org
> >> Sent: Tuesday, January 17, 2012 10:46:55 AM
> >> Subject: [Engine-devel] Failure to deploy (with JBoss 7.1)
> >>
> >> After successful compilation and deployment, on a host that ran
> >> previously fine, I'm getting some error on executing.
> >> Not sure what happened to postgres access - it ran fine previously
> >> (previous JBoss):
> >>
> >> [ykaul at ykaul ear]$
> >> /usr/local/jboss-as-7.1.0.Beta1b/bin/standalone.sh
> >> =========================================================================
> >>
> >>     JBoss Bootstrap Environment
> >>
> >>     JBOSS_HOME: /usr/local/jboss-as-7.1.0.Beta1b
> >>
> >>     JAVA: java
> >>
> >>     JAVA_OPTS: -server -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=true
> >>
> >> =========================================================================
> >>
> >> 10:42:57,373 INFO  [org.jboss.modules] JBoss Modules version
> >> 1.1.0.CR4
> >> 10:42:57,608 INFO  [org.jboss.msc] JBoss MSC version 1.0.1.GA
> >> 10:42:57,665 INFO  [org.jboss.as] JBoss AS 7.1.0.Beta1b "Tesla"
> >> starting
> >> 10:42:58,429 INFO  [org.jboss.as] Creating http management service
> >> using  socket-binding (management-http)
> >> 10:42:58,434 INFO  [org.xnio] XNIO Version 3.0.0.CR5
> >> 10:42:58,461 INFO  [org.xnio.nio] XNIO NIO Implementation Version
> >> 3.0.0.CR5
> >> 10:42:58,471 INFO  [org.jboss.remoting] JBoss Remoting version
> >> 3.2.0.CR6
> >> 10:42:58,477 INFO  [org.jboss.as.logging] JBAS011502: Removing
> >> bootstrap
> >> log handlers
> >> 2012-01-17 10:42:58,502 INFO  [org.jboss.as.clustering]
> >> (ServerService
> >> Thread Pool -- 28) JBAS010300: Activating Infinispan subsystem.
> >> 2012-01-17 10:42:58,551 INFO  [org.jboss.as.connector] (MSC
> >> service
> >> thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar
> >> 1.0.5.Final)
> >> 2012-01-17 10:42:58,564 INFO  [org.jboss.as.naming] (ServerService
> >> Thread Pool -- 35) JBAS011800: Activating Naming Subsystem
> >> 2012-01-17 10:42:58,592 INFO  [org.jboss.as.osgi] (ServerService
> >> Thread
> >> Pool -- 36) JBAS011910: Activating OSGi Subsystem
> >> 2012-01-17 10:42:58,602 INFO  [org.jboss.as.naming] (MSC service
> >> thread
> >> 1-1) JBAS011802: Starting Naming Service
> >> 2012-01-17 10:42:58,605 INFO  [org.jboss.as.security]
> >> (ServerService
> >> Thread Pool -- 41) Activating Security Subsystem
> >> 2012-01-17 10:42:58,614 INFO  [org.jboss.as.mail.extension] (MSC
> >> service
> >> thread 1-1) JBAS015400: Bound mail session
> >> [java:jboss/mail/Default]
> >> 2012-01-17 10:42:58,615 INFO  [org.jboss.as.security] (MSC service
> >> thread 1-1) Picketbox version=4.0.6.Beta1
> >> 2012-01-17 10:42:58,623 INFO
> >> [org.jboss.as.connector.subsystems.datasources] (ServerService
> >> Thread
> >> Pool -- 24) JBAS010404: Deploying non-JDBC-compliant driver class
> >> org.postgresql.Driver (version 8.4)
> >> 2012-01-17 10:42:58,694 INFO  [org.jboss.as.remoting] (MSC service
> >> thread 1-1) Listening on /127.0.0.1:9999
> >> 2012-01-17 10:42:58,697 INFO  [org.jboss.as.remoting] (MSC service
> >> thread 1-2) Listening on /0.0.0.0:4447
> >> 2012-01-17 10:42:58,785 INFO
> >> [org.apache.catalina.core.AprLifecycleListener] (MSC service
> >> thread
> >> 1-4)
> >> The Apache Tomcat Native library which allows optimal performance
> >> in
> >> production environments was not found on the java.library.path:
> >> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/local/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
> >> 2012-01-17 10:42:58,864 INFO
> >>   [org.apache.coyote.http11.Http11Protocol]
> >> (MSC service thread 1-4) Starting Coyote HTTP/1.1 on
> >> http--0.0.0.0-8080
> >> 2012-01-17 10:42:59,312 INFO
> >>   [org.jboss.as.server.deployment.scanner]
> >> (MSC service thread 1-4) JBAS015012: Started
> >> FileSystemDeploymentService
> >> for directory
> >> /usr/local/jboss-as-7.1.0.Beta1b/standalone/deployments
> >> 2012-01-17 10:42:59,341 INFO
> >> [org.jboss.as.connector.subsystems.datasources] (MSC service
> >> thread
> >> 1-4)
> >> JBAS010400: Bound data source [java:/ENGINEDataSource]
> >> 2012-01-17 10:42:59,355 INFO  [org.jboss.as] (Controller Boot
> >> Thread)
> >> JBoss AS 7.1.0.Beta1b "Tesla" started in 2128ms - Started 129 of
> >> 190
> >> services (60 services are passive or on-demand)
> >> 2012-01-17 10:42:59,420 INFO
> >>   [org.jboss.as.server.deployment.scanner]
> >> (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed
> >> deployment engine.ear
> >> 2012-01-17 10:42:59,459 WARN
> >> [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (JCA
> >> PoolFiller) IJ000610: Unable to fill pool:
> >> javax.resource.ResourceException: Could not create connection
> >> at
> >> org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:277)
> >>       at
> >> org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:235)
> >>       at
> >> org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:736)
> >> [ironjacamar-core-impl-1.0.5.Final.jar:]
> >>       at
> >> org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:683)
> >> [ironjacamar-core-impl-1.0.5.Final.jar:]
> >>       at
> >> org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97)
> >> [ironjacamar-core-impl-1.0.5.Final.jar:]
> >>       at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
> >> Caused by: org.postgresql.util.PSQLException: FATAL: password
> >> authentication failed for user "postgres"
> >>       at
> >> org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:291)
> >>       at
> >> org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
> >>       at
> >> org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
> >>       at
> >> org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
> >>       at
> >> org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
> >>       at
> >> org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
> >>       at
> >> org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
> >>       at
> >>       org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
> >>       at org.postgresql.Driver.makeConnection(Driver.java:393)
> >>       at org.postgresql.Driver.connect(Driver.java:267)
> >>       at
> >> org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:249)
> >>       ... 5 more
> >>
> >> 2012-01-17 10:42:59,491 INFO
> >>   [org.jboss.as.server.deployment.scanner]
> >> (DeploymentScanner-threads - 1) JBAS015003: Found engine.ear in
> >> deployment directory. To trigger deployment create a file called
> >> engine.ear.dodeploy
> >> 2012-01-17 10:42:59,502 ERROR [org.jboss.as.controller]
> >> (DeploymentScanner-threads - 2) JBAS014612: Operation ("add")
> >> failed
> >> -
> >> address: ([("deployment" =>  "engine.ear")]):
> >> java.lang.IllegalStateException: JBAS014666: Duplicate resource
> >> [("deployment" =>  "engine.ear")]
> >>       at
> >> org.jboss.as.controller.OperationContextImpl.addResource(OperationContextImpl.java:503)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.OperationContextImpl.createResource(OperationContextImpl.java:471)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.server.deployment.DeploymentAddHandler.execute(DeploymentAddHandler.java:170)
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:322)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:216)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:152)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.CompositeOperationHandler.execute(CompositeOperationHandler.java:84)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:322)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:216)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:152)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.server.deployment.DeploymentDeployHandler.execute(DeploymentDeployHandler.java:68)
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:322)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:216)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:152)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.server.deployment.DeploymentAddHandler.execute(DeploymentAddHandler.java:183)
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:322)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:216)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:152)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.CompositeOperationHandler.execute(CompositeOperationHandler.java:84)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:322)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:216)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:152)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.CompositeOperationHandler.execute(CompositeOperationHandler.java:84)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:322)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:216)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:152)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:426)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:322)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:216)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:152)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:115)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:296)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:286)
> >> [jboss-as-controller-7.1.0.Beta1b.jar:]
> >>       at
> >> org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$DeploymentTask.call(FileSystemDeploymentService.java:1178)
> >>       at
> >> org.jboss.as.server.deployment.scanner.FileSystemDeploymentService$DeploymentTask.call(FileSystemDeploymentService.java:1168)
> >>       at
> >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> [:1.6.0_22]
> >>       at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >>       [:1.6.0_22]
> >>       at
> >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> >> [:1.6.0_22]
> >>       at
> >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> >> [:1.6.0_22]
> >>       at
> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >> [:1.6.0_22]
> >>       at
> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >> [:1.6.0_22]
> >>       at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
> >>       at org.jboss.threads.JBossThread.run(JBossThread.java:122)
> >> [jboss-threads-2.0.0.GA.jar:]
> >>
> >> 2012-01-17 10:42:59,505 ERROR
> >> [org.jboss.as.server.deployment.scanner]
> >> (DeploymentScanner-threads - 1) JBAS014654: Composite operation
> >> was
> >> rolled back
> >> 2012-01-17 10:42:59,506 ERROR
> >> [org.jboss.as.server.deployment.scanner]
> >> (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation
> >> failed
> >> and was rolled back. Steps that failed:" =>  {"Operation step-1"
> >> =>
> >> "JBAS014749: Operation handler failed: JBAS014666: Duplicate
> >> resource
> >> [(\"deployment\" =>  \"engine.ear\")]"}}
> >> _______________________________________________
> >> Engine-devel mailing list
> >> Engine-devel at ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/engine-devel
> >>
> 
> _______________________________________________
> 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