Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 8079 invoked from network); 29 Jan 2007 17:11:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 17:11:27 -0000 Received: (qmail 47314 invoked by uid 500); 29 Jan 2007 17:11:30 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 47294 invoked by uid 500); 29 Jan 2007 17:11:30 -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 47283 invoked by uid 99); 29 Jan 2007 17:11:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 09:11:30 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [68.142.206.235] (HELO smtp102.plus.mail.mud.yahoo.com) (68.142.206.235) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 29 Jan 2007 09:11:20 -0800 Received: (qmail 41021 invoked from network); 29 Jan 2007 17:10:59 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=smFGoT4DZDt7q0tqUtID/fFQ1vhBn5KJO9dcOsaTiFnB6w+xPjmoZjSdfmHlJzwxloXtyI02ezjkgeK5lwO22GV+QUEwNFraMoMjWDanMglXeoq6JyH3kcCrA2ANWwvHf0bi+zZdA6oq3Dcpr7/cMtl3tOsKWSsF+AbfIcdiniw= ; Received: from unknown (HELO ?10.11.55.8?) (david_jencks@63.105.20.225 with plain) by smtp102.plus.mail.mud.yahoo.com with SMTP; 29 Jan 2007 17:10:58 -0000 X-YMail-OSG: rPrep34VM1lXUTdo.NaebGLlOtQtWYYbOWeV5Nj9WqlvpKHg7.kRISjXSD4MUJcaHi5X2lVCBGjKNg28m9Uen5AY_wFUn7Ua0KRihgbbmoWmX_.wJphTwhTgYmYSwABZj8Y05WzW7R7rNeEK6X2ykuVO9.g3hLOCHK8jKtdNIkOPy6c1g6KJjKWRdng4 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <21c9d60d0701290857g54f68ad9od342090bb237d406@mail.gmail.com> References: <21c9d60d0701290857g54f68ad9od342090bb237d406@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5681961F-AE7E-4960-AC81-0D8BBC93C347@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: EAR fails to deploy library JARs Date: Mon, 29 Jan 2007 09:11:01 -0800 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Your application.xml is claiming that dom4j.jar is an application client jar. However from the name and your email subject I'd suspect that it's the normal dom4j jar that you'd like to get in the classloader of your application. To do this in a portable way you need to (in j2ee 1.4) include the jar in the manifest classpath of the module(s) that you intend to use it in, presumably the MyProject.war. (In javaee5 there's a lib directory in an ear). There's also a geronimo specific way to do this by putting the library jar directly in the geronimo repository and listing it as a dependency in a geronimo plan for your app. I have no explanation for why the other servers let you deploy with this application.xml: with the new annotation stuff in javaee5 perhaps they don't check whether its a plausible application client until you try to use it? thanks david jencks On Jan 29, 2007, at 8:57 AM, Tim Davidson wrote: > I am a newbie to Geronimo, I have an EAR file which I have > successfully managed to deploy to JBoss and Glassfish, I am now trying > to deploy it to Geronimo however when it deploys it fails saying > Deployment failed: > > ----------------- > Module was not an application client: dom4j.jar > org.apache.geronimo.common.DeploymentException: Module was not an > application client: dom4j.jar > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules > (EARConfigBuilder.java:771) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan > (EARConfigBuilder.java:362) > ----------------- > > my application.xml is as follows: > ----------------- > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" > version="1.4"> > MyProject > > > MyProject.war > /MyProject > > > > dom4j.jar > > ..... > ----------------- > > whatever jar file I reference in the element it says the same > thing, the contents of my EAR file are as follows: > > EAR > > - META-INF/MANIFEST.MF > - META-INF/application.xml > - dom4j.jar > - MyProject.war > > dom4j.jar is a third party library required for my application, why am > I getting this error? I have debugged this and it appears that if the > is type then AppClientModuleBuilder is used and this > requires the jar to contain an application-client.xml, otherwise it > will fail, is this a bug or how are you supposed to specify library > jars contained with an EAR? > > many thanks > > Tim.