commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian K. Wallace" <br...@transmorphix.com>
Subject Re: upload file [FileUpload]
Date Fri, 10 Mar 2006 21:28:52 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I wouldn't use "add archive jar" to place anything in a runtime
classpath. Ideally, during the packaging of a war you'd have something
just copy those files where they need to be.

As for adding jars - if they're needed for compile, add them through
eclipse's build path. To get them recognized for runtime - just manually
put them where they need to be.

Marc Collin wrote:
> Le Vendredi 10 Mars 2006 16:17, Brian K. Wallace a écrit :
> 
>> What you didn't specify is whether you run Tomcat inside Eclipse (such
>> that when eclipse shuts down so does Tomcat) or outside (which would
>> require shutting down Tomcat separately). I've rarely come to a
>> situation where I had to restart Eclipse - and never for a Tomcat
>> problem I was having.
> 
> run tomcat inside eclipse
> 
>> Back to the issue: I looked at your layout and see that you extracted
>> the fileupload jar into WEB-INF/lib.
> 
> eclipse do that when i do: add archive jar
> 
>> (I think this was in the "....." 
>> email that I didn't quite get). The WEB-INF/lib directory is for jar
>> files. No need (matter of fact, don't) to extract those jars - the
>> classes won't get picked up. If you feel you need to, classes are picked
>> up from WEB-INF/classes.
>  
> commons-fileupload-1.1.jar is in
> WEB-INF/lib/
> 
>> Also - assuming you just put jars in that directory, or extract to
>> WEB-INF/classes, and get that part working - you'll still have a
>> problem. See
>> http://jakarta.apache.org/commons/fileupload/dependencies.html for the
>> other jar files you'll need for your project (also to be placed in
>> WEB-INF/lib)
> 
> 
> will try to add these jar.....
> 
> need to do it manually or to do something in eclipse?
> 
>> Brian
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFEEe+UaCoPKRow/gARAusIAKC3WlzzkZuNHa3f2o1ZwZB6WvoCfACfbAFC
phi0nYRhh2q//ToXUkxWGoQ=
=i3oX
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message