The nature of Herpes virus is to establish dormancy in the neural ganglia.
Any stress on the body can activate the latent virus resulting in lesions
(cold sores, etc.); especially anything that immune compromizes the host.
Ulcers count as stress and therefore has the possibility of activating
virus. Especially since someone with an active ulcer probably is not
eating very well. Hope this helps.