I rebuilt the project and everything worked like it used to be. So I presume my configuration is correct, and there was something with the Netbeans Project cache which was missconfigured.
the basic discussion was to determine if a RESOURCE_LOCAL configured persistence unit would require a JNDI name. In fact it shouldn't. I guess I clicked on something unintentionally and Netbeans got stuck with that.