Glutamine--tRNA ligase; part of the gene cluster that mediates the biosynthesis of virensols and trichoxide, fungal natural products that contain or are derived from a salicylaldehyde core (PubMed:31790246). VirJ does not seem to play any role in virensols and trichoxide biosynthesis (PubMed:31790246). ATP + L-glutamine + tRNA(Gln) = AMP + diphosphate + L-glutaminyl-tRNA(Gln) Belongs to the class-I aminoacyl-tRNA synthetase family.