geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Jain (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 15:24:55 GMT

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

Ashish Jain commented on GERONIMO-4002:
---------------------------------------

The section of the JSP 2.1 spec 

"JSP.7.3.4 Implicit Map Entries from TLDs"  suggests

The taglib map described in web.xml is extended with new entries extracted
from TLD files in the Web Application. The new entries are computed as follows:

• The container searches for all files with a .tld extension under /WEB-INF or a
subdirectory, and inside JAR files that are in /WEB-INF/lib. When examining a
JAR file, only resources under /META-INF or a subdirectory are considered.




> 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