[jboss-cvs] JBossAS SVN: r67324 - trunk/ejb3/src/main/org/jboss/ejb3.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Nov 21 03:34:00 EST 2007


Author: wolfc
Date: 2007-11-21 03:34:00 -0500 (Wed, 21 Nov 2007)
New Revision: 67324

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 07:52:58 UTC (rev 67323)
+++ trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java	2007-11-21 08:34:00 UTC (rev 67324)
@@ -586,9 +586,9 @@
 
       List<Class<?>> list = getBusinessInterfaces(container.getBeanClass());
       if (list.size() == 0)
-         throw new RuntimeException("Use of empty @Remote on bean class and there are no valid business interfaces: " + container.getEjbName());
+         throw new RuntimeException("Use of empty @Remote on bean " + container.getEjbName() + " and there are no valid business interfaces");
       if (list.size() > 1)
-         throw new RuntimeException("Use of empty @Remote on bean class and there are more than one default interface: " + container.getEjbName());
+         throw new RuntimeException("Use of empty @Remote on bean " + container.getEjbName() + " with more than one default interface " + list);
       Class<?>[] rtn = {(Class<?>) list.get(0)};
       ri = new RemoteImpl(rtn);
       ((EJBContainer) container).getAnnotations().addClassAnnotation(javax.ejb.Remote.class, ri);




More information about the jboss-cvs-commits mailing list