The org.jboss.test.metadata.web.WebApp5EverythingUnitTestCase test is failing with:
| org.jboss.xb.binding.JBossXBException: Failed to parse source:
file:/C:/home/svn/JBossAS/projects/metadata/trunk/target/eclipse-classes/org/jboss/test/metadata/web/WebApp5Everything_testEverything.xml@53,21
| ...
| Caused by: java.lang.RuntimeException: Invalid value java.util.ArrayList@1531164 for
{http://java.sun.com/xml/ns/javaee}dispatcherType valid are [REQUEST, ERROR, FORWARD,
INCLUDE]
| at org.jboss.xb.builder.runtime.EnumValueAdapter.cast(EnumValueAdapter.java:111)
| at org.jboss.xb.builder.runtime.BeanHandler.setParent(BeanHandler.java:190)
| at
org.jboss.xb.builder.runtime.BuilderParticleHandler.setParent(BuilderParticleHandler.java:69)
| at
org.jboss.xb.binding.group.ValueListHandler$FACTORY$1.newInstance(ValueListHandler.java:401)
| at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endRepeatableParticle(SundayContentHandler.java:850)
| at
org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:221)
|
The property in question is the FilterMappingMetaData.dispatchers property, which is a
list of enum types:
| package org.jboss.metadata.web.spec;
|
|
| public class FilterMappingMetaData extends IdMetaDataImpl
|
| @XmlElement(name="dispatcher")
| public void setDispatchers(List<DispatcherType> dispatchers)
| {
| this.dispatchers = dispatchers;
| }
|
The input is an array of strings for valid enum values. Is the EnumValueAdapter supposed
to handle collections or is this supposed to be handled by the binding layer?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095750#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...