看错误的原因,应该式没有找到你的属性文件commons-logging.properties
如果式tomcat,它的默认路径式你当前的工作目录,即:如果式jbuilder,则式你的工程文件的根目录

解决方案 »

  1.   

    不是放到web-inf\classes\commons-logging.properties吗?
      

  2.   

    Have you re mapped the entry in the web.xml for Log4jInit Log4j initialization?Make sure you modify your web.xml to look like the following:     <listener>
             <listener-class>
             org.enhydra.barracuda.webapp.log4j.Log4jApplicationWatch
             </listener-class>
         </listener>     <servlet>
             <servlet-name>log4j-init</servlet-name>
             <servlet-class>org.enhydra.barracuda.webapp.log4j.Log4jInit</servlet-class>
             ....
             ....
             ....
         </servlet>
      

  3.   

    啊,不会这么复杂吧:(我是在Jbuilder7 + easy struts + tomcat4.04
      

  4.   

    检查log4j.properties的位置是否放在了正确的位置:
      

  5.   

    我的文件位置:web-inf/classes/log4j.propertiestomcat能找到这个文件。web.xml文件还需要做什么配置吗?
      

  6.   

    修改web.xml吧..
    还没有解决吗?奇怪了.应该可以的啊.我是搜索老外的文章看到的.
      

  7.   

    那个文章我也看到了啊,struts本身应该支持log4j我觉得不需要修改web.xml.我照老外的贴子修改了我的web.xml但是效果依然:(