chkal/pf-issue-test — Issue #58: Deployment warning on Geronimo 2.2 and 3.0M1
Author: chkal
Created: 2012-03-06 07:25:46+00:00
State: open

Originally filed by **chkalt** on 2010-07-25T19:10:00

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=58

Deploying PrettyFaces 3.0.2-SNAPSHOT to Geronimo 2.2 or 3.0M1 generates an ugly warning in the logs and on the console. They are using XMLBeans to parse the Tag Library Descriptors and our ocpsoft-pretty-faces.tld file seems to be problematic in some sense. I'll have to take a closer look at this.

org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:

jar:file:/home/ck/prettytest/geronimo-tomcat6-javaee5-2.2/repository/default/prettyfaces-demo-0.0.1-SNAPSHOT/1280084476735/prettyfaces-demo-0.0.1-SNAPSHOT-1280084476735.car/WEB-INF/lib/prettyfaces-jsf12-3.0.2-SNAPSHOT.jar!/META-INF/ocpsoft-pretty-faces.tld:24:4: error: cvc-complex-type.2.4a: Expected elements 'rtexprvalue@http://java.sun.com/xml/ns/javaee deferred-value@http://java.sun.com/xml/ns/javaee deferred-method@http://java.sun.com/xml/ns/javaee fragment@http://java.sun.com/xml/ns/javaee' instead of 'type@http://java.sun.com/xml/ns/javaee' here in element attribute@http://java.sun.com/xml/ns/javaee

Descriptor:

Tag library for PrettyFaces.
0.01
prettyfaces
http://ocpsoft.com/prettyfaces

link
com.ocpsoft.pretty.faces.component.tag.LinkTag
scriptless

The unique identifier of the PrettyFaces mapping. (e.g.
mapping-id in your pretty-config.xml)
mappingId
true
java.lang.String

A developer assigned id to the element. Must be unique
id
false
false
java.lang.String

...
[Much more of the TLD]

at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:187)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.convertToTaglibSchema(JspModuleBuilderExtension.java:683)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:448)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses(JspModuleBuilderExtension.java:433)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder(JspModuleBuilderExtension.java:189)
at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java:158)
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:513)
at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:652)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:257)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:851)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
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:619)