您的位置:程序门 -> websphere ->



tomcat移植到websphere时访问.do后缀发生404


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


tomcat移植到websphere时访问.do后缀发生404
发表于:2007-06-20 16:50:35 楼主
以前在tomcat下开发的一个应用要移植到websphere当中,做成war包放入到websphere后,发现.jsp和.html都还可以访问,但.do后缀的action全都是404
请教是怎么回事呀?要如何处理?
发表于:2007-06-21 13:42:451楼 得分:0
没人知道吗?给点方向性的提示也好呀
发表于:2007-06-23 15:04:222楼 得分:0
应该不至于吧
发表于:2007-06-25 10:09:433楼 得分:0
但事实是就是至于了
怀疑过打包的问题,也怀疑过是web.xml和struts-config.xml的问题,但都确定不了

web.xml如下
<?xml   version= "1.0 "   encoding= "utf-8 "?>
<!doctype   web-app   public   "-//sun   microsystems,   inc.//dtd   web   application   2.3//en "   "http://java.sun.com/dtd/web-app_2_3.dtd ">

<web-app   id= "test ">
    <display-name> test </display-name>
    <description> test </description>
    <context-param>
        <param-name> javax.servlet.jsp.jstl.fmt.localizationcontext </param-name>
        <param-value> applicationresources </param-value>
    </context-param>
    <context-param>
        <param-name> contextconfiglocation </param-name>
        <param-value> /web-inf/applicationcontext.xml,/web-inf/securitycontext.xml,/web-inf/applicationcontext-*.xml </param-value>
    </context-param>
       
    <filter>
        <filter-name> charsetfilter </filter-name>
        <filter-class> com.test.servlet.charsetfilter </filter-class>
    </filter>
   
    <filter>
        <filter-name> set   system   parameter </filter-name>
        <filter-class> com.test.servlet.configsystem </filter-class>
    </filter>
   
    <filter-mapping>
        <filter-name> charsetfilter </filter-name>
        <url-pattern> /* </url-pattern>
    </filter-mapping>

      <filter-mapping>
        <filter-name> set   system   parameter </filter-name>
        <url-pattern> *.jsp </url-pattern>
    </filter-mapping>

    <servlet>
        <servlet-name> cewolfservlet </servlet-name>
        <servlet-class> de.laures.cewolf.cewolfrenderer </servlet-class>
        <load-on-startup> 40 </load-on-startup>
    </servlet>
    <servlet>
        <servlet-name> action </servlet-name>
        <servlet-class> com.my.servlet.frontcontroller </servlet-class>
        <init-param>
            <param-name> configex </param-name>
            <param-value> /web-inf/config/struts-*.xml </param-value>
</init-param>    
        <init-param>
            <param-name> config/query </param-name>
            <param-value> /web-inf/config/struts-frame.xml </param-value>
        </init-param>
        <init-param>
            <param-name> detail </param-name>
            <param-value> 2 </param-value>
        </init-param>
        <init-param>
            <param-name> validate </param-name>
            <param-value> false </param-value>
        </init-param>
        <load-on-startup> 20 </load-on-startup>
    </servlet>
    <servlet>
        <servlet-name> soapmonitorservice </servlet-name>
        <display-name> soap   monitor   service </display-name>
        <servlet-class> org.apache.axis.monitor.soapmonitorservice </servlet-class>
        <init-param>
            <param-name> soapmonitorport </param-name>
            <param-value> 5001 </param-value>
        </init-param>
        <load-on-startup> 100 </load-on-startup>
    </servlet>
   
    <servlet>
        <servlet-name> adminservlet </servlet-name>
        <display-name> axis   admin   servlet </display-name>
        <servlet-class> org.apache.axis.transport.http.adminservlet </servlet-class>
        <load-on-startup> 100 </load-on-startup>
    </servlet>
       
    <servlet>
        <servlet-name> axisservlet </servlet-name>
        <display-name> apache-axis   servlet </display-name>
        <servlet-class> org.apache.axis.transport.http.axisservlet </servlet-class>
    </servlet>
   
    <servlet>
<servlet-name> pubappservlet </servlet-name>
<display-name> pubappservlet </display-name>
<description> </description>
<servlet-class>
com.my.subsys.pubapp.pubappservlet </servlet-class>
<init-param>
<param-name> pubappinfo.class </param-name>
<param-value> com.test.pubapp.querypubappinfo </param-value>
<description>
subclass   name(include   package) </description>
</init-param>
</servlet>

<servlet>
<servlet-name> registerservlet </servlet-name>
<display-name> registerservlet </display-name>
<description>
</description>
<servlet-class>
com.my.subsys.register.registerservlet </servlet-class>
<init-param>
<param-name> registerinfo.xmlfile </param-name>
<param-value> /forframe/register/registerinfo.xml </param-value>
<description>
</description>
</init-param>
<init-param>
<param-name> registerinfo.class </param-name>
<param-value> com.my.subsys.register.xmlregister </param-value>
<description>
</description>
</init-param>
</servlet>

<servlet>
<servlet-name> testconnservlet </servlet-name>
<display-name> testconnservlet </display-name>
<description> test   connection </description>
<servlet-class>
com.my.subsys.testconn.testconnectionservlet </servlet-class>
</servlet>

<servlet>
<servlet-name> filedirservlet </servlet-name>
<display-name> filedirservlet </display-name>
<description> get   remote   file   system   info
</description>
<servlet-class>
com.my.subsys.testconn.filedirservlet </servlet-class>
</servlet>


发表于:2007-06-25 10:09:514楼 得分:0

    <servlet>
        <servlet-name> init </servlet-name>
        <servlet-class> com.test.servlet.init </servlet-class>
        <load-on-startup> 30 </load-on-startup>
    </servlet>

    <servlet>
        <servlet-name> table2beanservlet </servlet-name>
        <servlet-class> com.test.common.tools.table2bean.table2beanservlet </servlet-class>
    </servlet>
   
    <servlet-mapping>
        <servlet-name> init </servlet-name>
        <url-pattern> /init </url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name> table2beanservlet </servlet-name>
        <url-pattern> /table2beanservlet </url-pattern>
    </servlet-mapping>
   
   
    <servlet-mapping>
<servlet-name> pubappservlet </servlet-name>
<url-pattern> /pubappservlet </url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name> registerservlet </servlet-name>
<url-pattern> /registerservlet </url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name> testconnservlet </servlet-name>
<url-pattern> /testconnservlet </url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name> filedirservlet </servlet-name>
<url-pattern> /filedirservlet </url-pattern>
</servlet-mapping>


    <servlet-mapping>
        <servlet-name> cewolfservlet </servlet-name>
        <url-pattern> /query/cewolf/* </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name> action </servlet-name>
        <url-pattern> *.do </url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name> soapmonitorservice </servlet-name>
        <url-pattern> /soapmonitor </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name> adminservlet </servlet-name>
        <url-pattern> /servlet/adminservlet </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name> axisservlet </servlet-name>
        <url-pattern> /servlet/axisservlet </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name> axisservlet </servlet-name>
        <url-pattern> *.jws </url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name> axisservlet </servlet-name>
        <url-pattern> /services/* </url-pattern>
    </servlet-mapping>
    <mime-mapping>
        <extension> wsdl </extension>
        <mime-type> text/xml </mime-type>
    </mime-mapping>
    <mime-mapping>
        <extension> xsd </extension>
        <mime-type> text/xml </mime-type>
    </mime-mapping>
    <welcome-file-list>
        <welcome-file> index.jsp </welcome-file>
    </welcome-file-list>
    <taglib>
        <taglib-uri> /web-inf/tlds/my-controls.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/my-controls.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/my-forms.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/my-forms.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/my-menu.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/my-menu.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/my-template.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/my-template.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/my-utility.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/my-utility.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/struts-bean.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/struts-bean.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/struts-html.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/struts-html.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/struts-logic.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/struts-logic.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/struts-nested.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/struts-nested.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/struts-template.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/struts-template.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/struts-tiles.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/struts-tiles.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> /web-inf/tlds/security.tld </taglib-uri>
        <taglib-location> /web-inf/tlds/security.tld </taglib-location>
    </taglib>
</web-app>
发表于:2007-06-26 14:11:555楼 得分:0
我也遇到类似问题,哪位大侠知道啊,救命啊!!!
发表于:2007-06-26 15:46:586楼 得分:0
我的问题已经找到了,是一个自己写的读validate.xml的类在websphere的jdk下有点问题,换了就ok了
想要分的留名吧


快速检索

最新资讯
热门点击