org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: C:\geronimo\bin\jar:file:C:\geronimo\repository\ org\apache\tuscany\sca\sample-calculator-webapp\1.4\sample-calculator-webapp-1.4 .war\WEB-INF\lib\tuscany-host-webapp-1.4.jar!\META-INF\sca.tld:12:1: error: uniq attspec: Duplicate attribute: version in element taglib@http://java.sun.com/xml/ ns/javaee Descriptor: <!--(c) Copyright BEA Systems, Inc., Cape Clear Software, International Business Machines Corp, Interface21, IONA Technologies, Oracle, Primeton Technologies, Progress Software, Red Hat, Rogue W ave Software, SAP AG., Siemens AG., Software AG., Sun Microsystems, Inc., Sybase Inc., TIBCO Software Inc., 200 5, 2008. All rights reserved. see http://www.osoa.org/display/Main/Service+Component+Architecture+Specificatio ns--> <taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.c om/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1" xmlns:xsi=" http://www. w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"> <description>A tag library for integrating sca components with jsp</descriptio n> <tlib-version>1.0</tlib-version> <short-name>SCA-JSP</short-name> <uri>http://www.osoa.org/sca/sca_jsp.tld</uri> <tag> <name>reference</name> <tag-class>org.apache.tuscany.sca.host.webapp.jsp.ReferenceTag</tag-class> <tei-class>org.apache.tuscany.sca.host.webapp.jsp.ReferenceTEI</tei-class> <body-content>empty</body-content> <attribute> <name>name</name> <required>true</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>type</name> <required>true</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.Integer</type> </attribute> </tag> </taglib>

tuscany-user | Phani Madgula | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Throwing errors when running sample-calculator-webapp.war

    tuscany-user | 8 years ago | Phani Madgula
    org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: C:\geronimo\bin\jar:file:C:\geronimo\repository\ org\apache\tuscany\sca\sample-calculator-webapp\1.4\sample-calculator-webapp-1.4 .war\WEB-INF\lib\tuscany-host-webapp-1.4.jar!\META-INF\sca.tld:12:1: error: uniq attspec: Duplicate attribute: version in element taglib@http://java.sun.com/xml/ ns/javaee Descriptor: <!--(c) Copyright BEA Systems, Inc., Cape Clear Software, International Business Machines Corp, Interface21, IONA Technologies, Oracle, Primeton Technologies, Progress Software, Red Hat, Rogue W ave Software, SAP AG., Siemens AG., Software AG., Sun Microsystems, Inc., Sybase Inc., TIBCO Software Inc., 200 5, 2008. All rights reserved. see http://www.osoa.org/display/Main/Service+Component+Architecture+Specificatio ns--> <taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.c om/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1" xmlns:xsi=" http://www. w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"> <description>A tag library for integrating sca components with jsp</descriptio n> <tlib-version>1.0</tlib-version> <short-name>SCA-JSP</short-name> <uri>http://www.osoa.org/sca/sca_jsp.tld</uri> <tag> <name>reference</name> <tag-class>org.apache.tuscany.sca.host.webapp.jsp.ReferenceTag</tag-class> <tei-class>org.apache.tuscany.sca.host.webapp.jsp.ReferenceTEI</tei-class> <body-content>empty</body-content> <attribute> <name>name</name> <required>true</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>type</name> <required>true</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.Integer</type> </attribute> </tag> </taglib>
  2. 0

    Re: jRuby on Geronimo 2.1.3 invalid taglibs

    geronimo-user | 8 years ago | fmchale
    org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors: jar:file:/Users/frederickmchale/Documents/geronimo-jetty6-javaee5-2.1.3/repository/default/j_test/1228538323041/j_test-1228538323041.war/WEB-INF/lib/jruby-rack-0.9.3.jar!/META-INF/jruby-rack.tld:11:5: error: cvc-complex-type.2.4a: Expected elements 'variable@http://java.sun.com/xml/ns/javaee attribute@http://java.sun.com/xml/ns/javaee dynamic-attributes@http://java.sun.com/xml/ns/javaee example@http://java.sun.com/xml/ns/javaee tag-extension@http://java.sun.com/xml/ns/javaee' instead of 'info@http://java.sun.com/xml/ns/javaee' here in element tag@http://java.sun.com/xml/ns/javaee jar:file:/Users/frederickmchale/Documents/geronimo-jetty6-javaee5-2.1.3/repository/default/j_test/1228538323041/j_test-1228538323041.war/WEB-INF/lib/jruby-rack-0.9.3.jar!/META-INF/jruby-rack.tld:29:5: error: cvc-complex-type.2.4a: Expected elements 'variable@http://java.sun.com/xml/ns/javaee attribute@http://java.sun.com/xml/ns/javaee dynamic-attributes@http://java.sun.com/xml/ns/javaee example@http://java.sun.com/xml/ns/javaee tag-extension@http://java.sun.com/xml/ns/javaee' instead of 'info@http://java.sun.com/xml/ns/javaee' here in element tag@http://java.sun.com/xml/ns/javaee Descriptor: <jav:taglib version="2.1" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jav="http://java.sun.com/xml/ns/javaee"> <jav:tlib-version>1.0</jav:tlib-version> <jav:short-name>jruby-rack</jav:short-name> <jav:uri>urn:org.jruby.rack</jav:uri> <jav:tag> <jav:name>rails</jav:name> <jav:tag-class>org.jruby.rack.RackTag</jav:tag-class> <jav:body-content>empty</jav:body-content> <jav:info>Makes requests to the rails application and renders the results to the page</jav:info> <jav:attribute> <jav:name>path</jav:name> <jav:required>true</jav:required> <jav:rtexprvalue>true</jav:rtexprvalue> <jav:type>java.lang.String</jav:type> </jav:attribute> <jav:attribute> <jav:name>params</jav:name> <jav:required>false</jav:required> <jav:rtexprvalue>true</jav:rtexprvalue> <jav:type>java.lang.String</jav:type> </jav:attribute> </jav:tag> <jav:tag> <jav:name>rack</jav:name> <jav:tag-class>org.jruby.rack.RackTag</jav:tag-class> <jav:body-content>empty</jav:body-content> <jav:info>Makes requests to the rack application and renders the results to the page</jav:info> <jav:attribute> <jav:name>path</jav:name> <jav:required>true</jav:required> <jav:rtexprvalue>true</jav:rtexprvalue> <jav:type>java.lang.String</jav:type> </jav:attribute> <jav:attribute> <jav:name>params</jav:name> <jav:required>false</jav:required> <jav:rtexprvalue>true</jav:rtexprvalue> <jav:type>java.lang.String</jav:type> </jav:attribute> </jav:tag> </jav:taglib>

    Root Cause Analysis

    1. org.apache.xmlbeans.XmlException

      Invalid deployment descriptor: errors: C:\geronimo\bin\jar:file:C:\geronimo\repository\ org\apache\tuscany\sca\sample-calculator-webapp\1.4\sample-calculator-webapp-1.4 .war\WEB-INF\lib\tuscany-host-webapp-1.4.jar!\META-INF\sca.tld:12:1: error: uniq attspec: Duplicate attribute: version in element taglib@http://java.sun.com/xml/ ns/javaee Descriptor: <!--(c) Copyright BEA Systems, Inc., Cape Clear Software, International Business Machines Corp, Interface21, IONA Technologies, Oracle, Primeton Technologies, Progress Software, Red Hat, Rogue W ave Software, SAP AG., Siemens AG., Software AG., Sun Microsystems, Inc., Sybase Inc., TIBCO Software Inc., 200 5, 2008. All rights reserved. see http://www.osoa.org/display/Main/Service+Component+Architecture+Specificatio ns--> <taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.c om/xml/ns/javaee/web-jsptaglibrary_2_1.xsd" version="2.1" xmlns:xsi=" http://www. w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"> <description>A tag library for integrating sca components with jsp</descriptio n> <tlib-version>1.0</tlib-version> <short-name>SCA-JSP</short-name> <uri>http://www.osoa.org/sca/sca_jsp.tld</uri> <tag> <name>reference</name> <tag-class>org.apache.tuscany.sca.host.webapp.jsp.ReferenceTag</tag-class> <tei-class>org.apache.tuscany.sca.host.webapp.jsp.ReferenceTEI</tei-class> <body-content>empty</body-content> <attribute> <name>name</name> <required>true</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>type</name> <required>true</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.String</type> </attribute> <attribute> <name>scope</name> <required>false</required> <rtexprvalue>false</rtexprvalue> <type>java.lang.Integer</type> </attribute> </tag> </taglib>

      at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD()
    2. Geronimo :: Deployment
      XmlBeansUtil.validateDD
      1. org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:226)
      1 frame
    3. org.apache.geronimo
      JspModuleBuilderExtension.addGBeans
      1. org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.convertToTaglibSchema(JspModuleBuilderExtension.java:674)
      2. org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:439)
      3. org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getListenerClasses(JspModuleBuilderExtension.java:424)
      4. org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.createJspClassFinder(JspModuleBuilderExtension.java:180)
      5. org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java:149)
      5 frames