On Tue, Aug 26, 2008 at 9:35 AM, Simon Laws <[EMAIL PROTECTED]>wrote:

>
>
> On Mon, Aug 25, 2008 at 7:19 PM, Vamsavardhana Reddy <[EMAIL PROTECTED]>wrote:
>
>> Hi Raymond,
>>
>> Thanks for your input.  Adding <rtexprvalue> tags inside <attribute> tags,
>> three of the errors were taken care.  The first error was taken care by
>> removing the version attribute from <taglib>.  Looks like sca.tld in
>> host-webapp module needs to be fixed.  My sca.tld that made the sample war
>> deploy and run successfully on Geronimo looks like the following
>> (changed/added lines are shown in bold font):
>>
>> <?xml version = '1.0' encoding = 'ISO-8859-1'?>
>> <!--
>>  * Licensed to the Apache Software Foundation (ASF) under one
>>  * or more contributor license agreements.  See the NOTICE file
>>  * distributed with this work for additional information
>>  * regarding copyright ownership.  The ASF licenses this file
>>  * to you under the Apache License, Version 2.0 (the
>>  * "License"); you may not use this file except in compliance
>>  * with the License.  You may obtain a copy of the License at
>>  *
>>  *   http://www.apache.org/licenses/LICENSE-2.0
>>  *
>>  * Unless required by applicable law or agreed to in writing,
>>  * software distributed under the License is distributed on an
>>  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>>  * KIND, either express or implied.  See the License for the
>>  * specific language governing permissions and limitations
>>  * under the License.
>>  -->
>>
>> <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
>> 1.2//EN" "http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd";>
>>
>> *<taglib>
>> *
>>   <tlib-version>1.0</tlib-version>
>>   <short-name>SCA-JSP</short-name>
>>   <uri>http://www.osoa.org/sca/sca_jsp.tld</uri>
>>   <description>A tag library for integrating sca components with
>> jsp</description>
>>
>>   <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>
>>
>>     <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>
>>
>>     <body-content>empty</body-content>
>>
>>   </tag>
>>
>> </taglib>
>>
>>
>> ++Vamsi
>>
>>
>> On Mon, Aug 25, 2008 at 10:24 PM, Raymond Feng <[EMAIL PROTECTED]>wrote:
>>
>>> Following the XSD at
>>> http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd, the
>>> <rtexprvalue> element is required (minOccurs =1) for <attribute>. Adding it
>>> to sca.tld passes the validation in Eclipse.
>>>
>>>   <attribute>
>>>     <name>name</name>
>>>     <required>true</required>
>>>     <rtexprvalue>false</rtexprvalue>
>>>     <type>java.lang.String</type>
>>>   </attribute>
>>>
>>> Can you give a try by adding <rtexprvalue>false</rtexprvalue>?
>>>
>>> Thanks,
>>> Raymond
>>>
>>> From: Vamsavardhana Reddy
>>> Sent: Monday, August 25, 2008 6:54 AM
>>> To: [email protected] ; [EMAIL PROTECTED]
>>> Subject: Re: Problem deploying alert-aggregator demo app from Java SCA
>>> 1.3.1 (RC1) on Geronimo 2.1.2
>>>
>>>
>>>
>>> Hi Ant,
>>>
>>> I tried to deploy the war file on Geronimo Tomcat 2.1.1, Geronimo Jetty
>>> 2.1.1, Geronimo Tomcat 2.1.2 and Geronimo Jetty 2.1.2.  I ended up with
>>> the same error message.  I am running Geronimo on Windows XP w Service Pack
>>> 2.
>>>
>>> ++Vamsi
>>>
>>>
>>> On Sat, Aug 23, 2008 at 12:51 PM, ant elder <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>> On Fri, Aug 22, 2008 at 2:15 PM, Vamsavardhana Reddy <
>>> [EMAIL PROTECTED]> wrote:
>>>
>>> I have built the demo-alert-aggregator war file as given in the
>>> instructions in Java SCA 1.3.1 (RC1) distribution and tried to deploy (not
>>> run, just deploy) the war on Geronimo 2.1.2.  I ended up with the
>>> following exception:
>>>
>>> 18:39:26,109 WARN  [JspModuleBuilderExtension] Invalid transformed taglib
>>> org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
>>>
>>> D:\eclipse\jar:file:D:\g\geronimo-tomcat6-javaee5-2.1.2\repository\org\apache\tuscany\sca\demo-alert-aggregator-webapp\1.3.1\demo-alert-aggregator-webapp-1.3.1.war\WEB-INF\lib\tuscany-host-webapp-1.3.1.jar!\META-INF\sca.tld:23:1:
>>> error: uniqattspec: Duplicate attribute: version in element taglib@
>>> http://java.sun.com/xml/ns/javaee
>>>
>>> D:\eclipse\jar:file:D:\g\geronimo-tomcat6-javaee5-2.1.2\repository\org\apache\tuscany\sca\demo-alert-aggregator-webapp\1.3.1\demo-alert-aggregator-webapp-1.3.1.war\WEB-INF\lib\tuscany-host-webapp-1.3.1.jar!\META-INF\sca.tld:40:7:
>>> 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
>>>
>>> D:\eclipse\jar:file:D:\g\geronimo-tomcat6-javaee5-2.1.2\repository\org\apache\tuscany\sca\demo-alert-aggregator-webapp\1.3.1\demo-alert-aggregator-webapp-1.3.1.war\WEB-INF\lib\tuscany-host-webapp-1.3.1.jar!\META-INF\sca.tld:46:7:
>>> 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
>>>
>>> D:\eclipse\jar:file:D:\g\geronimo-tomcat6-javaee5-2.1.2\repository\org\apache\tuscany\sca\demo-alert-aggregator-webapp\1.3.1\demo-alert-aggregator-webapp-1.3.1.war\WEB-INF\lib\tuscany-host-webapp-1.3.1.jar!\META-INF\sca.tld:52:7:
>>> 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:
>>> <!--* Licensed to the Apache Software Foundation (ASF) under one
>>> * or more contributor license agreements.  See the NOTICE file
>>> * distributed with this work for additional information
>>> * regarding copyright ownership.  The ASF licenses this file
>>> * to you under the Apache License, Version 2.0 (the
>>> * "License"); you may not use this file except in compliance
>>> * with the License.  You may obtain a copy of the License at
>>> *
>>> *   http://www.apache.org/licenses/LICENSE-2.0
>>> *
>>> * Unless required by applicable law or agreed to in writing,
>>> * software distributed under the License is distributed on an
>>> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>>> * KIND, either express or implied.  See the License for the
>>> * specific language governing permissions and limitations
>>> * under the License.-->
>>> <taglib xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>> http://java.sun.com/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</description>
>>>  <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>
>>>     <type>java.lang.String</type>
>>>   </attribute>
>>>   <attribute>
>>>     <name>type</name>
>>>     <required>true</required>
>>>     <type>java.lang.String</type>
>>>   </attribute>
>>>   <attribute>
>>>     <name>scope</name>
>>>     <required>false</required>
>>>     <type>java.lang.Integer</type>
>>>   </attribute>
>>>  </tag>
>>> </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.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:497)
>>>   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:595)
>>>
>>> Has anyone been able to run this sample on Geronimo?
>>>
>>> ++Vamsi
>>>
>>>
>>>
>>>
>>> I don't have Geronimo 2.1.2, but i have 2.1.1 and the
>>> demo-alert-aggregator is working fine on that.
>>>
>>>  ...ant
>>>
>>
>>
> Hi Vamsi
>
> It's not clear if you're going to go ahead and fix this or are asking
> someone else to fix it?
>
> Simon
>

Note that the taglib is defined in the SCA JEE spec so if this is needed
then the spec folks should be notified the spec needs updating too.

   ...ant

Reply via email to