Probably whatever lacquer the trim has on it can't bond with your paint. You'll need some kind of primer that bonds to everything. Prime the trim with that, then paint. Not sure what the brand names are in the USA, but your friendly neighborhood paint store will be able to recommend something.