[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Problem creating POJO using Castor data binding framework in Eclipse plugin

Hi,

I apologize if I am posting in the wrong forum.

I want to create a POJO from XML in an Eclipse plug-in which uses Castor data binding framework to read and an XML file and call the mapping to create the object. Now the problem is that Castor is not able to find the class for which it is supposed to create a POJO. This class is available under the packages of Eclipse plug-in source.

I get an exception

"org.exolab.castor.mapping.MappingException:Could not find the class com.xml.license.License"

com.xml.license.License is defined in the plug-in.

The mapping used by castor looks like this

<class name="com.xml.license.License">
  <field name="licenseName" type="string">
    <bind-xml name="name" node="attribute" />
  </field>
  <field name="licenseVersion" type="string" />
</class>

Regards
Samrat Dhillon