Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 49239 invoked from network); 4 Jan 2008 10:40:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2008 10:40:38 -0000 Received: (qmail 14387 invoked by uid 500); 4 Jan 2008 10:40:21 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 14361 invoked by uid 500); 4 Jan 2008 10:40:21 -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 14350 invoked by uid 99); 4 Jan 2008 10:40:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 02:40:20 -0800 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 harikrishna.korrapati@gmail.com designates 209.85.146.180 as permitted sender) Received: from [209.85.146.180] (HELO wa-out-1112.google.com) (209.85.146.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 10:39:58 +0000 Received: by wa-out-1112.google.com with SMTP id j4so14366113wah.1 for ; Fri, 04 Jan 2008 02:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=wgf32Nj7hu3OfeaG93eNBW23u/wWhND/L+AE4WGLBtw=; b=G2zvAKR3xfbG2DkECYJw6ukdPlA1HC7H/koOa+Lw8bNbNQAPbF1SADI2qK23Dgf+1adU+85aYWVMjqfBadBzmVl5KxIvjBeJe+lqXjxFeztujpPhePwUmzTPMqe/VLepBxBNpt0/seYNnO2eDRX+jIFixTXQonH6P4GiOSDQzzs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QtpXMiguNQ1Uu69CzalDiP3Toa8aB4IE4WfXRBu2LgzfGpFTerTYz9NUyZ+sKkwTEMAFrdPAIzv0983Dt0D4vGhRYrlBn2IHWMNqTqbxqiMB74wVYBZIaDe6aOhHuVm99iefJkVTNk4jW5DLbuCKj4h0R//MPXJbXSYkkCMk2Pw= Received: by 10.114.209.1 with SMTP id h1mr17854003wag.130.1199443202609; Fri, 04 Jan 2008 02:40:02 -0800 (PST) Received: by 10.114.79.4 with HTTP; Fri, 4 Jan 2008 02:40:02 -0800 (PST) Message-ID: <8a855ce00801040240h602291ebj1bc59272aa51ca72@mail.gmail.com> Date: Fri, 4 Jan 2008 16:10:02 +0530 From: "Hari Krishna Korrapati" To: user@geronimo.apache.org Subject: Re: Problem with Struts in Geronimo 2.0.2 In-Reply-To: <06D84715-7D30-486C-89E7-8363B08CC995@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_43434_20432001.1199443202518" References: <8a855ce00801030438u36302der21a4eed330d8ba50@mail.gmail.com> <06D84715-7D30-486C-89E7-8363B08CC995@yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_43434_20432001.1199443202518 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Would like to know whether we should manually change the manifest classpath of struts until unless the issue is fixed or any other walk around is there... On Jan 3, 2008 11:50 PM, David Jencks wrote: > There were a lot of bugs in the geronimo 1.1.1 manifest classpath handling > and I fixed them.... IIRC I was considering making strict checking optional > but couldn't think of a good way to do it. > See https://issues.apache.org/jira/browse/GERONIMO-3316 > > thanks > david jencks > > On Jan 3, 2008, at 4:38 AM, Hari Krishna Korrapati wrote: > > Hi, > > I am working on a ear application on Geronimo-2.0.2. > The web module of ear uses struts-1.1.jar. MANIFEST file of struts-1.1 has > the following class path entry > > Class-Path: commons-beanutils.jar commons-collections.jar commons-dig > ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar s > truts-legacy.jar > > But my ear has something like common-beanutils-1.6.1.jar , > common-collections-2.0.jar, etc.. > While deploying the ear, struts is looking for *commons-beanutils.jar, *where > as EAR has jar, but with version. > > The exception which i am getting is: > > Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): > *path=commons-beanutils.jar, resolved to targetURI=commons-beanutils.jar* > *looking at: struts-1.1.jar* current classpath: [WEB-INF/classes/, > ../commons-dbcp-1.0.jar, ../regexp-1.2.jar, ../j2ssh- ant-0.2.2.jar , > ../odmg-3.0.jar, ../j2ssh-core-0.2.2.jar, ../commons-beanutils-1.6.1.jar, > ../commons-pool-1.0.1.jar, ../commons-codec-1.3.jar, ../oro-2.0.7.jar, > ../commons-validator-1.1.4.jar, ../Acme-1.0.jar, ../j2ee-1.4.jar, > ../struts- 1.1.jar, ../commons-beanutils.jar] ignoring modules: [ > dao-rc.jar, biz-rc.jar, sampleweb-rc.war] > org.apache.geronimo.common.DeploymentException: Manifest class path > entries must be a valid jar file (JAVAEE 5 Section 8.2): path= > commons-beanutils.jar, resolved to targetURI=commons-beanutils.jar > looking at: struts-1.1.jar current classpath: [WEB-INF/classes/, > ../commons-dbcp-1.0.jar, ../regexp-1.2.jar, ../j2ssh-ant-0.2.2.jar, > ../odmg- 3.0.jar, ../j2ssh-core-0.2.2.jar, ../commons-beanutils-1.6.1.jar, > ../commons-pool-1.0.1.jar, ../commons-codec-1.3.jar, ../oro-2.0.7.jar, > ../commons-validator-1.1.4.jar, ../Acme-1.0.jar, ../j2ee-1.4.jar, > ../struts-1.1.jar , ../commons- beanutils.jar] ignoring modules: [ > dao-rc.jar, biz-rc.jar, sampleweb-rc.war] > at > org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath > (DeploymentContext.java:367) > at > org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath( > DeploymentContext.java:371) > at > org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath > (DeploymentContext.java:286) > at > org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicInitContext( > AbstractWebModuleBuilder.java:332) > at > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext( > TomcatModuleBuilder.java:290) > at > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( > FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke ( > GBeanOperation.java:124) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke( > GBeanInstance.java:830) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java > :57) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke ( > RawOperationInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept( > ProxyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$72b50ef.initContext() > at > org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext( > SwitchingModuleBuilder.java:159) > at > org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( > FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke ( > GBeanOperation.java:124) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke( > GBeanInstance.java:830) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java > :57) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke ( > RawOperationInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept( > ProxyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$72b50ef.initContext() > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration( > EARConfigBuilder.java:576) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( > FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke ( > GBeanOperation.java:124) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke( > GBeanInstance.java:830) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java > :57) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke ( > RawOperationInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept( > ProxyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$3e58cb04.buildConfiguration() > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126) > at > org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke() > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( > FastMethodInvoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke ( > GBeanOperation.java:124) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke( > GBeanInstance.java:865) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke( > BasicKernel.java:239) > at > org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy( > AbstractDeployCommand.java:116) > at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run( > DistributeCommand.java:61) > at java.lang.Thread.run(Thread.java:595) > *Caused by: java.io.IOException : Could not create JarFile for file: > E:\Geronimo > 2.0.2\geronimo-tomcat6-jee5-2.0.2-bin\geronimo-tomcat6-jee5-2.0.2\repository\sample-rc\sampleapp\rc\sampleapp-rc.car\commons-beanutils.jar > * > at > org.apache.geronimo.deployment.DeploymentContext$DefaultJarFileFactory.newJarFile( > DeploymentContext.java:271) > at > org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath > (DeploymentContext.java:365) > ... 44 more > Caused by: java.util.zip.ZipException: The system cannot find the file > specified > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.(ZipFile.java:204) > at java.util.jar.JarFile.(JarFile.java:132) > at java.util.jar.JarFile.( JarFile.java:97) > at > org.apache.geronimo.deployment.DeploymentContext$DefaultJarFileFactory.newJarFile > (DeploymentContext.java:269) > ... 45 more > > > > Then i changed class path entry in manifest file of struts to have the > versions which i use, like > Class-Path: commons-beanutils-1.6.1.jar commons-collections-2.1.jar c > ommons-digester-1.5.jar commons-logging-1.0.jar commons-validator-1.1 > .4.jar oro-2.0.7.jar struts-legacy-1.1.jar > After changing manifest file, i am not getting any errors and EAR got > deployed successfully. > > It worked fine with geronimo-1.1.1 without changing any thing, but facing > problem in geronimo 2.0.2 . > Please advice how to overcome this issue. > > Thanks and Regards, > Hari > > > -- Regards, Hari ------=_Part_43434_20432001.1199443202518 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Would like to know whether we should manually change the manifest classpath of struts until unless the issue is fixed or any other walk around is there...



On Jan 3, 2008 11:50 PM, David Jencks < david_jencks@yahoo.com> wrote:
There were a lot of bugs in the geronimo 1.1.1 manifest classpath handling and I fixed them....  IIRC I was considering making strict checking optional but couldn't think of a good way to do it.


thanks
david jencks

On Jan 3, 2008, at 4:38 AM, Hari Krishna Korrapati wrote:

Hi,

I am working on a ear application on Geronimo-2.0.2.
The web module of ear uses struts-1.1.jar. MANIFEST file of struts-1.1 has the following class path entry

Class-Path:  commons-beanutils.jar commons-collections.jar commons-dig
 ester.jar commons-logging.jar commons-validator.jar jakarta-oro.jar s
 truts-legacy.jar

But my ear has something like common-beanutils-1.6.1.jar , common-collections-2.0.jar, etc..
While deploying the ear, struts is looking for commons-beanutils.jar, where as EAR has jar, but with version.

The exception which i am getting is:

Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=commons-beanutils.jar , resolved to targetURI=commons-beanutils.jar
    looking at: struts-1.1.jar    current classpath: [WEB-INF/classes/, ../commons-dbcp-1.0.jar, ../regexp-1.2.jar, ../j2ssh- ant-0.2.2.jar , ../odmg-3.0.jar, ../j2ssh- core-0.2.2.jar, ../commons-beanutils-1.6.1.jar, ../commons-pool-1.0.1.jar, ../commons-codec-1.3.jar, ../oro-2.0.7.jar, ../commons-validator-1.1.4.jar, ../Acme-1.0.jar, ../j2ee-1.4.jar, ../struts- 1.1.jar, ../commons-beanutils.jar ]    ignoring modules: [dao-rc.jar, biz-rc.jar, sampleweb-rc.war]
org.apache.geronimo.common.DeploymentException: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=commons-beanutils.jar, resolved to targetURI= commons-beanutils.jar
    looking at: struts-1.1.jar    current classpath: [WEB-INF/classes/, ../commons-dbcp-1.0.jar, ../regexp-1.2.jar, ../j2ssh-ant-0.2.2.jar, ../odmg- 3.0.jar, ../j2ssh-core-0.2.2.jar, ../commons-beanutils-1.6.1.jar , ../commons-pool-1.0.1.jar, ../commons-codec-1.3.jar, ../oro-2.0.7.jar, ../commons-validator-1.1.4.jar, ../Acme-1.0.jar, ../j2ee-1.4.jar, ../struts-1.1.jar , ../commons- beanutils.jar]    ignoring modules: [dao-rc.jar, biz-rc.jar , sampleweb-rc.war]
    at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:367)
    at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath (DeploymentContext.java:371)
    at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:286)
    at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicInitContext (AbstractWebModuleBuilder.java:332)
    at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext(TomcatModuleBuilder.java:290)
    at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke (<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke (GBeanOperation.java:124)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
    at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke (RawOperationInvoker.java:35)
    at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
    at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$72b50ef.initContext (<generated>)
    at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContext(SwitchingModuleBuilder.java:159)
    at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke (<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke (GBeanOperation.java:124)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
    at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke (RawOperationInvoker.java:35)
    at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
    at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$72b50ef.initContext (<generated>)
    at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:576)
    at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke (<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke (GBeanOperation.java:124)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
    at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke (RawOperationInvoker.java:35)
    at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
    at org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$3e58cb04.buildConfiguration (<generated>)
    at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304)
    at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
    at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke (<generated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
    at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke (GBeanOperation.java:124)
    at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:865)
    at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
    at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy (AbstractDeployCommand.java:116)
    at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException : Could not create JarFile for file: E:\Geronimo 2.0.2\geronimo-tomcat6-jee5-2.0.2-bin\geronimo-tomcat6-jee5-2.0.2\repository\sample-rc\sampleapp\rc\sampleapp-rc.car\commons-beanutils.jar
    at org.apache.geronimo.deployment.DeploymentContext$DefaultJarFileFactory.newJarFile (DeploymentContext.java:271)
    at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:365)
    ... 44 more
Caused by: java.util.zip.ZipException: The system cannot find the file specified
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:204)
    at java.util.jar.JarFile.<init>(JarFile.java:132)
    at java.util.jar.JarFile.<init>( JarFile.java:97)
    at org.apache.geronimo.deployment.DeploymentContext$DefaultJarFileFactory.newJarFile(DeploymentContext.java:269)
    ... 45 more



Then i changed class path entry in manifest file of struts to have the versions which i use, like
Class-Path:  commons-beanutils-1.6.1.jar commons-collections-2.1.jar c
 ommons-digester-1.5.jar commons-logging-1.0.jar commons-validator-1.1
 .4.jar oro-2.0.7.jar struts-legacy-1.1.jar
After changing manifest file, i am not getting any errors and EAR got deployed successfully.

It worked fine with geronimo-1.1.1 without changing any thing, but facing problem in geronimo 2.0.2 .
Please advice how to overcome this issue.
 
Thanks and Regards,
Hari




--
Regards,
Hari ------=_Part_43434_20432001.1199443202518--