Looks like the issue is unrelated to Castor, as it seems that either the
ClassLoader cannot find it, or you don't have the privileges to access
the file.
Regards
Werner
Singh, Harjit wrote:
> Hi there,
>
> I'm trying to run the utility to generate mapping file from my class
> file, but I'm getting this error. Any clues why ?
>
> Thanks
>
> - H
>
> C:\Documents and Settings\SinghH\My Documents\FUSS\dmytros Files>java
> org.exolab
> .castor.tools.MappingTool -i ApplicantProfileRpt.class -o test.xml
> org.exolab.castor.mapping.MappingException: Nested error:
> java.lang.ClassNotFoun
> dException: ApplicantProfileRpt.class
> java.lang.ClassNotFoundException: ApplicantProfileRpt.class
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
> org.exolab.castor.tools.MappingTool.addClass(MappingTool.java:243)
> at
> org.exolab.castor.tools.MappingTool.addClass(MappingTool.java:224)
> at org.exolab.castor.tools.MappingTool.main(MappingTool.java:189)
>
>
> This email, including attachments, may include confidential and/or
> proprietary information, and may be used only by the person or entity
> to which it is addressed. If the reader of this email is not the
> intended recipient or his or her authorized agent, the reader is
> hereby notified that any dissemination, distribution or copying of this
> email is prohibited. If you have received this email in error,
> please notify the sender by replying to this message and delete this
> email immediately.
>
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email