Howdy,

>I have had no luck getting Tomcat to load War files yet; I've been
trying
>various things for hours but no joy yet....

This an issue: it means your tomcat installation is screwed up.  Resolve
this before you proceed with more development.

>the screen. In fact, commons-fileupload-1.0.jar was in
>$CATALINA_HOME/common/lib (and still is). I think that's where I want
it,
>right? Tomcat uses FileUpload itself doesn't it? Otherwise I would put
it
>in the /shared path, right?

All those three "right?" questions are correct.

>I've been reading the HOWTO that you cited and I'm getting a bit
confused;
>it seems to contradict both itself and you! According to the Quick
Start
>section, JAR files containing resource which are to be shared across
all
>web
>applications are to be placed in $CATALINA_HOME/shared/lib. Later, in
the
>detailed description of the class loaders, it says that JAR resources
which
>need to be shared across all web applications (except Tomcat itself)
should
>be put in $CATALINA_HOME/lib, not shared/lib. I suspect that the Quick

Make sure you're reading the documentation for the appropriate tomcat
version, i.e. 4.1 and not 4.0 or 5.0.  If confused, the classloader
how-to trumps the Quick Start guide.


>There's one other thing that I didn't post earlier which I'm starting
to
>suspect is fairly critical. When I first copied
commons-fileupload-1.0.jar
>into the $CATALINA_HOME/commons/lib, I noticed that there was already a
jar
>in that directory with the name commons-upload.jar. I assumed that was
an
>old version of the jar and deleted it.

You assumed correctly, but took the wrong action.  As I've mentioned a
couple of times now, those two jars are different APIs of the fileupload
component.  Soemthing which compiles against one jar won't compile
against the other.  Therein lies your, and tomcat's internal, problem.

What you should have done is keep the older file there and put your
fileupload in your WEB-INF/lib directory.

You might find it easier to start with a new installation of tomcat.
Don't touch the common/lib, server/lib, shared/lib directories.  Only
put libraries under the WEB-INF/lib directory of your webapp.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to