<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2411</id>
	<title>Nabble - Castor - User</title>
	<updated>2009-12-23T05:08:04Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Castor---User-f2411.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Castor---User-f2411.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26901842</id>
	<title>Re: castor and maven problems</title>
	<published>2009-12-23T05:08:04Z</published>
	<updated>2009-12-23T05:08:04Z</updated>
	<author>
		<name>Werner Guttmann-6</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;can you please use Castor 1.3.0.1 as the Castor version ? Given that we 
&lt;br&gt;have been suffering from the very same problems, I can reassure you that 
&lt;br&gt;with the Maven release of 1.3.0.1 all those problems have been resolved.
&lt;br&gt;&lt;br&gt;Apart from amended Maven POMs, 1.3.0.1 is equivalent to 1.3.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;On 22.12.2009 13:33, James Cowan wrote:
&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 am running into problems gettting castor and maven to work together.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The probem is that the wrong version of commons-logging-1.1.1.pom is being
&lt;br&gt;&amp;gt; downloaded.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The contents of the pom file are:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;!DOCTYPE HTML PUBLIC &amp;quot;-//IETF//DTD HTML 2.0//EN&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;html&amp;gt;&amp;lt;head&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;title&amp;gt;301 Moved Permanently&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;h1&amp;gt;Moved Permanently&amp;lt;/h1&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;p&amp;gt;The document has moved &amp;lt;a
&lt;br&gt;&amp;gt; href=&amp;quot;&lt;a href=&quot;http://download.java.net/maven/1/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/1/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;hr&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;address&amp;gt;Apache Server at maven-repository.dev.java.net Port 443&amp;lt;/address&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have 2 repositories defined in my pom file (spring and codehaus):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;repository&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;id&amp;gt;SpringSource Enterprise Bundle Repository - External Bundle
&lt;br&gt;&amp;gt; Milestones&amp;lt;/id&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;url&amp;gt;&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;&amp;lt;/url&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/repository&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;repository&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;id&amp;gt;codehaus&amp;lt;/id&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;name&amp;gt;Codehaus Maven repository&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;url&amp;gt;&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;&amp;lt;/url&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/repository&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It appears to be gettingthe broken commons-logging-1.1.1.pom from:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using castor 1.3 and castor maven plugin 2.0.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a way to fix this?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; James
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 4K downloaded (castor-maven-plugin-1.5.pom)
&lt;br&gt;&amp;gt; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org//org/codehaus/mojo/mojo-parent/21/mojo-parent-21.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/mojo/mojo-parent/21/mojo-parent-21.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 18K downloaded (mojo-parent-21.pom)
&lt;br&gt;&amp;gt; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.jar&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 20K downloaded (castor-maven-plugin-1.5.jar)
&lt;br&gt;&amp;gt; [WARNING] POM for 'org.codehaus.castor:castor-core:pom:1.3:compile' is
&lt;br&gt;&amp;gt; invalid.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Its dependencies (if any) will NOT be available to the current build.
&lt;br&gt;&amp;gt; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
&lt;br&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; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
&lt;br&gt;&amp;gt; in 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.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
&lt;br&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; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 367b downloaded (commons-logging-1.1.1.pom)
&lt;br&gt;&amp;gt; [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
&lt;br&gt;&amp;gt; '1b9eacd6ccf3db5ccae82b260941c4712d63f4e6'; remote = '&amp;lt;!DOCTYPE' - RETRYING
&lt;br&gt;&amp;gt; Downloading:
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 367b downloaded (commons-logging-1.1.1.pom)
&lt;br&gt;&amp;gt; [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
&lt;br&gt;&amp;gt; '1b9eacd6ccf3db5ccae82b260941c4712d63f4e6'; remote = '&amp;lt;!DOCTYPE' - IGNORING
&lt;br&gt;&amp;gt; [WARNING] POM for 'commons-logging:commons-logging:pom:1.1.1:compile' is
&lt;br&gt;&amp;gt; invalid.
&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; &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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-xmlns-right-tp26699668p26901842.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26887625</id>
	<title>castor and maven problems</title>
	<published>2009-12-22T04:33:38Z</published>
	<updated>2009-12-22T04:33:38Z</updated>
	<author>
		<name>James Cowan-3</name>
	</author>
	<content type="html">&lt;br&gt;Hi Werner
&lt;br&gt;&lt;br&gt;I am running into problems gettting castor and maven to work together.
&lt;br&gt;&lt;br&gt;The probem is that the wrong version of commons-logging-1.1.1.pom is being
&lt;br&gt;downloaded.
&lt;br&gt;&lt;br&gt;The contents of the pom file are:
&lt;br&gt;&lt;br&gt;&amp;lt;!DOCTYPE HTML PUBLIC &amp;quot;-//IETF//DTD HTML 2.0//EN&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;
&lt;br&gt;&amp;lt;title&amp;gt;301 Moved Permanently&amp;lt;/title&amp;gt;
&lt;br&gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;
&lt;br&gt;&amp;lt;h1&amp;gt;Moved Permanently&amp;lt;/h1&amp;gt;
&lt;br&gt;&amp;lt;p&amp;gt;The document has moved &amp;lt;a
&lt;br&gt;href=&amp;quot;&lt;a href=&quot;http://download.java.net/maven/1/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://download.java.net/maven/1/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&amp;quot;&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;
&lt;br&gt;&amp;lt;hr&amp;gt;
&lt;br&gt;&amp;lt;address&amp;gt;Apache Server at maven-repository.dev.java.net Port 443&amp;lt;/address&amp;gt;
&lt;br&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;
&lt;br&gt;&lt;br&gt;I have 2 repositories defined in my pom file (spring and codehaus):
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;lt;repository&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;id&amp;gt;SpringSource Enterprise Bundle Repository - External Bundle
&lt;br&gt;Milestones&amp;lt;/id&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;url&amp;gt;&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;&amp;lt;/url&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/repository&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;repository&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;id&amp;gt;codehaus&amp;lt;/id&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Codehaus Maven repository&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;url&amp;gt;&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;&amp;lt;/url&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/repository&amp;gt;
&lt;br&gt;&lt;br&gt;It appears to be gettingthe broken commons-logging-1.1.1.pom from:
&lt;br&gt;&lt;br&gt;Downloading:
&lt;br&gt;&lt;a href=&quot;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;&lt;br&gt;I am using castor 1.3 and castor maven plugin 2.0.
&lt;br&gt;&lt;br&gt;Is there a way to fix this?
&lt;br&gt;&lt;br&gt;James
&lt;br&gt;&lt;br&gt;Downloading:
&lt;br&gt;&lt;a href=&quot;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.pom&lt;/a&gt;&lt;br&gt;4K downloaded &amp;nbsp;(castor-maven-plugin-1.5.pom)
&lt;br&gt;Downloading:
&lt;br&gt;&lt;a href=&quot;http://repository.codehaus.org//org/codehaus/mojo/mojo-parent/21/mojo-parent-21.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/mojo/mojo-parent/21/mojo-parent-21.pom&lt;/a&gt;&lt;br&gt;18K downloaded &amp;nbsp;(mojo-parent-21.pom)
&lt;br&gt;Downloading:
&lt;br&gt;&lt;a href=&quot;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.jar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//org/codehaus/mojo/castor-maven-plugin/1.5/castor-maven-plugin-1.5.jar&lt;/a&gt;&lt;br&gt;20K downloaded &amp;nbsp;(castor-maven-plugin-1.5.jar)
&lt;br&gt;[WARNING] POM for 'org.codehaus.castor:castor-core:pom:1.3:compile' is
&lt;br&gt;invalid.
&lt;br&gt;&lt;br&gt;Its dependencies (if any) will NOT be available to the current build.
&lt;br&gt;Downloading:
&lt;br&gt;&lt;a href=&quot;http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
&lt;br&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;Downloading:
&lt;br&gt;&lt;a href=&quot;http://repository.springsource.com/maven/bundles/milestone/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.springsource.com/maven/bundles/milestone/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
&lt;br&gt;in 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.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://repository.codehaus.org//commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;[INFO] Unable to find resource 'commons-logging:commons-logging:pom:1.1.1'
&lt;br&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;Downloading:
&lt;br&gt;&lt;a href=&quot;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;367b downloaded &amp;nbsp;(commons-logging-1.1.1.pom)
&lt;br&gt;[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
&lt;br&gt;'1b9eacd6ccf3db5ccae82b260941c4712d63f4e6'; remote = '&amp;lt;!DOCTYPE' - RETRYING
&lt;br&gt;Downloading:
&lt;br&gt;&lt;a href=&quot;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://maven-repository.dev.java.net/nonav/repository/commons-logging/poms/commons-logging-1.1.1.pom&lt;/a&gt;&lt;br&gt;367b downloaded &amp;nbsp;(commons-logging-1.1.1.pom)
&lt;br&gt;[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
&lt;br&gt;'1b9eacd6ccf3db5ccae82b260941c4712d63f4e6'; remote = '&amp;lt;!DOCTYPE' - IGNORING
&lt;br&gt;[WARNING] POM for 'commons-logging:commons-logging:pom:1.1.1:compile' is
&lt;br&gt;invalid.
&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-xmlns-right-tp26699668p26887625.html" />
</entry>

<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;</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;
</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;</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;</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;</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;</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-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;</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;</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;
</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;</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;</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?</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-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;</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;</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;
</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;</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-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;</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;</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;</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;
</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;</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-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;</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;</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;</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;</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;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26580575.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26579447</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T10:21:21Z</published>
	<updated>2009-11-30T10:21:21Z</updated>
	<author>
		<name>stoil valchkov</name>
	</author>
	<content type="html">Castor still has this issue with default implementation of imports handling. This can be customized and fixed, but still there are other issues like referencing element definitions from xsd namespace which weren&amp;#39;t that important for me and I didn&amp;#39;t spent much effort there. Despite that at that moment castor was the best from open source I could find to handle xsd-s from wsdl :)&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 30, 2009 at 7:39 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=26579447&amp;i=0&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;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=26579447&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;svalchkov@...&lt;/a&gt;&amp;gt;&lt;div class=&quot;im&quot;&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=26579447&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;br&gt;&lt;/div&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;div class=&quot;im&quot;&gt;
&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;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
Hi,&lt;br&gt;&lt;br&gt;&lt;span&gt;This was discussed some while ago &lt;a href=&quot;http://markmail.org/message/pa35jxfizpes3d3c&quot; target=&quot;_blank&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;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=26579447&amp;i=3&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;a href=&quot;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&quot; target=&quot;_blank&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;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&amp;#39;t mind.&lt;br&gt;&lt;br&gt;However I get the error when parsing the &amp;quot;Type&amp;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;Unable to resolve Schema corresponding to namespace &amp;#39;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;#39;.&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 &amp;#39;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_blank&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;#39;.&lt;/span&gt;&lt;/span&gt;&lt;br&gt;

    at org.exolab.castor.xml.schema.reader.ImportUnmarshaller.&amp;lt;init&amp;gt;(ImportUnmarshaller.java:125)&lt;br&gt;    at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:604)&lt;br&gt;    at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:255)&lt;br&gt;

    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
 Source)&lt;br&gt;    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)&lt;br&gt;    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)&lt;br&gt;    at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)&lt;br&gt;    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)&lt;br&gt;    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;

    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&lt;br&gt;    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)&lt;br&gt;

    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;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26579447.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26578709</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T09:39:49Z</published>
	<updated>2009-11-30T09:39:49Z</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;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=26578709&amp;i=0&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=26578709&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 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;
&lt;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;off&quot;&gt;Hi,&lt;br&gt;&lt;br&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;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=26578709&amp;i=2&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;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;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;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;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;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;on&quot;&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!-- cg27.c2.mail.re1.yahoo.com compressed/chunked Fri Nov 27 07:58:09 PST 2009 --&gt;
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26578709.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26578459</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T09:25:11Z</published>
	<updated>2009-11-30T09:25:11Z</updated>
	<author>
		<name>stoil valchkov</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;This was discussed some while ago &lt;a href=&quot;http://markmail.org/message/pa35jxfizpes3d3c&quot; target=&quot;_top&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;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=26578459&amp;i=0&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;a href=&quot;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&quot; target=&quot;_blank&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;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&amp;#39;t mind.&lt;br&gt;&lt;br&gt;However I get the error when parsing the &amp;quot;Type&amp;quot;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span&gt;&lt;span&gt;Unable to resolve Schema corresponding to namespace &amp;#39;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;#39;.&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 &amp;#39;&lt;a rel=&quot;nofollow&quot; href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_blank&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;#39;.&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
    at org.exolab.castor.xml.schema.reader.ImportUnmarshaller.&amp;lt;init&amp;gt;(ImportUnmarshaller.java:125)&lt;br&gt;    at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:604)&lt;br&gt;    at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:255)&lt;br&gt;
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
 Source)&lt;br&gt;    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)&lt;br&gt;    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)&lt;br&gt;    at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)&lt;br&gt;    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)&lt;br&gt;    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)&lt;br&gt;    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)&lt;br&gt;    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)&lt;br&gt;
    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;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26578459.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26578419</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T09:22:11Z</published>
	<updated>2009-11-30T09:22:11Z</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;I am only parsing the &quot;Type&quot; part of the Schema, there is no intention in compiling WSDL. In fact your second point is closer to what I am doing. I am reading DOM Schema from wsdl definition and regenerading JDom Schema format (DOM -&amp;gt; JDom).&lt;br&gt;&lt;br&gt;this is where it fails on this example&lt;br&gt;&lt;br&gt;S.&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; James Cowan &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26578419&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jamesmcowan@...&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=26578419&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 5:03:30 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;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;off&quot;&gt;

 



&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Castor is an XSD compiler not a WSDL 
compiler.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;I think you need to use Apache Axis or CXF WSDL 
compilers to handle this. If there was a WSDL compiler&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;that used Castor to generate the data structures I 
would be very interested.&amp;nbsp;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;The pojos 
produced&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;by the WSDL compilers are nothing like as readable 
as the ones produced by Castor.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;James&lt;/font&gt;&lt;/div&gt;
&lt;blockquote style=&quot;border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px;&quot; dir=&quot;ltr&quot;&gt;
  &lt;div style=&quot;font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;&quot;&gt;----- Original Message ----- &lt;/div&gt;
  &lt;div style=&quot;background: rgb(228, 228, 228) none repeat scroll 0% 0%; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;&quot;&gt;&lt;b&gt;From:&lt;/b&gt; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26578419&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sasanplus@...&lt;/a&gt; 
&lt;/div&gt;
  &lt;div style=&quot;font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;&quot;&gt;&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26578419&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt; &lt;/div&gt;
  &lt;div style=&quot;font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;&quot;&gt;&lt;b&gt;Sent:&lt;/b&gt; Monday, November 30, 2009 4:31 
  PM&lt;/div&gt;
  &lt;div style=&quot;font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;&quot;&gt;&lt;b&gt;Subject:&lt;/b&gt; [castor-user] WSDL import - 
  castor exception&lt;/div&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;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; color: rgb(0, 0, 0); font-size: 12pt;&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;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;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;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;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;/blockquote&gt;&lt;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;on&quot;&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!-- cg27.c2.mail.re1.yahoo.com compressed/chunked Fri Nov 27 07:58:09 PST 2009 --&gt;
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26578419.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26578142</id>
	<title>Re: WSDL import - castor exception</title>
	<published>2009-11-30T09:03:30Z</published>
	<updated>2009-11-30T09:03:30Z</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;Castor is an XSD compiler not a WSDL 
compiler.&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;I think you need to use Apache Axis or CXF WSDL 
compilers to handle this. If there was a WSDL compiler&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;that used Castor to generate the data structures I 
would be very interested.&amp;nbsp;&lt;/FONT&gt;&lt;FONT size=2 face=Arial&gt;The pojos 
produced&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;by the WSDL compilers are nothing like as readable 
as the ones produced by Castor.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&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;BLOCKQUOTE style=&quot;BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px&quot; dir=ltr&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;----- Original Message ----- &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black&quot;&gt;&lt;B&gt;From:&lt;/B&gt; 
  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26578142&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sasanplus@...&lt;/a&gt; 
&lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26578142&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt; &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Sent:&lt;/B&gt; Monday, November 30, 2009 4:31 
  PM&lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Subject:&lt;/B&gt; [castor-user] WSDL import - 
  castor exception&lt;/DIV&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;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; COLOR: rgb(0,0,0); FONT-SIZE: 12pt&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;A href=&quot;http://www.ibm.com/developerworks/xml/library/ws-tip-imports.html&quot; target=_blank 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;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;Unable 
  to resolve Schema corresponding to namespace '&lt;A href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=_blank rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/A&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 href=&quot;http://www.w3.org/2001/XMLSchema&quot; rel=&quot;nofollow&quot; target=_blank&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;META content=on http-equiv=x-dns-prefetch-control&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;!-- cg27.c2.mail.re1.yahoo.com compressed/chunked Fri Nov 27 07:58:09 PST 2009 --&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26578142.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26577595</id>
	<title>WSDL import - castor exception</title>
	<published>2009-11-30T08:31:39Z</published>
	<updated>2009-11-30T08:31:39Z</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,&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;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;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;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;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;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;on&quot;&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!-- cg27.c2.mail.re1.yahoo.com compressed/chunked Fri Nov 27 07:58:09 PST 2009 --&gt;
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/WSDL-import---castor-exception-tp26577595p26577595.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26576146</id>
	<title>Re: Binding Composite Element's child element overrides another element binding</title>
	<published>2009-11-30T07:06:36Z</published>
	<updated>2009-11-30T07:06:36Z</updated>
	<author>
		<name>kabal</name>
	</author>
	<content type="html">hi Werner.
&lt;br&gt;&lt;br&gt;please do, been trying for ages to get this working :)
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Shaine
&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;that's very odd, as I have been able to get things working as initially
&lt;br&gt;outlined. What if I posted the complete Java class and mapping file ?
&lt;br&gt;Are you fine with this ?
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Werner
&lt;br&gt;&lt;br&gt;kabal wrote:
&lt;br&gt;&amp;gt; here is the customer snipped of all its other methods and attributes
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ============================
&lt;br&gt;&amp;gt; public class CustomerImpl extends BaseEntityImpl implements Customer {
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	private List&amp;lt;Address&amp;gt; addresses = new ArrayList&amp;lt;Address&amp;gt;();
&lt;br&gt;&amp;gt; 	private List&amp;lt;String&amp;gt; emailAddresses;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	public List&amp;lt;Address&amp;gt; getAddresses() {
&lt;br&gt;&amp;gt; 		return addresses;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	public void setAddresses(List&amp;lt;Address&amp;gt; addresses) {
&lt;br&gt;&amp;gt; 		this.addresses = addresses;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	public List&amp;lt;String&amp;gt; getEmailAddresses() {
&lt;br&gt;&amp;gt; 		return emailAddresses;
&lt;br&gt;&amp;gt; 	}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	public void setEmailAddresses(List&amp;lt;String&amp;gt; emailAddresses) {
&lt;br&gt;&amp;gt; 		this.emailAddresses = emailAddresses;		
&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; 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 am not 100% sure whether this will work, but let me have a go at his.
&lt;br&gt;&amp;gt;&amp;gt; What does the Customer class look like precisely ?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;&amp;gt; Werner
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; kabal wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi all
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have some vendor supplied XML that I am trying to marshal to my Java
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; object.
&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;&amp;gt; &amp;lt;Customer&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;Address&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;AddressLine1&amp;gt;13 Some Street&amp;lt;/AddressLine1&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;AddressLine2 /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;AddressLine3&amp;gt;Suburb&amp;lt;/AddressLine3&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;AddressLine4 /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;AddressLine5&amp;gt;City&amp;lt;/AddressLine5&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;AddressLine6&amp;gt;Postcode&amp;lt;/AddressLine6&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;Country&amp;gt;Country&amp;lt;/Country&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;/Address&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;EmailAddressList&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;Address&amp;gt;bob@smith.com&amp;lt;/Address&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;Address&amp;gt;bob2@smith.com&amp;lt;/Address&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;/EmailAddressList&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/Customer&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;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now I want the marshaller to create a Customer, set the addresses
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (List&amp;lt;Address&amp;gt;), and set the email addresses(List&amp;lt;String&amp;gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; here is my binding
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; customer.xml
&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;lt;mapping&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;class name=&amp;quot;domain.CustomerImpl&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;map-to xml=&amp;quot;Customer&amp;quot; ns-uri=&amp;quot;&lt;a href=&quot;http://namespace&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://namespace&lt;/a&gt;&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;field name=&amp;quot;Addresses&amp;quot; type=&amp;quot;domain.AddressImpl&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;Address&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;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;field name=&amp;quot;EmailAddresses&amp;quot; type=&amp;quot;java.lang.String&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;Address&amp;quot; location=&amp;quot;EmailAddressList&amp;quot; node=&amp;quot;element&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;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;/class&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;/mapping&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;&amp;gt; address.xml
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ============================
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;mapping&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	&amp;lt;class name=&amp;quot;domain.AddressImpl&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 	
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;map-to xml=&amp;quot;Address&amp;quot; ns-uri=&amp;quot;&lt;a href=&quot;http://namespace&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://namespace&lt;/a&gt;&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		&amp;lt;field name=&amp;quot;AddressLine1&amp;quot; type=&amp;quot;java.lang.String&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 			&amp;lt;bind-xml name=&amp;quot;AddressLine1&amp;quot; node=&amp;quot;element&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; 		
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 		..snipped
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;
&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&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;&amp;gt; When I started the mapping, starting with the addresses, the Customer was
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; created as expected, and the address objects created and set on the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; customer.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; However, after then doing the mapping for the email addresses, the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; address
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; mapping stopped working, and the only assumption I can make is that there
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; are 2 different &amp;quot;Address&amp;quot; elements. I confirmed this by commenting out
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; email address binding, and then my addresses were once again populated
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; correctly. I even tried setting the &amp;quot;location&amp;quot; of the &amp;quot;Address&amp;quot; element
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;Customer&amp;quot; but this didnt work.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Any suggestions on how to get around this?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks in advance
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Shaine 
&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;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Binding-Composite-Element%27s-child-element-overrides-another-element-binding-tp26516953p26576146.html" />
</entry>

</feed>
