geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-4002) Tag Library Descriptor not being picked up from WEB-INF/lib
Date Sat, 03 May 2008 16:40:55 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594009#action_12594009
] 

David Jencks commented on GERONIMO-4002:
----------------------------------------

Jsp 7.3.6 refers to implicit map entries, which this is definitely not an example of.

The explicit entries are described in jsp e.g. 3.8, the schema  and the location as a url
described in 1.2.1.  The schema says

the taglib-location element contains the location 
            (as a resource relative to the root of the web 
            application) where to find the Tag Library 
            Description file for the tag library.

which I think means that the location is supposed to be an url that the web app could serve,
not a file path inside the war.

> Tag Library Descriptor not being picked up from WEB-INF/lib
> -----------------------------------------------------------
>
>                 Key: GERONIMO-4002
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4002
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Tomcat
>    Affects Versions: 2.1
>         Environment: Windows XP, AG 2.1
>            Reporter: Ashish Jain
>             Fix For: 2.1.1
>
>
> The following illustration suggests the scenario:-
> 1) Package a TLD in a jar. The hierarchy of org.jar is META-INF/example.tld.
> 2) WEB-INF/lib/org.jar is the location for the jar.
> 3) In web.xml specify something like
> <taglib>
> 		<taglib-uri>test</taglib-uri>
> 		<taglib-location>/WEB-INF/lib/org.jar</taglib-location>
> 	</taglib>
> I get the following error while deploying the application
> Could not parse TLD file at file:/C:/AG/test/geronimo-tomcat6-javaee5-2.1/repository/default/SimpleJSF/1.0/SimpleJSF-1.0.car/WEB-INF/lib/org.jar
> org.apache.geronimo.common.DeploymentException: Could not parse TLD file at file:/C:/AG/test/geronimo-tomcat6-javaee5-2.1/repository/default/SimpleJSF/1.0/SimpleJSF-1.0.car/WEB-INF/lib/org.jar
> 	at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:472)
> 	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:493)
> 	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.GeneratedMethodAccessor202.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:618)
> 	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:810)
> Caused by: org.apache.xmlbeans.XmlException: C:\AG\test\geronimo-tomcat6-javaee5-2.1\repository\default\SimpleJSF\1.0\SimpleJSF-1.0.car\WEB-INF\lib\org.jar:1:1:
error: Illegal XML character: 0x3
> org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal XML character: 0x3
> 	at org.apache.xmlbeans.impl.piccolo.xml.UTF8XMLDecoder.decode(UTF8XMLDecoder.java:196)
> 	at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader$FastStreamDecoder.read(XMLStreamReader.java:762)
> 	at org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader.read(XMLStreamReader.java:162)
> 	at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3474)
> 	at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:3958)
> 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290)
> 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400)
> 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714)
> 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
> 	at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:657)
> 	at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.parse(XmlBeansUtil.java:76)
> 	at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:438)
> 	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:493)
> 	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.GeneratedMethodAccessor202.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:618)
> 	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:810)
> 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
> 	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:309)
> 	at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:657)
> 	at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.parse(XmlBeansUtil.java:76)
> 	at org.apache.geronimo.jasper.deployment.JspModuleBuilderExtension.parseTldFile(JspModuleBuilderExtension.java:438)
> 	... 18 more
> Caused by: org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal XML character:
0x3
> 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
> 	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:717)
> 	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
> 	... 25 more
> This error suggests that org.jar is being considered as a tld file and finally it fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message