geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmchale <fmch...@cisco.com>
Subject Re: jRuby on Geronimo 2.1.3 invalid taglibs
Date Sat, 06 Dec 2008 19:13:53 GMT

Here is the jruby-rack tld file from github
<?xml version="1.0" encoding="UTF-8"?>
<taglib version="2.0" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
web-jsptaglibrary_2_0.xsd">
  <tlib-version>1.0</tlib-version>
  <short-name>jruby-rack</short-name>
  <uri>urn:org.jruby.rack</uri>
 
  <tag>
    <name>rails</name>
    <tag-class>org.jruby.rack.RackTag</tag-class>
    <body-content>empty</body-content>
    <info>Makes requests to the rails application and renders the results to
the page</info>
    <attribute>
      <name>path</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
      <type>java.lang.String</type>
    </attribute>
    <attribute>
      <name>params</name>
      <required>false</required>
      <rtexprvalue>true</rtexprvalue>
      <type>java.lang.String</type>
    </attribute>
  </tag>
  <tag>
    <name>rack</name>
    <tag-class>org.jruby.rack.RackTag</tag-class>
    <body-content>empty</body-content>
    <info>Makes requests to the rack application and renders the results to
the page</info>
    <attribute>
      <name>path</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
      <type>java.lang.String</type>
    </attribute>
    <attribute>
      <name>params</name>
      <required>false</required>
      <rtexprvalue>true</rtexprvalue>
      <type>java.lang.String</type>
    </attribute>
  </tag>
</taglib>

I looked through the schema/dtd and as you mentioned didnt see any info
element inside the tag element.  I will raise this issue with the author.
Thanks for your help david.

Fred

djencks wrote:
> 
> If the tld xml file that shows up in the error message is not the same  
> as the original could you show us the original?  Otherwise the error  
> message is telling you that the tld file is invalid.  In particular  
> there is no info element inside the tag element.
> 
> For some reason many tag library authors don't seem to validate that  
> their tlds conform to the schemas claimed.  I'm a bit mystified that  
> they deploy on any jsp implementations.  I don't have the pre-2.0 tld  
> schema or dtd handy but I doubt there was an info element there either.
> 
> thanks
> david jencks
> 
> On Dec 5, 2008, at 8:44 PM, fmchale wrote:
> 
>>
>> Hi,
>>
>> I am attempting to deploy a simple Jruby on Rails test application  
>> onto
>> Geronimo-jetty 2.1.3.  After packaging up my application into a war  
>> I can
>> successfully deploy the application on Geronimo, and it runs fine.   
>> Although
>> I do get the following which I am attempting to understand.
>>
>> 20:39:08,411 WARN  [JspModuleBuilderExtension] Invalid transformed  
>> taglib
>> 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>
>>
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:187)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .jasper 
>> .deployment 
>> .JspModuleBuilderExtension 
>> .convertToTaglibSchema(JspModuleBuilderExtension.java:674)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .jasper 
>> .deployment 
>> .JspModuleBuilderExtension 
>> .parseTldFile(JspModuleBuilderExtension.java:439)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .jasper 
>> .deployment 
>> .JspModuleBuilderExtension 
>> .getListenerClasses(JspModuleBuilderExtension.java:424)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .jasper 
>> .deployment 
>> .JspModuleBuilderExtension 
>> .createJspClassFinder(JspModuleBuilderExtension.java:180)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .jasper 
>> .deployment 
>> .JspModuleBuilderExtension.addGBeans(JspModuleBuilderExtension.java: 
>> 149)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .jetty6 
>> .deployment.JettyModuleBuilder.addGBeans(JettyModuleBuilder.java:518)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .j2ee 
>> .deployment 
>> .SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .j2ee 
>> .deployment 
>> .EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
>> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
>> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
>> 	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:585)
>> 	at
>> org 
>> .apache 
>> .geronimo 
>> .gbean 
>> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
>> 34)
>> 	at
>> org 
>> .apache 
>> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>> 	at
>> org 
>> .apache 
>> .geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
>> 	at
>> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
>> 239)
>> 	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:613)
>>
>> Any help would be appreciated.
>>
>> Fred
>> -- 
>> View this message in context:
>> http://www.nabble.com/jRuby-on-Geronimo-2.1.3-invalid-taglibs-tp20866794s134p20866794.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/jRuby-on-Geronimo-2.1.3-invalid-taglibs-tp20866794s134p20873397.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message