Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/Workspaces/.metadata/.me_tcat/webapps/testFileUp/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:29:72
这是什么错误,为什么有这种错误,怎么解决和避免这种错误

解决方案 »

  1.   

    看看jar包对不对
    commons-fileupload-1.2.1.jar
    commons-io-1.3.2.jar
    commons-logging-1.0.4.jar
    freeer-2.3.15.jar
    ognl-2.7.3.jar
    struts2-core-2.1.8.jar
    xwork-core-2.1.6.jar
      

  2.   

    只留下xwork-2.0.4.jar、commons-logging-1.0.4.jar、freeer-2.3.8.jar、ognl-2.6.11.jar、struts2-core-2.0.11.jar这几个JAR包,多余的删掉。
      

  3.   

    只留下xwork-2.0.4.jar、commons-logging-1.0.4.jar、freeer-2.3.8.jar、ognl-2.6.11.jar、struts2-core-2.0.11.jar这几个JAR包,多余的删掉。
    没有用啊
      

  4.   

    顶下,JAVA中JAR包问题是很郁闷的。
      

  5.   

    LZ用的是struts2什么版本啊。看错误应该是2.1.8。那2楼兄台的回答我就不明白了。。
      

  6.   

    是2.1.8为了保持一致,我把所有的包都重新在2.1.8下面拷了jar包
      

  7.   

    是做上传吗??如果上传就要
    commons-fileupload-1.2.1.jar 
    commons-io-1.3.2.jar 
    这两个包..
      

  8.   

    把你项目中所有的jar包截张图传上来吧。
      

  9.   

    你还是去你struts2的文件夹中的apps下 随意找个例子,把他们的配置给copy过来。
    另:2.1.4之后,fileupload.jar,io。jar是必须要添加的