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 06:10:02 GMT
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?

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
> (<generated>)
>
>
>
>

Mime
View raw message