From 5e0c160a940c38b7eaf5c8b8ebe0ff7c9db27128 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 7 Sep 2015 15:29:44 +0200 Subject: [PATCH] Well, if that is EJB, it sucks somehow: Logging not allowed and a complexer class structure leaves strange errors behind: ---------------------------------------- Caused by: java.lang.NoClassDefFoundError: [Lorg/mxchange/jcore/model/contact/gender/Gender; at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.privateGetPublicMethods(Class.java:2690) at java.lang.Class.getMethods(Class.java:1467) at org.glassfish.ejb.deployment.descriptor.EjbDescriptor.addAllInterfaceMethodsIn(EjbDescriptor.java:2577) at org.glassfish.ejb.deployment.descriptor.EjbDescriptor.getLocalRemoteBusinessMethodDescriptors(EjbDescriptor.java:2530) ... 53 more Caused by: java.lang.ClassNotFoundException: org.mxchange.jcore.model.contact.gender.Gender ---------------------------------------- MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by:Roland Häder --- src/org/mxchange/jcore/BaseFrameworkSystem.java | 10 +++++++--- src/org/mxchange/jcore/FrameworkInterface.java | 8 -------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/org/mxchange/jcore/BaseFrameworkSystem.java b/src/org/mxchange/jcore/BaseFrameworkSystem.java index aed856b..4f27ff0 100644 --- a/src/org/mxchange/jcore/BaseFrameworkSystem.java +++ b/src/org/mxchange/jcore/BaseFrameworkSystem.java @@ -24,8 +24,8 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.mxchange.jcore.application.Application; import org.mxchange.jcore.client.Client; -import org.mxchange.jcore.model.contact.Contact; import org.mxchange.jcore.manager.Manageable; +import org.mxchange.jcore.model.contact.Contact; /** * General class @@ -101,8 +101,12 @@ public class BaseFrameworkSystem implements FrameworkInterface { return this.application; } - @Override - public final Logger getLogger () { + /** + * Getter for logger instance + * + * @return Logger instance + */ + protected final Logger getLogger () { return this.LOG; } diff --git a/src/org/mxchange/jcore/FrameworkInterface.java b/src/org/mxchange/jcore/FrameworkInterface.java index 69f99d8..efefe25 100644 --- a/src/org/mxchange/jcore/FrameworkInterface.java +++ b/src/org/mxchange/jcore/FrameworkInterface.java @@ -16,7 +16,6 @@ */ package org.mxchange.jcore; -import org.apache.logging.log4j.Logger; import org.mxchange.jcore.application.Application; import org.mxchange.jcore.client.Client; import org.mxchange.jcore.manager.Manageable; @@ -46,13 +45,6 @@ public interface FrameworkInterface { */ public Client getClient (); - /** - * Getter for logger - * - * @return Logger - */ - public Logger getLogger (); - /** * Application instance * -- 2.39.5