3 Replies Latest reply on Jul 18, 2003 11:21 AM by ericmolitor

    file upload problem

    shivva

      Hi

      am trying to run the file upload application provided by struts latest version. it seems it uses common - bean utils file upload 1.0 api.

      But the problem is jboss-3.0.7_jakarta-tomcat-4.1.24 ships with a default common-fileupload-beta jar which is in tomcat/server/lib directory.

      During deployment only this beta jar gets loaded and the struts file upload example is refering only this jar.

      Is there any way to override the tomcat/server/lib/common-fileupload-beta.jar with my application/web-inf/lib/common-fileupload-1.0.jar ??

      thanks
      shivamurali

        • 1. Re: file upload problem
          ericmolitor

          Why not remove the beta jar and drop your more recent jar in its place? IIRC the new version should work in place of the beta.

          I do pretty much the same thing with the commons-httpclient in the %JBOSS_HOME/lib dir. To use a more recent version.

          • 2. Re: file upload problem
            shivva

            Thanks for ur reply eric.

            But is it advisible to replace the
            commons-fileupload-beta.jar which is in
            catalina/server/lib. ??

            Wont the tomcat engine will use that ??

            Thanks
            murali S

            • 3. Re: file upload problem
              ericmolitor

              I haven't tested it, but Tomcat should use a newer version without problem...

              Cheers,
              Eric