Parotitis is a painful swelling of your parotid glands, which are salivary glands located between the ear and jaw. The most common cause is a virus, such as mumps, herpes, or Epstein-Barr. Bacterial infections, diabetes, tumours or stones in the saliva glands, and tooth problems also may cause parotitis.