Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 4827 invoked from network); 6 Jun 2008 18:24:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2008 18:24:01 -0000 Received: (qmail 63087 invoked by uid 500); 6 Jun 2008 18:24:02 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 63047 invoked by uid 500); 6 Jun 2008 18:24:02 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 63036 invoked by uid 99); 6 Jun 2008 18:24:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 11:24:02 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2008 18:23:11 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K4gb1-0004Zh-DI for user@geronimo.apache.org; Fri, 06 Jun 2008 11:23:27 -0700 Message-ID: <17698446.post@talk.nabble.com> Date: Fri, 6 Jun 2008 11:23:27 -0700 (PDT) From: hofmanndavid To: user@geronimo.apache.org Subject: Re: DeploymentException: Module was not an EJB: EntitiesES.jar In-Reply-To: <247871.32658.qm@web25502.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: hofmanndavid@gmail.com References: <698404.33221.qm@web25501.mail.ukl.yahoo.com> <586BB031-8140-4D5D-BCB9-D4E08CFF9C2D@gmail.com> <247871.32658.qm@web25502.mail.ukl.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hmm, I have exactly the same problem.=20 Doesn't the EJB3 spec state that there shoud be at least one session bean in a ejb module ? ismael GranPoll=C3=BFfffff3n wrote: >=20 > Hello, and thanks for answering. I solved the problem: I had the entity > beans in "EntitiesES.jar" and the session beans in "EJBModelES.jar". When > I did put them together inside the same jar the problem dissapeared.=20 >=20 > I don't know why this procedure solved the problem, so if someone knows > about this, the information is welcome.=20 >=20 >=20 > --- El mi=C3=A9, 14/5/08, Kevan Miller escribi= =C3=B3: >=20 >> De: Kevan Miller >> Asunto: Re: DeploymentException: Module was not an EJB: EntitiesES.jar >> Para: user@geronimo.apache.org >> Fecha: mi=C3=A9rcoles, 14 mayo, 2008 12:07 >> On May 9, 2008, at 12:18 PM, ismael GranPoll=C3=BFfffff3n wrote: >>=20 >> > >> > Hello. I am trying to migrate from JBoss to Geronimo, >> and I am =20 >> > having difficulties with my EJB jars. I am using >> Geronimo 2.1.1 and =20 >> > Geronimo 2.0.2, both of them with Tomcat. I get the >> following error: >> > >> > Unable to deploy: >> org.apache.geronimo.common.DeploymentException: =20 >> > Module was not an EJB: EntitiesES.jar >> > >> > I am trying to migrate an Ear application, I followed >> the EJB =20 >> > example from the wiki, but I cannot make my >> application to run. I =20 >> > hope someone can help, please ask me any doubt about >> the problem >> > The directories of my Ear are as follows: >> > >> > EJBAplicationES.ear >> > + META-INF >> > + EJBModelES.jar >> > + EJBAplicationES.war >> > + EntitiesES.jar >> > + database.xml >> > >> > >> > >> > The "EntitiesES.jar" contains this: >> > + es >> > + META-INF >> > >> > "es" folder have my ejbs, META-INF holds the >> "openejb-jar.xml" and =20 >> > "persistence.xml" archives. The contents of >> these are: >> > >> > OPENEJB-JAR.XML: >> > >> > > encoding=3D"UTF-8"?> >> > >> > > xmlns=3D"http://www.openejb.org/xml/ns/openejb-jar-2.1"> >> > > xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.2 >>=20 >> > "> >> > >> > >> > >> > =20 >> EntitiesES >> > >> > jar >> > >> > >> > >> > >> > =20 >> org.apache.geronimo.configs >> > =20 >> openjpa >> > car >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > PERSISTENCE.XML: >> > >> > > encoding=3D"UTF-8"?> >> > > xmlns=3D"http://java.sun.com/xml/ns/persistence" >> > =20 >> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >> =20 >> > version=3D"1.0" >> > =20 >> xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence >>=20 >> >=20 >> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> >> > >> > > name=3D"EJBAplicationES"> >> > >> > Entity Beans for >> EJBAplicationES >> > >> > >> > =20 >> > >> org.apache.openjpa.persistence.PersistenceProviderImpl>=20 >> > provider> >> > >> > =20 >> es.model.document.entity.Document >> > =20 >> es.model.user.entity.Language >> > =20 >> es.model.user.entity.User >> > =20 >> es.model.util.parameter.entity.Parameter >> > >> > >> > > name=3D"openjpa.jdbc.SynchronizeMappings" =20 >> > value=3D"false" /> >> > >> > >> > =20 >> database >> > =20 >> database >> > >> > >> > >> > >> > >> > >> > >> > In the last one I declare the "database" >> datasource, I have that =20 >> > files but I think that there are too much code in this >> e-mail; feel =20 >> > free to ask me for this or other configuration files. >> Thank you for =20 >> > reading! >>=20 >>=20 >> Hi, >> I don't see anything obviously wrong. Are you certain >> about the layout =20 >> of your EntitiesES.jar? >>=20 >> You are welcom to create a Jira issue >> (https://issues.apache.org/jira/browse/GERONIMO=20 >> ) and attach your ear file there ("Attach File"). >>=20 >> --kevan >=20 >=20 > ______________________________________________=20 > Enviado desde Correo Yahoo! La bandeja de entrada m=C3=A1s inteligente. >=20 >=20 --=20 View this message in context: http://www.nabble.com/DeploymentException%3A-= Module-was-not-an-EJB%3A-EntitiesES.jar-tp17151462s134p17698446.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.