my structure is 

[catalina]/webapps/[myapplication]/WEB-INF/lib

is there anything else I need to do to tell Tomcat this is my web
application? It does find the stuff in WEB-INF/classes though

Thanks
Heikki


-----Original Message-----
From: Richard Sand [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 1:13 PM
To: Tomcat Users List
Subject: Re: Classloader question


Check that the directory containing WEB-INF is a context path for a web
application. Perhaps Tomcat isn't recognizing your WEB-INF directory because
it doesn't know that the parent directory is the base of a web application
(or your docbase, for example).

Hope this helps...

-Richard
----- Original Message -----
From: "Heikki Doeleman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 1:06 PM
Subject: Classloader question


> Hi everyone,
>
> trying to make a web application work using Tomcat 4.0.1 I found the
> following behaviour, which I don't quite understand:
>
> my application uses a library called xhive.jar
>
> - putting xhive.jar in [catalina]/common/lib
> This works fine, as expected
>
>
> - putting it in [myapp]/WEB-INF/lib
> Causes a ClassDefNotFoundError. I don't know why this is so, it does not
> seem to conform to the description in class-loader-howto.html. However I
did
> see someone saying that in that directory, only .class files are added to
> the classpath, not .jars
> (http://www.geocrawler.com/archives/3/193/2000/12/0/4841079/).
>
>
> - putting it in both those places
> Causes a ClassCastException ?? Something seems to go terribly wrong when
the
> jar is placed in both those directories.
>
> Can anyone explain more about this? I'd like to know exactly how this
works,
> especially I'd like to know why classes from a jar in my application's
> WEB-INF/lib apparently are not loaded.
>
> Thanks
> Heikki Doeleman
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to