File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat manager making a big fuss

 
vellan vaz
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have solved this error by adding "commons-io.x.x.x.jar" file in libraries folder.
 
Joel Mata
Greenhorn
Posts: 25
Java Oracle Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic