The following is a known issue in TeamForge connector 2.3. It has a workaround.
When the connector integrated application is removed and added again to the same project in TeamForge, connector fails with the following exception:
org.hibernate.exception.ConstraintViolationException: could not insert: [com.collabnet.ccf.ccfmaster.server.domain.ExternalApp]; nested exception is javax.persistence.PersistenceException:
org.hibernate.exception.ConstraintViolationException: could not insert: [com.collabnet.ccf.ccfmaster.server.domain.ExternalApp]
DELETE FROM “EXTERNAL_APP" WHERE (LINK_ID = 'prpl1000');