geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajan Mahadevan" <ra...@pobox.com>
Subject Re: Manifest-skinny war problem
Date Mon, 10 Sep 2007 14:36:09 GMT
Thanks David,

Got it working after eliminating Manifest class path and the spec files!
Maven was putting the manifest classpath entry for the ejb jar also, I had
to use <scope>provided</scope> in the war pom file's ejb dependency.

thanks

Rajan

On 9/10/07, David Jencks <david_jencks@yahoo.com> wrote:
>
>
> On Sep 9, 2007, at 11:10 PM, Rajan Mahadevan wrote:
>
> Thanks for the info that I don't need the spec files.
> Just to clarify here is my directory structure when I explode the ear
> file. I don't have the ejb jar in the lib directory. May be that's the
> problem?
>
>
> IIUC you have agreed that one of the jars in the manifest classpath is in
> fact not where the manifest classpath says it is, which is exactly what the
> error message you got says.
>
> In more detail, the manifest classpath you originally quoted includes
>
> lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
>
> which is not in your listing and is the file the error message is
> complaining about.
>
> Let me suggest once more that you remove this jar from the manifest
> classpath since it isn't there and is causing the error you are
> experiencing, and the other jars from the manifest classpath since they
> aren't needed.
>
> thanks
> david jencks
>
>
>
> jar tvf calculator-stateless-ear-2.0-SNAPSHOT.ear ( I have removed the
> time stamp stuff from jar output)
>
>
> META-INF/
> META-INF/MANIFEST.MF
> lib/
> calculator-stateless-ejb-2.0-SNAPSHOT.jar
> calculator-stateless-war-2.0-SNAPSHOT.war
> lib/geronimo-ejb_3.0_spec-1.0.jar
> lib/geronimo-jsp_2.1_spec-1.0-M1.jar
> lib/geronimo-servlet_2.5_spec-1.1-M1.jar
> META-INF/application.xml
> META-INF/maven/
> META-INF/maven/org.apache.geronimo.samples/
> META-INF/maven/org.apache.geronimo.samples/calculator-stateless-ear/
> META-INF/maven/org.apache.geronimo.samples/calculator-stateless-ear/pom.xml
>
> META-INF/maven/org.apache.geronimo.samples/calculator-stateless-ear/pom.properties
>
>
> Rajan
>
>
>
> On 9/9/07, Rajan Mahadevan <rajan@pobox.com> wrote:
>
> > Hi,
> >
> > I am a first time poster and I also seem to be having manifest
> > classloader issues.
> > I have created a simple ear file and the war manifest includes the
> > following
> > Class-Path: lib/geronimo-ejb_3.0_spec-1.0.jar lib/geronimo-jsp_2.1_spec-
> > 1.0-M1.jar lib/calculator-stateless-ejb-2.0-SNAPSHOT.jarlib/geronimo-servlet_2.5_spec-
> > 1.1-M1.jar.
> > I have these jar files not in the Web-Inf\lib directory but in the ear's
> > lib directory at the root.
> > When I deploy the ear to geronimo 2.01 my deployment fails. However the
> > same ear deploys fine and works in glassfish.
> > Is this a bug?
> >
> > I am pasting the relevant stack trace.
> >
> > thanks and cheers
> >
> > Rajan
> >
> > Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar,
resolved to targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
> >     looking at:
> >
> > calculator-stateless-war-2.0-SNAPSHOT.war    current classpath: [WEB-INF/classes/,
../lib/geronimo-ejb_3.0_spec-1.0.jar, ../lib/geronimo-jsp_2.1_spec-1.0-M1.jar, ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]
   ignoring modules: [
> >
> > calculator-stateless-ejb-2.0-SNAPSHOT.jar, calculator-stateless-war-2.0-SNAPSHOT.war]
> > org.apache.geronimo.common.DeploymentException: Manifest class path entries must
be a valid jar file (JAVAEE 5 Section 8.2): path=lib/calculator-
> >
> > stateless-ejb-2.0-SNAPSHOT.jar, resolved to targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
> >     looking at: calculator-stateless-war-2.0-SNAPSHOT.war    current classpath:
[WEB-INF/classes/, ../lib/geronimo-ejb_3.0_spec-
> >
> > 1.0.jar, ../lib/geronimo-jsp_2.1_spec-1.0-M1.jar, ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]
   ignoring modules: [calculator-stateless-ejb-2.0-SNAPSHOT.jar, calculator-stateless-war-2.0-SNAPSHOT.war]
> > 	at org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
> >
> > (DeploymentContext.java:367)
> > 	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.jetty6.deployment.JettyModuleBuilder.initContext(JettyModuleBuilder.java:322)
> > 	at org.apache.geronimo.jetty6.deployment.JettyModuleBuilder$$FastClassByCGLIB$$1a00be84.invoke
> >
> > ()
> >
> >
> >
> >
>
>

Mime
View raw message