Struts2 AnnotationValidationInterceptor

后端 未结 1 1932
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 04:01

I am having a frustrating time implementing struts2-jquery-plugin-3.6.0 into a Struts2 2.3.14.3 website. I recently updated the Struts2 version to 2.3.14.3, and all its depende

相关标签:
1条回答
  • 2021-01-24 04:49

    I had a similar Problem and want to post my findings:

    You are behind a proxy. Start your server with

    JAVA_OPTS='-Dhttp.proxyHost=your.proxy -Dhttp.proxyPort=your.port -Dhttps.proxyHost=your.proxy -Dhttps.proxyPort=your.port'
    

    Then you will get better error messages.

    You'll find out that your Doctype in validators.xml is wrong it must be

    <!DOCTYPE validators PUBLIC
       "-//Apache Struts//XWork Validator Config 1.0//EN"
       "http://struts.apache.org/dtds/xwork-validator-config-1.0.dtd"> 
    

    The Doctype in your *-validation.xml files has to be

    <!DOCTYPE validators PUBLIC
        "-//Apache Struts//XWork Validator 1.0.2//EN"
        "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd"> 
    

    Note the difference between those two and don't mix it up, like I did.

    hth

    0 讨论(0)
提交回复
热议问题