aspose file tools*
The moose likes Tomcat and the fly likes ERROR in Shutdown of Tomcat 6.0.32 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ERROR in Shutdown of Tomcat 6.0.32" Watch "ERROR in Shutdown of Tomcat 6.0.32" New topic
Author

ERROR in Shutdown of Tomcat 6.0.32

kamal kumar sharma
Greenhorn

Joined: Jul 26, 2011
Posts: 9
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

Joined: Sep 11, 2012
Posts: 72

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

Joined: Jul 26, 2011
Posts: 9
Thanks for the response.

I unjar that file and that class is present.


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16065
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ERROR in Shutdown of Tomcat 6.0.32