At http://castor.org/download.html#Dependent-Libraries you find a list of libraries that are required to use castor within your application. You propably don't need all of them as some are only required for special features. I'd suggest to look which of the libs contains the required class if you get another ClassNotFoundException first.

Regards
Ralf


Iker G.A. schrieb:
I´ve those *.jar in the classpath:

*castor-1.1
*castor-1.1-codegen
*castor-1.1-codegen-anttask
*castor-1.1-commons
*castor-1.1-ddlgen
*castor-1.1-examples-sources
*castor-1.1-xml

Thank you very much

*/Ralf Joachim <[EMAIL PROTECTED]>/* escribió:

    Do you have commons-logging.jar on your classpath?

    Ralf


    Iker G.A. schrieb:
     > Hi, I got this error:
     >
     > Exception in thread "main" java.lang.NoClassDefFoundError:
     > org/apache/commons/logging/LogFactory
     > at
     > org.exolab.castor.util.Configuration.(Configuration.java:103)
     > at
     > org.exolab.castor.xml.Unmarshaller.initConfig(Unmarshaller.java:280)
     > at org.exolab.castor.xml.Unmarshaller.(Unmarshaller.java:231)
     > at org.exolab.castor.xml.Unmarshaller.(Unmarshaller.java:218)
     > at UseStudent.main(UseStudent.java:21)
     >
     > The code that corresponds to UseStudent.java line 21 is:
     >
     > 21 Unmarshaller h_unmarshaller = new Unmarshaller(Student.class);
     > 22
     > 23 //h_unmarshaller.setIgnoreExtraElements(true);
     > 24
     > 25 Student student = (Student) h_unmarshaller.unmarshal(in);
     >
     >
     > If I uncomment the 23rd line I get the same error.
     >
     >
    ------------------------------------------------------------------------
     >
     > LLama Gratis a cualquier PC del Mundo.
     > Llamadas a fijos y móviles desde 1 céntimo por minuto.
     > http://es.voice.yahoo.com
     >
     >

--
    Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
    Ralf Joachim
    Raiffeisenstraße 11
    72127 Kusterdingen
    Germany

    Tel. +49 7071 3690 52
    Mobil: +49 173 9630135
    Fax +49 7071 3690 98

    Internet: www.syscon.eu
    E-Mail: [EMAIL PROTECTED]

    Sitz der Gesellschaft: D-72127 Kusterdingen
    Registereintrag: Amtsgericht Stuttgart, HRB 382295
    Geschäftsleitung: Jens Joachim, Ralf Joachim

    ---------------------------------------------------------------------
    To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


------------------------------------------------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com <http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/>

--

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [EMAIL PROTECTED]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to