• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ERROR in Shutdown of Tomcat 6.0.32

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the response.

I unjar that file and that class is present.


 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic