Did you something like this in server xml ?

<Context path="/myapplication" docBase="myapplication" 
         debug="0" privileged="true"/> 

in your localhost container ? 



> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> W�rthstra�e 34
> D-50668 K�ln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _____________________________
> 


-----Urspr�ngliche Nachricht-----
Von: Heikki Doeleman [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 17. Dezember 2001 13:16
An: 'Tomcat Users List'
Betreff: RE: Classloader question


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]>


------------------------------------------------------------------------------
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.
----------------------------
For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==============================================================================


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

Reply via email to