Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 58091 invoked from network); 13 May 2008 22:08:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 22:08:04 -0000 Received: (qmail 8482 invoked by uid 500); 13 May 2008 22:08:03 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 8465 invoked by uid 500); 13 May 2008 22:08:03 -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 8454 invoked by uid 99); 13 May 2008 22:08:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 15:08:03 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 22:07:14 +0000 Received: by py-out-1112.google.com with SMTP id a25so2547100pyi.11 for ; Tue, 13 May 2008 15:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; bh=jEMtZmJltSaF3zN0ZUMF0ydWi6CGRKx4wmlMjcuRFQE=; b=g5DjLlJIXiMyb5uvzpA1d1PV9iZc3oqMACt+KFyzEFvg4+VFrWKMKLIBmJLsNs+nI3/wPjquIEZVuK5Y830t/cTF+aj371jHq72fpZdFyjokEEExjx4IGG8H/1LFcxCdnft7VlTGdKN0iJ8X/BP1mUur9ky2iakrznExThX/4bw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject:date:references:x-mailer; b=MUqyvTaE0bQ01NntWESy9G9ZvGwwsvatkemTHnDNJ/0JxHR5Cu97aqeBHvdehUr6NWQwcueCnFDI1xKLUYy0H3P90DudIYdjdaOkblCZFzYjKwdMCc+nI7eL95JY/BUADfGMez/v7zezf4JzTb+eJOM9SAhRg4ki+GjU+GUmhAA= Received: by 10.35.75.15 with SMTP id c15mr400179pyl.62.1210716448785; Tue, 13 May 2008 15:07:28 -0700 (PDT) Received: from coltrane-009027164156.raleigh.ibm.com ( [129.33.49.251]) by mx.google.com with ESMTPS id u62sm409464pyb.23.2008.05.13.15.07.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 May 2008 15:07:27 -0700 (PDT) Message-Id: <586BB031-8140-4D5D-BCB9-D4E08CFF9C2D@gmail.com> From: Kevan Miller To: user@geronimo.apache.org In-Reply-To: <698404.33221.qm@web25501.mail.ukl.yahoo.com> Content-Type: multipart/alternative; boundary=Apple-Mail-25-481011555 Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: DeploymentException: Module was not an EJB: EntitiesES.jar Date: Tue, 13 May 2008 18:07:25 -0400 References: <698404.33221.qm@web25501.mail.ukl.yahoo.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-25-481011555 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable On May 9, 2008, at 12:18 PM, ismael GranPoll=FFfffff3n wrote: > > 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: > > > > > "> > > > > EntitiesES > > jar > > > > > org.apache.geronimo.configs > openjpa > car > > > > > > > > > > > PERSISTENCE.XML: > > > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" = =20 > version=3D"1.0" > = xsi:schemaLocation=3D"http://java.sun.com/xml/ns/persistence=20 > http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> > > > > Entity Beans for EJBAplicationES > > > =20 > org.apache.openjpa.persistence.PersistenceProviderImpl provider> > > es.model.document.entity.Document > es.model.user.entity.Language > es.model.user.entity.User > es.model.util.parameter.entity.Parameter > > > value=3D"false" /> > > > database > 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! Hi, I don't see anything obviously wrong. Are you certain about the layout =20= of your EntitiesES.jar? You are welcom to create a Jira issue = (https://issues.apache.org/jira/browse/GERONIMO=20 ) and attach your ear file there ("Attach File"). --kevan= --Apple-Mail-25-481011555 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On May 9, 2008, = at 12:18 PM, ismael GranPoll=FFfffff3n wrote:


Hello. = I am trying to migrate from JBoss to Geronimo, and I am having = difficulties with my EJB jars. I am using Geronimo 2.1.1 and Geronimo = 2.0.2, both of them with Tomcat. I get the following error:

= Unable to deploy: org.apache.geronimo.common.DeploymentException: Module = was not an EJB: EntitiesES.jar

I am trying to migrate an Ear = application, I followed the EJB example from the wiki, but I cannot make = my application to run. I 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 "persistence.xml" = archives. The contents of these = are:

OPENEJB-JAR.XML:

<?xml version=3D"1.0" = encoding=3D"UTF-8"?>

<openejb-jar xmlns=3D"http://www.openejb.= org/xml/ns/openejb-jar-2.1">
=    <dep:environment xmlns:dep=3D"http://geronimo.= apache.org/xml/ns/deployment-1.2">

=        <dep:moduleId>
=             &n= bsp;  <dep:groupId></dep:groupId>
=             &n= bsp;  <dep:artifactId>EntitiesES</dep:artifactId>
=             &n= bsp;  <dep:version></dep:version>
=             &n= bsp;  <dep:type>jar</dep:type>
=            </dep= :moduleId>

=        <dep:dependencies>
=            <dep:= dependency>
=             &n= bsp;  <dep:groupId>org.apache.geronimo.configs</dep:groupI= d>
=             &n= bsp;  <dep:artifactId>openjpa</dep:artifactId>
=             &n= bsp;  <dep:type>car</dep:type>
=            </dep= :dependency>
=        </dep:dependencies>
=        <dep:hidden-classes/>
=        <dep:non-overridable-classes/= >
=    </dep:environment>

</openejb-jar>


PERSISTENCE.XML:

<?xml version=3D"1.0" = encoding=3D"UTF-8"?>
   <persistence =     xmlns=3D"http://java.sun.com/xml/ns= /persistence"
=             &n= bsp;  xmlns:xsi=3D"http://www.w3.org/2001/= XMLSchema-instance" version=3D"1.0"
=             &n= bsp;  xsi:schemaLocation=3D"http://java.sun.com/xml/ns= /persistence http:/= /java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> =       

=     <persistence-unit = name=3D"EJBAplicationES">

=    <description>Entity Beans for = EJBAplicationES</description>


=        <provider>org.apache.openjpa.= persistence.PersistenceProviderImpl</provider>

=        <class>es.model.document.enti= ty.Document</class>
=        <class>es.model.user.entity.L= anguage</class>
=        <class>es.model.user.entity.U= ser</class>
=        <class>es.model.util.paramete= r.entity.Parameter</class>

=        <properties>
=            <prop= erty name=3D"openjpa.jdbc.SynchronizeMappings" value=3D"false" />
=        </properties>

=        <jta-data-source>database<= /jta-data-source>
=        <non-jta-data-source>database= </non-jta-data-source>

=    </persistence-unit>

</persistence>

<= br>
In the last one I declare the "database" datasource, I have that = files but I think that there are too much code in this e-mail; feel free = to ask me for this or other configuration files. Thank you for = reading!

Hi,
I don't = see anything obviously wrong. Are you certain about the layout of your = EntitiesES.jar?

You are welcom to create a Jira issue (https://issues.apa= che.org/jira/browse/GERONIMO) and attach your ear file there = ("Attach = File"). 

--kevan
= --Apple-Mail-25-481011555--