Opened 19 years ago

Closed 19 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:
Port:

Description

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

exception

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(DefaultFileItemFactory.java:102) org.apache.commons.fileupload.FileUploadBase.createItem(FileUploadBase.java:500) org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367) org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:268) org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:157) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Change History (3)

comment:1 Changed 19 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 19 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 19 years ago by jberry@…

Resolution: fixed
Status: reopenedclosed

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

Commited.

Note: See TracTickets for help on using tickets.