geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-5726) Support old DTD style tld files
Date Wed, 08 Dec 2010 09:39:01 GMT

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

Ivan commented on GERONIMO-5726:
--------------------------------

Except for the jasper builder, seems that OpenEJB also tries to parse the tld files,  I am
thinking that OpenEJB loader is too agressive, as we have web builder to create the modules.

---->
The application was not deployed.
org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP tag library definition file:
jar:file:/H:/TCK30/20101206/gtw/var/temp/geronimo-deployer3217941196554346321.tmpdir/roller/WEB-INF/lib/string-1.1.0.jar!/META-INF/taglib.tld:
unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"info"). Expected elements
are <{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}function>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}listener>
org.apache.geronimo.common.DeploymentException: org.apache.openejb.OpenEJBException: Cannot
unmarshall the JSP tag library definition file: jar:file:/H:/TCK30/20101206/gtw/var/temp/geronimo-deployer3217941196554346321.tmpdir/roller/WEB-INF/lib/string-1.1.0.jar!/META-INF/taglib.tld:
unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"info"). Expected elements
are <{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}function>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}listener>
	at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbModuleBuilder.java:316)
	at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbModuleBuilder.java:286)
	at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:361)
	at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:267)
	at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:103)
	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:331)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:231)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:600)
	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:872)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
	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:736)
Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP tag library definition
file: jar:file:/H:/TCK30/20101206/gtw/var/temp/geronimo-deployer3217941196554346321.tmpdir/roller/WEB-INF/lib/string-1.1.0.jar!/META-INF/taglib.tld:
unexpected element (uri:"http://java.sun.com/xml/ns/javaee", local:"info"). Expected elements
are <{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}function>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}listener>
	at org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:533)
	at org.apache.openejb.config.DeploymentLoader.addTagLibraries(DeploymentLoader.java:738)
	at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:600)
	at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:514)
	at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:186)
	at org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbModuleBuilder.java:306)
	... 18 more
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://java.sun.com/xml/ns/javaee",
local:"info"). Expected elements are <{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}function>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}listener>
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642)
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254)
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249)
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)
	at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:101)
	at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:243)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:478)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459)
	at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:148)
	at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
	at org.apache.openejb.jee.JaxbJavaee$TaglibNamespaceFilter.startElement(JaxbJavaee.java:269)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
	at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:214)
	at org.apache.openejb.jee.JaxbJavaee.unmarshalTaglib(JaxbJavaee.java:201)
	at org.apache.openejb.config.ReadDescriptors.readTldTaglib(ReadDescriptors.java:529)
	... 23 more


> Support old DTD style tld files
> -------------------------------
>
>                 Key: GERONIMO-5726
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5726
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 3.0
>            Reporter: Ivan
>            Assignee: Ivan
>             Fix For: 3.0
>
>
> While trying to deployment Roller to latest Geronimo build, I got exception message below
:
> [severity=ERROR, message=unexpected element (uri:"http://java.sun.com/xml/ns/javaee",
local:"info"). Expected elements are <{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}function>,<{h
> ttp://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://ja
> va.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}listener>,
locator=[node=null, object=null, url=null, line=8,col=11,offset=-1]]
> I found that Roller uses a old DTD style tld file, and some convertion codes are removed
from the JasperModuleBuilder while we turned to jaxb parser. We need to recover those codes
or do some changes in jaxb class in the openejb-jee module.

-- 
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