Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problem creating POJO using Castor data binding framework in Eclipse plugin
Problem creating POJO using Castor data binding framework in Eclipse plugin [message #322652] Thu, 22 November 2007 23:12 Go to next message
Eclipse UserFriend
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
Re: Problem creating POJO using Castor data binding framework in Eclipse plugin [message #322655 is a reply to message #322652] Fri, 23 November 2007 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: al_PUBLIC.gmx.de

First guess: you haven't defined the classpath in the plugin.xml of
your plugin. If that's the case, edit the plugin.xml, go to the
"Runtime" tab and add all necessary entries to the classpath.


Achim
--
Eclipse Stammtisch Braunschweig/Wolfsburg/usw. am 18.12.2007
siehe http://www.bredex.de/de/news/eclipseregtable.html
Re: Problem creating POJO using Castor data binding framework in Eclipse plugin [message #322722 is a reply to message #322655] Mon, 26 November 2007 17:54 Go to previous message
Eclipse UserFriend
Achim Lörke wrote:
> First guess: you haven't defined the classpath in the plugin.xml of
> your plugin. If that's the case, edit the plugin.xml, go to the
> "Runtime" tab and add all necessary entries to the classpath.
>
>
> Achim
> --
> Eclipse Stammtisch Braunschweig/Wolfsburg/usw. am 18.12.2007
> siehe http://www.bredex.de/de/news/eclipseregtable.html


The problem was providing the proper class loader to the Mapping object
constructor. Castor mapping object requires the class loader when
running as a java extension.

Regards
Samrat Dhillon
Previous Topic:Got a ResourceChange event when do the eclipse 3.4 clean build ..
Next Topic:Where is my JFrame? (was Strange behavior when trying to debug my application within eclipse)
Goto Forum:
  


Current Time: Wed Nov 05 07:46:31 EST 2025

Powered by FUDForum. Page generated in 0.04204 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top