--- Begin Message ---Hi Werner, it's a standalone application. Yes I've tried setting the classloader on the unmarshaller this is the code: FileEditorInput fileEditorInput = ((FileEditorInput)getEditorInput());BufferedReader br = new BufferedReader(new FileReader(fileEditorInput.getFile().getName())); Unmarshaller unmarshaller = new Unmarshaller(); unmarshaller.setClassLoader(this.getClass().getClassLoader()); testSuite = (TestSuite) unmarshaller.unmarshal(br); Am I doing this right? ________________________________ From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: Thu 2/8/2007 6:43 AM To: [email protected] Subject: Re: [castor-user] unmarshalling query Matthew, have you tried to set a ClassLoader instance on the Unmarshaller before triggering unmarshalling ? And is this a stand-alone application, or a J22 app (web or EJB) ? Werner Matthew Shaw wrote: > Hi Guys, > > I'm trying to unmarshall an XML document from within an eclipse plugin. > > The elements in the xml e.g. "test-suite" have corresponding objects > which are on the runtime classpath for the plugin. > > Yet I am getting a class not found error. > > Any ideas would be greatly appreciated as I've been stuck on this for > hours. > > If I use a mapping file it works, however this really defeats the > purpose of why I'm using it. > > Cheers, > Matt. > This correspondence is for the named persons only. > It may contain confidential or privileged information or both. > No confidentiality or privilege is waived or lost by any mis transmission. > If you receive this correspondence in error please delete it from your > system immediately and notify the sender. > You must not disclose, copy or relay on any part of this correspondence, > if you are not the intended recipient. > Any opinions expressed in this message are those of the individual > sender except where the sender expressly, > and with the authority, states them to be the opinions of the Department > of Emergency Services, Queensland. > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email<<winmail.dat>>
--- End Message ---
This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email

