Recommended solutions based on your search
Make sure the glassfish server is running and hosts the file and is accessible to the public. If that's not the case, change the permissions of the file in the server's file system.
Use the relative path when providing the location of the file. Place the file in the project folder and access it according to the hierarchy. If you want to access a file outside the project folder, provide the absolute path.