---
title: "struts2+tomcat6报错:找不到commons-logging.jar"
author: "nomadyyj"
date: "2008-07-08T08:39:00Z"
tags: []
slug: "struts2-tomcat6-commons-logging-jar"
draft: false
lastmod: "2008-07-08T08:39:00Z"
id: 212574
url: "https://nomad.iteye.com/blog/212574"
---

struts2+tomcat5做的时候没有碰到这个问题,改成tomcat6启动时就报这个错,无法正常启动。但是commons-logging.jar包确实已经在项目的lib目录下！

2008-7-8 8:36:31 org.apache.catalina.core.StandardContext filterStart  
严重: Exception starting filter struts2  
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

 

解决办法:把commons-logging.jar放到~/tomact安装目录/lib/下就没问题了！估计是tomcat6的问题!