Hi Todd, no, you should not have to change all occurrences of java.util.List to ArrayList. Instead, I guess we should have a detailed look. Can I please ask you to create a new Jira issue and attach a small test case that helps us to reply this very problem ?
Regards Werner Todd Lynch wrote: > I am trying to use the castor mapping tool to create a baseline > mapping for me to work from, as I have about 15 classes to map, and I > simply want to make a couple small changes, including using CamelCase > / camelCase instead of word-word. Regardless... > > When I try to add a class that has field of type java.util.List in it: > > mappingTool.addClass(Order.class); > > I receive the following error: > > list is not a valid FieldMappingCollectionType > > java.lang.IllegalArgumentException: list is not a valid > FieldMappingCollectionType at > org.exolab.castor.mapping.xml.types.FieldMappingCollectionType.valueOf(FieldMappingCollectionType.java:248) > at org.exolab.castor.tools.MappingTool.addClass(MappingTool.java:390) > at > com.xsrv.controller.utilities.CastorMapping.processRequest(CastorMapping.java:37) > at com.xsrv.controller.utilities.CastorMapping.doGet(CastorMapping.java:58) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > > I have looked through the Castor source and I see that there is a > mapping of collection types, and "list" is not a key in the mapping, > instead "arraylist" is. I guess I could go through my objects and > change every list to an arraylist, at least to create the original > mapping file, and then change them back, but I was wondering if there > is a better way to do this? > > Thanks in advance, > Todd > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

