Fixed by using an URI for reading ports-xml-file.