This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

ERROR in Shutdown of Tomcat 6.0.32  RSS feed

 
Greenhorn
Posts: 9
  • 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
 
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response.

I unjar that file and that class is present.


 
Bartender
Posts: 20766
124
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • 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.
 
There's a way to do it better - find it. -Edison. A better tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!