Luigi,
 
It looks like a simple classpath problem.  FYI, here is the command line I used to generate a mapping file with MappingTool:
 
java org.exolab.castor.tools.MappingTool -i <full class name to map> -o <name of output mapping file>
-----Original Message-----
From: Luigi Celano [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 7:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Automatic generation of mapping file



Hi Robert,

     I have tried the MappingTool but I get the following exception, do I need to set any properties somewhere?

Thanks

Luigi


C:\GSD\classes>java org.exolab.castor.tools.MappingTool  com.hsbc.opsco.gsd.bo
org.exolab.castor.mapping.MappingException: Nested error: java.lang.ClassNotFo
java.lang.ClassNotFoundException: myapp.Product
        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:107)
        at org.exolab.castor.tools.MappingTool.main(MappingTool.java:94)

>From: Robert Ollila <[EMAIL PROTECTED]>

>Reply-To: [EMAIL PROTECTED]

>To: [EMAIL PROTECTED]

>Subject: Re: [castor-dev] Automatic generation of mapping file

>Date: Fri, 1 Feb 2002 09:35:42 -0800

>

>Try the following from a previous email:

>

>

>

>

>

>

>

>

>

>Take your Class for your root element and pass it to the

>

>org.exolab.castor.tools.MappingTool utility and it will create a mapping

>

>file that you can then edit (for adding JDO specific information) and

>

>use.

>

>Just keep in mind that it might not work 100% for your schema, but it's

>

>worth a try.

>

>From: Robert Ollila <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [castor-dev] Automatic generation of mapping file
>Date: Fri, 1 Feb 2002 09:35:42 -0800
>
>Try the following from a previous email:
>
>
>
>
>
>
>
>
>
>Take your Class for your root element and pass it to the
>
>org.exolab.castor.tools.MappingTool utility and it will create a mapping
>
>file that you can then edit (for adding JDO specific information) and
>
>use.
>
>Just keep in mind that it might not work 100% for your schema, but it's
>
>worth a try.
>
>-----Original Message-----
>From: Luigi Celano [mailto:[EMAIL PROTECTED]]
>Sent: Friday, February 01, 2002 12:17 PM
>To: [EMAIL PROTECTED]
>Subject: [castor-dev] Automatic generation of mapping file
>
>
>Does anybody know any tools which generate a mapping file starting from a
>Java class?
>Thanks
>Luigi
>
> _____
>
>Join the world's largest e-mail service with MSN Hotmail. Click
> Here
>----------------------------------------------------------- If you wish to
>unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a
>subject of: unsubscribe castor-dev
>


Send and receive Hotmail on your mobile device: Click Here
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Reply via email to