Hello all,

I am using castor 1.1.2.1 to generate classes from a small XSD file. The
problem is that although the .cdr output lists 35 classes generated, one of
them only appears as a descriptor and not as an implementation class. I have
attached both the .xsd and .cdr files to be more specific. The problematic
element is named "aux" (lines 127-144 in the .xsd file). What happens is the
following:

I direct the creation of classes to an empty folder called
ResourceAllocation. Despite this, when the time comes for Aux.java to be
generated I get the following message:

ResourceAllocation\Aux.java already exists. overwrite(y|n|a|?)

If I press either 'y' or 'a', castor continues but stalls considerably at
this point (around 3-4 minutes), whereas generating all other classes and
descriptors takes about half a minute. Furthermore, although a file named
AuxDescriptor.java exists in ResourceAllocation\descriptors, I cannot find
the respective Aux.java in ResourceAllocation (I've even checked if for some
weird reason it is created as hidden but found nothing). The .cdr file
insists that it has been created (cf. line 6) but why can I not find it?

Thanks,
Andreas.

P.S. This is my first message to the list and I am pretty much new to
castor, so I apologize for any lack of necessary information to answer this
question.
P.S.2 If I remove this element from the .xsd file, class generation proceeds
smoothly and completes in well under a minute.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="workspaceElements">
	<xs:element name="id1" nillable="true">
		<xs:complexType>
			<xs:simpleContent msdata:ColumnName="id1_Text" msdata:Ordinal="0">
				<xs:extension base="xs:string"/>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="type">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="id1" type="xs:string" minOccurs="0" msdata:Ordinal="0"/>
				<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="3"/>
				<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="id" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="posattr">
		<xs:complexType>
			<xs:attribute name="x" type="xs:string"/>
			<xs:attribute name="y" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="fillattr">
		<xs:complexType>
			<xs:attribute name="colour" type="xs:string"/>
			<xs:attribute name="pattern" type="xs:string"/>
			<xs:attribute name="filled" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="lineattr">
		<xs:complexType>
			<xs:attribute name="colour" type="xs:string"/>
			<xs:attribute name="thick" type="xs:string"/>
			<xs:attribute name="type" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="textattr">
		<xs:complexType>
			<xs:attribute name="colour" type="xs:string"/>
			<xs:attribute name="bold" type="xs:string"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="workspaceElements" msdata:IsDataSet="true" msdata:Locale="en-US">
		<xs:complexType>
			<xs:choice minOccurs="0" maxOccurs="unbounded">
				<xs:element ref="id1"/>
				<xs:element ref="type"/>
				<xs:element ref="posattr"/>
				<xs:element ref="fillattr"/>
				<xs:element ref="lineattr"/>
				<xs:element ref="textattr"/>
				<xs:element name="generator">
					<xs:complexType>
						<xs:attribute name="tool" type="xs:string"/>
						<xs:attribute name="version" type="xs:string"/>
						<xs:attribute name="format" type="xs:string"/>
					</xs:complexType>
				</xs:element>
				<xs:element name="cpnet">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="globbox" minOccurs="0" maxOccurs="unbounded">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="color" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="id1" type="xs:string" minOccurs="0" msdata:Ordinal="0"/>
													<xs:element name="int" type="xs:string" minOccurs="0" msdata:Ordinal="2"/>
													<xs:element name="product" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element ref="id1" minOccurs="0" maxOccurs="unbounded"/>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="enum" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element ref="id1" minOccurs="0" maxOccurs="unbounded"/>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="id" type="xs:string"/>
											</xs:complexType>
										</xs:element>
										<xs:element name="var" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="id1" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
													<xs:element ref="type" minOccurs="0" maxOccurs="unbounded"/>
												</xs:sequence>
												<xs:attribute name="id" type="xs:string"/>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="page" minOccurs="0" maxOccurs="unbounded">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="pageattr" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:attribute name="name" type="xs:string"/>
											</xs:complexType>
										</xs:element>
										<xs:element name="vguideline" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="guideline_elm" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="idref" type="xs:string"/>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="id" type="xs:string"/>
												<xs:attribute name="x" type="xs:string"/>
											</xs:complexType>
										</xs:element>
										<xs:element name="aux" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
													<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element name="label" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="w" type="xs:string"/>
															<xs:attribute name="h" type="xs:string"/>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="id" type="xs:string"/>
											</xs:complexType>
										</xs:element>
										<xs:element name="arc" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element name="arrowattr" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="headsize" type="xs:string"/>
															<xs:attribute name="currentcyckle" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element name="transend" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="idref" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element name="placeend" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="idref" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element name="annot" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
																<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
															</xs:sequence>
															<xs:attribute name="id" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element name="bendpoint" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
																<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
															</xs:sequence>
															<xs:attribute name="id" type="xs:string"/>
															<xs:attribute name="serial" type="xs:string"/>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="id" type="xs:string"/>
												<xs:attribute name="orientation" type="xs:string"/>
											</xs:complexType>
										</xs:element>
										<xs:element name="trans" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
													<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element name="box" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="w" type="xs:string"/>
															<xs:attribute name="h" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element name="cond" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
																<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
															</xs:sequence>
															<xs:attribute name="id" type="xs:string"/>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="id" type="xs:string"/>
											</xs:complexType>
										</xs:element>
										<xs:element name="place" minOccurs="0" maxOccurs="unbounded">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
													<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element name="ellipse" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="w" type="xs:string"/>
															<xs:attribute name="h" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element name="token" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="x" type="xs:string"/>
															<xs:attribute name="y" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element name="marking" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:attribute name="x" type="xs:string"/>
															<xs:attribute name="y" type="xs:string"/>
														</xs:complexType>
													</xs:element>
													<xs:element ref="type" minOccurs="0" maxOccurs="unbounded"/>
													<xs:element name="initmark" minOccurs="0" maxOccurs="unbounded">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="text" type="xs:string" minOccurs="0" msdata:Ordinal="1"/>
																<xs:element ref="posattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="fillattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="lineattr" minOccurs="0" maxOccurs="unbounded"/>
																<xs:element ref="textattr" minOccurs="0" maxOccurs="unbounded"/>
															</xs:sequence>
															<xs:attribute name="id" type="xs:string"/>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="id" type="xs:string"/>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="id" type="xs:string"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:choice>
		</xs:complexType>
	</xs:element>
</xs:schema>

Attachment: .castor.cdr
Description: Binary data

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to