The warning concerning the missing geronimo-web.xml is not related to the INFO message about the Strict Manifest Classpath processing.

Concerning the LenientMFCP: This option was added to support archives that don't adhere to the standard specification which requires that the manifest classpath entries are processed. Providing the override option means that we will ignore missing entries or non-jar entries.

Joe

bongosdude wrote:
Background
I encountered this problem that I do not quite understand. I set up my demo
after I looked at the car-maven-plugin, m2eclipse and the geronimo sample
calculator. I have manually created my demo project by using maven
achetype-create with groupId=org.apache.geronimo.samples and
archytypeId=geronimo-samples-archetypes. And then I tweaked POM files
generated by looking at calculator POM files. I had to go through this
manual process because my web application is Tapestry5. And I have to add
dependencies to POM files. Maven build sub projects successfully except when
it tried to build jetty and tomcat CAR plugin. Here are the error messages
that I got:

[WARN]  Web application callingcard-war-0.0.1-SNAPSHOT.war does not contain
a WEB-INF/geronimo-web.xml deployment plan.  This may or may not be a
problem, depending on whether you have things like resource references that
need to be resolved.  You can also give the deployer a separate deployment
plan file on the command line.
[INFO]  The Strict Manifest Classpath processing mode is in effect.
This option can be altered by specifying
-DXorg.apache.geronimo.deployment.LenientMFCP=true|false
Specify ="true" for more lenient processing such as ignoring missing jars
and references that are not spec compliant.
12:50:39,649 INFO  [config] Configuring
Service(id=DefaultStatelessContainer, type=Container, provider-id=Default
Stateless Container)
12:50:39,653 INFO  [config] Configuring Service(id=DefaultStatefulContainer,
type=Container, provider-id=Default Stateful Container)
12:50:39,654 INFO  [config] Configuring
Service(id=DefaultSingletonContainer, type=Container, provider-id=Default
Singleton Container)
12:50:39,655 INFO  [config] Configuring Service(id=DefaultBMPContainer,
type=Container, provider-id=Default BMP Container)
12:50:39,655 INFO  [config] Configuring Service(id=DefaultCMPContainer,
type=Container, provider-id=Default CMP Container)
12:50:39,663 INFO  [config] Configuring enterprise application:
com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car
12:50:40,359 INFO  [OpenEJB] Auto-deploying ejb PayPalNVPProcessor:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/PayPalNVPProcessor)
12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb NutalkNewOrderBean:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/NutalkNewOrderBean)
12:50:40,360 INFO  [OpenEJB] Auto-deploying ejb SampleBean:
EjbDeployment(deployment-id=callingcard-ejb-0.0.1-SNAPSHOT.jar/SampleBean)
12:50:40,412 INFO  [config] Enterprise application
"com.myvoip.ipservices/callingcard-jetty/0.0.1-SNAPSHOT/car" loaded.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] could not package plugin

Embedded error: Manifest class path entries must be a valid jar file (JAVAEE
5 Section 8.2): path= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar, resolved to
targetURI= lib/callingcard-ejb-0.0.1-SNAPSHOT.jar
    looking at: callingcard-war-0.0.1-SNAPSHOT.war    current classpath:
[WEB-INF/classes/, ../lib/callingcard-common-0.0.1-SNAPSHOT.jar,
../lib/paypal-stubs-4.3.1.jar, ../lib/paypal-base-4.3.1.jar,
../lib/commons-lang-2.4.jar, ../lib/spring-2.5.6.jar,
../lib/commons-logging-1.0.4.jar, ../lib/callingcard-ejb-0.0.1-SNAPSHOT.jar] ignoring modules: [callingcard-ejb-0.0.1-SNAPSHOT.jar,
callingcard-war-0.0.1-SNAPSHOT.war]
No such file or directory
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 47 seconds
[INFO] Finished at: Fri Jan 09 12:50:42 EST 2009
[INFO] Final Memory: 64M/125M
[INFO]
------------------------------------------------------------------------
die


Questions:

1. It seems that I got my first error is that I did not create
WEB-INF/geronimo-web.xml. I can define the option
-DXorg.apache.geronimo.deployment.LenientMFCP=true to make the build
successful. However, I looked at the calculator, it does not have the
WEB-INF/geronimo-web.xml but maven does not fail when it builds jetty/tomcat
car plugin. So why do I have this error? What do I miss in my pom files?

2. Can somesome explain what
DXorg.apache.geronimo.deployment.LenientMFCP=true|false does?

Thank for any helps

-B



-----
B Amigo:super:

Reply via email to