Jack had this problem when he was younger. l. It didn't matter if he was in his crate for two hours or eight, every single time he'd pee in it. We started taking out his bedding (because washing it everyday was a pain) and then we'd have to give him a bath daily. Eventually he did grow out of it. We have a feeling that he was raised in a kennel situation so he was used to peeing in kennels/crates.

But I agree with K9Soul, we really need some more information!