Liferay is a Gartner Magic Quadrant Leader for the Sixth Year! Find out why

Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jose Alvarez de Lara
can't deploy liferay 6.2.0 on glassfish 3.1.2.2
January 3, 2013 8:54 AM
Answer

Jose Alvarez de Lara

Rank: Junior Member

Posts: 45

Join Date: December 10, 2012

Recent Posts

Hi,

I have a thread at liferay deployment but no one answer me
so I am going to try in this forum.

Recently I a had a problem with the default locale of my 6.1.1 ce ga2 installation so I removed all
and now I am trying to install on glassfish 3.1.2.2 liferay 6.2.0 ce m2 glassfish
bundle but I can not. I get the following exception,

33:10,413 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#9][BasicResourcePool:1841] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c0a9e9 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (3). Last acquisition attempt exception: java.sql.SQLException: Fallo al obtener un bloqueo en la base de datos (Failed while trying to get a database locking): lockFile: org.hsqldb.persist.LockFile@be90a9ab[file =/home/jose/servers/glassfish-3.1.2.2/data/hsql/lportal.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat read: 2013-01-03 16:33:09 heartbeat - read: -1183 ms. at org.hsqldb.jdbc.Util.sqlException(Util.java:111) at org.hsqldb.jdbc.JDBCConnection.<init>(JDBCConnection.java:3600) at org.hsqldb.jdbc.JDBCDriver.getConnection(JDBCDriver.java:324) at org.hsqldb.jdbc.JDBCDriver.connect(JDBCDriver.java:260) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:148) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

Are you using HSQLDB?

Best regards,
Jose
Jose Alvarez de Lara
RE: can't deploy liferay 6.2.0 on glassfish 3.1.2.2
January 3, 2013 12:47 PM
Answer

Jose Alvarez de Lara

Rank: Junior Member

Posts: 45

Join Date: December 10, 2012

Recent Posts

Hi,

Well maybe I am going a little quick but I am trying liferay 6.1.1 ce ga2 on glassfish and I am getting the same exception,

33:52,932 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5][BasicResourcePool:1841] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1c8a63f -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (3). Last acquisition attempt exception: java.sql.SQLException: Fallo al obtener un bloqueo en la base de datos: lockFile: org.hsqldb.persist.LockFile@be90a9ab[file =/home/jose/servers/glassfish-3.1.2.2/data/hsql/lportal.lck, exists=true, locked=false, valid=false, ] method: checkHeartbeat read: 2013-01-03 20:33:51 heartbeat - read: -8179 ms. at org.hsqldb.jdbc.Util.sqlException(Util.java:111) at org.hsqldb.jdbc.JDBCConnection.<init>(JDBCConnection.java:3600) at org.hsqldb.jdbc.JDBCDriver.getConnection(JDBCDriver.java:324) at org.hsqldb.jdbc.JDBCDriver.connect(JDBCDriver.java:260) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:148) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

Are you changed the database from MySQL to HSQLDB?
Please, will you give me a solution?

Best regards,
Jose
Juan Gonzalez
RE: can't deploy liferay 6.2.0 on glassfish 3.1.2.2
January 3, 2013 11:43 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2623

Join Date: October 28, 2008

Recent Posts

Hola Jose,

Try stopping server, and deleting all contents inside this directory:

/home/jose/servers/glassfish-3.1.2.2/data

Then restart.

About 6.2.0 and glassfish remember to download the correct liferay/glassfish bundle. You can't deploy liferay war alone (some other jars and changes are required).
Jose Alvarez de Lara
RE: can't deploy liferay 6.2.0 on glassfish 3.1.2.2
January 5, 2013 7:15 AM
Answer

Jose Alvarez de Lara

Rank: Junior Member

Posts: 45

Join Date: December 10, 2012

Recent Posts

Gracias Juan,

It was a problem of mine. My system crashed an MySQL was corrupted.
I have installed my system again and now everything is going right. emoticon

Excuse my confusion.

Best regards,
Jose
Juan Gonzalez
RE: can't deploy liferay 6.2.0 on glassfish 3.1.2.2
January 5, 2013 11:22 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2623

Join Date: October 28, 2008

Recent Posts

Weird because that error is about HSQL, so seems it was using HSQL instead of MySQL.