<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2408</id>
	<title>Nabble - Castor</title>
	<updated>2009-12-17T01:34:53Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Castor-f2408.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Castor-f2408.html" />
	<subtitle type="html">Castor is an Open Source data binding framework for Java[tm]. It's the shortest path between Java objects, XML documents and relational tables. Castor provides Java-to-XML binding, Java-to-SQL persistence, and more. Castor home is &lt;a href=&quot;http://castor.codehaus.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26825397</id>
	<title>Re: getting NullPointerException with nested list</title>
	<published>2009-12-17T01:34:53Z</published>
	<updated>2009-12-17T01:34:53Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;please change all List declarations such as
&lt;br&gt;&lt;br&gt;&amp;gt; private List&amp;lt;Resource&amp;gt; resource;
&lt;br&gt;&lt;br&gt;to
&lt;br&gt;&lt;br&gt;&amp;gt; private List&amp;lt;Resource&amp;gt; resource = new ArrayList&amp;lt;Resource&amp;gt;();
&lt;br&gt;&lt;br&gt;so that all collections are initialized properly.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;On 17.12.2009 00:45, patrickh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thank you for the reply.
&lt;br&gt;&amp;gt; Here are java classes(I removed irrelevant fields and methods)
&lt;br&gt;&amp;gt; public class Resources {
&lt;br&gt;&amp;gt; 	private List&amp;lt;Resource&amp;gt; resource;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	public Resources(List&amp;lt;Resource&amp;gt; resourceList) {
&lt;br&gt;&amp;gt; 		this.resource = resourceList;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 	
&lt;br&gt;&amp;gt; 	public Resources(){
&lt;br&gt;&amp;gt; 		super();
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	public List&amp;lt;Resource&amp;gt; getResource() {
&lt;br&gt;&amp;gt; 		return resource;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	public void setResource(List&amp;lt;Resource&amp;gt; resource) {
&lt;br&gt;&amp;gt; 		this.resource = resource;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; public class Resource {
&lt;br&gt;&amp;gt; 	private List&amp;lt;String&amp;gt; fileNames;
&lt;br&gt;&amp;gt; 	private List&amp;lt;File&amp;gt; files;
&lt;br&gt;&amp;gt; 	
&lt;br&gt;&amp;gt; 	/**
&lt;br&gt;&amp;gt; 	 * Convenient method to conver files into String
&lt;br&gt;&amp;gt; 	 * @param files
&lt;br&gt;&amp;gt; 	 * @return
&lt;br&gt;&amp;gt; 	 */
&lt;br&gt;&amp;gt; 	private List&amp;lt;String&amp;gt; convertFileNames(List&amp;lt;File&amp;gt; files){
&lt;br&gt;&amp;gt; 		List&amp;lt;String&amp;gt; names = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;gt; 		if(files == null){
&lt;br&gt;&amp;gt; 			return names;
&lt;br&gt;&amp;gt; 		}
&lt;br&gt;&amp;gt; 		for(File file : files){
&lt;br&gt;&amp;gt; 			names.add(file.getAbsoluteFile());
&lt;br&gt;&amp;gt; 		}
&lt;br&gt;&amp;gt; 		return names;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 	//
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 	// Mutator Methods
&lt;br&gt;&amp;gt; 	//
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 	public String getFileNames() {
&lt;br&gt;&amp;gt; 		if(fileNames != null){
&lt;br&gt;&amp;gt; 			return fileNames;
&lt;br&gt;&amp;gt; 		}
&lt;br&gt;&amp;gt; 		else{
&lt;br&gt;&amp;gt; 			return convertFileNames(files);
&lt;br&gt;&amp;gt; 		}
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 	public void setFileNames(String fileNames) {
&lt;br&gt;&amp;gt; 		this.fileNames = fileNames;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 	public void setFiles(List&amp;lt;File&amp;gt; files) {
&lt;br&gt;&amp;gt; 		this.files = files;
&lt;br&gt;&amp;gt; 		setFileNames(convertFileNames(files));	
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't initialize the outer List Resources.resource. If I remove the inner
&lt;br&gt;&amp;gt; Resource.fileNames, it works. So I would've thought it does not require
&lt;br&gt;&amp;gt; initialization? And from some examples I googled, they don't initialize List
&lt;br&gt;&amp;gt; either. But none of them uses nested collection tho...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks and regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Patrick
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Werner Guttmann-6 wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; to give you a precise answer, you'd need to show us the Java code as well.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Still, within your Resources/Resource classes, do you initialize the
&lt;br&gt;&amp;gt;&amp;gt; lists of resource/fileNames members upon object construction ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I.e. how do you declare the property fielNames in class Resource ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; private List&amp;lt;String&amp;gt; filenames;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; or
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; private List&amp;lt;String&amp;gt; filenames = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 16.12.2009 00:34, patrickh wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am trying to unmarshall a xml which is produced by castor.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I tried both having and not having mapping files and it all failed to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; unmarshal.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Here is the xml:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;resources&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;resource&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;resource-file&amp;gt;fake address 1&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;description-name&amp;gt;spiderman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;time-of-creation&amp;gt;2009-10-10&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;comment&amp;gt;good one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;size&amp;gt;1g&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;file-names&amp;gt;spiderman1.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;file-names&amp;gt;spiderman2.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;resource&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;resource-file&amp;gt;fake address 2&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;description-name&amp;gt;superman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;time-of-creation&amp;gt;2009-10-11&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;comment&amp;gt;bad one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;size&amp;gt;200m&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;file-names&amp;gt;superman a.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;file-names&amp;gt;superman b.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/resources&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Here is the mapping:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;class name=&amp;quot;huangp.domain.Resource&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;map-to xml=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;resourceFile&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;descriptionName&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;timeOfCreation&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;owner&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;comment&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;category&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;size&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;fileNames&amp;quot; type=&amp;quot;string&amp;quot; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;bind-xml name=&amp;quot;file-names&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;/field&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;!-- mapping for class 'huangp.domain.Resources' --&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;class name=&amp;quot;huangp.domain.Resources&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;field name=&amp;quot;resource&amp;quot; type=&amp;quot;huangp.domain.Resource&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;bind-xml name=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;/field&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Exception trace:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; org.exolab.castor.xml.MarshalException: Nested error:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; java.lang.NullPointerException{File: [not available]; line: 11; column:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 43}
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Resources class only have one field which is a List&amp;lt;Resource&amp;gt;. Resource
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; class has detailed fields and it contains another List&amp;lt;String&amp;gt; fileNames.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; suspect it is to do with this nested list? Can anyone please help? BTW I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; can't access castor site since yesterday...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Big thank you.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-NullPointerException-with-nested-list-tp26803517p26825397.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26820630</id>
	<title>Re: getting NullPointerException with nested list</title>
	<published>2009-12-16T15:45:47Z</published>
	<updated>2009-12-16T15:45:47Z</updated>
	<author>
		<name>patrickh</name>
	</author>
	<content type="html">Thank you for the reply.
&lt;br&gt;Here are java classes(I removed irrelevant fields and methods)
&lt;br&gt;public class Resources {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private List&amp;lt;Resource&amp;gt; resource;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Resources(List&amp;lt;Resource&amp;gt; resourceList) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.resource = resourceList;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Resources(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public List&amp;lt;Resource&amp;gt; getResource() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return resource;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void setResource(List&amp;lt;Resource&amp;gt; resource) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.resource = resource;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;public class Resource {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private List&amp;lt;String&amp;gt; fileNames;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private List&amp;lt;File&amp;gt; files;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Convenient method to conver files into String
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @param files
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @return
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private List&amp;lt;String&amp;gt; convertFileNames(List&amp;lt;File&amp;gt; files){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;String&amp;gt; names = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(files == null){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return names;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(File file : files){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; names.add(file.getAbsoluteFile());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return names;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // -------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Mutator Methods
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // -------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public String getFileNames() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(fileNames != null){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return fileNames;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return convertFileNames(files);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void setFileNames(String fileNames) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.fileNames = fileNames;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void setFiles(List&amp;lt;File&amp;gt; files) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.files = files;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setFileNames(convertFileNames(files));	
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;I don't initialize the outer List Resources.resource. If I remove the inner Resource.fileNames, it works. So I would've thought it does not require initialization? And from some examples I googled, they don't initialize List either. But none of them uses nested collection tho...
&lt;br&gt;&lt;br&gt;Thanks and regards,
&lt;br&gt;&lt;br&gt;Patrick
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Werner Guttmann-6 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;to give you a precise answer, you'd need to show us the Java code as well.
&lt;br&gt;&lt;br&gt;Still, within your Resources/Resource classes, do you initialize the
&lt;br&gt;lists of resource/fileNames members upon object construction ?
&lt;br&gt;&lt;br&gt;I.e. how do you declare the property fielNames in class Resource ?
&lt;br&gt;&lt;br&gt;private List&amp;lt;String&amp;gt; filenames;
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;private List&amp;lt;String&amp;gt; filenames = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;On 16.12.2009 00:34, patrickh wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am trying to unmarshall a xml which is produced by castor.
&lt;br&gt;&amp;gt; I tried both having and not having mapping files and it all failed to
&lt;br&gt;&amp;gt; unmarshal.
&lt;br&gt;&amp;gt; Here is the xml:
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;resources&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;resource&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;resource-file&amp;gt;fake address 1&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;description-name&amp;gt;spiderman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;time-of-creation&amp;gt;2009-10-10&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;comment&amp;gt;good one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;size&amp;gt;1g&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;spiderman1.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;spiderman2.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;resource&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;resource-file&amp;gt;fake address 2&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;description-name&amp;gt;superman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;time-of-creation&amp;gt;2009-10-11&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;comment&amp;gt;bad one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;size&amp;gt;200m&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;superman a.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;superman b.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/resources&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the mapping:
&lt;br&gt;&amp;gt; &amp;lt;class name=&amp;quot;huangp.domain.Resource&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;map-to xml=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;resourceFile&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;descriptionName&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;timeOfCreation&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;owner&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;comment&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;category&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;size&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;fileNames&amp;quot; type=&amp;quot;string&amp;quot; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;bind-xml name=&amp;quot;file-names&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/field&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;!-- mapping for class 'huangp.domain.Resources' --&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;class name=&amp;quot;huangp.domain.Resources&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;resource&amp;quot; type=&amp;quot;huangp.domain.Resource&amp;quot;
&lt;br&gt;&amp;gt; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;bind-xml name=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/field&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Exception trace:
&lt;br&gt;&amp;gt; org.exolab.castor.xml.MarshalException: Nested error:
&lt;br&gt;&amp;gt; java.lang.NullPointerException{File: [not available]; line: 11; column: 43}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Resources class only have one field which is a List&amp;lt;Resource&amp;gt;. Resource
&lt;br&gt;&amp;gt; class has detailed fields and it contains another List&amp;lt;String&amp;gt; fileNames. I
&lt;br&gt;&amp;gt; suspect it is to do with this nested list? Can anyone please help? BTW I
&lt;br&gt;&amp;gt; can't access castor site since yesterday...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Big thank you.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-NullPointerException-with-nested-list-tp26803517p26820630.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26810302</id>
	<title>Re: getting NullPointerException with nested list</title>
	<published>2009-12-16T04:23:02Z</published>
	<updated>2009-12-16T04:23:02Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;to give you a precise answer, you'd need to show us the Java code as well.
&lt;br&gt;&lt;br&gt;Still, within your Resources/Resource classes, do you initialize the
&lt;br&gt;lists of resource/fileNames members upon object construction ?
&lt;br&gt;&lt;br&gt;I.e. how do you declare the property fielNames in class Resource ?
&lt;br&gt;&lt;br&gt;private List&amp;lt;String&amp;gt; filenames;
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;private List&amp;lt;String&amp;gt; filenames = new ArrayList&amp;lt;String&amp;gt;();
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;On 16.12.2009 00:34, patrickh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am trying to unmarshall a xml which is produced by castor.
&lt;br&gt;&amp;gt; I tried both having and not having mapping files and it all failed to
&lt;br&gt;&amp;gt; unmarshal.
&lt;br&gt;&amp;gt; Here is the xml:
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;resources&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;resource&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;resource-file&amp;gt;fake address 1&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;description-name&amp;gt;spiderman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;time-of-creation&amp;gt;2009-10-10&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;comment&amp;gt;good one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;size&amp;gt;1g&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;spiderman1.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;spiderman2.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;resource&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;resource-file&amp;gt;fake address 2&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;description-name&amp;gt;superman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;time-of-creation&amp;gt;2009-10-11&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;comment&amp;gt;bad one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;size&amp;gt;200m&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;superman a.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;file-names&amp;gt;superman b.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/resources&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the mapping:
&lt;br&gt;&amp;gt; &amp;lt;class name=&amp;quot;huangp.domain.Resource&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;map-to xml=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;resourceFile&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;descriptionName&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;timeOfCreation&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;owner&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;comment&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;category&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;size&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;fileNames&amp;quot; type=&amp;quot;string&amp;quot; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;bind-xml name=&amp;quot;file-names&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/field&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;!-- mapping for class 'huangp.domain.Resources' --&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;class name=&amp;quot;huangp.domain.Resources&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;field name=&amp;quot;resource&amp;quot; type=&amp;quot;huangp.domain.Resource&amp;quot;
&lt;br&gt;&amp;gt; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;bind-xml name=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/field&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Exception trace:
&lt;br&gt;&amp;gt; org.exolab.castor.xml.MarshalException: Nested error:
&lt;br&gt;&amp;gt; java.lang.NullPointerException{File: [not available]; line: 11; column: 43}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Resources class only have one field which is a List&amp;lt;Resource&amp;gt;. Resource
&lt;br&gt;&amp;gt; class has detailed fields and it contains another List&amp;lt;String&amp;gt; fileNames. I
&lt;br&gt;&amp;gt; suspect it is to do with this nested list? Can anyone please help? BTW I
&lt;br&gt;&amp;gt; can't access castor site since yesterday...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Big thank you.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-NullPointerException-with-nested-list-tp26803517p26810302.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26803517</id>
	<title>getting NullPointerException with nested list</title>
	<published>2009-12-15T15:34:27Z</published>
	<updated>2009-12-15T15:34:27Z</updated>
	<author>
		<name>patrickh</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am trying to unmarshall a xml which is produced by castor.
&lt;br&gt;I tried both having and not having mapping files and it all failed to unmarshal.
&lt;br&gt;Here is the xml:
&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;resources&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;resource&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;resource-file&amp;gt;fake address 1&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;description-name&amp;gt;spiderman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;time-of-creation&amp;gt;2009-10-10&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;comment&amp;gt;good one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;size&amp;gt;1g&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;file-names&amp;gt;spiderman1.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;file-names&amp;gt;spiderman2.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;resource&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;resource-file&amp;gt;fake address 2&amp;lt;/resource-file&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;description-name&amp;gt;superman&amp;lt;/description-name&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;time-of-creation&amp;gt;2009-10-11&amp;lt;/time-of-creation&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;owner&amp;gt;huangp&amp;lt;/owner&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;comment&amp;gt;bad one&amp;lt;/comment&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;category&amp;gt;category 1&amp;lt;/category&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;size&amp;gt;200m&amp;lt;/size&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;file-names&amp;gt;superman a.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;file-names&amp;gt;superman b.rmvb&amp;lt;/file-names&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/resource&amp;gt;
&lt;br&gt;&amp;lt;/resources&amp;gt;
&lt;br&gt;&lt;br&gt;Here is the mapping:
&lt;br&gt;&amp;lt;class name=&amp;quot;huangp.domain.Resource&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;map-to xml=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;resourceFile&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;descriptionName&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;timeOfCreation&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;owner&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;comment&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;category&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;size&amp;quot; type=&amp;quot;string&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fileNames&amp;quot; type=&amp;quot;string&amp;quot; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;file-names&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&amp;lt;/class&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;!-- mapping for class 'huangp.domain.Resources' --&amp;gt;
&lt;br&gt;&amp;lt;class name=&amp;quot;huangp.domain.Resources&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;resource&amp;quot; type=&amp;quot;huangp.domain.Resource&amp;quot; collection=&amp;quot;arraylist&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;resource&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&amp;lt;/class&amp;gt;
&lt;br&gt;&lt;br&gt;Exception trace:
&lt;br&gt;org.exolab.castor.xml.MarshalException: Nested error: java.lang.NullPointerException{File: [not available]; line: 11; column: 43}
&lt;br&gt;&lt;br&gt;Resources class only have one field which is a List&amp;lt;Resource&amp;gt;. Resource class has detailed fields and it contains another List&amp;lt;String&amp;gt; fileNames. I suspect it is to do with this nested list? Can anyone please help? BTW I can't access castor site since yesterday...
&lt;br&gt;&lt;br&gt;Big thank you.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-NullPointerException-with-nested-list-tp26803517p26803517.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26802717</id>
	<title>Re: getting all data from an xml file when its structure is unknown</title>
	<published>2009-12-15T14:10:13Z</published>
	<updated>2009-12-15T14:10:13Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Not sure, to be honest. Why not expand a bit more so that we can get an
&lt;br&gt;idea of what you are trying to do.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;On 15.12.2009 22:59, Rusty Wright wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm trying to come up with a way to populate a database for integration
&lt;br&gt;&amp;gt; tests. &amp;nbsp;The database is Google's BigTable, which is more or less an
&lt;br&gt;&amp;gt; arbitrarily nested bunch of HashMap&amp;lt;String, Object&amp;gt;s. 
&lt;br&gt;&amp;gt; I would like to use xml to specify my test data, with a schema for it. 
&lt;br&gt;&amp;gt; I've got a simple setup where I've written a schema and generated the
&lt;br&gt;&amp;gt; java classes with Castor. &amp;nbsp;But now I need to iterate over all of the
&lt;br&gt;&amp;gt; objects and call each getter for the attributes and elements, and
&lt;br&gt;&amp;gt; recurse down when there are collections. &amp;nbsp;I would like to be able to do
&lt;br&gt;&amp;gt; this in a general sense, without having to know ahead of time what
&lt;br&gt;&amp;gt; getters the java classes have. &amp;nbsp;I hope that makes sense. &amp;nbsp;Is this possible?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-all-data-from-an-xml-file-when-its-structure-is-unknown-tp26802574p26802717.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26802574</id>
	<title>getting all data from an xml file when its structure is unknown</title>
	<published>2009-12-15T13:59:57Z</published>
	<updated>2009-12-15T13:59:57Z</updated>
	<author>
		<name>Rusty Wright-4</name>
	</author>
	<content type="html">I'm trying to come up with a way to populate a database for integration tests. &amp;nbsp;The database is Google's BigTable, which is more or less an arbitrarily nested bunch of HashMap&amp;lt;String, Object&amp;gt;s. &amp;nbsp;
&lt;br&gt;&lt;br&gt;I would like to use xml to specify my test data, with a schema for it. &amp;nbsp;I've got a simple setup where I've written a schema and generated the java classes with Castor. &amp;nbsp;But now I need to iterate over all of the objects and call each getter for the attributes and elements, and recurse down when there are collections. &amp;nbsp;I would like to be able to do this in a general sense, without having to know ahead of time what getters the java classes have. &amp;nbsp;I hope that makes sense. &amp;nbsp;Is this possible?
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-all-data-from-an-xml-file-when-its-structure-is-unknown-tp26802574p26802574.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26770705</id>
	<title>Re: [StudenProgram] proposal for changes in ResolverStrategy structure</title>
	<published>2009-12-13T15:04:01Z</published>
	<updated>2009-12-13T15:04:01Z</updated>
	<author>
		<name>Werner Guttmann</name>
	</author>
	<content type="html">Hi Michael,
&lt;br&gt;&lt;br&gt;as always, start with the absolute minimum required (i.e. the four new
&lt;br&gt;methods discussed and everything required to support those), and in the
&lt;br&gt;future build on this.
&lt;br&gt;&lt;br&gt;If you find something that's easy to be achieved (refactored) in this
&lt;br&gt;case, do not hesitate to go about this now.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;Michael Schröder wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; So Werner,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; we recently thought about the BaseResolver class you told us to implement in
&lt;br&gt;&amp;gt; order to refactor the ResolverStrategy. The attachment contains our proposal
&lt;br&gt;&amp;gt; for a possible new class structure. We weren’t sure whether you want us to
&lt;br&gt;&amp;gt; refactor everything or only create this new class in order to define the new
&lt;br&gt;&amp;gt; isCascading… methods on a good and central spot.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The question now is, whether our task also is to refactor all the
&lt;br&gt;&amp;gt; implementations of possible ResolverStrategies and try to pull out methods
&lt;br&gt;&amp;gt; which can also be implemented in this new abstract class or only to use the
&lt;br&gt;&amp;gt; new class for the four new Methods caring about the cascading functionality?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Lg Ivo
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-StudenProgram--proposal-for-changes-in-ResolverStrategy-structure-tp26767574p26770705.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26767574</id>
	<title>[StudenProgram] proposal for changes in ResolverStrategy structure</title>
	<published>2009-12-13T08:41:59Z</published>
	<updated>2009-12-13T08:41:59Z</updated>
	<author>
		<name>Michael Schröder-2</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;So Werner,&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;we recently
thought about the BaseResolver class you told us to implement in order to
refactor the ResolverStrategy. The attachment contains our proposal for a
possible new class structure. We weren’t sure whether you want us to refactor
everything or only create this new class in order to define the new
isCascading… methods on a good and central spot. &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;The
question now is, whether our task also is to refactor all the implementations
of possible ResolverStrategies and try to pull out methods which can also be
implemented in this new abstract class or only to use the new class for the
four new Methods caring about the cascading functionality?&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Lg Ivo&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;&lt;br&gt;
&lt;br /&gt; &lt;br /&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;ResolverStrategie_ClassDiagram.JPG&lt;/strong&gt; (151K) &lt;a href=&quot;http://old.nabble.com/attachment/26767574/0/ResolverStrategie_ClassDiagram.JPG&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-StudenProgram--proposal-for-changes-in-ResolverStrategy-structure-tp26767574p26767574.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26723983</id>
	<title>Re: Castor r8462 depends on castor-maven-plugin:2.0-SNAPSHOT</title>
	<published>2009-12-10T01:02:40Z</published>
	<updated>2009-12-10T01:02:40Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi Stevo,
&lt;br&gt;&lt;br&gt;me again, though a bit later than originally thought.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;Stevo Slavić wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Werner and Ralf,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;- My patch hasn't been applied completely. Even so, patch didn't remove
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;which prevented building castor), and there are some other snapshot
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;references too (default release plugin configuration would have prevented
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;this). All the modules seem to inherit org.codehaus.castor:castor aggregator
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;parent module which has pluginManagement section but it currently doesn't
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;with latest released version there, and then remove all the version
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;references from other child modules - this would improve consistency and
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;maintainability.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;- All the commented out stuff in poms should be cleaned up too - poms are
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;under version control after all, and all the commented out stuff just lowers
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;readability.
&lt;/div&gt;+1.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;- There are also multiple build helper plugin configurations with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;comments that they should be removed once new castor-maven-plugin is
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;released. 
&lt;br&gt;There's already a Jira issue that deals with this.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;IMO it is questionable whether build helper configuration should
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;be removed, 
&lt;br&gt;I think they should, as most of the functionality provided by the
&lt;br&gt;build-helper-plugin has been moved into the castor-maven-plugin, such as
&lt;br&gt;the addition of generated resource files to the project, etc. Again, the
&lt;br&gt;aforementioned patch should be dealing with this.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;.classpath files with hardcoded classpath entries to generated
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;sources should better be removed from version control (read on for more on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;this) - maven executions will use build helper plugin while for eclipse
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;there are maven integration plugins like m2eclipse which can handle this
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;dynamically
&lt;br&gt;Please no m2eclipse .. ;-), but in general the use of mvn
&lt;br&gt;eclipse:eclipse provides you - after a checkout - with everything
&lt;br&gt;required to work on the Castor sources.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;- Why have IDE (eclipse) specific files been put under version control? I
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;prefer to put them under svn:ignore and this seems to be practice in many if
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;not all maven core and plugin projects.
&lt;br&gt;I personally agree with you here, but this is down to personal
&lt;br&gt;preferences of committers. I can live with it, but for others
&lt;br&gt;convenience is very important.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Eclipse specific files like .classpath committed to svn have
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; hardcoded stuff like M2_REPO classpath entries. I'm using
&lt;br&gt;&amp;gt; eclipse too, with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; m2eclipse plugin and subversive with m2eclipse integration, so
&lt;br&gt;&amp;gt; project can
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; be easily checked-out as maven project, where m2eclipse
&lt;br&gt;&amp;gt; configures eclipse
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; classpath, not by adding classpath entry for every dependency,
&lt;br&gt;&amp;gt; but by adding
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; a single classpath entry to
&lt;br&gt;&amp;gt; org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; which acts as m2eclipse managed dynamic library with all the dependencies
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; configured in pom; now, if I manage project with m2eclipse it will modify
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; these IDE specific files and eclipse projects will appear as if
&lt;br&gt;&amp;gt; they've been
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; modified, and IDE specific files will appear in listings when preparing
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; patch;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; - .checkstyle configuration file is also under version control; with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; checkstyle 5.0 out, and eclipse-cs plugin and its integration with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; m2eclipse, it is enough just to configure latest maven
&lt;br&gt;&amp;gt; checkstyle plugin in
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; castor parent module pom, this configuration will be used by
&lt;br&gt;&amp;gt; maven and that
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; same configuration through eclipse-cs plugin m2eclipse
&lt;br&gt;&amp;gt; integration will be
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; used in eclipse as well; eclipse-cs m2eclipse generation in that
&lt;br&gt;&amp;gt; case will
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; configure eclipse-cs by generating .checkstyle file so it can possibly be
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; different to one under version control so this file and project
&lt;br&gt;&amp;gt; it belongs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; will appear as with modifications, thus it would be best to put
&lt;br&gt;&amp;gt; this, again
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; IDE specific, file out of version control and into the svn:ignore list.
&lt;/div&gt;Same as above. I am much in favour of Maven, and would think along the
&lt;br&gt;same lines. But then gain, for others this is less importamt.
&lt;br&gt;&lt;br&gt;&amp;gt; If you agree, I can create a patch with all these adjustments included for
&lt;br&gt;&amp;gt; you to verify.
&lt;br&gt;Thank you very much for this offer, but one patch for all these
&lt;br&gt;adjustments won't work (for the reasons stated above). But I'd
&lt;br&gt;appreciate any help with verifying some of my own patches and providing
&lt;br&gt;patches for isolated areas (where everybody agrees).
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Stevo.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/11/29 Ralf Joachim &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26723983&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralf.joachim@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Werner,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; you are right, I'm not using mvn eclipse:eclipse.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ralf
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Werner Guttmann schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ralf,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; just to make sure, you are not doing a mvn eclipse:eclipse before
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; importing Castor into Eclipse, correct ? If that's the case, you are
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (probably) right. But I will have to try this myself ....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PS Have you ever tried
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; svn co ....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mvn eclipse:eclipse
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; followed by an import of the Castor modules into Eclipse ?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Ralf Joachim wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Stevo and Werner,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; if you just do 'mvn clean install' you will still see compile errors in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; eclipse as generation of sources for cpactf and jdo-extension-it modules
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; will not be executed. To prevent this problems you have to execute 'mvn
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -Pit clean install'.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Werner: any chances to get generation of this sources triggered without
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; triggering execution of the tests?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ralf
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Werner Guttmann schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Stevo,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; given Ralf committed a patch a few days ago, can we assume that you can
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; now build things successfully.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Stevo Slavić wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hello Castor developers,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I was able to build current Castor only after upgrading dependency to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; castor-maven-plugin from 2.0-SNAPSHOT to 2.0. Additionaly I've removed
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; castor-maven-plugin dependency to codegen 1.3rc1 at one place as IMO
&lt;br&gt;&amp;gt;&amp;gt; it's no
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; longer needed. Attached is patch with these adjustments.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Stevo.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Ralf Joachim
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Raiffeisenstraße 11
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 72127 Kusterdingen
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Germany
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Tel. &amp;nbsp; +49 7071 3690 52
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Mobil: +49 173 9630135
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Fax &amp;nbsp; &amp;nbsp;+49 7071 3690 98
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Internet: www.syscon.eu
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26723983&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralf.joachim@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sitz der Gesellschaft: D-72127 Kusterdingen
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Registereintrag: Amtsgericht Stuttgart, HRB 382295
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Geschäftsleitung: Jens Joachim, Ralf Joachim
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------------------------- To
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
&lt;br&gt;&amp;gt;&amp;gt; Ralf Joachim
&lt;br&gt;&amp;gt;&amp;gt; Raiffeisenstraße 11
&lt;br&gt;&amp;gt;&amp;gt; 72127 Kusterdingen
&lt;br&gt;&amp;gt;&amp;gt; Germany
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Tel. &amp;nbsp; +49 7071 3690 52
&lt;br&gt;&amp;gt;&amp;gt; Mobil: +49 173 9630135
&lt;br&gt;&amp;gt;&amp;gt; Fax &amp;nbsp; &amp;nbsp;+49 7071 3690 98
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Internet: www.syscon.eu
&lt;br&gt;&amp;gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26723983&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralf.joachim@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sitz der Gesellschaft: D-72127 Kusterdingen
&lt;br&gt;&amp;gt;&amp;gt; Registereintrag: Amtsgericht Stuttgart, HRB 382295
&lt;br&gt;&amp;gt;&amp;gt; Geschäftsleitung: Jens Joachim, Ralf Joachim
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Castor-r8462-depends-on-castor-maven-plugin%3A2.0-SNAPSHOT-tp26413000p26723983.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26723911</id>
	<title>Re: Introduction and some questions</title>
	<published>2009-12-10T00:53:52Z</published>
	<updated>2009-12-10T00:53:52Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I agree with ralf that all tests should eventually end up in the
&lt;br&gt;functional test suite of castor JDO, but right now, plain JUnit tests is
&lt;br&gt;equally fine (as long as they will be transferred into the test suite at
&lt;br&gt;a later time).
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;Ralf Joachim wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Ivo, Hi Michael,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; see my comments inline.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ivo Friedberg schrieb:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; At first I want to introduce myself (Ivo Friedberg) and a colleague of
&lt;br&gt;&amp;gt;&amp;gt; mine, Michael Schroeder. We are both studying Informatics on the
&lt;br&gt;&amp;gt;&amp;gt; Technical University of Vienna and are now participating in a lecture
&lt;br&gt;&amp;gt;&amp;gt; called Advanced Software Engineering. In the context of this lecture
&lt;br&gt;&amp;gt;&amp;gt; we decided (after a little presentation of Werner) to work on Castor
&lt;br&gt;&amp;gt;&amp;gt; this semester and so here we are.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Very much appreciated.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The last month we were up to learn the basic understanding of the
&lt;br&gt;&amp;gt;&amp;gt; technology and structure of Castor (some of you may have noticed some
&lt;br&gt;&amp;gt;&amp;gt; strange jira issues?!) and now we have actually started with the
&lt;br&gt;&amp;gt;&amp;gt; underlying task. This is now to exchange the global AutoStore option
&lt;br&gt;&amp;gt;&amp;gt; with a finer grained cascading system. It should work directly in the
&lt;br&gt;&amp;gt;&amp;gt; mapping file allowing to specify which operations (create, update,
&lt;br&gt;&amp;gt;&amp;gt; delete,…) should be performed cascading and which not!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; I have recognized these jira issues but had informed by Werner before.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In order to achieve this, we started implementing a cascading
&lt;br&gt;&amp;gt;&amp;gt; attribute to the generated java classes in Castor and implemented the
&lt;br&gt;&amp;gt;&amp;gt; cascading=”create” option. This should make it able that only new
&lt;br&gt;&amp;gt;&amp;gt; added objects are stored automatically but no updates or delete
&lt;br&gt;&amp;gt;&amp;gt; operations. In order to reach this goal (I think we are nearly there
&lt;br&gt;&amp;gt;&amp;gt; right now although it’s some kind of bungling solution right now cause
&lt;br&gt;&amp;gt;&amp;gt; the attribute is only a String value right now which is going to be
&lt;br&gt;&amp;gt;&amp;gt; checked ;))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Now to our questions:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1. &amp;nbsp; &amp;nbsp; &amp;nbsp; dependent objects: we came upon the question how to treat
&lt;br&gt;&amp;gt;&amp;gt; dependent objects. As far as we found out, changing the master object
&lt;br&gt;&amp;gt;&amp;gt; of an depending object ignores the value of autostore and always
&lt;br&gt;&amp;gt;&amp;gt; creates the new master object. that seams reasonable, cause by the
&lt;br&gt;&amp;gt;&amp;gt; means of dependent objects they have to have a master object. But now
&lt;br&gt;&amp;gt;&amp;gt; we questioned whether we should take dependent relations into account
&lt;br&gt;&amp;gt;&amp;gt; while defining the cascading attribute, for example always assume
&lt;br&gt;&amp;gt;&amp;gt; cascading create and cascading delete as true but not update. This
&lt;br&gt;&amp;gt;&amp;gt; would be possible and there is the question whether this is
&lt;br&gt;&amp;gt;&amp;gt; interesting for castor or undermining the idea of the dependent objects!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as I know about depend every call to Datebase methods load(),
&lt;br&gt;&amp;gt; create(), update() or delete() are forbidden for dependent entities and
&lt;br&gt;&amp;gt; throw exceptions. For me this seams about similar to what should happen
&lt;br&gt;&amp;gt; when one declares a relation cascade=all. The difference between using
&lt;br&gt;&amp;gt; depend and cascade=all is, that depend also prevents access to dependent
&lt;br&gt;&amp;gt; entities at methods of Database interface. Does that make some sense?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;We where about to create some testcases but the question
&lt;br&gt;&amp;gt;&amp;gt; occurred where to put them and how to set up the derby database right.
&lt;br&gt;&amp;gt;&amp;gt; Is it better to make an own prpject for testing our implementation and
&lt;br&gt;&amp;gt;&amp;gt; not putting the tests directly into the castor project?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; @Werner: Do you have any specific wishes how we should treat this?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; The testcases should go into cpactf. Its framework will create/drop
&lt;br&gt;&amp;gt; tables for you if you supply the scripts and will also initialize
&lt;br&gt;&amp;gt; JDOManager. As I have not yet added much javadoc to the framework I
&lt;br&gt;&amp;gt; suggest to look at one of the other testcases. Numbering of test
&lt;br&gt;&amp;gt; packages relate to jira issue number. If you have questions regarding
&lt;br&gt;&amp;gt; the cpactf ask them away by mail or join me on Castor irc where I try to
&lt;br&gt;&amp;gt; be online as offen as possible.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for reading and have a nice evening,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ivo
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Ralf
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
&lt;br&gt;&amp;gt; Ralf Joachim
&lt;br&gt;&amp;gt; Raiffeisenstraße 11
&lt;br&gt;&amp;gt; 72127 Kusterdingen
&lt;br&gt;&amp;gt; Germany
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Tel. &amp;nbsp; +49 7071 3690 52
&lt;br&gt;&amp;gt; Mobil: +49 173 9630135
&lt;br&gt;&amp;gt; Fax &amp;nbsp; &amp;nbsp;+49 7071 3690 98
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Internet: www.syscon.eu
&lt;br&gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26723911&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralf.joachim@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sitz der Gesellschaft: D-72127 Kusterdingen
&lt;br&gt;&amp;gt; Registereintrag: Amtsgericht Stuttgart, HRB 382295
&lt;br&gt;&amp;gt; Geschäftsleitung: Jens Joachim, Ralf Joachim
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------------- To
&lt;br&gt;&amp;gt; unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Introduction-and-some-questions-tp26631211p26723911.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26723907</id>
	<title>Re: Introduction and some questions</title>
	<published>2009-12-10T00:53:45Z</published>
	<updated>2009-12-10T00:53:45Z</updated>
	<author>
		<name>Werner Guttmann</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I agree with ralf that all tests should eventually end up in the
&lt;br&gt;functional test suite of castor JDO, but right now, plain JUnit tests is
&lt;br&gt;equally fine (as long as they will be transferred into the test suite at
&lt;br&gt;a later time).
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;Ralf Joachim wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Ivo, Hi Michael,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; see my comments inline.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ivo Friedberg schrieb:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; At first I want to introduce myself (Ivo Friedberg) and a colleague of
&lt;br&gt;&amp;gt;&amp;gt; mine, Michael Schroeder. We are both studying Informatics on the
&lt;br&gt;&amp;gt;&amp;gt; Technical University of Vienna and are now participating in a lecture
&lt;br&gt;&amp;gt;&amp;gt; called Advanced Software Engineering. In the context of this lecture
&lt;br&gt;&amp;gt;&amp;gt; we decided (after a little presentation of Werner) to work on Castor
&lt;br&gt;&amp;gt;&amp;gt; this semester and so here we are.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Very much appreciated.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The last month we were up to learn the basic understanding of the
&lt;br&gt;&amp;gt;&amp;gt; technology and structure of Castor (some of you may have noticed some
&lt;br&gt;&amp;gt;&amp;gt; strange jira issues?!) and now we have actually started with the
&lt;br&gt;&amp;gt;&amp;gt; underlying task. This is now to exchange the global AutoStore option
&lt;br&gt;&amp;gt;&amp;gt; with a finer grained cascading system. It should work directly in the
&lt;br&gt;&amp;gt;&amp;gt; mapping file allowing to specify which operations (create, update,
&lt;br&gt;&amp;gt;&amp;gt; delete,…) should be performed cascading and which not!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; I have recognized these jira issues but had informed by Werner before.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In order to achieve this, we started implementing a cascading
&lt;br&gt;&amp;gt;&amp;gt; attribute to the generated java classes in Castor and implemented the
&lt;br&gt;&amp;gt;&amp;gt; cascading=”create” option. This should make it able that only new
&lt;br&gt;&amp;gt;&amp;gt; added objects are stored automatically but no updates or delete
&lt;br&gt;&amp;gt;&amp;gt; operations. In order to reach this goal (I think we are nearly there
&lt;br&gt;&amp;gt;&amp;gt; right now although it’s some kind of bungling solution right now cause
&lt;br&gt;&amp;gt;&amp;gt; the attribute is only a String value right now which is going to be
&lt;br&gt;&amp;gt;&amp;gt; checked ;))
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Now to our questions:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 1. &amp;nbsp; &amp;nbsp; &amp;nbsp; dependent objects: we came upon the question how to treat
&lt;br&gt;&amp;gt;&amp;gt; dependent objects. As far as we found out, changing the master object
&lt;br&gt;&amp;gt;&amp;gt; of an depending object ignores the value of autostore and always
&lt;br&gt;&amp;gt;&amp;gt; creates the new master object. that seams reasonable, cause by the
&lt;br&gt;&amp;gt;&amp;gt; means of dependent objects they have to have a master object. But now
&lt;br&gt;&amp;gt;&amp;gt; we questioned whether we should take dependent relations into account
&lt;br&gt;&amp;gt;&amp;gt; while defining the cascading attribute, for example always assume
&lt;br&gt;&amp;gt;&amp;gt; cascading create and cascading delete as true but not update. This
&lt;br&gt;&amp;gt;&amp;gt; would be possible and there is the question whether this is
&lt;br&gt;&amp;gt;&amp;gt; interesting for castor or undermining the idea of the dependent objects!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; As far as I know about depend every call to Datebase methods load(),
&lt;br&gt;&amp;gt; create(), update() or delete() are forbidden for dependent entities and
&lt;br&gt;&amp;gt; throw exceptions. For me this seams about similar to what should happen
&lt;br&gt;&amp;gt; when one declares a relation cascade=all. The difference between using
&lt;br&gt;&amp;gt; depend and cascade=all is, that depend also prevents access to dependent
&lt;br&gt;&amp;gt; entities at methods of Database interface. Does that make some sense?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;We where about to create some testcases but the question
&lt;br&gt;&amp;gt;&amp;gt; occurred where to put them and how to set up the derby database right.
&lt;br&gt;&amp;gt;&amp;gt; Is it better to make an own prpject for testing our implementation and
&lt;br&gt;&amp;gt;&amp;gt; not putting the tests directly into the castor project?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; @Werner: Do you have any specific wishes how we should treat this?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; The testcases should go into cpactf. Its framework will create/drop
&lt;br&gt;&amp;gt; tables for you if you supply the scripts and will also initialize
&lt;br&gt;&amp;gt; JDOManager. As I have not yet added much javadoc to the framework I
&lt;br&gt;&amp;gt; suggest to look at one of the other testcases. Numbering of test
&lt;br&gt;&amp;gt; packages relate to jira issue number. If you have questions regarding
&lt;br&gt;&amp;gt; the cpactf ask them away by mail or join me on Castor irc where I try to
&lt;br&gt;&amp;gt; be online as offen as possible.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks for reading and have a nice evening,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Ivo
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Ralf
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
&lt;br&gt;&amp;gt; Ralf Joachim
&lt;br&gt;&amp;gt; Raiffeisenstraße 11
&lt;br&gt;&amp;gt; 72127 Kusterdingen
&lt;br&gt;&amp;gt; Germany
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Tel. &amp;nbsp; +49 7071 3690 52
&lt;br&gt;&amp;gt; Mobil: +49 173 9630135
&lt;br&gt;&amp;gt; Fax &amp;nbsp; &amp;nbsp;+49 7071 3690 98
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Internet: www.syscon.eu
&lt;br&gt;&amp;gt; E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26723907&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralf.joachim@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sitz der Gesellschaft: D-72127 Kusterdingen
&lt;br&gt;&amp;gt; Registereintrag: Amtsgericht Stuttgart, HRB 382295
&lt;br&gt;&amp;gt; Geschäftsleitung: Jens Joachim, Ralf Joachim
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------------------------- To
&lt;br&gt;&amp;gt; unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Introduction-and-some-questions-tp26631211p26723907.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26715758</id>
	<title>Re: Getting xmlns right</title>
	<published>2009-12-09T11:02:02Z</published>
	<updated>2009-12-09T11:02:02Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi Pablo,
&lt;br&gt;&lt;br&gt;assuming that you are using a mapping file, you need to define the
&lt;br&gt;namespace uri in your mapping file, and then instruct the Marshaller to
&lt;br&gt;use the default namespace definition through ...
&lt;br&gt;&lt;br&gt;marshaller.setNamespaceMapping(&amp;quot;&amp;quot;,&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot;);
&lt;br&gt;&lt;br&gt;Does this make sense ?
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;pablo fernandez wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'd like my root element to have this xmlns:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;friends xmlns=&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've tryied this:
&lt;br&gt;&amp;gt; &amp;nbsp; marshaller.setNamespaceMapping(&amp;quot;xmlns&amp;quot;,&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot;);
&lt;br&gt;&amp;gt; but got:
&lt;br&gt;&amp;gt; &amp;nbsp; xmlns:xmlns=&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot; (note the duplicated 'xmlns')
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I do this:
&lt;br&gt;&amp;gt; &amp;nbsp; marshaller.setNamespaceMapping(&amp;quot;&amp;quot;,&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot;); // or send
&lt;br&gt;&amp;gt; null as the first arg
&lt;br&gt;&amp;gt; I get:
&lt;br&gt;&amp;gt; &amp;nbsp; xmlns=&amp;quot;&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any idea how can I make it work? Thanks!
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-xmlns-right-tp26699668p26715758.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26715713</id>
	<title>Re: NoClassDefFoundErro: org.exolab/castor/builder/SourceGenerator</title>
	<published>2009-12-09T10:59:37Z</published>
	<updated>2009-12-09T10:59:37Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;did you really use
&lt;br&gt;&lt;br&gt;&amp;gt; java org.exolab/castor/builder/SourceGenerator
&lt;br&gt;&lt;br&gt;instead of
&lt;br&gt;&lt;br&gt;&amp;gt; java org.exolab.castor.builder.SourceGenerator ?
&lt;br&gt;&lt;br&gt;And on top of that, why not use the source generator throught the
&lt;br&gt;command line tool, Ant or Maven ?
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;solt wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; when i enter &amp;quot;java &amp;nbsp;org.exolab/castor/builder/SourceGenerator&amp;quot; in cmd
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; it display the error:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Caused by: java.lang.ClassNotFoundException:
&lt;br&gt;&amp;gt; org.exolab.castor.builder.SourceGen
&lt;br&gt;&amp;gt; erator
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader$1.run(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader.findClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClassInternal(Unknown Source)
&lt;br&gt;&amp;gt; Could not find the main class: org.exolab/castor/builder/SourceGenerator. 
&lt;br&gt;&amp;gt; Progr
&lt;br&gt;&amp;gt; am will exit.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; what is wrong?
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundErro%3A-org.exolab-castor-builder-SourceGenerator-tp26656341p26715713.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26699668</id>
	<title>Getting xmlns right</title>
	<published>2009-12-08T11:51:00Z</published>
	<updated>2009-12-08T11:51:00Z</updated>
	<author>
		<name>Fernandez Pablo</name>
	</author>
	<content type="html">Hi,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;d like my root element to have this xmlns:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&amp;lt;friends xmlns=&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot;&amp;gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;
I&amp;#39;ve tryied this:&lt;/div&gt;&lt;div&gt;  marshaller.setNamespaceMapping(&amp;quot;xmlns&amp;quot;,&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot;);&lt;/div&gt;&lt;div&gt;but got:&lt;/div&gt;&lt;div&gt;  xmlns:xmlns=&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot; (note the duplicated &amp;#39;xmlns&amp;#39;)&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;If I do this:&lt;/div&gt;&lt;div&gt;  marshaller.setNamespaceMapping(&amp;quot;&amp;quot;,&amp;quot;&lt;a href=&quot;http://mypropietary.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mypropietary.xsd&lt;/a&gt;&amp;quot;); // or send null as the first arg&lt;/div&gt;&lt;div&gt;I get:&lt;/div&gt;
&lt;div&gt;  xmlns=&amp;quot;&amp;quot;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Any idea how can I make it work? Thanks!&lt;br&gt;-- &lt;br&gt;Fernandez, Pablo.&lt;br&gt;
&lt;/div&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-xmlns-right-tp26699668p26699668.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26661619</id>
	<title>Re: NoClassDefFoundErro: org.exolab/castor/builder/SourceGenerator</title>
	<published>2009-12-05T18:23:43Z</published>
	<updated>2009-12-05T18:23:43Z</updated>
	<author>
		<name>solt</name>
	</author>
	<content type="html">&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Ralf Joachim-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi Solt,
&lt;br&gt;&lt;br&gt;which Castor jar's do you have on your classpath?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;solt schrieb:
&lt;br&gt;&amp;gt; when i enter &amp;quot;java &amp;nbsp;org.exolab/castor/builder/SourceGenerator&amp;quot; in cmd
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it display the error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Caused by: java.lang.ClassNotFoundException:
&lt;br&gt;&amp;gt; org.exolab.castor.builder.SourceGen
&lt;br&gt;&amp;gt; erator
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader$1.run(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader.findClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClassInternal(Unknown Source)
&lt;br&gt;&amp;gt; Could not find the main class: org.exolab/castor/builder/SourceGenerator. 
&lt;br&gt;&amp;gt; Progr
&lt;br&gt;&amp;gt; am will exit.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; what is wrong?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
&lt;br&gt;Ralf Joachim
&lt;br&gt;Raiffeisenstraße 11
&lt;br&gt;72127 Kusterdingen
&lt;br&gt;Germany
&lt;br&gt;&lt;br&gt;Tel. &amp;nbsp; +49 7071 3690 52
&lt;br&gt;Mobil: +49 173 9630135
&lt;br&gt;Fax &amp;nbsp; &amp;nbsp;+49 7071 3690 98
&lt;br&gt;&lt;br&gt;Internet: www.syscon.eu
&lt;br&gt;E-Mail: ralf.joachim@syscon.eu
&lt;br&gt;&lt;br&gt;Sitz der Gesellschaft: D-72127 Kusterdingen
&lt;br&gt;Registereintrag: Amtsgericht Stuttgart, HRB 382295
&lt;br&gt;Geschäftsleitung: Jens Joachim, Ralf Joachim
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
i set classpath=&amp;quot;D:\castor-1.3\castor-1.3.jar&amp;quot;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundErro%3A-org.exolab-castor-builder-SourceGenerator-tp26656341p26661619.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26660335</id>
	<title>Re: NoClassDefFoundErro: org.exolab/castor/builder/SourceGenerator</title>
	<published>2009-12-05T15:06:10Z</published>
	<updated>2009-12-05T15:06:10Z</updated>
	<author>
		<name>Ralf Joachim-2</name>
	</author>
	<content type="html">Hi Solt,
&lt;br&gt;&lt;br&gt;which Castor jar's do you have on your classpath?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Ralf
&lt;br&gt;&lt;br&gt;solt schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; when i enter &amp;quot;java &amp;nbsp;org.exolab/castor/builder/SourceGenerator&amp;quot; in cmd
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; it display the error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Caused by: java.lang.ClassNotFoundException:
&lt;br&gt;&amp;gt; org.exolab.castor.builder.SourceGen
&lt;br&gt;&amp;gt; erator
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader$1.run(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader.findClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClassInternal(Unknown Source)
&lt;br&gt;&amp;gt; Could not find the main class: org.exolab/castor/builder/SourceGenerator. 
&lt;br&gt;&amp;gt; Progr
&lt;br&gt;&amp;gt; am will exit.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; what is wrong?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;-- 
&lt;br&gt;&lt;br&gt;Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
&lt;br&gt;Ralf Joachim
&lt;br&gt;Raiffeisenstraße 11
&lt;br&gt;72127 Kusterdingen
&lt;br&gt;Germany
&lt;br&gt;&lt;br&gt;Tel. &amp;nbsp; +49 7071 3690 52
&lt;br&gt;Mobil: +49 173 9630135
&lt;br&gt;Fax &amp;nbsp; &amp;nbsp;+49 7071 3690 98
&lt;br&gt;&lt;br&gt;Internet: www.syscon.eu
&lt;br&gt;E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26660335&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralf.joachim@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;Sitz der Gesellschaft: D-72127 Kusterdingen
&lt;br&gt;Registereintrag: Amtsgericht Stuttgart, HRB 382295
&lt;br&gt;Geschäftsleitung: Jens Joachim, Ralf Joachim
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundErro%3A-org.exolab-castor-builder-SourceGenerator-tp26656341p26660335.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26656341</id>
	<title>NoClassDefFoundErro: org.exolab/castor/builder/SourceGenerator</title>
	<published>2009-12-05T07:00:25Z</published>
	<updated>2009-12-05T07:00:25Z</updated>
	<author>
		<name>solt</name>
	</author>
	<content type="html">when i enter &amp;quot;java &amp;nbsp;org.exolab/castor/builder/SourceGenerator&amp;quot; in cmd
&lt;br&gt;&lt;br&gt;it display the error:
&lt;br&gt;&lt;br&gt;Caused by: java.lang.ClassNotFoundException: org.exolab.castor.builder.SourceGen
&lt;br&gt;erator
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader$1.run(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.URLClassLoader.findClass(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClassInternal(Unknown Source)
&lt;br&gt;Could not find the main class: org.exolab/castor/builder/SourceGenerator. &amp;nbsp;Progr
&lt;br&gt;am will exit.
&lt;br&gt;&lt;br&gt;what is wrong?&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NoClassDefFoundErro%3A-org.exolab-castor-builder-SourceGenerator-tp26656341p26656341.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631682</id>
	<title>Re: Introduction and some questions</title>
	<published>2009-12-03T11:25:07Z</published>
	<updated>2009-12-03T11:25:07Z</updated>
	<author>
		<name>Ralf Joachim-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
  &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Ivo, Hi Michael,&lt;br&gt;
&lt;br&gt;
see my comments inline.&lt;br&gt;
&lt;br&gt;
Ivo Friedberg schrieb:
&lt;blockquote cite=&quot;mid:000f01ca744a$5bae1e20$130a5a60$@at&quot; type=&quot;cite&quot;&gt;
  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; &quot;&gt;
  &lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
  
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
  &lt;div class=&quot;Section1&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;Hello,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;At first I want to introduce
myself (Ivo
Friedberg) and a colleague of mine, Michael Schroeder. We are both
studying Informatics
on the Technical University of Vienna and are now participating in a
lecture
called Advanced Software Engineering. In the context of this lecture we
decided
(after a little presentation of Werner) to work on Castor this semester
and so
here we are.&lt;/span&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;
Very much appreciated.&lt;br&gt;
&lt;blockquote cite=&quot;mid:000f01ca744a$5bae1e20$130a5a60$@at&quot; type=&quot;cite&quot;&gt;
  &lt;div class=&quot;Section1&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;The last month we were up to
learn the basic
understanding of the technology and structure of Castor (some of you
may have
noticed some strange jira issues?!) and now we have actually started
with the underlying
task. This is now to exchange the global AutoStore option with a finer
grained
cascading system. It should work directly in the mapping file allowing
to
specify which operations (create, update, delete,&amp;#8230;) should be performed
cascading and which not!&lt;/span&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;
I have recognized these jira issues but had informed by Werner before.&lt;br&gt;
&lt;blockquote cite=&quot;mid:000f01ca744a$5bae1e20$130a5a60$@at&quot; type=&quot;cite&quot;&gt;
  &lt;div class=&quot;Section1&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;In order to achieve this, we
started
implementing a cascading attribute to the generated java classes in
Castor and
implemented the cascading=&amp;#8221;create&amp;#8221; option. This should make it able
that only new added objects are stored automatically but no updates or
delete
operations. In order to reach this goal (I think we are nearly there
right now
although it&amp;#8217;s some kind of bungling solution right now cause the
attribute is only a String value right now which is going to be checked
;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Now to our questions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoListParagraph&quot; style=&quot;text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;&quot;&gt;1.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;dependent
objects: we came upon
the question how to treat dependent objects. As far as we found out,
changing
the master object of an depending object ignores the value of autostore
and
always creates the new master object. that seams reasonable, cause by
the means
of dependent objects they have to have a master object. But now we
questioned
whether we should take dependent relations into account while defining
the
cascading attribute, for example always assume cascading create and
cascading
delete as true but not update. This would be possible and there is the
question
whether this is interesting for castor or undermining the idea of the
dependent
objects!&lt;/span&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;
As far as I know about depend every call to Datebase methods load(),
create(), update() or delete() are forbidden for dependent entities and
throw exceptions. For me this seams about similar to what should happen
when one declares a relation cascade=all. The difference between using
depend and cascade=all is, that depend also prevents access to
dependent entities at methods of Database interface. Does that make
some sense?&lt;br&gt;
&lt;blockquote cite=&quot;mid:000f01ca744a$5bae1e20$130a5a60$@at&quot; type=&quot;cite&quot;&gt;
  &lt;div class=&quot;Section1&quot;&gt;
  &lt;p class=&quot;MsoListParagraph&quot; style=&quot;text-indent: -18pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoListParagraph&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoListParagraph&quot; style=&quot;text-indent: -18pt;&quot;&gt;&lt;!--[if !supportLists]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;&quot;&gt;2.&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span lang=&quot;EN-US&quot;&gt;&amp;nbsp;We where about
to create
some testcases but the question occurred where to put them and how to
set up
the derby database right. Is it better to make an own prpject for
testing our
implementation and not putting the tests directly into the castor
project? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 35.4pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;@Werner:
Do you
have any specific wishes how we should treat this?&lt;/span&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;
The testcases should go into cpactf. Its framework will create/drop
tables for you if you supply the scripts and will also initialize
JDOManager. As I have not yet added much javadoc to the framework I
suggest to look at one of the other testcases. Numbering of test
packages relate to jira issue number. If you have questions regarding
the cpactf ask them away by mail or join me on Castor irc where I try
to be online as offen as possible.&lt;br&gt;
&lt;blockquote cite=&quot;mid:000f01ca744a$5bae1e20$130a5a60$@at&quot; type=&quot;cite&quot;&gt;
  &lt;div class=&quot;Section1&quot;&gt;
  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 35.4pt;&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Thanks for reading and have a
nice evening,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;EN-US&quot;&gt;Ivo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;/div&gt;
&lt;/blockquote&gt;
Regards&lt;br&gt;
Ralf&lt;br&gt;
&lt;pre class=&quot;moz-signature&quot; cols=&quot;72&quot;&gt;-- 

Syscon Ingenieurb&amp;uuml;ro f&amp;uuml;r Me&amp;szlig;- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstra&amp;szlig;e 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: &lt;a class=&quot;moz-txt-link-abbreviated&quot; href=&quot;http://www.syscon.eu&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.syscon.eu&lt;/a&gt;
E-Mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26631682&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ralf.joachim@...&lt;/a&gt;

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Gesch&amp;auml;ftsleitung: Jens Joachim, Ralf Joachim
&lt;/pre&gt;
&lt;/body&gt;
&lt;/html&gt;

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Introduction-and-some-questions-tp26631211p26631682.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26631211</id>
	<title>Introduction and some questions</title>
	<published>2009-12-03T10:56:44Z</published>
	<updated>2009-12-03T10:56:44Z</updated>
	<author>
		<name>Ivo Friedberg</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=DE-AT link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;Hello,&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;At first I want to introduce myself (Ivo
Friedberg) and a colleague of mine, Michael Schroeder. We are both studying Informatics
on the Technical University of Vienna and are now participating in a lecture
called Advanced Software Engineering. In the context of this lecture we decided
(after a little presentation of Werner) to work on Castor this semester and so
here we are. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;The last month we were up to learn the basic
understanding of the technology and structure of Castor (some of you may have
noticed some strange jira issues?!) and now we have actually started with the underlying
task. This is now to exchange the global AutoStore option with a finer grained
cascading system. It should work directly in the mapping file allowing to
specify which operations (create, update, delete,&amp;#8230;) should be performed
cascading and which not!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;In order to achieve this, we started
implementing a cascading attribute to the generated java classes in Castor and
implemented the cascading=&amp;#8221;create&amp;#8221; option. This should make it able
that only new added objects are stored automatically but no updates or delete
operations. In order to reach this goal (I think we are nearly there right now
although it&amp;#8217;s some kind of bungling solution right now cause the
attribute is only a String value right now which is going to be checked ;))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;Now to our questions:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span lang=EN-US&gt;&lt;span style='mso-list:Ignore'&gt;1.&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;span lang=EN-US&gt;dependent objects: we came upon
the question how to treat dependent objects. As far as we found out, changing
the master object of an depending object ignores the value of autostore and
always creates the new master object. that seams reasonable, cause by the means
of dependent objects they have to have a master object. But now we questioned
whether we should take dependent relations into account while defining the
cascading attribute, for example always assume cascading create and cascading
delete as true but not update. This would be possible and there is the question
whether this is interesting for castor or undermining the idea of the dependent
objects!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph&gt;&lt;span lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'&gt;&lt;![if !supportLists]&gt;&lt;span lang=EN-US&gt;&lt;span style='mso-list:Ignore'&gt;2.&lt;span style='font:7.0pt &quot;Times New Roman&quot;'&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;![endif]&gt;&lt;span lang=EN-US&gt;&amp;nbsp;We where about to create
some testcases but the question occurred where to put them and how to set up
the derby database right. Is it better to make an own prpject for testing our
implementation and not putting the tests directly into the castor project? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-left:35.4pt'&gt;&lt;span lang=EN-US&gt;@Werner: Do you
have any specific wishes how we should treat this?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;Thanks for reading and have a nice evening,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span lang=EN-US&gt;Ivo&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Introduction-and-some-questions-tp26631211p26631211.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26623651</id>
	<title>XML - Verify usage of Castor Mapping (Sorry original was in HTML format resending)</title>
	<published>2009-12-03T02:11:15Z</published>
	<updated>2009-12-03T02:11:15Z</updated>
	<author>
		<name>Maguire, Declan</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am working in a application that needs to read a XML file and convert it into Value Objects that the application will process. &amp;nbsp;I have started to use castor and I have completed 99% of the mapping between the XML File and our Value Object. &amp;nbsp;I have a couple of questions about best practice and to ensure that I have defined the mapping correctly. &amp;nbsp;The XML Data File and Value Object class hierarchy are fixed and can not be changed. &amp;nbsp;I have developed a simple example of how I believe I should define the Castor Mapping file. &amp;nbsp;I can provide you with the files and the java object if that helps...
&lt;br&gt;&lt;br&gt;The XML Data File:
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;Outer&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Inner FieldOne=&amp;quot;Field One A Value&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;BlahBlah&amp;gt;Field Two Value Line 1&amp;lt;/BlahBlah&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;BlahBlah&amp;gt;Field Two Value Line 2&amp;lt;/BlahBlah&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;BlahBlah&amp;gt;Field Two Value Line 3&amp;lt;/BlahBlah&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/FieldTwo&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Inner&amp;gt;
&lt;br&gt;&amp;lt;/Outer&amp;gt;
&lt;br&gt;&lt;br&gt;The Castor Mapping File:
&lt;br&gt;&lt;br&gt;&amp;lt;mapping&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;class name=&amp;quot;castor.OuterObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;map-to xml=&amp;quot;Outer&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldOneObject&amp;quot; type=&amp;quot;castor.FieldOneObject&amp;quot; container=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;FieldOne&amp;quot; location=&amp;quot;Inner&amp;quot; node=&amp;quot;attribute&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp;		&amp;lt;/field&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldTwoObjects&amp;quot; type=&amp;quot;castor.FieldTwoObject&amp;quot; collection=&amp;quot;arraylist&amp;quot; set-method=&amp;quot;addFieldTwoObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;FieldTwo&amp;quot; location=&amp;quot;Inner&amp;quot; node=&amp;quot;element&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/class&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;class name=&amp;quot;castor.FieldOneObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldOne&amp;quot; type=&amp;quot;string&amp;quot; direct=&amp;quot;false&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;FieldOne&amp;quot; location=&amp;quot;Inner&amp;quot; node=&amp;quot;attribute&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;class name=&amp;quot;castor.FieldTwoObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldTwo&amp;quot; type=&amp;quot;string&amp;quot; direct=&amp;quot;false&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;BlahBlah&amp;quot; node=&amp;quot;element&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/class&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;lt;/mapping&amp;gt;
&lt;br&gt;&lt;br&gt;Questions:
&lt;br&gt;&lt;br&gt;1. My first question is about mapping the attribute &amp;quot;FieldOne&amp;quot; and the FieldTwo collection to two separate objects on the &amp;quot;castor.OuterObject&amp;quot;, I had define the fieldOneObject as a container yet I had to specify the same binding that I was using within the class specification. &amp;nbsp;Is this the correct approach or is there another way that I can achieve the same thing?
&lt;br&gt;&lt;br&gt;2. I wanted to be able to set the &amp;quot;castor.OuterObject&amp;quot; on the &amp;quot;castor.FieldTwoObject&amp;quot; when it is being added to the OuterObject. &amp;nbsp;Originally I had a set method called setFieldTwoObjects that would set this relationship whenever Castor added the FieldTwoObjects to the OuterObject. &amp;nbsp;When I tested this I realised that Castor called the getFieldTwoObjects and added the new object to the returned list. &amp;nbsp;Then I added a separate method that took a single FieldTwoObject and set this as the &amp;quot;set-method&amp;quot; and in this class set the relationship. &amp;nbsp;Is this the correct approach or is there a way to specify this relationship in the mapping file.
&lt;br&gt;&lt;br&gt;3. Can someone please explain what the usage of the &amp;quot;container&amp;quot; element and what it should be used for...
&lt;br&gt;&lt;br&gt;I hope that you can help.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Declan
&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML---Verify-usage-of-Castor-Mapping-%28Sorry-original-was-in-HTML-format-resending%29-tp26623651p26623651.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26611266</id>
	<title>XML - Verify usage of Castor Mapping</title>
	<published>2009-12-02T07:56:54Z</published>
	<updated>2009-12-02T07:56:54Z</updated>
	<author>
		<name>Maguire, Declan</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am working in a application that needs to read a XML file and convert it into Value Objects that the application will process. &amp;nbsp;I have started to use castor and I have completed 99% of the mapping between the XML File and our Value Object. &amp;nbsp;I have a couple of questions about best practice and to ensure that I have defined the mapping correctly. &amp;nbsp;The XML Data File and Value Object class hierarchy are fixed and can not be changed. &amp;nbsp;I have developed a simple example of how I believe I should define the Castor Mapping file. &amp;nbsp;I can provide you with the files and the java object if that helps...
&lt;br&gt;&lt;br&gt;The XML Data File:
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;Outer&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Inner FieldOne=&amp;quot;Field One A Value&amp;quot;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;BlahBlah&amp;gt;Field Two Value Line 1&amp;lt;/BlahBlah&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;BlahBlah&amp;gt;Field Two Value Line 2&amp;lt;/BlahBlah&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;FieldTwo&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;BlahBlah&amp;gt;Field Two Value Line 3&amp;lt;/BlahBlah&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/FieldTwo&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Inner&amp;gt;
&lt;br&gt;&amp;lt;/Outer&amp;gt;
&lt;br&gt;&lt;br&gt;The Castor Mapping File:
&lt;br&gt;&lt;br&gt;&amp;lt;mapping&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;class name=&amp;quot;castor.OuterObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;map-to xml=&amp;quot;Outer&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldOneObject&amp;quot; type=&amp;quot;castor.FieldOneObject&amp;quot; container=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;FieldOne&amp;quot; location=&amp;quot;Inner&amp;quot; node=&amp;quot;attribute&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldTwoObjects&amp;quot; type=&amp;quot;castor.FieldTwoObject&amp;quot; collection=&amp;quot;arraylist&amp;quot; set-method=&amp;quot;addFieldTwoObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;FieldTwo&amp;quot; location=&amp;quot;Inner&amp;quot; node=&amp;quot;element&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/class&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;class name=&amp;quot;castor.FieldOneObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldOne&amp;quot; type=&amp;quot;string&amp;quot; direct=&amp;quot;false&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;FieldOne&amp;quot; location=&amp;quot;Inner&amp;quot; node=&amp;quot;attribute&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/class&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;class name=&amp;quot;castor.FieldTwoObject&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;field name=&amp;quot;fieldTwo&amp;quot; type=&amp;quot;string&amp;quot; direct=&amp;quot;false&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bind-xml name=&amp;quot;BlahBlah&amp;quot; node=&amp;quot;element&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/field&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/class&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;/mapping&amp;gt;
&lt;br&gt;&lt;br&gt;Questions:
&lt;br&gt;&lt;br&gt;1. My first question is about mapping the attribute &amp;quot;FieldOne&amp;quot; and the FieldTwo collection to two separate objects on the &amp;quot;castor.OuterObject&amp;quot;, I had define the fieldOneObject as a container yet I had to specify the same binding that I was using within the class specification. &amp;nbsp;Is this the correct approach or is there another way that I can achieve the same thing?
&lt;br&gt;&lt;br&gt;2. I wanted to be able to set the &amp;quot;castor.OuterObject&amp;quot; on the &amp;quot;castor.FieldTwoObject&amp;quot; when it is being added to the OuterObject. &amp;nbsp;Originally I had a set method called setFieldTwoObjects that would set this relationship whenever Castor added the FieldTwoObjects to the OuterObject. &amp;nbsp;When I tested this I realised that Castor called the getFieldTwoObjects and added the new object to the returned list. &amp;nbsp;Then I added a separate method that took a single FieldTwoObject and set this as the &amp;quot;set-method&amp;quot; and in this class set the relationship. &amp;nbsp;Is this the correct approach or is there a way to specify this relationship in the mapping file.
&lt;br&gt;&lt;br&gt;3. Can someone please explain what the usage of the &amp;quot;container&amp;quot; element and what it should be used for...
&lt;br&gt;&lt;br&gt;I hope that you can help.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Declan
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML---Verify-usage-of-Castor-Mapping-tp26611266p26611266.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26604927</id>
	<title>Re: How to display actual used mapping?</title>
	<published>2009-12-02T00:02:17Z</published>
	<updated>2009-12-02T00:02:17Z</updated>
	<author>
		<name>jimmi4664</name>
	</author>
	<content type="html">Thanks, I may give it a try.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Werner Guttmann-6 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Okay, I think that's enough context for me to suggest a few things.
&lt;br&gt;&lt;br&gt;Top of my head, I think a good starting point should be to analyze the
&lt;br&gt;createClassDescriptor() method of the XMLMappingLoader class to see
&lt;br&gt;where additional log statements could be inserted.
&lt;br&gt;&lt;br&gt;In particular, have a look at line 182ff and 292f where the
&lt;br&gt;auto-complete attribute of a ClassMapping instance is being considered
&lt;br&gt;to decide how to go about descriptor creation (from a mapping, ...).
&lt;br&gt;&lt;br&gt;I am more than willing to help you with any problems related to
&lt;br&gt;understand the code base.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;jimmi4664 wrote:
&lt;br&gt;&amp;gt; I have a working mapping right now. Mapping of some classes and attributes is
&lt;br&gt;&amp;gt; defined manually in the mapping xml file. Some parts of the mapping are
&lt;br&gt;&amp;gt; auto-completed by castor. It all works perfectly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I want to define the parts castor auto-completes manually. This is
&lt;br&gt;&amp;gt; because I would like to define each persisted class and it's attributes
&lt;br&gt;&amp;gt; explicitly. I use castor mapping to basically create a &amp;quot;save file&amp;quot; of some
&lt;br&gt;&amp;gt; of my classes. By defining all the mapping manually, I can 1) document which
&lt;br&gt;&amp;gt; fields are stored in the savefile, and how and 2) protect against old
&lt;br&gt;&amp;gt; savefiles getting broken when when I for example refactor the name of one
&lt;br&gt;&amp;gt; attribute.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Recreating the auto-completed is a bit time consuming and error prone. Some
&lt;br&gt;&amp;gt; eg. collection mappings that work when castor auto-completes the mapping,
&lt;br&gt;&amp;gt; seem to be a bit difficult to create by hand and figuring out where
&lt;br&gt;&amp;gt; (un)marshalling failed takes time. That's why it would have been nice to see
&lt;br&gt;&amp;gt; which kind of mapping castor automatically created and copy from that.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Werner Guttmann-6 wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I don't think the current code base has support for this feature. Whilst
&lt;br&gt;&amp;gt;&amp;gt; it could be added in theory, one has to keep in mind that a mapping file
&lt;br&gt;&amp;gt;&amp;gt; is just one way of defining a binding between your Java classes and the
&lt;br&gt;&amp;gt;&amp;gt; corresponding XML documents.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Internally, Castor XML (as well as JDO) uses descriptor classes to
&lt;br&gt;&amp;gt;&amp;gt; establish exactly that binding information, And afair there's some
&lt;br&gt;&amp;gt;&amp;gt; debugging output related to establishing what descriptor(s) is being
&lt;br&gt;&amp;gt;&amp;gt; used during unmarshalling.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So how about defining what you are looking for once again - keeping in
&lt;br&gt;&amp;gt;&amp;gt; mind what I have just said.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; jimmi4664 wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I define my XML mapping in a mapping file castor-mapping.xml. Some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; classes
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; use Castor's automatically created mapping with auto-complete=&amp;quot;true&amp;quot; for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; some or all fields, and some classes are fully configured in the file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;class name=&amp;quot;foo&amp;quot; auto-complete=&amp;quot;false&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I want to change all classes to have auto-complete=&amp;quot;false&amp;quot;, so that I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; don't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; run into problems if I rename some fields and can better control what
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fields
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; are mapped and what not. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can I get Castor to print out the actual mapping it generates based on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; given mapping file? I have activated debug logging but that info does not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; seem to be logged.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-display-actual-used-mapping--tp26575308p26604927.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598831</id>
	<title>Re: How to display actual used mapping?</title>
	<published>2009-12-01T12:50:25Z</published>
	<updated>2009-12-01T12:50:25Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Okay, I think that's enough context for me to suggest a few things.
&lt;br&gt;&lt;br&gt;Top of my head, I think a good starting point should be to analyze the
&lt;br&gt;createClassDescriptor() method of the XMLMappingLoader class to see
&lt;br&gt;where additional log statements could be inserted.
&lt;br&gt;&lt;br&gt;In particular, have a look at line 182ff and 292f where the
&lt;br&gt;auto-complete attribute of a ClassMapping instance is being considered
&lt;br&gt;to decide how to go about descriptor creation (from a mapping, ...).
&lt;br&gt;&lt;br&gt;I am more than willing to help you with any problems related to
&lt;br&gt;understand the code base.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;jimmi4664 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a working mapping right now. Mapping of some classes and attributes is
&lt;br&gt;&amp;gt; defined manually in the mapping xml file. Some parts of the mapping are
&lt;br&gt;&amp;gt; auto-completed by castor. It all works perfectly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I want to define the parts castor auto-completes manually. This is
&lt;br&gt;&amp;gt; because I would like to define each persisted class and it's attributes
&lt;br&gt;&amp;gt; explicitly. I use castor mapping to basically create a &amp;quot;save file&amp;quot; of some
&lt;br&gt;&amp;gt; of my classes. By defining all the mapping manually, I can 1) document which
&lt;br&gt;&amp;gt; fields are stored in the savefile, and how and 2) protect against old
&lt;br&gt;&amp;gt; savefiles getting broken when when I for example refactor the name of one
&lt;br&gt;&amp;gt; attribute.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Recreating the auto-completed is a bit time consuming and error prone. Some
&lt;br&gt;&amp;gt; eg. collection mappings that work when castor auto-completes the mapping,
&lt;br&gt;&amp;gt; seem to be a bit difficult to create by hand and figuring out where
&lt;br&gt;&amp;gt; (un)marshalling failed takes time. That's why it would have been nice to see
&lt;br&gt;&amp;gt; which kind of mapping castor automatically created and copy from that.
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Werner Guttmann-6 wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I don't think the current code base has support for this feature. Whilst
&lt;br&gt;&amp;gt;&amp;gt; it could be added in theory, one has to keep in mind that a mapping file
&lt;br&gt;&amp;gt;&amp;gt; is just one way of defining a binding between your Java classes and the
&lt;br&gt;&amp;gt;&amp;gt; corresponding XML documents.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Internally, Castor XML (as well as JDO) uses descriptor classes to
&lt;br&gt;&amp;gt;&amp;gt; establish exactly that binding information, And afair there's some
&lt;br&gt;&amp;gt;&amp;gt; debugging output related to establishing what descriptor(s) is being
&lt;br&gt;&amp;gt;&amp;gt; used during unmarshalling.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So how about defining what you are looking for once again - keeping in
&lt;br&gt;&amp;gt;&amp;gt; mind what I have just said.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; jimmi4664 wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I define my XML mapping in a mapping file castor-mapping.xml. Some
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; classes
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; use Castor's automatically created mapping with auto-complete=&amp;quot;true&amp;quot; for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; some or all fields, and some classes are fully configured in the file
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;class name=&amp;quot;foo&amp;quot; auto-complete=&amp;quot;false&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I want to change all classes to have auto-complete=&amp;quot;false&amp;quot;, so that I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; don't
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; run into problems if I rename some fields and can better control what
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fields
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; are mapped and what not. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Can I get Castor to print out the actual mapping it generates based on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; given mapping file? I have activated debug logging but that info does not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; seem to be logged.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-display-actual-used-mapping--tp26575308p26598831.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598682</id>
	<title>Re: Castor r8462 depends on castor-maven-plugin:2.0-SNAPSHOT</title>
	<published>2009-12-01T12:38:48Z</published>
	<updated>2009-12-01T12:38:48Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">All,
&lt;br&gt;&lt;br&gt;Werner Guttmann wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Stevo,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Stevo Slavić wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hello Werner and Ralf,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;- My patch hasn't been applied completely. Even so, patch didn't remove
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;which prevented building castor), and there are some other snapshot
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;references too (default release plugin configuration would have prevented
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;this). All the modules seem to inherit org.codehaus.castor:castor aggregator
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;parent module which has pluginManagement section but it currently doesn't
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;with latest released version there, and then remove all the version
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;references from other child modules - this would improve consistency and
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;maintainability.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just added castor-maven-plugin:2.0 to the &amp;lt;pluginManagement&amp;gt; section
&lt;br&gt;&amp;gt; of the parent POM, and apparently raised the version number to 2.0. At
&lt;br&gt;&amp;gt; the same time I removed all &amp;lt;dependencies&amp;gt; overrides (those actually
&lt;br&gt;&amp;gt; active as well as those commented out) from the module POMs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Planned steps:
&lt;/div&gt;I just created
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://jira.codehaus.org/browse/CASTOR-2857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/CASTOR-2857&lt;/a&gt;&lt;br&gt;&lt;br&gt;to allow monitoring of all activities related to the usage of the
&lt;br&gt;castor-maven-plugin.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Remove the use of the build-helper-plugin as the plugin should handle
&lt;br&gt;&amp;gt; this itself as of release 2.0.
&lt;br&gt;&amp;gt; - Remove the use of the &amp;lt;resources&amp;gt; section to handle inclusion of the
&lt;br&gt;&amp;gt; generated .castoir.cdr files as the plugin should handle this itself as
&lt;br&gt;&amp;gt; of release 2.0.
&lt;br&gt;&amp;gt; - Move the phase binding of the plugin to the &amp;lt;pluginManagement&amp;gt; section
&lt;br&gt;&amp;gt; , if possible.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; Werner
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Castor-r8462-depends-on-castor-maven-plugin%3A2.0-SNAPSHOT-tp26413000p26598682.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26590373</id>
	<title>Re: SimpleType generation</title>
	<published>2009-12-01T03:31:50Z</published>
	<updated>2009-12-01T03:31:50Z</updated>
	<author>
		<name>James Cowan-3</name>
	</author>
	<content type="html">Hi Werner
&lt;br&gt;&lt;br&gt;forget this. It was a namespace mapping issue.
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;James Cowan&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590373&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jamesmcowan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590373&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Tuesday, December 01, 2009 11:18 AM
&lt;br&gt;Subject: SimpleType generation
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Werner
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I found the error - &amp;nbsp;There was a dependency elsewhere to castor 1.3.0.1 -
&lt;br&gt;&amp;gt; I changed to dependency to castor 1.3 and everything is working again.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a new problem with SimpleType generation:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- *************************************** --&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- EntityAssociationMetaData --&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xsd:complexType name=&amp;quot;EntityAssociationMetaData&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;xsd:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/xsd:sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;entityAssociationType&amp;quot; 
&lt;br&gt;&amp;gt; type=&amp;quot;EntityAssociationType&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;className&amp;quot; type=&amp;quot;xsd:string&amp;quot; default=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;lookupName&amp;quot; type=&amp;quot;xsd:string&amp;quot; default=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;xsd:attribute name=&amp;quot;name&amp;quot; type=&amp;quot;xsd:string&amp;quot; default=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xsd:complexType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- *************************************** --&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!-- EntityAssociationType --&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xsd:simpleType name=&amp;quot;EntityAssociationType&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;xsd:restriction base=&amp;quot;xsd:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;xsd:enumeration value=&amp;quot;MANYTOONE&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;xsd:enumeration value=&amp;quot;ONETOONE&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;xsd:enumeration value=&amp;quot;ONETOMANY&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;/xsd:restriction&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xsd:simpleType&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The code generation correctly generates EntityAssociationType.java in the 
&lt;br&gt;&amp;gt; types directory
&lt;br&gt;&amp;gt; but EntityAssociationMetaData does not import it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; James
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message ----- 
&lt;br&gt;&amp;gt; From: &amp;quot;James Cowan&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590373&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jamesmcowan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590373&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Tuesday, December 01, 2009 9:19 AM
&lt;br&gt;&amp;gt; Subject: Re: [castor-user] repository jar files
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Werner
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I am using Maven and everything stopped working when I cleaned my local 
&lt;br&gt;&amp;gt;&amp;gt; repository yesterday.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; These are the versions I am using:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; . &amp;lt;castor.version&amp;gt;1.3&amp;lt;/castor.version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;&amp;lt;castor-codegen.version&amp;gt;1.3&amp;lt;/castor-codegen.version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;&amp;lt;castor-maven-plugin.version&amp;gt;1.5&amp;lt;/castor-maven-plugin.version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; When I run the castor maven plugin for some reason it fails looking for a 
&lt;br&gt;&amp;gt;&amp;gt; dependency on castor 1.3.0.1
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository SpringSource Enterprise Bundle Repository - External Bundle 
&lt;br&gt;&amp;gt;&amp;gt; Milestones (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/bundles/release/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/release/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository SpringSource Enterprise Bundle Repository - SpringSource 
&lt;br&gt;&amp;gt;&amp;gt; Bundle Releases 
&lt;br&gt;&amp;gt;&amp;gt; (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/release&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/release&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/bundles/external/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/external/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository SpringSource Enterprise Bundle Repository - External Bundle 
&lt;br&gt;&amp;gt;&amp;gt; Releases (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/external&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/external&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/libraries/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/libraries/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository SpringSource Enterprise Bundle Repository - Library 
&lt;br&gt;&amp;gt;&amp;gt; Milestones (&lt;a href=&quot;http://repository.springsource.com/maven/libraries/milestone&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/libraries/milestone&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.sonatype.org/content/groups/flexgroup//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.sonatype.org/content/groups/flexgroup//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository sonatype 
&lt;br&gt;&amp;gt;&amp;gt; (&lt;a href=&quot;http://repository.sonatype.org/content/groups/flexgroup/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.sonatype.org/content/groups/flexgroup/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://download.java.net/maven/2//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/2//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository maven2-repository.dev.java.net 
&lt;br&gt;&amp;gt;&amp;gt; (&lt;a href=&quot;http://download.java.net/maven/2/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/2/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository codehaus (&lt;a href=&quot;http://repository.codehaus.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' 
&lt;br&gt;&amp;gt;&amp;gt; in repository central (&lt;a href=&quot;http://repo1.maven.org/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; [ERROR] BUILD ERROR
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The dependencies when invoking the maven plugin are:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor-codegen&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor-codegen.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor-core&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor-xml-schema&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any ideas what is causing it to look for castor 1.3.0.1?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; James
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ----- Original Message ----- 
&lt;br&gt;&amp;gt;&amp;gt; From: &amp;quot;Werner Guttmann&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590373&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wguttmn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590373&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sent: Monday, November 30, 2009 9:16 PM
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: [castor-user] repository jar files
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi James,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this is what I expected as this is a Maven repository, and the directory
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; given below points to the project's parent POM; by definition, there
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; won't be any JARs produced for the parent POM.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You will have to look into the individual sub-modules such as xml, etc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to find the JARS. Better even, simply start using Maven and have Maven
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; downloaded all dependencies into your local Maven repository.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; James Cowan wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hi Werner
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; There do not seem to be any jar files in the codehaus repository here:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; James
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SimpleType-generation-tp26590217p26590373.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26590217</id>
	<title>SimpleType generation</title>
	<published>2009-12-01T03:18:17Z</published>
	<updated>2009-12-01T03:18:17Z</updated>
	<author>
		<name>James Cowan-3</name>
	</author>
	<content type="html">&lt;br&gt;Hi Werner
&lt;br&gt;&lt;br&gt;I found the error - &amp;nbsp;There was a dependency elsewhere to castor 1.3.0.1 -
&lt;br&gt;I changed to dependency to castor 1.3 and everything is working again.
&lt;br&gt;&lt;br&gt;I have a new problem with SimpleType generation:
&lt;br&gt;&lt;br&gt;&amp;lt;!-- *************************************** --&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;!-- EntityAssociationMetaData --&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;xsd:complexType name=&amp;quot;EntityAssociationMetaData&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsd:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/xsd:sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsd:attribute name=&amp;quot;entityAssociationType&amp;quot; type=&amp;quot;EntityAssociationType&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsd:attribute name=&amp;quot;className&amp;quot; type=&amp;quot;xsd:string&amp;quot; default=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsd:attribute name=&amp;quot;lookupName&amp;quot; type=&amp;quot;xsd:string&amp;quot; default=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsd:attribute name=&amp;quot;name&amp;quot; type=&amp;quot;xsd:string&amp;quot; default=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;/xsd:complexType&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;!-- *************************************** --&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;!-- EntityAssociationType --&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;xsd:simpleType name=&amp;quot;EntityAssociationType&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;xsd:restriction base=&amp;quot;xsd:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsd:enumeration value=&amp;quot;MANYTOONE&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsd:enumeration value=&amp;quot;ONETOONE&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsd:enumeration value=&amp;quot;ONETOMANY&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/xsd:restriction&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;/xsd:simpleType&amp;gt;
&lt;br&gt;&lt;br&gt;The code generation correctly generates EntityAssociationType.java in the 
&lt;br&gt;types directory
&lt;br&gt;but EntityAssociationMetaData does not import it.
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;James Cowan&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590217&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jamesmcowan@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590217&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Tuesday, December 01, 2009 9:19 AM
&lt;br&gt;Subject: Re: [castor-user] repository jar files
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Werner
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using Maven and everything stopped working when I cleaned my local 
&lt;br&gt;&amp;gt; repository yesterday.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; These are the versions I am using:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; . &amp;lt;castor.version&amp;gt;1.3&amp;lt;/castor.version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;castor-codegen.version&amp;gt;1.3&amp;lt;/castor-codegen.version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;lt;castor-maven-plugin.version&amp;gt;1.5&amp;lt;/castor-maven-plugin.version&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I run the castor maven plugin for some reason it fails looking for a 
&lt;br&gt;&amp;gt; dependency on castor 1.3.0.1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository SpringSource Enterprise Bundle Repository - External Bundle 
&lt;br&gt;&amp;gt; Milestones (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone&lt;/a&gt;)
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/bundles/release/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/release/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository SpringSource Enterprise Bundle Repository - SpringSource Bundle 
&lt;br&gt;&amp;gt; Releases (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/release&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/release&lt;/a&gt;)
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/bundles/external/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/external/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository SpringSource Enterprise Bundle Repository - External Bundle 
&lt;br&gt;&amp;gt; Releases (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/external&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/external&lt;/a&gt;)
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/libraries/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/libraries/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository SpringSource Enterprise Bundle Repository - Library Milestones 
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://repository.springsource.com/maven/libraries/milestone&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/libraries/milestone&lt;/a&gt;)
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.sonatype.org/content/groups/flexgroup//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.sonatype.org/content/groups/flexgroup//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository sonatype 
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://repository.sonatype.org/content/groups/flexgroup/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.sonatype.org/content/groups/flexgroup/&lt;/a&gt;)
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://download.java.net/maven/2//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/2//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository maven2-repository.dev.java.net 
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://download.java.net/maven/2/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/2/&lt;/a&gt;)
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository codehaus (&lt;a href=&quot;http://repository.codehaus.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/&lt;/a&gt;)
&lt;br&gt;&amp;gt; Downloading: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;&amp;gt; repository central (&lt;a href=&quot;http://repo1.maven.org/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2&lt;/a&gt;)
&lt;br&gt;&amp;gt; [INFO] ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; [ERROR] BUILD ERROR
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The dependencies when invoking the maven plugin are:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor-codegen&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor-codegen.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor-core&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;artifactId&amp;gt;castor-xml-schema&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideas what is causing it to look for castor 1.3.0.1?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; James
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----- Original Message ----- 
&lt;br&gt;&amp;gt; From: &amp;quot;Werner Guttmann&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590217&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wguttmn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26590217&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 9:16 PM
&lt;br&gt;&amp;gt; Subject: Re: [castor-user] repository jar files
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi James,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; this is what I expected as this is a Maven repository, and the directory
&lt;br&gt;&amp;gt;&amp;gt; given below points to the project's parent POM; by definition, there
&lt;br&gt;&amp;gt;&amp;gt; won't be any JARs produced for the parent POM.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You will have to look into the individual sub-modules such as xml, etc.
&lt;br&gt;&amp;gt;&amp;gt; to find the JARS. Better even, simply start using Maven and have Maven
&lt;br&gt;&amp;gt;&amp;gt; downloaded all dependencies into your local Maven repository.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; James Cowan wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi Werner
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; There do not seem to be any jar files in the codehaus repository here:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; James
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SimpleType-generation-tp26590217p26590217.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26588811</id>
	<title>Re: repository jar files</title>
	<published>2009-12-01T01:19:29Z</published>
	<updated>2009-12-01T01:19:29Z</updated>
	<author>
		<name>James Cowan-3</name>
	</author>
	<content type="html">Hi Werner
&lt;br&gt;&lt;br&gt;I am using Maven and everything stopped working when I cleaned my local 
&lt;br&gt;repository yesterday.
&lt;br&gt;&lt;br&gt;These are the versions I am using:
&lt;br&gt;&lt;br&gt;. &amp;lt;castor.version&amp;gt;1.3&amp;lt;/castor.version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;castor-codegen.version&amp;gt;1.3&amp;lt;/castor-codegen.version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;castor-maven-plugin.version&amp;gt;1.5&amp;lt;/castor-maven-plugin.version&amp;gt;
&lt;br&gt;&lt;br&gt;When I run the castor maven plugin for some reason it fails looking for a 
&lt;br&gt;dependency on castor 1.3.0.1
&lt;br&gt;&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository SpringSource Enterprise Bundle Repository - External Bundle 
&lt;br&gt;Milestones (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone&lt;/a&gt;)
&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://repository.springsource.com/maven/bundles/release/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/release/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository SpringSource Enterprise Bundle Repository - SpringSource Bundle 
&lt;br&gt;Releases (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/release&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/release&lt;/a&gt;)
&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://repository.springsource.com/maven/bundles/external/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/external/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository SpringSource Enterprise Bundle Repository - External Bundle 
&lt;br&gt;Releases (&lt;a href=&quot;http://repository.springsource.com/maven/bundles/external&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/external&lt;/a&gt;)
&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://repository.springsource.com/maven/libraries/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/libraries/milestone/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository SpringSource Enterprise Bundle Repository - Library Milestones 
&lt;br&gt;(&lt;a href=&quot;http://repository.springsource.com/maven/libraries/milestone&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/libraries/milestone&lt;/a&gt;)
&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://repository.sonatype.org/content/groups/flexgroup//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.sonatype.org/content/groups/flexgroup//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository sonatype 
&lt;br&gt;(&lt;a href=&quot;http://repository.sonatype.org/content/groups/flexgroup/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.sonatype.org/content/groups/flexgroup/&lt;/a&gt;)
&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://download.java.net/maven/2//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/2//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository maven2-repository.dev.java.net 
&lt;br&gt;(&lt;a href=&quot;http://download.java.net/maven/2/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/2/&lt;/a&gt;)
&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://repository.codehaus.org//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository codehaus (&lt;a href=&quot;http://repository.codehaus.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/&lt;/a&gt;)
&lt;br&gt;Downloading: 
&lt;br&gt;&lt;a href=&quot;http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.3.0.1/castor-1.3.0.1.jar&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'org.codehaus.castor:castor:jar:1.3.0.1' in 
&lt;br&gt;repository central (&lt;a href=&quot;http://repo1.maven.org/maven2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repo1.maven.org/maven2&lt;/a&gt;)
&lt;br&gt;[INFO] ------------------------------------------------------------------------
&lt;br&gt;[ERROR] BUILD ERROR
&lt;br&gt;&lt;br&gt;The dependencies when invoking the maven plugin are:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;castor&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;castor-codegen&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;${castor-codegen.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;scope&amp;gt;compile&amp;lt;/scope&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;castor-core&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dependency&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;groupId&amp;gt;org.codehaus.castor&amp;lt;/groupId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;artifactId&amp;gt;castor-xml-schema&amp;lt;/artifactId&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;version&amp;gt;${castor.version}&amp;lt;/version&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/dependency&amp;gt;
&lt;br&gt;&lt;br&gt;Any ideas what is causing it to look for castor 1.3.0.1?
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;&lt;br&gt;----- Original Message ----- 
&lt;br&gt;From: &amp;quot;Werner Guttmann&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588811&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wguttmn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588811&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Monday, November 30, 2009 9:16 PM
&lt;br&gt;Subject: Re: [castor-user] repository jar files
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi James,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; this is what I expected as this is a Maven repository, and the directory
&lt;br&gt;&amp;gt; given below points to the project's parent POM; by definition, there
&lt;br&gt;&amp;gt; won't be any JARs produced for the parent POM.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You will have to look into the individual sub-modules such as xml, etc.
&lt;br&gt;&amp;gt; to find the JARS. Better even, simply start using Maven and have Maven
&lt;br&gt;&amp;gt; downloaded all dependencies into your local Maven repository.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; James Cowan wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi Werner
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There do not seem to be any jar files in the codehaus repository here:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; James
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26588811.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26587946</id>
	<title>Re: How to display actual used mapping?</title>
	<published>2009-12-01T00:02:54Z</published>
	<updated>2009-12-01T00:02:54Z</updated>
	<author>
		<name>jimmi4664</name>
	</author>
	<content type="html">I have a working mapping right now. Mapping of some classes and attributes is defined manually in the mapping xml file. Some parts of the mapping are auto-completed by castor. It all works perfectly.
&lt;br&gt;&lt;br&gt;Now I want to define the parts castor auto-completes manually. This is because I would like to define each persisted class and it's attributes explicitly. I use castor mapping to basically create a &amp;quot;save file&amp;quot; of some of my classes. By defining all the mapping manually, I can 1) document which fields are stored in the savefile, and how and 2) protect against old savefiles getting broken when when I for example refactor the name of one attribute.
&lt;br&gt;&lt;br&gt;Recreating the auto-completed is a bit time consuming and error prone. Some eg. collection mappings that work when castor auto-completes the mapping, seem to be a bit difficult to create by hand and figuring out where (un)marshalling failed takes time. That's why it would have been nice to see which kind of mapping castor automatically created and copy from that.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Werner Guttmann-6 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;I don't think the current code base has support for this feature. Whilst
&lt;br&gt;it could be added in theory, one has to keep in mind that a mapping file
&lt;br&gt;is just one way of defining a binding between your Java classes and the
&lt;br&gt;corresponding XML documents.
&lt;br&gt;&lt;br&gt;Internally, Castor XML (as well as JDO) uses descriptor classes to
&lt;br&gt;establish exactly that binding information, And afair there's some
&lt;br&gt;debugging output related to establishing what descriptor(s) is being
&lt;br&gt;used during unmarshalling.
&lt;br&gt;&lt;br&gt;So how about defining what you are looking for once again - keeping in
&lt;br&gt;mind what I have just said.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;jimmi4664 wrote:
&lt;br&gt;&amp;gt; I define my XML mapping in a mapping file castor-mapping.xml. Some classes
&lt;br&gt;&amp;gt; use Castor's automatically created mapping with auto-complete=&amp;quot;true&amp;quot; for
&lt;br&gt;&amp;gt; some or all fields, and some classes are fully configured in the file with
&lt;br&gt;&amp;gt; &amp;lt;class name=&amp;quot;foo&amp;quot; auto-complete=&amp;quot;false&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want to change all classes to have auto-complete=&amp;quot;false&amp;quot;, so that I don't
&lt;br&gt;&amp;gt; run into problems if I rename some fields and can better control what fields
&lt;br&gt;&amp;gt; are mapped and what not. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can I get Castor to print out the actual mapping it generates based on the
&lt;br&gt;&amp;gt; given mapping file? I have activated debug logging but that info does not
&lt;br&gt;&amp;gt; seem to be logged.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-display-actual-used-mapping--tp26575308p26587946.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26584647</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T16:28:01Z</published>
	<updated>2009-11-30T16:28:01Z</updated>
	<author>
		<name>Sasan-2</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman,new york,times,serif;font-size:12pt&quot;&gt;Hi Werner,&lt;br&gt;&lt;br&gt;Thanks for the info.&lt;br&gt;&lt;br&gt;I am not generating code. I am converting Jdom Element to castor schema. This way I can easily read the content of type schema.&lt;br&gt;&lt;br&gt;If Type schema has imports with references to other XDS, there is no problem with the conversion. Here I was testing the import of definition not the schema and its shown in the original link&lt;br&gt;&lt;br&gt;&lt;span&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&quot; rel=&quot;nofollow&quot;&gt;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&lt;/a&gt; (listing 4 and 5)&lt;/span&gt;&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Sasan&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;br&gt;&lt;div style=&quot;font-family: arial,helvetica,sans-serif; font-size: 13px;&quot;&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Werner Guttmann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584647&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wguttmn@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584647&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Mon, November 30, 2009 9:36:44 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: [castor-user] WSDL import - castor exception&lt;br&gt;&lt;/font&gt;&lt;br&gt;
Hi everybody,&lt;br&gt;&lt;br&gt;let me expand on this one a bit more, trying to clarify a few things in&lt;br&gt;the context of using Castor with WSDLs, XML schemas, etc.&lt;br&gt;&lt;br&gt;James is right in that Castor is not a WS framework such as Axix, Spring&lt;br&gt;WS et alias are. As such, it can not be used to generate code from a&lt;br&gt;WSDL definition per se, with stubs and skeletons etc. But Castor XML has&lt;br&gt;a code generator part that allows you to generate Java classes (mainly&lt;br&gt;POJOs) from XML schemas.&lt;br&gt;&lt;br&gt;But let's take a step back: a WSDL definition includes a type section&lt;br&gt;where you normally define the request and response payloads of your&lt;br&gt;operations. Whilst this is not mandated, all type definitions could&lt;br&gt;(should) be moved to a separate XML schema (a set thereof) and those be&lt;br&gt;included within the type section of the WSDL. In this case, Castor XML&lt;br&gt;could be used to generate Java classes from the XML schema, and that's&lt;br&gt;exactly how it is frequently
 used.&lt;br&gt;&lt;br&gt;Have a look at&lt;br&gt;&lt;br&gt;&lt;span&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://castor.org/ws-integration.html&quot; rel=&quot;nofollow&quot;&gt;http://castor.org/ws-integration.html&lt;/a&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;where you'll find a lost of WS frameworks that have integrated support&lt;br&gt;for this kind of code generation through XML data binding frameworks.&lt;br&gt;&lt;br&gt;In commercial projects I have to come to appreciate Spring WS and it's&lt;br&gt;Spring OXM support, a small abstraction layer around the most widely&lt;br&gt;used XML data binding frameworks. Most of this frameworks encourage you&lt;br&gt;to off-load code generation for your message/operation payloads to XML&lt;br&gt;data binding tool of choice, and have those tighlty integrated with your&lt;br&gt;WS framework of choice.&lt;br&gt;&lt;br&gt;I am more than willing to share more information on this technology mix&lt;br&gt;if needed. If it takes a lot of time to answer those questions, I might&lt;br&gt;ask you to take on professional support with me through&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584647&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;werner.guttmann@...&lt;/a&gt;.&lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;Werner&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;James Cowan wrote:&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Castor is an XSD compiler not a WSDL compiler.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; I think you need to use Apache Axis or CXF WSDL compilers to handle this. If there was a WSDL compiler&lt;br&gt;&amp;gt; that used Castor to generate the data structures I would be very interested. The pojos produced&lt;br&gt;&amp;gt; by the WSDL compilers are nothing like as readable as the ones produced by Castor.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; James&lt;br&gt;&amp;gt;&amp;nbsp;  ----- Original Message ----- &lt;br&gt;&amp;gt;&amp;nbsp;  From: Sasan &lt;br&gt;&amp;gt;&amp;nbsp;  To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584647&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt; &lt;br&gt;&amp;gt;&amp;nbsp;  Sent: Monday, November 30, 2009 4:31 PM&lt;br&gt;&amp;gt;&amp;nbsp;  Subject: [castor-user] WSDL import - castor exception&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp;  Hi,&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp; 
 I am trying to parse the example provided in the link&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp;  Listing4 which imports Listing 5&lt;br&gt;&amp;gt; &lt;/div&gt;&lt;span&gt;&amp;gt;&amp;nbsp;  &lt;a target=&quot;_blank&quot; href=&quot;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&quot; rel=&quot;nofollow&quot;&gt;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&lt;/a&gt;&lt;/span&gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp;  Note: I am providing the link only because the xml in question is slightly big for copy paste here, I hope you don't mind.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp;  However I get the error when parsing the &quot;Type&quot;&lt;br&gt;&amp;gt; &lt;br&gt;&lt;span&gt;&amp;gt;&amp;nbsp;  Unable to resolve Schema corresponding to namespace '&lt;a target=&quot;_blank&quot; href=&quot;http://www.w3.org/2001/XMLSchema&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;'.&lt;/span&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;nbsp;  org.exolab.castor.xml.schema.SchemaException: Unable to resolve Schema corresponding to namespace '&lt;a href=&quot;http://www.w3.org/2001/XMLSchema%27&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema'&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at
 org.exolab.castor.xml.schema.reader.ImportUnmarshaller.&amp;lt;init&amp;gt;(ImportUnmarshaller.java:125)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:604)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:255)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp;
 &amp;nbsp;  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)&lt;br&gt;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;  at org.exolab.castor.xml.schema.reader.SchemaReader.read(SchemaReader.java:301)&lt;br&gt;&amp;gt;&amp;nbsp;  &amp;lt;more&amp;gt;&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp;  Is this a limitation introduced by castor? &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp;  any info will be much appreciated.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt;&amp;nbsp;  Thanks,&lt;br&gt;&amp;gt;&amp;nbsp;  S.&lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;br&gt;&amp;gt; &lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------&lt;br&gt;To unsubscribe from this list, please visit:&lt;br&gt;&lt;br&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;a target=&quot;_blank&quot; href=&quot;http://xircles.codehaus.org/manage_email&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!-- cg11.c2.mail.re1.yahoo.com compressed/chunked Mon Nov 30 12:07:19 PST 2009 --&gt;
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26584647.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26583652</id>
	<title>Re: Castor r8462 depends on castor-maven-plugin:2.0-SNAPSHOT</title>
	<published>2009-11-30T15:00:02Z</published>
	<updated>2009-11-30T15:00:02Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi Stevo,
&lt;br&gt;&lt;br&gt;Stevo Slavić wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Werner and Ralf,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;- My patch hasn't been applied completely. Even so, patch didn't remove
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;all references to 2.0-SNAPSHOT version of castor-maven-plugin (just ones
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;which prevented building castor), and there are some other snapshot
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;references too (default release plugin configuration would have prevented
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;this). All the modules seem to inherit org.codehaus.castor:castor aggregator
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;parent module which has pluginManagement section but it currently doesn't
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;specify castor-maven-plugin. IMO it would be best to add castor-maven-plugin
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;with latest released version there, and then remove all the version
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;references from other child modules - this would improve consistency and
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;maintainability.
&lt;/div&gt;&lt;br&gt;I just added castor-maven-plugin:2.0 to the &amp;lt;pluginManagement&amp;gt; section
&lt;br&gt;of the parent POM, and apparently raised the version number to 2.0. At
&lt;br&gt;the same time I removed all &amp;lt;dependencies&amp;gt; overrides (those actually
&lt;br&gt;active as well as those commented out) from the module POMs.
&lt;br&gt;&lt;br&gt;Planned steps:
&lt;br&gt;&lt;br&gt;- Remove the use of the build-helper-plugin as the plugin should handle
&lt;br&gt;this itself as of release 2.0.
&lt;br&gt;- Remove the use of the &amp;lt;resources&amp;gt; section to handle inclusion of the
&lt;br&gt;generated .castoir.cdr files as the plugin should handle this itself as
&lt;br&gt;of release 2.0.
&lt;br&gt;- Move the phase binding of the plugin to the &amp;lt;pluginManagement&amp;gt; section
&lt;br&gt;, if possible.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---Dev-f2410.html&quot; embed=&quot;fixTarget[2410]&quot; target=&quot;_top&quot; &gt;Castor - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Castor-r8462-depends-on-castor-maven-plugin%3A2.0-SNAPSHOT-tp26413000p26583652.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26582365</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T13:36:44Z</published>
	<updated>2009-11-30T13:36:44Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi everybody,
&lt;br&gt;&lt;br&gt;let me expand on this one a bit more, trying to clarify a few things in
&lt;br&gt;the context of using Castor with WSDLs, XML schemas, etc.
&lt;br&gt;&lt;br&gt;James is right in that Castor is not a WS framework such as Axix, Spring
&lt;br&gt;WS et alias are. As such, it can not be used to generate code from a
&lt;br&gt;WSDL definition per se, with stubs and skeletons etc. But Castor XML has
&lt;br&gt;a code generator part that allows you to generate Java classes (mainly
&lt;br&gt;POJOs) from XML schemas.
&lt;br&gt;&lt;br&gt;But let's take a step back: a WSDL definition includes a type section
&lt;br&gt;where you normally define the request and response payloads of your
&lt;br&gt;operations. Whilst this is not mandated, all type definitions could
&lt;br&gt;(should) be moved to a separate XML schema (a set thereof) and those be
&lt;br&gt;included within the type section of the WSDL. In this case, Castor XML
&lt;br&gt;could be used to generate Java classes from the XML schema, and that's
&lt;br&gt;exactly how it is frequently used.
&lt;br&gt;&lt;br&gt;Have a look at
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://castor.org/ws-integration.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://castor.org/ws-integration.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;where you'll find a lost of WS frameworks that have integrated support
&lt;br&gt;for this kind of code generation through XML data binding frameworks.
&lt;br&gt;&lt;br&gt;In commercial projects I have to come to appreciate Spring WS and it's
&lt;br&gt;Spring OXM support, a small abstraction layer around the most widely
&lt;br&gt;used XML data binding frameworks. Most of this frameworks encourage you
&lt;br&gt;to off-load code generation for your message/operation payloads to XML
&lt;br&gt;data binding tool of choice, and have those tighlty integrated with your
&lt;br&gt;WS framework of choice.
&lt;br&gt;&lt;br&gt;I am more than willing to share more information on this technology mix
&lt;br&gt;if needed. If it takes a lot of time to answer those questions, I might
&lt;br&gt;ask you to take on professional support with me through
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582365&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;werner.guttmann@...&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;James Cowan wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Castor is an XSD compiler not a WSDL compiler.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I think you need to use Apache Axis or CXF WSDL compilers to handle this. If there was a WSDL compiler
&lt;br&gt;&amp;gt; that used Castor to generate the data structures I would be very interested. The pojos produced
&lt;br&gt;&amp;gt; by the WSDL compilers are nothing like as readable as the ones produced by Castor.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; James
&lt;br&gt;&amp;gt; &amp;nbsp; ----- Original Message ----- 
&lt;br&gt;&amp;gt; &amp;nbsp; From: Sasan 
&lt;br&gt;&amp;gt; &amp;nbsp; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582365&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Sent: Monday, November 30, 2009 4:31 PM
&lt;br&gt;&amp;gt; &amp;nbsp; Subject: [castor-user] WSDL import - castor exception
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; I am trying to parse the example provided in the link
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Listing4 which imports Listing 5
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &lt;a href=&quot;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Note: I am providing the link only because the xml in question is slightly big for copy paste here, I hope you don't mind.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; However I get the error when parsing the &amp;quot;Type&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Unable to resolve Schema corresponding to namespace '&lt;a href=&quot;http://www.w3.org/2001/XMLSchema'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema'&lt;/a&gt;.
&lt;br&gt;&amp;gt; &amp;nbsp; org.exolab.castor.xml.schema.SchemaException: Unable to resolve Schema corresponding to namespace '&lt;a href=&quot;http://www.w3.org/2001/XMLSchema'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema'&lt;/a&gt;.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.exolab.castor.xml.schema.reader.ImportUnmarshaller.&amp;lt;init&amp;gt;(ImportUnmarshaller.java:125)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:604)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:255)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.exolab.castor.xml.schema.reader.SchemaReader.read(SchemaReader.java:301)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;more&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Is this a limitation introduced by castor? 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; any info will be much appreciated.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Thanks,
&lt;br&gt;&amp;gt; &amp;nbsp; S.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26582365.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26582199</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T13:26:25Z</published>
	<updated>2009-11-30T13:26:25Z</updated>
	<author>
		<name>Sasan-2</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman,new york,times,serif;font-size:12pt&quot;&gt;&lt;br&gt;
&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;any suggestions? :) is there any competitor open source that handles this?&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;br&gt;maybe I shouldn't ask this here :)&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; &lt;/font&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;stoil valchkov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582199&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;svalchkov@...&lt;/a&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;/font&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582199&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;/font&gt;&lt;br&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Mon,
 November 30, 2009 9:22:03 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: [castor-user] WSDL import - castor exception&lt;/font&gt;&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;br&gt;Castor still has this issue with default implementation of imports handling.&lt;br&gt;This can be customized and fixed, but still there are other issues like&lt;br&gt;referencing element definitions from xsd namespace which weren't that&lt;br&gt;important for me and I didn't spent much effort there. Despite that at that&lt;br&gt;moment castor was the best from open source I could find to handle xsd-s&lt;br&gt;from wsdl :)&amp;nbsp; adsfdsaf&lt;br&gt;&lt;br&gt;----- Forwarded Message ----&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Sasan
 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582199&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sasanplus@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt;
 &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582199&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Mon, November 30, 2009 5:39:49 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: [castor-user] WSDL import - castor exception&lt;br&gt;&lt;/font&gt;&lt;br&gt;
&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;does this keep the issue open with Castor?&lt;br&gt;&lt;br&gt;you have posted this on 06, how did you resolve it?&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; stoil valchkov &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582199&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;svalchkov@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582199&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Mon, November 30, 2009 5:25:11 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: [castor-user] WSDL import - castor exception&lt;br&gt;&lt;/font&gt;&lt;br&gt;
 Hi,&lt;br&gt;&lt;br&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;This was discussed some while ago &lt;a target=&quot;_blank&quot; href=&quot;http://markmail.org/message/pa35jxfizpes3d3c&quot; rel=&quot;nofollow&quot;&gt;http://markmail.org/message/pa35jxfizpes3d3c&lt;/a&gt; . Castor should be aware of that namespace and even ignore location if available. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;Regards,&lt;br&gt;Stoil&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 30, 2009 at 6:31 PM, Sasan &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582199&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sasanplus@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;Hi,&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;
&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt; color: rgb(0, 0, 0);&quot;&gt;&lt;br&gt;I am trying to parse the example provided in the link&lt;br&gt;&lt;br&gt;Listing4 which imports Listing 5&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&quot; rel=&quot;nofollow&quot;&gt;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;Note: I am providing the link only because the xml in question is slightly big for copy paste here, I hope you don't mind.&lt;br&gt;&lt;br&gt;However I get the error when parsing the &quot;Type&quot;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Unable to resolve Schema corresponding to namespace '&lt;a target=&quot;_blank&quot; href=&quot;http://www.w3.org/2001/XMLSchema&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;'.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;font-weight: bold;&quot;&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span&gt;org.exolab.castor.xml.schema.SchemaException: Unable to resolve Schema corresponding to namespace '&lt;a rel=&quot;nofollow&quot; target=&quot;_blank&quot; href=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;'.&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.exolab.castor.xml.schema.reader.ImportUnmarshaller.&amp;lt;init&amp;gt;(ImportUnmarshaller.java:125)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:604)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:255)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
 Source)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.exolab.castor.xml.schema.reader.SchemaReader.read(SchemaReader.java:301)&lt;br&gt;&amp;lt;more&amp;gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Is this a limitation introduced by castor? &lt;br&gt;&lt;br&gt;any info will be much appreciated.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;S.&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; 

&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; 

&lt;/div&gt;&lt;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;on&quot;&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!-- cg11.c2.mail.re1.yahoo.com compressed/chunked Mon Nov 30 12:07:19 PST 2009 --&gt;
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26582199.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26582033</id>
	<title>Re: repository jar files</title>
	<published>2009-11-30T13:16:05Z</published>
	<updated>2009-11-30T13:16:05Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi James,
&lt;br&gt;&lt;br&gt;this is what I expected as this is a Maven repository, and the directory
&lt;br&gt;given below points to the project's parent POM; by definition, there
&lt;br&gt;won't be any JARs produced for the parent POM.
&lt;br&gt;&lt;br&gt;You will have to look into the individual sub-modules such as xml, etc.
&lt;br&gt;to find the JARS. Better even, simply start using Maven and have Maven
&lt;br&gt;downloaded all dependencies into your local Maven repository.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;James Cowan wrote:
&lt;br&gt;&amp;gt; Hi Werner
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There do not seem to be any jar files in the codehaus repository here:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; James
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26582033.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26581963</id>
	<title>Re: How to display actual used mapping?</title>
	<published>2009-11-30T13:12:01Z</published>
	<updated>2009-11-30T13:12:01Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I don't think the current code base has support for this feature. Whilst
&lt;br&gt;it could be added in theory, one has to keep in mind that a mapping file
&lt;br&gt;is just one way of defining a binding between your Java classes and the
&lt;br&gt;corresponding XML documents.
&lt;br&gt;&lt;br&gt;Internally, Castor XML (as well as JDO) uses descriptor classes to
&lt;br&gt;establish exactly that binding information, And afair there's some
&lt;br&gt;debugging output related to establishing what descriptor(s) is being
&lt;br&gt;used during unmarshalling.
&lt;br&gt;&lt;br&gt;So how about defining what you are looking for once again - keeping in
&lt;br&gt;mind what I have just said.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;jimmi4664 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I define my XML mapping in a mapping file castor-mapping.xml. Some classes
&lt;br&gt;&amp;gt; use Castor's automatically created mapping with auto-complete=&amp;quot;true&amp;quot; for
&lt;br&gt;&amp;gt; some or all fields, and some classes are fully configured in the file with
&lt;br&gt;&amp;gt; &amp;lt;class name=&amp;quot;foo&amp;quot; auto-complete=&amp;quot;false&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I want to change all classes to have auto-complete=&amp;quot;false&amp;quot;, so that I don't
&lt;br&gt;&amp;gt; run into problems if I rename some fields and can better control what fields
&lt;br&gt;&amp;gt; are mapped and what not. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can I get Castor to print out the actual mapping it generates based on the
&lt;br&gt;&amp;gt; given mapping file? I have activated debug logging but that info does not
&lt;br&gt;&amp;gt; seem to be logged.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-display-actual-used-mapping--tp26575308p26581963.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26580575</id>
	<title>repository jar files</title>
	<published>2009-11-30T11:35:53Z</published>
	<updated>2009-11-30T11:35:53Z</updated>
	<author>
		<name>James Cowan-3</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=iso-8859-1&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18852&quot;&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;Hi Werner&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;There do not seem to be any jar files in the 
codehaus repository here:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;A href=&quot;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org/org/codehaus/castor/castor/1.3.0.1/&lt;/A&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;James&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Castor---User-f2411.html&quot; embed=&quot;fixTarget[2411]&quot; target=&quot;_top&quot; &gt;Castor - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26580575.html" />
</entry>

</feed>
