From: Roland Haeder Date: Mon, 7 Sep 2015 13:30:48 +0000 (+0200) Subject: Well, if that is EJB, it sucks somehow: Logging not allowed and a complexer class... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef55a79132b7df1c6d1de01e1601982a9b89bd86;p=jshop-lib.git 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 ---------------------------------------- Signed-off-by:Roland Häder --- diff --git a/.gitignore b/.gitignore index 1cd7a86..4a544a7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /build/ /dist/ /*.properties +/src/test/ \ No newline at end of file diff --git a/lib/jcore.jar b/lib/jcore.jar index e5e79d6..c7c6f6c 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index fa4c45a..53e009a 100644 Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index 1828f72..9bfd620 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/src/org/mxchange/jshopeelib/beans/ShopBean.java b/src/org/mxchange/jshopeelib/beans/ShopBean.java deleted file mode 100644 index cf51e6a..0000000 --- a/src/org/mxchange/jshopeelib/beans/ShopBean.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2015 Roland Haeder - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package org.mxchange.jshopeelib.beans; - -import org.mxchange.jcoreee.beans.FrameworkBean; - -/** - * A shop bean interface - * - * @author Roland Haeder - */ -public interface ShopBean extends FrameworkBean { -} diff --git a/src/org/mxchange/jshopeelib/beans/remote/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopeelib/beans/remote/basket/BasketSessionBeanRemote.java index 0c17339..e2bb568 100644 --- a/src/org/mxchange/jshopeelib/beans/remote/basket/BasketSessionBeanRemote.java +++ b/src/org/mxchange/jshopeelib/beans/remote/basket/BasketSessionBeanRemote.java @@ -16,11 +16,11 @@ */ package org.mxchange.jshopeelib.beans.remote.basket; +import java.io.Serializable; import java.rmi.RemoteException; import java.util.Map; import javax.ejb.Remote; import org.mxchange.jshopcore.model.item.AddableBasketItem; -import org.mxchange.jshopeelib.beans.ShopBean; /** * An interface for a basket bean @@ -28,7 +28,7 @@ import org.mxchange.jshopeelib.beans.ShopBean; * @author Roland Haeder */ @Remote -public interface BasketSessionBeanRemote extends ShopBean { +public interface BasketSessionBeanRemote extends Serializable { /** * Adds given item instance to this basket * @param item Item instance to add diff --git a/src/org/mxchange/jshopeelib/beans/remote/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopeelib/beans/remote/customer/CustomerSessionBeanRemote.java index 69598ee..2644ed9 100644 --- a/src/org/mxchange/jshopeelib/beans/remote/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jshopeelib/beans/remote/customer/CustomerSessionBeanRemote.java @@ -16,8 +16,8 @@ */ package org.mxchange.jshopeelib.beans.remote.customer; +import java.io.Serializable; import javax.ejb.Remote; -import org.mxchange.jshopeelib.beans.ShopBean; /** * An interface for customer beans @@ -25,5 +25,5 @@ import org.mxchange.jshopeelib.beans.ShopBean; * @author Roland Haeder */ @Remote -public interface CustomerSessionBeanRemote extends ShopBean { +public interface CustomerSessionBeanRemote extends Serializable { } diff --git a/src/org/mxchange/jshopeelib/beans/remote/data/ShopDataBeanRemote.java b/src/org/mxchange/jshopeelib/beans/remote/data/ShopDataBeanRemote.java index 0c3157e..203a8e7 100644 --- a/src/org/mxchange/jshopeelib/beans/remote/data/ShopDataBeanRemote.java +++ b/src/org/mxchange/jshopeelib/beans/remote/data/ShopDataBeanRemote.java @@ -16,10 +16,10 @@ */ package org.mxchange.jshopeelib.beans.remote.data; +import java.io.Serializable; import java.util.List; import javax.ejb.Remote; import org.mxchange.jcore.model.contact.gender.Gender; -import org.mxchange.jshopeelib.beans.ShopBean; /** * A remote interface for static shop data @@ -27,7 +27,7 @@ import org.mxchange.jshopeelib.beans.ShopBean; * @author Roland Haeder */ @Remote -public interface ShopDataBeanRemote extends ShopBean { +public interface ShopDataBeanRemote extends Serializable { /** * Getter for all genders as array diff --git a/src/org/mxchange/jshopeelib/beans/remote/shop/ShopSessionBeanRemote.java b/src/org/mxchange/jshopeelib/beans/remote/shop/ShopSessionBeanRemote.java index 2076e22..7181d17 100644 --- a/src/org/mxchange/jshopeelib/beans/remote/shop/ShopSessionBeanRemote.java +++ b/src/org/mxchange/jshopeelib/beans/remote/shop/ShopSessionBeanRemote.java @@ -16,15 +16,14 @@ */ package org.mxchange.jshopeelib.beans.remote.shop; +import java.io.Serializable; import java.rmi.RemoteException; import java.util.Deque; -import java.util.Iterator; import javax.ejb.Remote; import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException; import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; import org.mxchange.jshopcore.model.category.Category; import org.mxchange.jshopcore.model.product.Product; -import org.mxchange.jshopeelib.beans.ShopBean; /** * A remote-call interface for the shop @@ -32,31 +31,7 @@ import org.mxchange.jshopeelib.beans.ShopBean; * @author Roland Haeder */ @Remote -public interface ShopSessionBeanRemote extends ShopBean { - - /** - * Some "getter" for an iterator of only available products - * - * @return Only available products - * @throws java.rmi.RemoteException If anything went wrong - */ - public Iterator getAvailableProductsIterator () throws RemoteException; - - /** - * Some "getter" for an iterator of all products - * - * @return All products - * @throws java.rmi.RemoteException If anything went wrong - */ - public Iterator getAllProductsIterator () throws RemoteException; - - /** - * Some "getter" for an iterator of all categories - * - * @return All categories - * @throws java.rmi.RemoteException If anything went wrong - */ - public Iterator getAllCategoriesIterator () throws RemoteException; +public interface ShopSessionBeanRemote extends Serializable { /** * Some "getter" for a linked list of only available products