Cuban and Chinese military leaders have met in Havana to reaffirm ties between the two communist countries .