Hello,

I'm having the problem that my castor-generated source code is not
compiling. 
My castor settings:
Manifest-Version: 1.0
Specification-Title: Castor XML, JDO, DAX, DSML
Specification-Vendor: Intalio Inc.
Specification-Version: 0.8
Implementation-Title: Castor
Implementation-Vendor: Intalio Inc.
Implementation-Version: 0.9.3
Class-Path: xerces.jar, jdbc-se2.0.jar, jndi.jar, jta1.0.1.jar


Here is an excerpt from my XML schema definition:

        </xs:element>
        <xs:element name="AFIOPLinks">
                <xs:complexType>
                        <xs:sequence minOccurs="0" maxOccurs="unbounded">
                                <xs:element name="AFIOPLink">
                                        <xs:complexType>
                                                <xs:sequence>
                                                        <xs:element
name="name" nillable="false" minOccurs="0">
        
<xs:simpleType>
        
<xs:restriction base="xs:string"/>
        
</xs:simpleType>
                                                        </xs:element>
                                                        <xs:element
name="ip_address" nillable="true" minOccurs="0"/>
                                                        <xs:element
name="wavelength_type" minOccurs="0">
        
<xs:simpleType>
        
<xs:restriction base="xs:integer">
        
<xs:enumeration value="0"/>
        
</xs:restriction>
        
</xs:simpleType>
                                                        </xs:element>
                                                        <xs:sequence
minOccurs="2" maxOccurs="2">
                                                                <xs:element
name="plugin_connection">
        
<xs:complexType>
        
<xs:sequence>
        
<xs:choice>
        
<xs:element name="plugin_id" type="xs:integer"/>
        
<xs:element name="plugin_unique_key" type="xs:string"/>
        
<xs:element name="plugin_uloc">
        
<xs:complexType>
        
<xs:sequence>
        
<xs:element name="shelf" type="xs:integer"/>
        
<xs:element name="subshelf" type="xs:integer" minOccurs="0"/>
        
<xs:element name="slot" type="xs:integer"/>
        
<xs:element name="subslot" type="xs:integer" minOccurs="0"/>
        
<xs:element name="cardcage_id" type="xs:integer" minOccurs="0"/>
        
<xs:element name="cardcage_unique_key" type="xs:string" minOccurs="0"/>
        
<xs:element name="cardcage_name" type="xs:string" minOccurs="0"/>
        
</xs:sequence>
        
</xs:complexType>
        
</xs:element>
        
</xs:choice>
        
<xs:element name="port" type="xs:integer" nillable="false"/>
        
</xs:sequence>
        
</xs:complexType>
        
</xs:element>
                                                        </xs:sequence>
                                                </xs:sequence>
                                                <xs:attribute
name="unique_key" use="required">
                                                        <xs:simpleType>
        
<xs:restriction base="xs:string">
        
<xs:minLength value="1"/>
        
</xs:restriction>
                                                        </xs:simpleType>
                                                </xs:attribute>
                                        </xs:complexType>
                                </xs:element>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>

The generated file which causes the compile error is attached below.

I get the following compile errors:
"AFIOPLink.java": Error #: 300 : class IpAddress not found in class
com.agilent.accessfiber.interoperable.castor.AFIOPLink at line 40, column
13"AFIOPLink.java": Error #: 300 : class AFIOPLinkSequence not found in
class com.agilent.accessfiber.interoperable.castor.AFIOPLink at line 65,
column 38
"AFIOPLink.java": Error #: 300 : class AFIOPLinkSequence not found in class
com.agilent.accessfiber.interoperable.castor.AFIOPLink at line 105, column
12
"AFIOPLink.java": Error #: 300 : class IpAddress not found in class
com.agilent.accessfiber.interoperable.castor.AFIOPLink at line 124, column
12

Any inputs would be greatly appreciated.

Regards,
Trang

...

--
___________________________________________
        Trang Nguyen
        CMS accessFIBER
        Herrenberger Str. 130, 
      CMS-AF Blg4/P2M
        D-71034 Boeblingen
        ***
        e-mail: [EMAIL PROTECTED]
        phone: +49 7031 464-8928 telnet: 778-8928
        fax: +49 7031 464-1164
___________________________________________________________________
Agilent Technologies Deutschland GmbH  
Sitz der Gesellschaft: 
B�blingen, Amtsgericht B�blingen HRB 4716

Gesch�ftsf�hrer:
Hans-G�nter Hohmann (Vorsitzender), Karlheinz Br�derle,
Dr. Hans-Hermann Dietrich, Reinhard Hamburger
Vorsitzender des Aufsichtsrats: Roberto Favaretto
___________________________________________________________________ 

Attachment: AFIOPLink.java
Description: Binary data

Reply via email to