aspose file tools*
The moose likes Tomcat and the fly likes Tomcat manager making a big fuss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat manager making a big fuss" Watch "Tomcat manager making a big fuss" New topic
Author

Tomcat manager making a big fuss

vellan vaz
Greenhorn

Joined: Apr 02, 2008
Posts: 13
I compiled a servlet and tried accesing it using the servlet invoker
It worked

then I made a WAR file containing the same servlet and other nessary files and copied under webapps and tried accessing it. this to worked

but when I tried deploying this war using Tomcat manager it gave me the following error

type Exception report

message

description: The server encountered an internal error() that prevented it from fulfilling this request.

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:103)
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:350)
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302)
org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:157)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note: The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.26
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

Vellan Vaz,
Welcome to JavaRanch.

Well the problem is its not able to locate the class file for
DeferredFileOutputStream. You need to check if you have commons-io-1.1.jar and commons-fileupload-1.1.jar files in the WB-INF\lib folder. If the problem persists try putting the same in tomcat lib folder as well.

Also you can visit the apache fileupload link.

Hope that helps.
Ben Bernard
Greenhorn

Joined: May 05, 2008
Posts: 1
This is a known issue with Tomcat 5.5.26:

GUI deploy in manager webapp fails due to missing common-...

"This bug is for 5.5.26 which is still missing in the version list of bugzilla.

When deploying a webapp via the deploy upload in the manager webapp gui the
following exception gets thrown:

java.lang.NoClassDefFoundError:
org/apache/commons/io/output/DeferredFileOutputStream
org.apache.commons.fileupload.DefaultFileItemFactory.createItem(DefaultFileItemFactory.java:103)
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:350)
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:302)
org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:166)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

This is due to a missing dependency of commons-fileupload.

Between TC 5.5.25 and 5.5.26 commons-fileupload has been updated from version
1.0 to 1.2. commons-fileupload unbundled some commons-io classes between 1.0 and
1.1, so we need to bundle commons-io with the manager webapp.

Problem can be fixed by including commons-io version 1.4 in the manager webapp."
Shams Haque
Greenhorn

Joined: Jul 15, 2010
Posts: 5
I have solved this error by adding "commons-io.x.x.x.jar" file in libraries folder.
Joel Mata
Greenhorn

Joined: Oct 31, 2009
Posts: 25

Yes the solution works.

Downloaded http://apache.proserve.nl//commons/io/binaries/commons-io-1.4-bin.zip and save the .jar to commons/lib


ITIL V3, SCJP, Spring Core v3 and Going for the OCJMD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat manager making a big fuss