Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 28848 invoked from network); 6 Jul 2007 20:19:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 20:19:40 -0000 Received: (qmail 91913 invoked by uid 500); 6 Jul 2007 20:19:41 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 91883 invoked by uid 500); 6 Jul 2007 20:19:40 -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 91872 invoked by uid 99); 6 Jul 2007 20:19:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 13:19:40 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of manu.t.george@gmail.com designates 209.85.132.241 as permitted sender) Received: from [209.85.132.241] (HELO an-out-0708.google.com) (209.85.132.241) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 13:19:35 -0700 Received: by an-out-0708.google.com with SMTP id d23so94832and for ; Fri, 06 Jul 2007 13:19:14 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rjDK+kNXvxQdDaaNesCZeIdDgSoXqcr9O5xhoAoo5yIFXUpyr3UJaAlk90eUk4ItAFtdLOOoY1uzdwW7Izl4NHP75HRiEUeWuKDQhhZLGIzNC9ujAG2Zk282UCMKs20id8n4gupHhjnglj5t4IyHM7t//1ieiHnBYVx/2TkKWTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c4aDZUK+eqqCXZP4VUb7VRBHUwBnEfS5nkMjOjvXKL9z3f7+kXZQqZBaInGuB0Skg3hAXGSrVJDuZnz/p6yo2TeKPXoEn/GsWlHm0pzfXLJpsQ4wBotHUJDwP9+hclflymO4fDnNIqoLnpKr1sD2LfMaCSTw8LujjGrDz5/ulEw= Received: by 10.100.191.5 with SMTP id o5mr494486anf.1183753154390; Fri, 06 Jul 2007 13:19:14 -0700 (PDT) Received: by 10.100.125.3 with HTTP; Fri, 6 Jul 2007 13:19:14 -0700 (PDT) Message-ID: <466797bd0707061319n5c29d72coe76d08da668dbeff@mail.gmail.com> Date: Sat, 7 Jul 2007 01:49:14 +0530 From: "Manu George" To: user@geronimo.apache.org Subject: Re: Deployment/Classpath problem while migrating from G1.1 to G2.0M6 In-Reply-To: <468D3CBD.6080701@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <468CF4E6.5030304@gmail.com> <468D03F0.7040003@coderesearch.com> <466797bd0707050841t6bb8df7fp2a24b63fd22a5f52@mail.gmail.com> <468D3CBD.6080701@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Mario, Looks strange. But Did u redeploy with these changes? Or did u just replace in the extracted directory? In case u did redeploy then i think you should open a jira. It would be a good idea to put in a test case replicating the problem. That would help in getting a fix in faster. Regards Manu On 7/6/07, Mario Ruebsam wrote: > Manu, > > I tried this also, but the error message is the same. > > I tried to move all classes in one eiservice.jar and > put it in the WEB-INF/lib but also this error message. > Now it tried to put all classes in WEB-INF/classes. > > And strangely the same error with the eiservice.jar! > But there was no file named eiservice.jar any longer. > Between all tests I manually cleaned the repository > directory with the half deployed app and also removed > it from config.xml . > > So my guess was the deployer expects a JAR in the main > EAR dir with the basename of the ear and the jar extension. > This is normally where the EJBs go in. But I have none > of them. I created an empty JAR with the expected name > only with an empty Manifest in it and now the deploy > works also. > > For my knowledge of the specs the ejb.jar file is not > needed to deploy a web application in an EAR. > > Should I open a Jira for this or does anybody know > if the current snapshot solved this problem? > > Thanks, > Mario > > > > Manu George wrote: > > Hi, > > > > Can you try removing the manifest entries. They are not needed since > > all referred jars are in web-inf/lib. So it may work without them. > > > > Regards > > Manu > > > > On 7/5/07, Mario R=FCbsam wrote: > >> Some further investigation on the problem showed that the libraries > >> are found when they are all in the EARs root directory and not > >> in client.war/WEB-INF/lib. > >> > >> It is standard behavior to have the libraries in the WEB-INF/lib, > >> so I guess its a bug in the deployer for EARs or do I have to > >> explicitly list the needed jars in the geronimo-web.xml like > >> the repository dependencies? > >> > >> Thanks, > >> Mario > >> > >> > >> Mario Ruebsam wrote: > >> > When deploying my app which works on G1.1 on the G2.0M6 server I get > >> > the following error message: > >> > > >> > -- > >> > Error: Unable to distribute eiservice.ear: Manifest class path > >> > entries must be a valid jar file (JAVAEE 5 Section 8.2): > >> > > >> > > >> jarFile=3DD:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\ap= p\2.5\app-2.5.car\eiservice.jar, > >> > >> > > >> > path=3Deiservice.jar > >> > > >> > > >> D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-= 2.5.car\eiservice.jar > >> > >> > > >> > (The system cannot find the file specified) > >> > -- > >> > > >> > The missing jar file is in the WEB-INF/lib directory, in this > >> particular > >> > case: > >> > > >> > > >> D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-= 2.5.car\client.war\WEB-INF\lib\eiservice.jar > >> > >> > > >> > > >> > The servlet code and the manifest declaring the classpath is also on= ly > >> > in this file and referencing some other jars from the WEB-INF/lib. > >> > > >> > The EAR structure is: > >> > > >> > eiservice.ear/ > >> > META-INF/ > >> > application.xml > >> > geronimo-application.xml > >> > geronimo-web.xml > >> > > >> > client.war/ > >> > WEB-INF/ > >> > web.xml > >> > lib/ > >> > eiservice.jar > >> > abp.jar > >> > opencpa.jar > >> > found.jar > >> > > >> > > >> > the MANIFEST.MF content from the eiservice.jar is: > >> > > >> > -- > >> > Manifest-Version: 1.0 > >> > Ant-Version: Apache Ant 1.7.0 > >> > Created-By: CODERESEARCH > >> > Class-Path: found.jar opencpa.jar abp.jar > >> > -- > >> > > >> > It worked fine with G1.1 and yes, I converted the deployment > >> > plans to G2.0 schemas. > >> > For me it looks like the deployer looks in the wrong path > >> > or the library with the Class-Path entry is assumed to be in > >> > the EARs root. > >> > > >> > Thanks, > >> > Mario > >> > > >> > > > >