Dirichlet solitons in field theories