WFLY-3623 fix + testcase

Spurious ":" in @Resource annotation 'name' value results in invalid binding but no deployment error

Upstream + 8.x: https://issues.jboss.org/browse/WFLY-3623
BZ 6.x:  https://issues.jboss.org/browse/WFLY-3623

PRs:
master: https://github.com/wildfly/wildfly/pull/6587
8.x : https://github.com/wildfly/wildfly/pull/6588
EAP 6.x: https://github.com/jbossas/jboss-eap/pull/1554

Rather than making this throw NamingException and then adding catch blocks everywhere it would be better for this to just wrap the NamingException internally.