我修改了STRUTS2配置文件之后,重新发布项目,发现修改的配置文件部分没有效果,进入项目发布目录查看,发现我的struts2的配置文件根本就没有更改,和我没修改前 一个样。再次发布之后也是如此,求教高手如何解决~

解决方案 »

  1.   

    检查修改是否编译
    把tomcat下的缓存清空在重新启动
      

  2.   

    把发布目录中的文件删掉,
    在把Myeclipse中的项目刷新一次 Project————>Clean————>选中项目点击OK
    然后再重新发布一次试试
      

  3.   

    楼上朋友说的还不行的话,那你就关闭myeclipse试试,如果还不行,那你把机器重启,再试试。这样肯定行了。
      

  4.   


    清理掉原有的project重新编译就可以了。
      

  5.   

    1\
    org.dbunit.dataset.xml.FlatXmlDataSet File file = File.createTempFile(tableNames[i] + "_back", ".xml");// 备份文件
                FlatXmlDataSet.write(backupDataSet, new FileOutputStream(file));
    2\
    fos = new FileOutputStream(new File(sTemplatePath + "\\" + sFileName));
                    osw = new OutputStreamWriter(fos, "UTF-8");
                    
                    XMLOutputter out = new XMLOutputter();
                    out.output(document, osw);
                    
    3\
     bts = ArrayHelper.transStringToBinary(rs.getString(Constants.TWO));
                        fileName = rs.getString(Constants.ONE);
                        File phyViewFile = new File(parentFile.getAbsolutePath() + File.separator + fileName);
                        if (null != bts)
                        {
                            out = new FileOutputStream(phyViewFile.getAbsolutePath());
                            out.write(bts);
                            
                            // added by x00136008
                            out.close();
                        }4\
     in = new FileInputStream(srcFilePath + "/" + fileAndDirs[i]); // 打开源文件
                            out = new FileOutputStream(targetFilePath + "/" + fileAndDirs[i]);
                            byte[] buffer = new byte[1024];
                            // 一次读取1024个字节,当byteread为-1时表示文件已经读完
                            while ((byteread = in.read(buffer)) != -1)
                            {
                                out.write(buffer, 0, byteread); // 将读取的字节流写入输出流
                            }5\
    // 创建工作簿
            HSSFWorkbook hwb = new HSSFWorkbook();
            
            CreationHelper factory = hwb.getCreationHelper();
    destFile = new FileOutputStream(destPath);
                
                // 创建Sheet页
                sheet = createSheet(sheetName, 0, hwb);<SelectSql><![CDATA[select t.PartNumber as PartNumber,CASE like( r.sName  = 0 , null ) WHEN null then 'N/A' ELSE '{r.sName}' END  sTypeName,t.sDescription as sDescription,r.iTypeID as sEquipType, t.iMeanTypeID as sMeanTypeID,t.iDeployType as iDeployType,t.iPowerType as iPowerType,t.iNeedSlotNum as iSlotNum from DNP_AS_EquipmentBasicInfo t,CND_Mo r,DNP_AS_FrontFrameLayoutDetail f  where t.sFdnID = r.sFdnID and f.sBoardFdnID = t.sFdnID and f.sFrameFdnID = '{fdnid}'; ]]></SelectSql>
      

  6.   

    搞定了,我重新建了个工作空间,将项目check out了之后,就可以了怀疑是自己添加新的JAR包之后发生了冲突,可我始终找不到冲突的JAR包。其实,我觉得是IDE环境这几天在发神经,考虑考虑重新装一个郁闷啊~