Ok, many thanks for the help.

Mikael

----- Original Message -----
From: "Chaber, Eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 1:32 PM
Subject: RE: web-inf/classes not found ?


> Edit your server.xml
> copy paste
>
>         <Context path="/examples"
>                  docBase="webapps/examples"
>                  crossContext="false"
>                  debug="0"
>                  reloadable="true" >
>         </Context>
>
> change "examples" to "mydir"
> create a dir $TOMCAT_HOME/webapps/mydir
> under my dir creates directories WEB-INF/classes
>
> at the end you should have $TOMCAT_HOME/webapps/mydir/WEB-INF/classes
> reboot tomcat
> put yur classes there
> that's how I did for my setup.
>
>
> -----Original Message-----
> From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
> Sent: September 27 2001 14:24
> To: [EMAIL PROTECTED]
> Subject: Re: web-inf/classes not found ?
>
>
> Ok, thanks, I will see if I can figure out how to do that....
>
> The documentation says that Tomcat (4) always adds a classloader for each
> web application that looks in the web-inf/classes and web-inf/dir
directory,
> I could not find any examples/web-inf/classes reference in my server.xml,
I
> guess I should place this information in the context for my application
but
> I have no idea where, but I will see if I can find anything about it in
the
> documentation.
>
> Mikael
>
> ----- Original Message -----
> From: "Chaber, Eric" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 27, 2001 12:53 PM
> Subject: RE: web-inf/classes not found ?
>
>
> > Mikeal,
> >
> > you have to specify in server.xml where your classes are.
> > for the example directory it's
> > /webapps/examples/web-inf/classes
> > recreate same path in server.xml
> > /webapps/mydir/web-inf/classes
> > reboot tomcat
> > put your class files there
> > tomcat should find them
> >
> > rgds,
> > Eric
> > -----Original Message-----
> > From: Mikael Aronsson [mailto:[EMAIL PROTECTED]]
> > Sent: September 27 2001 13:55
> > To: [EMAIL PROTECTED]
> > Subject: web-inf/classes not found ?
> >
> >
> > Hi !
> >
> > Tomcat complains that it can't find some of my classes
> > .../web-inf/classes/xxx/yyy/myclassses for example,
> > Everything works fine when I compile it (I specify the -classpath to let
> the
> > compiler find the classes), but when I run the application in Tomcat, it
> > does not find the classes.
> >
> > The docs says that it should look in the web-inf/classes directory ?
> >
> > Am I doing something wrong here maybe ?
> >
> > Mikael
> >

Reply via email to