Opened 15 years ago

Closed 15 years ago

#8161 closed defect (fixed)

tomcat5.5.15 manager app commons.fileupload NoClassDefFoundError

Reported by: wyuenho (Jimmy Yuen Ho Wong) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc:


When I tried to upload a war file in the manager app, the following error occured. This problem doesn't exist on the latest 5.5.16 tarball downloaded directly from Apache


javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream

org.apache.commons.fileupload.DefaultFileItemFactory.createItem( org.apache.commons.fileupload.FileUploadBase.createItem( org.apache.commons.fileupload.FileUploadBase.parseRequest( org.apache.commons.fileupload.FileUploadBase.parseRequest( org.apache.catalina.manager.HTMLManagerServlet.doPost( javax.servlet.http.HttpServlet.service( javax.servlet.http.HttpServlet.service(

Change History (3)

comment:1 Changed 15 years ago by jberry@…

Resolution: worksforme
Status: newclosed

I believe this class is present in commons-io 1.1. Please upgrade to that version, then either copy the jar into the approriate tomcat folder, or rebuild tomcat to pick it up automatically.

comment:2 Changed 15 years ago by wyuenho (Jimmy Yuen Ho Wong)

Resolution: worksforme
Status: closedreopened

I've rebuilt tomcat5 and I got the error. After some pondering, I've found out that the tomcat5 Portfile did not declare its dependency completely. commons-io is obviously dependent but missing. As I had no java libraries installed in Darwinports before, I relied on darwinports to pull all the jars down for me, which in turns relies on the tomcat5 Portfile, which is incomplete.

comment:3 Changed 15 years ago by jberry@…

Resolution: fixed
Status: reopenedclosed

You are right. Tomcat5 should have a dependency onto commons-io. Thanks for being persistant.


Note: See TracTickets for help on using tickets.