[jboss-cvs] JBossAS SVN: r82535 - projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 23 15:28:07 EST 2008
Author: petemuir
Date: 2008-12-23 15:28:06 -0500 (Tue, 23 Dec 2008)
New Revision: 82535
Modified:
projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java
Log:
Better error if JBoss EJB3 is not updated
Modified: projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java
===================================================================
--- projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java 2008-12-23 18:34:07 UTC (rev 82534)
+++ projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java 2008-12-23 20:28:06 UTC (rev 82535)
@@ -1,7 +1,8 @@
package org.jboss.webbeans.integration.jbossas.ejb3;
+import java.util.ArrayList;
import java.util.List;
-import java.util.ArrayList;
+
import javax.servlet.ServletContext;
import org.jboss.dependency.spi.ControllerContext;
@@ -112,6 +113,13 @@
}
}
+ if (context == null)
+ {
+ // User reports context comes back null
+ throw new IllegalStateException("Ejb3ReferenceResolver cannot be found, check that you have correctly updated JBoss EJB3");
+ }
+
+
// If there's an error with the context, throw it
Throwable error = context.getError();
if (error != null)
More information about the jboss-cvs-commits
mailing list