[jboss-cvs] JBossAS SVN: r67325 - trunk/ejb3/src/main/org/jboss/ejb3.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Nov 21 04:10:46 EST 2007
Author: wolfc
Date: 2007-11-21 04:10:46 -0500 (Wed, 21 Nov 2007)
New Revision: 67325
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java
Log:
EJBTHREE-1124: improved error message
Modified: trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java 2007-11-21 08:34:00 UTC (rev 67324)
+++ trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java 2007-11-21 09:10:46 UTC (rev 67325)
@@ -116,7 +116,7 @@
// If @Local is defined with no value and there are no business interfaces
if (businessInterfaces.size() == 0){
- throw new RuntimeException("Use of empty @Local on bean class and there are no valid business interfaces: " + container.getEjbName());
+ throw new RuntimeException("Use of empty @Local on bean " + container.getEjbName() + " and there are no valid business interfaces");
}
// If @Local is defined with no value and there is more than one business interface
else if (businessInterfaces.size() > 0)
@@ -141,7 +141,7 @@
// If more than one business interface is directly implemented by the bean class
if(beanClassBusinessInterfaces.size()>1)
{
- throw new RuntimeException("Use of empty @Local on bean class and there are more than one default interface: " + container.getEjbName());
+ throw new RuntimeException("Use of empty @Local on bean " + container.getEjbName() + " with more than one default interface " + beanClassBusinessInterfaces);
}
// JIRA EJBTHREE-1062
// EJB 3 4.6.6
More information about the jboss-cvs-commits
mailing list