当前位置: 代码迷 >> Java Web开发 >> JSP [Class org.apache.commons.logging.LogFactory not found in import] ...
  详细解决方案

JSP [Class org.apache.commons.logging.LogFactory not found in import] ...

热度:1084   发布时间:2006-08-05 14:50:27.0
JSP [Class org.apache.commons.logging.LogFactory not found in import] 错误

各位大虾帮忙看看这是什么错误,刚接触JSP,用的是别人的程序,请大虾指点,感激不尽!


500 Servlet Exception
Note: sun.tools.javac.Main has been deprecated.
E:\resin-ee-2.1.4\webapps\itsq\WEB-INF\classes\com\util\SequenceManage.java:3:
Class org.apache.commons.logging.LogFactory not found in import.
import org.apache.commons.logging.LogFactory;
^
E:\resin-ee-2.1.4\webapps\itsq\WEB-INF\classes\com\util\SequenceManage.java:4:
Class org.apache.commons.logging.Log not found in import.
import org.apache.commons.logging.Log;
^
2 errors, 1 warning

--------------------------------------------------------------------------------
Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002)

搜索更多相关主题的帖子: commons  logging  import  apache  found  

----------------解决方案--------------------------------------------------------

找不到类,试一下把上面的两句写成一句
import org.apache.*;


----------------解决方案--------------------------------------------------------

源程序这样的:

package com.util;

import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;
import java.sql.*;
import java.text.SimpleDateFormat;



----------------解决方案--------------------------------------------------------
不性哦,大哥,还是出先错误,下面的程序都要调用那个类,也不知道怎么回事,在别人机子上好好的,这个类好象是用来记录日志的
----------------解决方案--------------------------------------------------------
怀疑是不是没有把包加进去啊?
----------------解决方案--------------------------------------------------------
  相关解决方案