Re: [Ikvm-developers] Castor and classloading
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2009-05-21 10:49:23
|
Hi David,
There are several possible solutions:
1) Compile the 3rd party code into the same assembly as the Castor code.
2) Use the ikvmc option -classloader:ikvm.runtime.AppDomainAssemblyClassLoader when compiling Castor.
3) Use IKVM 0.40.0.1 and compile the 3rd party code together with Castor into seperate assemblies:
ikvmc -sharedclassloader { castor.jar } { 3rdparty.jar }
Regards,
Jeroen
> -----Original Message-----
> From: David Arkell [mailto:Dav...@om...]
> Sent: Thursday, May 21, 2009 12:06
> To: ikv...@li...
> Subject: [Ikvm-developers] Castor and classloading
>
> I've converted an api to .net. It uses xml to access some web
> services, and it's 3rd party. The xml is done using Castor to (I
> believe) bind the xml into objects.
>
>
>
> I thought I was successful in converting the jar into a dll, and it was
> working fine, until I started trying to access some of the more useful
> parts of the service. When I try to do this, I get an error from
> Castor (I converted all the required libraries as well - including
> Castor):
>
>
>
> "Nested Error: org.exolab.castor.mapping.MappingException: Could not
> find the class ..."
>
>
>
> The class it can't find is part of the 3rd party api I am using, and
> from looking on the web (http://www.mail-archive.com/castor-
> us...@ex.../msg00196.html), it seems that Castor cannot access the
> class because it's in a separate assembly from castor.
>
>
>
> Any ideas on how I can get Castor to play ball with the api (I can't
> change any of the source code for the api)?
>
>
>
> Cheers
>
>
>
> Dave
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
|