[jboss-cvs] JBossAS SVN: r58430 - trunk/ejb3/src/main/org/jboss/injection
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Nov 15 21:56:22 EST 2006
Author: scott.stark at jboss.org
Date: 2006-11-15 21:56:20 -0500 (Wed, 15 Nov 2006)
New Revision: 58430
Modified:
trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java
Log:
Include the resource name in the exception message.
Modified: trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java 2006-11-16 02:42:41 UTC (rev 58429)
+++ trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java 2006-11-16 02:56:20 UTC (rev 58430)
@@ -163,7 +163,8 @@
String mappedName = ref.mappedName();
if (mappedName == null || mappedName.equals(""))
{
- throw new RuntimeException("You did not specify a @Resource.mappedName() on " + clazz.getName() + " and there is no binding for that enc name in XML");
+ throw new RuntimeException("You did not specify a @Resource.mappedName() for name: "
+ +ref.name()+", class: " + clazz.getName() + " and there is no binding for that enc name in XML");
}
container.getEncInjectors().put(encName, new LinkRefEncInjector(encName, ref.mappedName(), "@Resource"));
}
More information about the jboss-cvs-commits
mailing list