You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2007/01/20 23:47:26 UTC
svn commit: r498201 -
/incubator/openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/JNDIContext.java
Author: dblevins
Date: Sat Jan 20 14:47:25 2007
New Revision: 498201
URL: http://svn.apache.org/viewvc?view=rev&rev=498201
Log:
a hopefully clearer error messge.. people tend to thing the error means that the bean could not be looked up but *is* in the system
Modified:
incubator/openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/JNDIContext.java
Modified: incubator/openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/JNDIContext.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/JNDIContext.java?view=diff&rev=498201&r1=498200&r2=498201
==============================================================================
--- incubator/openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/JNDIContext.java (original)
+++ incubator/openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/JNDIContext.java Sat Jan 20 14:47:25 2007
@@ -208,7 +208,7 @@
return createDataSource((DataSourceMetaData) res.getResult());
case ResponseCodes.JNDI_NOT_FOUND:
- throw new NameNotFoundException(name + " not found");
+ throw new NameNotFoundException(name + " does not exist in the system. Check that the app was successfully deployed.");
case ResponseCodes.JNDI_NAMING_EXCEPTION:
throw (NamingException) res.getResult();