configure a domainName in tomcat that have  a bug
-------------------------------------------------

                 Key: WW-2376
                 URL: https://issues.apache.org/struts/browse/WW-2376
             Project: Struts 2
          Issue Type: Bug
          Components: Dispatch Filter
    Affects Versions: 2.0.11
         Environment: 1. tomcat 6.0.13+jdk1.6+struts2.0.11 + spring 2.x+ 
hibernate3.x
2. resin-3.1.4 +jdk1.6+ struts2.0.11 + spring 2.x+ hibernate3.x
            Reporter: Tang Lin
            Priority: Critical


i'm from china,my english is poor

when i configure a host in tomcat 6.0.13
example :
that a folder in webRoot, the name is "demo".
if i configure an package in struts.xml whith namespace="/demo"
and configure a host in tomcat  whith host name="www.test.cn"
run it.
call  "http://www.test.cn/demo/params.do";    that have an error HTTP Status 404 
- /demo/params.do
when i delete the folder  "demo"
call again "http://www.test.cn/demo/params.do";   that right .that no error.

if i configure the web site in default host, that's right too, no error.
and i configure  the web site in resin-3.1.4 .
with host id="www.test.cn" or default host ,that' right too,no error.


struts.xml
<package name="demo-gx80" namespace="/demo" extends="gx80-default">
       <action name="*" class="cn.gx80.control.action.basic.BasicAction">
                <result>/demo/{1}.html</result>
        </action>
        <action name="params" 
class="cn.gx80.control.action.basic.ParameterAction">
                <result>/WEB-INF/view/freemarker/demo/params.html</result>
        </action>
</package>


****************************************************
this is my configure  in tomcat,that have error.
<Host name="www.test.cn"  appBase="E:/mywork/gx80-out/WebRoot"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
                <Context path="" docBase="E:/mywork/gx80-out/WebRoot" />
</Host>
****************************************************


this is right, hava no error.
<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="E:/mywork/gx80-out/WebRoot" />
</Host>


in resion-3.1.14
no error
<host id="www.test.cn" root-directory="E:/mywork/gx80-out">
      <web-app id="/" root-directory="E:/mywork/gx80-out/WebRoot"/>
</host>

no error
<host id="" root-directory=".">
      <web-app id="/" root-directory="E:/mywork/gx80-out/WebRoot"/>




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to