The problem is not in your authentication mechanism, but in your connection with the database (as specified in the jndi file, geoportal.xml).
The error is telling you the geoportal web app cannot make the database connection. Start by tracking down where "MACHINENAME$" is written and change it to a valid machine-name, IP, or DNS entry for your database machine.