From 2d84d527cafffb12c33ce038403af0756102c53c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 29 Oct 2017 13:46:43 +0100 Subject: [PATCH] Don't cherry-pick: - fixed JNDI name, has to be: java:module/ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../financial/receipt/FinancialsReceiptConverter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/jfinancials/converter/financial/receipt/FinancialsReceiptConverter.java b/src/java/org/mxchange/jfinancials/converter/financial/receipt/FinancialsReceiptConverter.java index 157edb89..768cd726 100644 --- a/src/java/org/mxchange/jfinancials/converter/financial/receipt/FinancialsReceiptConverter.java +++ b/src/java/org/mxchange/jfinancials/converter/financial/receipt/FinancialsReceiptConverter.java @@ -25,6 +25,7 @@ import javax.faces.convert.FacesConverter; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; +import org.mxchange.jfinancials.beans.financial.model.receipt.FinancialsReceiptWebRequestBean; import org.mxchange.jfinancials.beans.financial.model.receipt.FinancialsReceiptWebRequestController; import org.mxchange.jfinancials.exceptions.receipt.ReceiptNotFoundException; import org.mxchange.jfinancials.model.receipt.BillableReceipt; @@ -51,10 +52,10 @@ public class FinancialsReceiptConverter implements Converter { final Context initial = new InitialContext(); // Lookup EJB - RECEIPT_CONTROLLER = (FinancialsReceiptWebRequestController) initial.lookup("java:module/receiptController!org.mxchange.jfinancials.beans.financial.model.receipt.FinancialsReceiptWebRequestController"); + RECEIPT_CONTROLLER = (FinancialsReceiptWebRequestController) initial.lookup(String.format("java:module/%s", FinancialsReceiptWebRequestBean.class.getSimpleName())); //NOI18N } catch (final NamingException ex) { // Throw it again - throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); + throw new ConverterException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Cannot lookup backing bean", ex.getMessage()), ex); //NOI18N } } -- 2.39.5