Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm having a problem with quartz, it gives a java.sql.SQLException with this error message:

ERROR [PortalJobStore:3799] ClusterManager: Error managing cluster: Failure obtaining db row lock: Line 1: FOR UPDATE clause allowed only for DECLARE CURSOR.

Apparently quartz in Liferay Enterprise Edition tries to use an SQL that isn't allowed by MSSQL.

What can be done to fix this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can tell quartz what SQL to use by adding this property org.quartz.jobStore.selectWithLockSQL in the file portal-ext.properties like this:

org.quartz.jobStore.selectWithLockSQL = SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?
share|improve this answer
    
I actually joined serverfault only to upvote both your question and answer. Thanks a lot! –  yair Mar 7 '13 at 19:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.