On 21/01/2013 10:34, ernst Developer wrote:
Hi,

Today I run into errors, while starting Syncope 1.1.0-SNAPSHOT, clean build of today morning. Can somebody help me with these errors?

Hi Ernst,
read my replies below.

======== first error ==========
54 syncopePersistenceUnit WARN [main] openjpa.Runtime - An error occurred while registering a ClassTransformer with PersistenceUnitInfo: name 'syncopePersistenceUnit', root URL [file:/opt/syncope/webapps/syncope/WEB-INF/classes]. The error has been consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time class transformation will not be available.

This is harmless, as reported by OpenJPA at http://openjpa.apache.org/integration.html#integrating-with-spring

I have also updated the FAQ list with this: https://cwiki.apache.org/confluence/display/SYNCOPE/FAQ

======== second error =========

Jan 21, 2013 4:31:14 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springContextInitializer' defined in file [/opt/syncope/webapps/syncope/WEB-INF/classes/org/apache/syncope/core/init/SpringContextInitializer.class]: Invocation of init method failed; nested exception is org.springframework.dao.DataIntegrityViolationException: Duplicate entry 'schema.version' for key 1 {prepstmnt 319187494 INSERT INTO ACT_GE_PROPERTY(NAME_,VALUE_,REV_) VALUES (?,?,?)} [code=1062, state=23000]; nested exception is <openjpa-2.2.1-r422266:1396819 fatal store error> org.apache.openjpa.persistence.EntityExistsException: Duplicate entry 'schema.version' for key 1 {prepstmnt 319187494 INSERT INTO ACT_GE_PROPERTY(NAME_,VALUE_,REV_) VALUES (?,?,?)} [code=1062, state=23000]

This is due to recent modification introduced by SYNCOPE-241.

Basically, you have to remove any entry starting with <ACT... from your content.xml and place it in a new file activiticontent.xml

Regards.

--
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/

Reply via email to