解决方案 »

  1.   

    StrutsServlet.class.getResource("/conf/struts1/").toURI()这个改成
    StrutsServlet.class.getClassLoader().getResource("/conf/struts1/").toURI()试试
      

  2.   


    试过了同样错误然后我打印了一下StrutsServlet.class.getResource("/conf/struts1/")
    打包结果是这样的:
    zip:C:/Oracle/Middleware/user_projects/domains/HJdomain/servers/AdminServer/tmp/_WL_user/_appsdir_eap_war/vx25ze/war/WEB-INF/lib/_wl_cls_gen.jar!/conf/struts1/
    解包部署是这样的:
    file:/C:/Oracle/Middleware/user_projects/domains/HJdomain/autodeploy/eap/WEB-INF/classes/conf/struts1/