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

ERROR in Shutdown of Tomcat 6.0.32

 
kamal kumar sharma
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am facing a strange problem.

When ever i shutdown the tomcat server,in log it shows below error,However it does not have any functional impact on the application.

but we needed to correct it any how.

ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)


I have copied log4j-1.2.8 jar both in lib and WEB_INF/lib directory.

Thanks for looking into the issue.

Regards,
Kamal
 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kamal kumar sharma wrote:


you open log4j.jar using winrar and check whether the mentioned class file is there or not. >> org.apache.log4j.spi.ThrowableInformation.class
PS: put the error inside code tag, makes it easier to read.
 
kamal kumar sharma
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response.

I unjar that file and that class is present.


 
Tim Holloway
Saloon Keeper
Pie
Posts: 17624
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kamal kumar sharma wrote:Hello,

I have copied log4j-1.2.8 jar both in lib and WEB_INF/lib directory.


You probably have a classpath conflict, then.

You should only have a copy of the log4j jar in the TOMCAT_HOME/lib directory if you are running a version of Tomcat that you rebuilt to use log4j as its logger instead of the standard JULI logger.

The loggers for webapps should be placed in the webapps themselves, and they are completely separate from the logger that Tomcat uses for itself.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic