Hi, I tried to closely look into the issue. It looks like WEB-INF\lib\tuscany-host-webapp-1.4.jar!\META-INF\sca.tld file has the following tag that is creating the problem. *
<taglib version="2.1"> *I tried to remove this tag and redeploy the war on to the geronnimo server. Though the war file deployed this time, it throw an error when jsp was accessed. the error is ** org.apache.jasper.JasperException: Unable to read TLD "META-INF/sca.tld" from JAR file "file:/C:/ibm/wasce_server-2.0.0.2/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": org.apache.jasper.JasperException: Mandatory TLD element missing or empty: jsp-version org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:181) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:182) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426) ******** the schema * http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd specifies the "version" attribute is required. Thanks Phani * On Thu, Jan 29, 2009 at 7:20 PM, Phani Madgula < [email protected]> wrote: > Hi, > > I tried to deploy the sample-calculator-webapp.war file on geronimo 2.1 and > getting the following exception. I am trying to deploy calculator-webapp > sample. > > ************** > Server started. > 18:44:33,765 WARN [JspModuleBuilderExtension] Invalid transformed taglib > 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 > tag...@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(XmlBe > ansUtil.java:226) > at > org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.conve > rtToTaglibSchema(JspModuleBuilderExtension.java:674) > at > org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parse > TldFile(JspModuleBuilderExtension.java:439) > at > org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.getLi > stenerClasses(JspModuleBuilderExtension.java:424) > at > org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.creat > eJspClassFinder(JspModuleBuilderExtension.java:180) > at > org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.addGB > eans(JspModuleBuilderExtension.java:149) > at > org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension$$Fast > ClassByCGLIB$$1f60ab3b.invoke(<generated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:830) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.ModuleBuilderExtension$$EnhancerB > yCGLIB$$c47274eb.addGBeans(<generated>) > at > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(T > omcatModuleBuilder.java:453) > at > org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassB > yCGLIB$$6f85ec2c.invoke(<generated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:830) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$4 > e9152ac.addGBeans(<generated>) > at > org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans( > SwitchingModuleBuilder.java:165) > at > org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClass > ByCGLIB$$d0c31844.invoke(<generated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:830) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$4 > e9152ac.addGBeans(<generated>) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati > on(EARConfigBuilder.java:629) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLI > B$$38e56ec6.invoke(<generated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:830) > at > org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at > org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:35) > at > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at > org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByC > GLIB$$85beccc1.buildConfiguration(<generated>) > at > org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:319) > at > org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135) > at > org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.i > nvoke(<generated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:865) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 239) > at > org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342) > at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$ > 1cccefc9.in > voke(<generated>) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at > org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at > org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:865) > at > org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: > 239) > at > org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBrid > ge.java:168) > at > com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp > l.java:231) > at > com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM > BeanServerInterceptor.java:833) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802 > ) > at > javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnecti > onImpl.java:1423) > at > javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectio > nImpl.java:96) > at > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run > (RMIConnectionImpl.java:1260) > at > java.security.AccessController.doPrivileged(AccessController.java:279 > ) > at > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(R > MIConnectionImpl.java:1363) > at > javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImp > l.java:797) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:79) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:618) > at > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:309) > at sun.rmi.transport.Transport$1.run(Transport.java:168) > at > java.security.AccessController.doPrivileged(AccessController.java:279 > ) > at sun.rmi.transport.Transport.serviceCall(Transport.java:164) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:5 > 06) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TC > PTransport.java:838) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport > .java:912) > at java.lang.Thread.run(Thread.java:810) > Jan 29, 2009 6:44:34 PM > org.apache.tuscany.sca.host.webapp.WebAppServletHost ini > tContextPath > INFO: ContextPath: /sample-calculator-webapp > Jan 29, 2009 6:44:34 PM org.apache.tuscany.sca.node.impl.NodeImpl <init> > INFO: Creating node: null > Jan 29, 2009 6:44:37 PM org.apache.tuscany.sca.node.impl.NodeImpl > configureNode > INFO: Loading contribution: file:/C:/ibm/geronimo/repository/org/apa > > che/tuscany/sca/sample-calculator-webapp/1.4/sample-calculator-webapp-1.4.war/ > Jan 29, 2009 6:44:43 PM org.apache.tuscany.sca.node.impl.NodeImpl start > INFO: Starting node: null > Jan 29, 2009 6:47:11 PM org.apache.tuscany.sca.node.impl.NodeImpl stop > INFO: Stopping node: null > Jan 29, 2009 6:55:34 PM > org.apache.tuscany.sca.host.webapp.WebAppServletHost ini > tContextPath > INFO: ContextPath: /sample-calculator-webapp > Jan 29, 2009 6:55:34 PM org.apache.tuscany.sca.node.impl.NodeImpl <init> > INFO: Creating node: null > Jan 29, 2009 6:55:37 PM org.apache.tuscany.sca.node.impl.NodeImpl > configureNode > INFO: Loading contribution: file:/C:/geronimo/repository/org/apa > > che/tuscany/sca/sample-calculator-webapp/1.4/sample-calculator-webapp-1.4.war/ > Jan 29, 2009 6:55:38 PM org.apache.tuscany.sca.node.impl.NodeImpl start > INFO: Starting node: null > **************** > > WHat could be the error?? > > Thanks in advance > Phani >
