trmsweb(资源展现)包的修改

1. 去掉WEB-INF\lib下多余的JAR包,只剩下 rms-lib-jdk14.jar,struts-taglib-1.3.8.jar,struts.jar,swixml.jar,trmsEJB14.jar

2。查看struts-config.xml文件,修改文件头,
把<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">
修改为
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

3。修改spring配置文件(beans-share-simulator-bss.xml),去掉beans-share-simulator-bss.xml中关于config.properties配置文件的引用,修改为自动读取本地JNDI。

        <property name="jndiTemplate">
            <ref bean="jndiTemplate"/>
        </property>
修改为:
<property name="lookupHomeOnStartup" value="false"/>
        <property name="cacheHome" value="false"/>

4。执行打包命令打包 jar -cvf trmsweb.war .

你可能感兴趣的:(apache,spring,xml,Web,struts)