[ 
https://issues.apache.org/struts/browse/TILES-276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44095#action_44095
 ] 

Dev Naga commented on TILES-276:
--------------------------------

Thank you so much Antonio.

I have downloaded the AddListAttributeTag  and PutListAttributeTag java files 
from svn and compiled it using Java5(by changing the project facets in 
preferences) and copied the compiled version of those files into the classes 
folder under its corresponding package. I got the following unsupported version 
error occurs. Did i do anything wrong in it? Wont retrotranslator help here. 
And I feel difficult to checkout each file from the svn repository. Can I have 
the compiled version of jar file, please? 

Error 500: LinkageError while defining class: 
org.apache.tiles.jsp.taglib.PutListAttributeTag Could not be defined due to: 
org/apache/tiles/jsp/taglib/PutListAttributeTag (Unsupported major.minor 
version 49.0) This is often caused by having a class defined at multiple 
locations within the classloader hierarchy. Other potential causes include 
compiling against an older or newer version of the class that has an 
incompatible method signature. Dumping the current context classloader 
hierarchy: ==> indicates defining classloader [0] [EMAIL PROTECTED] [1] [EMAIL 
PROTECTED] [2] [EMAIL PROTECTED] ---Original exception--- 
java.lang.UnsupportedClassVersionError: 
org/apache/tiles/jsp/taglib/PutListAttributeTag (Unsupported major.minor 
version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at 
java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled 
Code)) at 
com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java(Compiled
 Code)) at 
com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled
 Code)) at 
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled
 Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at 
com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitCustomTagStart(ValidateVisitor.java:396)
 at 
com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:253)
 at ........

> tiles:putListAttribute - PropertyDescriptor: internal error while merging 
> PDs: type mismatch between read and write methods
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TILES-276
>                 URL: https://issues.apache.org/struts/browse/TILES-276
>             Project: Tiles
>          Issue Type: Bug
>          Components: tiles-jsp (jsp support)
>    Affects Versions: 2.0.5, 2.0.6
>         Environment: WebSphere Platform 6.0 [BASE 6.0.2.15 cf150636.04] 
> Host Operating System is Windows XP, version 5.1
> Java version = J2RE 1.4.2 IBM Windows 32 build cn142-20060421 (SR5) (JIT 
> enabled: jitc), Java Compiler = jitc, Java VM name = Classic VM
>            Reporter: Dev Naga
>            Assignee: Antonio Petrelli
>             Fix For: 2.0.7
>
>         Attachments: TestPutListAttribute.java, tiles2_test_wksp.zip, 
> tiles2_test_wksp.zip, tiles2testEAR.ear
>
>
> 'PropertyDescriptor: internal error while merging PDs: type mismatch between 
> read and write methods'
> i am getting 'PropertyDescriptor: internal error while merging PDs: type 
> mismatch between read and write methods'
> exception in <tiles:putListAttribute name="list">
> <%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %>
> <tiles:insertTemplate template="/putattributeslayout.jsp">
>  <tiles:putAttribute name="stringTest" value="This is a string" type="string" 
> />
>  <tiles:putListAttribute name="list">
>    <tiles:addAttribute value="valueOne" type="string" />
>    <tiles:addAttribute value="valueTwo" type="string" />
>    <tiles:addAttribute value="valueThree" type="string" />
>  </tiles:putListAttribute>
> </tiles:insertTemplate>
> i included
> backport-util-concurrent-3.0.jar
> commons-beanutils-1.7.0.jar
> commons-digester-1.8.jar
> commons-logging-api-1.1.jar
> freemarker-2.3.10.jar
> jstl-1.1.2.jar
> retrotranslator-runtime-1.2.1.jar
> standard-1.1.2.jar
> tiles-api-2.0.6-j4.jar
> tiles-core-2.0.6-j4.jar
> tiles-jsp-2.0.6-j4.jar
> xalan.jar
> xercesImpl.jar
> xml-apis.jar
> Caused by: java.lang.Error: PropertyDescriptor: internal error while merging 
> PDs: type mismatch between read and write methods
>        at 
> java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java(Compiled Code))
>        at 
> java.beans.Introspector.processPropertyDescriptors(Introspector.java(Compiled 
> Code))
>        at 
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java(Compiled 
> Code))
>        at java.beans.Introspector.getBeanInfo(Introspector.java(Inlined 
> Compiled Code))
>        at java.beans.Introspector.getBeanInfo(Introspector.java(Compiled 
> Code))
>        at 
> freemarker.ext.jsp.TagTransformModel.<init>(TagTransformModel.java:116)
>        at 
> freemarker.ext.jsp.TaglibFactory$TldParser.endElement(TaglibFactory.java:581)
>        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
> Source)
>        at 
> org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
>        at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown 
> Source)
>        at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown 
> Source)
>        at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(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 freemarker.ext.jsp.TaglibFactory.parseXml(TaglibFactory.java:368)
>        at freemarker.ext.jsp.TaglibFactory.loadTaglib(TaglibFactory.java:437)
>        at freemarker.ext.jsp.TaglibFactory.access$300(TaglibFactory.java:105)
>        at freemarker.ext.jsp.TaglibFactory$Taglib.load(TaglibFactory.java:401)
>        at freemarker.ext.jsp.TaglibFactory.get(TaglibFactory.java:158)
>        at 
> freemarker.core.DynamicKeyName.dealWithStringKey(DynamicKeyName.java:136)
>        at 
> freemarker.core.DynamicKeyName._getAsTemplateModel(DynamicKeyName.java:94)
>        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
>        at freemarker.core.Assignment.accept(Assignment.java:90)
>        at freemarker.core.Environment.visit(Environment.java:196)
>        at freemarker.core.MixedContent.accept(MixedContent.java:92)
>        at freemarker.core.Environment.visit(Environment.java:196)
>        at freemarker.core.Environment.process(Environment.java:176)
>        at freemarker.template.Template.process(Template.java:232)
>        at 
> freemarker.ext.servlet.FreemarkerServlet.process(FreemarkerServlet.java:427)
>        at 
> freemarker.ext.servlet.FreemarkerServlet.doGet(FreemarkerServlet.java:366)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>        at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
>        at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
>        at 
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
>        at 
> com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
>        at 
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
>        at 
> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:633)
>        at 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1034)
>        at 
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:490)
>        at 
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:80)
>        ... 37 more

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

Reply via email to