]> git.mxchange.org Git - jaddressbook-share-lib.git/blobdiff - src/org/mxchange/addressbook/validator/user/UserIdValidator.java
The exception's message now contains the thrown exception's message, too.
[jaddressbook-share-lib.git] / src / org / mxchange / addressbook / validator / user / UserIdValidator.java
index c3bdc2c79e208054ee778ca53801777643daaca0..93923a9f5a693b06f7e2a5e3d75764eea576d732 100644 (file)
@@ -78,10 +78,10 @@ public class UserIdValidator extends BaseLongValidator implements Validator {
                        this.loggerBeanLocal = (LoggerBeanLocal) context.lookup("java:global/jcore-logger-ejb/logger!org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal"); //NOI18N
 
                        // ... and user controller
-                       this.userBean = (UserSessionBeanRemote) context.lookup("java:global/juser-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N
+                       this.userBean = (UserSessionBeanRemote) context.lookup("java:global/addressbook-ejb/user!org.mxchange.jusercore.model.user.UserSessionBeanRemote"); //NOI18N
                } catch (final NamingException ex) {
                        // Continue to throw it
-                       throw new RuntimeException("context.lookup() failed.", ex); //NOI18N
+                       throw new RuntimeException(MessageFormat.format("context.lookup() failed: {0}", ex.getMessage()), ex); //NOI18N
                }
        }