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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jan 19 11:56:07 EST 2007


Author: bdecoste
Date: 2007-01-19 11:56:07 -0500 (Fri, 19 Jan 2007)
New Revision: 59843

Modified:
   trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java
Log:
Logging for business interface problems did not include the ejb name


Modified: trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java	2007-01-19 16:55:12 UTC (rev 59842)
+++ trunk/ejb3/src/main/org/jboss/ejb3/ProxyFactoryHelper.java	2007-01-19 16:56:07 UTC (rev 59843)
@@ -90,9 +90,9 @@
 
          ArrayList list = getBusinessInterfaces(container.getBeanClass());
          if (list.size() == 0)
-            throw new RuntimeException("Use of empty @Local on bean class and there are no valid business interfaces");
+            throw new RuntimeException("Use of empty @Local on bean class and there are no valid business interfaces: " + container.getEjbName());
          if (list.size() > 1)
-            throw new RuntimeException("Use of empty @Local on bean class and there are more than one default interface");
+            throw new RuntimeException("Use of empty @Local on bean class and there are more than one default interface: " + container.getEjbName());
          Class[] rtn = {(Class) list.get(0)};
          li = new LocalImpl(rtn);
          ((EJBContainer) container).getAnnotations().addClassAnnotation(javax.ejb.Local.class, li);
@@ -104,7 +104,7 @@
       Class[] ri = getRemoteInterfaces(container);
 
       if (li == null && ri == null && endpoint == null && (beanClass.getInterfaces() == null || beanClass.getInterfaces().length == 0))
-         throw new RuntimeException("bean class has no local, webservice, or remote interfaces defined and does not implement at least one business interface");
+         throw new RuntimeException("bean class has no local, webservice, or remote interfaces defined and does not implement at least one business interface: " + container.getEjbName());
 
       // introspect implemented interfaces.
       if (li == null)
@@ -372,9 +372,9 @@
 
       ArrayList 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");
+         throw new RuntimeException("Use of empty @Remote on bean class and there are no valid business interfaces: " + container.getEjbName());
       if (list.size() > 1)
-         throw new RuntimeException("Use of empty @Remote on bean class and there are more than one default interface");
+         throw new RuntimeException("Use of empty @Remote on bean class and there are more than one default interface: " + container.getEjbName());
       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