Sorry, should have been more specific. You were close but scan a
little bit further down and you'll see:
Full CVS snapshot: all sources, docs, libraries (big)
ftp://ftp.exolab.org/pub/castor/castor_0.9.5.3/castor-0.9.5.3-src.tgz
ftp://ftp.exolab.org/pub/castor/castor_0.9.5.3/castor-0.9.5.3-src.zip 

That has EVERYTHING you'll need and then some. It might be overkill
now, but at least you know you have everything that castor requires,
and shouldn't run into any NoClassDefFound issues.  :)

-Nick


On Fri, 29 Oct 2004 12:50:41 -0700, Gilles Maurice
<[EMAIL PROTECTED]> wrote:
>  
>  
> 
> I'm confused. 
> 
> I assume the tar.gz/zip files you mention are: 
>         The Castor JARs, docs, DTDs, command line tools and examples 
>         ftp://ftp.exolab.org/pub/castor/castor_0.9.5.3/castor-0.9.5.3.tgz 
>         ftp://ftp.exolab.org/pub/castor/castor_0.9.5.3/castor-0.9.5.3.zip 
> 
> They include the following jar files: 
>         castor-0.9.5.3-xml.jar  jdbc-se2.0.jar 
>         castor-0.9.5.3.jar      jta1.0.1.jar 
> 
> None of which include org/apache/xml/serialize/XMLSerializer 
> By default, Unmarshaller is looking for
> org/apache/xml/serialize/XMLSerializer so where would it get it if not in
> xercesImpl.jar? 
> 
> There must be something I'm missing. 
> 
>  
> 
> -----Original Message----- 
> From: Nick Stuart [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 29 October, 2004 3:25 PM 
> To: [EMAIL PROTECTED] 
> Subject: Re: [castor-user] Classloader hell with juinit and castor 
>  
>  
> 
> You should download the whole dist for all the needed files. (aka the 
> tar.gz/zip files). 
> 
> Bruce & company, should we perhaps put a notice on the site that other 
> additional libraries are needed if you just download the jar files? 
>  
> 
> On Fri, 29 Oct 2004 12:17:06 -0700, Gilles Maurice 
> <[EMAIL PROTECTED]> wrote: 
> >  
> >  
> > 
> > Hmmm... I downloaded the stable release of castor which is a single jar: 
> > 
> >        
> > ftp://ftp.exolab.org/pub/castor/castor_0.9.5.3/castor-0.9.5.3-xml.jar 
> > 
> > If I don't include xercesImpl.jar in my classpath I get 
> > java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer 
> > 
> > Are there any other jars that I need? 
> > 
> >  
> > 
> > -----Original Message----- 
> > From: Nick Stuart [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, 29 October, 2004 3:04 PM 
> > To: [EMAIL PROTECTED] 
> > Subject: Re: [castor-user] Classloader hell with juinit and castor 
> >  
> >  
> > 
> > You should just have to use the supplied jars ([castor-dir]/lib]) from 
> > castor itself. This is why I'm wondering if you have a classpath 
> > issue. The xerces jar in there should cover all your xml needs. 
> >  
> > 
> > On Fri, 29 Oct 2004 11:41:42 -0700, Gilles Maurice 
> > <[EMAIL PROTECTED]> wrote: 
> > >  
> > >  
> > > 
> > > When I use fork=yes, I had to include ant's xml-apis.jar file in my 
> > > classpath. 
> > > Otherwise, the <junit> task wouldn't even launch because it couldn't
> find 
> > a 
> > > class in rt.jar. 
> > > 
> > >  
> > > 
> > > -----Original Message----- 
> > > From: Nick Stuart [mailto:[EMAIL PROTECTED] 
> > > Sent: Friday, 29 October, 2004 2:34 PM 
> > > To: [EMAIL PROTECTED] 
> > > Subject: Re: [castor-user] Classloader hell with juinit and castor 
> > >  
> > >  
> > > 
> > > No problem, but again you should be able to fork the unit tests with 
> > > out issue. I do on my tests, and again dont have any issues. 
> > >  
> > > 
> > > On Fri, 29 Oct 2004 11:13:06 -0700, Gilles Maurice 
> > > <[EMAIL PROTECTED]> wrote: 
> > > >  
> > > >  
> > > > 
> > > > I'm using the <junit> taskdef in ant. I changed the fork attribute
> from 
> > > > "yes" to "no" and got a little further. 
> > > > What added to the confusion, was that I had a problem of my own in my 
> > > Castor 
> > > > mapping file and I was blaming it on classloader problems. 
> > > > 
> > > > With fork="no" and my problem fixed... everything works. 
> > > > 
> > > > Thank's for your reply Nick, it made me look into the problem into
> more 
> > > > detail. 
> > > > 
> > > >  
> > > > 
> > > > -----Original Message----- 
> > > > From: Nick Stuart [mailto:[EMAIL PROTECTED] 
> > > > Sent: Friday, 29 October, 2004 1:31 PM 
> > > > To: [EMAIL PROTECTED] 
> > > > Subject: Re: [castor-user] Classloader hell with juinit and castor 
> > > >  
> > > >  
> > > > 
> > > > First, yes, I have. Second, it shouldn't matter what you are trying to
> > > > run, be it a web-app, text based app, or a swing/gui app, castor 
> > > > should work given the required libraries in the classpath. It sounds 
> > > > like something else is screwy with your classpath, and not junit, as 
> > > > junit is just another java app. Nothing special about it. 
> > > > 
> > > > Perhaps post how you are running junit. Are you using Ant tasks? Going
> > > > through an IDE? Command line? 
> > > > 
> > > > -Nick 
> > > >  
> > > > 
> > > > On Fri, 29 Oct 2004 09:47:28 -0700, Gilles Maurice 
> > > > <[EMAIL PROTECTED]> wrote: 
> > > > >  
> > > > >  
> > > > > 
> > > > > I'm encountering some classloader problems when trying to run a
> junit 
> > > test 
> > > > > which calls the Castor marshaller. 
> > > > > 
> > > > > Here are the combinations that I have tried and their effect... 
> > > > > 1) using xerces-api.jar in the class path: junit itself fails
> because 
> > it 
> > > > > can't find a class which is in rt.jar 
> > > > > 2) using ant's xml-apis.jar in the class path: junit runs, but my
> test 
> > > > case 
> > > > > falis looking for org/apache/xml/serialize/XMLSerializer 
> > > > > 
> > > > > 3) moving ant's xml-apis.jar in my third party directory: same
> result 
> > as 
> > > > 1) 
> > > > > 4) having both jar files in the class path i.e. 1) and 2) together: 
> > > junit 
> > > > > runs, castor finds XMLSerializer, but my test case fails because the
> > > class 
> > > > > loader can't find my own classes. :( 
> > > > > 
> > > > > Has anyone been able to run a junit test which uses castor? 
> > > > > Thanks, 
> > > > > Gilles 
> > > > >  
> > > > >  
> > > > > ----------------------------------------------------------- 
> > > > > If you wish to unsubscribe from this mailing, send mail to 
> > > > > [EMAIL PROTECTED] with a subject of: 
> > > > >         unsubscribe castor-user 
> > > > > 
> > > > > 
> > > > > 
> > > >  
> > > >  
> > > > 
> > > > ----------------------------------------------------------- 
> > > > If you wish to unsubscribe from this mailing, send mail to 
> > > > [EMAIL PROTECTED] with a subject of: 
> > > >         unsubscribe castor-user 
> > > > ----------------------------------------------------------- 
> > > > If you wish to unsubscribe from this mailing, send mail to 
> > > > [EMAIL PROTECTED] with a subject of: 
> > > >         unsubscribe castor-user 
> > > > 
> > > > 
> > > > 
> > >  
> > >  
> > > 
> > > ----------------------------------------------------------- 
> > > If you wish to unsubscribe from this mailing, send mail to 
> > > [EMAIL PROTECTED] with a subject of: 
> > >         unsubscribe castor-user 
> > > ----------------------------------------------------------- 
> > > If you wish to unsubscribe from this mailing, send mail to 
> > > [EMAIL PROTECTED] with a subject of: 
> > >         unsubscribe castor-user 
> > > 
> > > 
> > > 
> >  
> >  
> > 
> > ----------------------------------------------------------- 
> > If you wish to unsubscribe from this mailing, send mail to 
> > [EMAIL PROTECTED] with a subject of: 
> >         unsubscribe castor-user 
> > ----------------------------------------------------------- 
> > If you wish to unsubscribe from this mailing, send mail to 
> > [EMAIL PROTECTED] with a subject of: 
> >         unsubscribe castor-user 
> > 
> > 
> > 
>  
>  
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to 
> [EMAIL PROTECTED] with a subject of: 
>         unsubscribe castor-user 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user
> 
> 
>



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to