Hi,
My code works fine when I run it with Castor 1.1 in my
development environment (i.e. Eclipse IDE).  But when
I try to run it from outside another environment
(outside of Eclipse), I get the following exception
error:

2007-02-22 12:44:05,047 DEBUG
(com.testcom.nget.businesshandler.facade.SCRunDVP) -
Non Runtime Exception of class type:
org.exolab.castor.mapping.MappingException
2007-02-22 12:44:05,047 ERROR
(com.testcom.nget.businesshandler.facade.SCRunDVP) -
Non Runtime Exception Nested error:
org.xml.sax.SAXException: unable to find
FieldDescriptor for 'class' in ClassDescriptor of
bind-xml
org.xml.sax.SAXException: unable to find
FieldDescriptor for 'class' in ClassDescriptor of
bind-xml


Please correct me if I am wrong, but the error message
"unable to find FieldDescriptor for 'class' in
ClassDescriptor of bind-xml" seems to be complainig
about nesting a <class> tag from inside of a
<bind-xml> tag in the Castor mapping file.  Am I
correct?

I do have one situation in my Castor mapping file
where I am nesting a <class> inside of a <bind-xml>
tag, see below:

  <class
name="com.testcom.nget.valueobject.databinding.RunDvpRequest.RunDvpRequestVO"
auto-complete="true">
    <map-to xml="Document"/>
    <field name="logins" collection="hashtable" >
      <bind-xml name="LOGIN_LIST">
        <class
name="org.exolab.castor.mapping.MapItem">
          <field name="key" type="java.lang.String">
            <bind-xml name="filter" node="attribute"/>
      </field>
      <field name="value"
type="com.testcom.nget.valueobject.databinding.RunDvpRequest.LoginVO">
          <bind-xml name="LOGIN"/>
      </field>    
        </class>
      </bind-xml>       
    </field>
    <field name="dvpCriteriaId">
      <bind-xml name="DVPCRITERIAID"
location="DVPCRITERIAINPUT_LIST/DVPCRITERIAINPUT"/>
    </field>
  </class>


I am doing this so as to map data to a Hashtable
collection.  And that xml mapping code works fine in
Eclipse.  But in the run environment it gives me an
error.  Any idea why it is not working in the  run
environment?

Thanks.


**********************************************************
* Saladin Sharif
* e-mail:  [EMAIL PROTECTED]
* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
**********************************************************


 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

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

    http://xircles.codehaus.org/manage_email

Reply via email to